Bugfix and usability improvements

This commit is contained in:
Daniel Vestøl committed 2018-09-23 09:17:07 +02:00
1 parent 087ba8dabe
commit 8a84f4087a
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -315,6 +315,7 @@ write-data=${ path.resolve(config.instanceDirectory, instance) }\r\n
let instconf = {
"factorioPort": args.port || process.env.FACTORIOPORT || Math.floor(Math.random() * 65535),
"clientPort": args["rcon-port"] || process.env.RCONPORT || Math.floor(Math.random() * 65535),
"__comment_clientPassword": "This is the rcon password. Its also used for making an instanceID. Make sure its unique and not blank.",
"clientPassword": args["rcon-password"] || Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 8),
}
console.log("Clusterio | Created instance with settings:")
+1 -1
View File
@@ -282,7 +282,7 @@ module.exports = class remoteCommands {
frame: framepart, // thats our array of objects(single signals);
}
// send to master using socket.io, opened at the top of instanceManagement()
socket.emit("combinatorSignal", doneframe);
this.socket.emit("combinatorSignal", doneframe);
} else {
// console.log("Invalid jsony: "+typeof signals[i])
}