Page 1 of 1

[0.15.12] Headless + multi save = unable to configure admins

Posted: Sun May 21, 2017 2:11 pm
by Beerbelott
Here is the scenario:
  1. Joined a game hosted by a friend on his PC (v0.15.10)
  2. Saved the game to mine when he left (server closed)
  3. Uploaded the savegame to a headless server (v0.15.12)
  4. Configured the server-settings.json file with a directive as following:

    Code: Select all

    {
      [...]
      "admins": ["foo"]
    }
  5. Joining the game, displaying the admins list with the help of the /admins command, the name my friend originally used when he was hosting the game on his computer, and only his name, appears
Following the configuration, is was expected to see :
  1. The player named 'foo' to be promoted to admin and connect
  2. No-one else being admin, including the original owner of the savegame, since the savegame could be loaded anywhere else where he has no authority
Comments on questions you might have:
  • Yes, the server-settings file is correct, the format of which has not changed since v0.14.23 and another factorio headless instance (v0.14.23) has been successfully loaded with me being promoted as admin there.
  • It is worthy to note that another savegame has been used to bootstrap the other (v0.14.23) instance, but this time it was a savegame of solo play, not multiplay

Re: [0.15.12] Headless + multi save = unable to configure admins

Posted: Sun May 21, 2017 7:26 pm
by Rseding91
The admins section only applies to players as they join the game. Once they've joined it doesn't do anything.

You can use the headless instance to promote anyone you like by just typing in the console.

Re: [0.15.12] Headless + multi save = unable to configure admins

Posted: Mon May 22, 2017 12:32 am
by Beerbelott
Step 5 specified precisely that joining the game while appearing in the admins list (and with the configuration file loaded beforehand of course) does not promote the said player to admin, as it is expected.

Re: [0.15.12] Headless + multi save = unable to configure admins

Posted: Mon May 22, 2017 1:18 am
by Rseding91
Beerbelott wrote:Step 5 specified precisely that joining the game while appearing in the admins list (and with the configuration file loaded beforehand of course) does not promote the said player to admin, as it is expected.
If you have previously joined the game then it doesn't apply. It only happens the *first* time you join a specific save file. Once you've joined the game your player exists in the world and is saved.

Use the headless instance and just type /promote *name* and it will promote your player.

Re: [0.15.12] Headless + multi save = unable to configure admins

Posted: Mon May 22, 2017 7:35 am
by Beerbelott
OK that is clearer.

Is that documented anywhere? I don't recall having read it before.

Thanks for your help!
This post is thus not a bug, and can be closed.