diff --git a/client.js b/client.js index 58bc099f..be46e357 100644 --- a/client.js +++ b/client.js @@ -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:") diff --git a/sharedPlugins/clusterioMod/index.js b/sharedPlugins/clusterioMod/index.js index fec5da1a..4377c842 100644 --- a/sharedPlugins/clusterioMod/index.js +++ b/sharedPlugins/clusterioMod/index.js @@ -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]) }