mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
factorioServer: Tried adding function for map creation, failed.
This commit is contained in:
1 parent
e55bf71431
commit
9a0ce97746
2 files changed
+24
-3
No files matched your search
+6
-2
@@ -125,12 +125,16 @@ module.exports = class factorioServer {
|
||||
await createInstance();
|
||||
}
|
||||
this.onProgress("log", "Starting map creation");
|
||||
child_process.spawnSync(
|
||||
'./'+this.factorioDirectory + '/bin/x64/factorio', [
|
||||
let code = child_process.spawnSync(
|
||||
this.factorioDirectory + '/bin/x64/factorio', [
|
||||
'-c', this.instanceDirectory + '/config.ini',
|
||||
'--create', this.instanceDirectory + '/saves/'+name,
|
||||
'--server-settings', this.instanceDirectory + '/server-settings.json',
|
||||
]
|
||||
);
|
||||
console.log(code.stdout.toString("utf8"))
|
||||
console.log(code)
|
||||
this.onProgress("log", "Map created");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user