mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-26 00:33:12 +09:00
More informative error when launching instance without savefile
This commit is contained in:
1 parent
f522f19cb5
commit
7682a51437
1 file changed
+5
-1
@@ -319,7 +319,11 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
|||||||
// Spawn factorio server
|
// Spawn factorio server
|
||||||
//var serverprocess = child_process.exec(commandline);
|
//var serverprocess = child_process.exec(commandline);
|
||||||
fileOps.getNewestFile(instancedirectory + "/saves/", fs.readdirSync(instancedirectory + "/saves/"),function(err, latestSave) {
|
fileOps.getNewestFile(instancedirectory + "/saves/", fs.readdirSync(instancedirectory + "/saves/"),function(err, latestSave) {
|
||||||
if(err) throw err;
|
if(err) {
|
||||||
|
console.log("Your savefile seems to be missing. This might because you created an instance without having factorio\
|
||||||
|
installed and configured properly. Try installing factorio and adding your savefile to instances/[instancename]/saves/");
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
// implicit global
|
// implicit global
|
||||||
serverprocess = child_process.spawn(
|
serverprocess = child_process.spawn(
|
||||||
'./' + config.factorioDirectory + '/bin/x64/factorio', [
|
'./' + config.factorioDirectory + '/bin/x64/factorio', [
|
||||||
|
|||||||
Reference in new issue
Block a user