From 22a1372e32b2e4956bfd12d20a1bb9a430bfee4b Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Mon, 16 Jan 2017 21:21:13 +0100 Subject: [PATCH] Better mod loading, service auth --- .gitignore | 1 + client.js | 2 +- config.json | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fc0725a7..0f7ce207 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ Factorio* /factorio /instances /sharedMods +/database \ No newline at end of file diff --git a/client.js b/client.js index 04e55aed..c8060027 100644 --- a/client.js +++ b/client.js @@ -190,7 +190,7 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\ //TODO: catch '2.033 Info RemoteCommandProcessor.cpp:97: Starting RCON interface at port 35002' from stdout maybe? setTimeout(() => { client.connect(); - }, 5000); + }, 15000); client.on('authenticated', function () { console.log('Authenticated!'); diff --git a/config.json b/config.json index f5c44cd5..ce6ea2e9 100644 --- a/config.json +++ b/config.json @@ -11,10 +11,12 @@ "__comment": "credentials for factorio MP services, also username will be admin", "username": "", - "usertoken": "", + "password": "", + "__comment": "Token can be used instead of password, but for the most part just ignore", + "token": "", "__comment": "General user settings", - "verify_user_identity": true, + "verify_user_identity": false, "auto_pause": false, "allow_commands": "admins-only", "game_password": "",