mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Add support for multiple Factorio installs
Allow the factorio_directory specified in the slave config to contain multiple Factorio installs and add factior.version instance option to select which install to use for the given instance.
This commit is contained in:
1 parent
4c26fcee3a
commit
ae86781b0d
7 files changed
+186
-20
No files matched your search
@@ -29,13 +29,14 @@ class Instance extends link.Link{
|
||||
this.config = instanceConfig;
|
||||
|
||||
let serverOptions = {
|
||||
version: this.config.get("factorio.version"),
|
||||
gamePort: this.config.get('factorio.game_port'),
|
||||
rconPort: this.config.get('factorio.rcon_port'),
|
||||
rconPassword: this.config.get('factorio.rcon_password'),
|
||||
};
|
||||
|
||||
this.server = new factorio.FactorioServer(
|
||||
path.join(factorioDir, "data"), this._dir, serverOptions
|
||||
factorioDir, this._dir, serverOptions
|
||||
);
|
||||
|
||||
this.server.on('output', (output) => {
|
||||
|
||||
Reference in new issue
Block a user