Page 1 of 1

[1.1.26] Headless server config.ini options are not working

Posted: Sat Mar 06, 2021 9:27 am
by CovertKraken
I have a headless server running on Ubuntu. The server loads, but none of the config options are enabled. Most notably, the server has no join password, when I have specified a password in the config. I can set options with the multiplayer console, but they revert to defaults once the server is restarted.

Here is my config.ini:

config.ini
(16.2 KiB) Downloaded 111 times

Here is my factorio-current.log.

Code: Select all

   0.000 2021-03-06 09:24:29; Factorio 1.1.26 (build 58172, linux64, headless)
   0.049 Operating system: Linux (Ubuntu 20.04)
   0.050 Program arguments: "/opt/factorio/bin/x64/factorio" "--start-server-load-latest" "--config" "/opt/factorio/config/config.ini" 
   0.050 Read data path: /opt/factorio/data
   0.050 Write data path: /opt/factorio [14222/20030MB]
   0.050 Binaries path: /opt/factorio/bin
   0.055 System info: [CPU: Common KVM processor, 2 cores, RAM: 1987 MB]
   0.056 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.056 Running in headless mode
   0.097 Loading mod core 0.0.0 (data.lua)
   0.156 Loading mod base 1.1.26 (data.lua)
   0.505 Loading mod base 1.1.26 (data-updates.lua)
   0.687 Checksum for core: 217331212
   0.687 Checksum of base: 3777792092
   0.927 Prototype list checksum: 3034860339
   0.981 Info PlayerData.cpp:71: Local player-data.json available, timestamp 1615022669
   0.981 Info PlayerData.cpp:78: Cloud player-data.json unavailable
   0.984 Factorio initialised
   0.984 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   0.984 Info ServerMultiplayerManager.cpp:780: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   0.984 Info ServerMultiplayerManager.cpp:780: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   0.985 Loading map /opt/factorio/saves/dankserver.zip: 835304 bytes.
   1.000 Loading level.dat: 1700977 bytes.
   1.013 Info Scenario.cpp:197: Map version 1.1.26-0
   1.059 Loading script.dat: 398 bytes.
   1.063 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 1735894310
   1.072 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
   1.073 Hosting game at IP ADDR:({0.0.0.0:34197})
   1.074 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2?api_version=4
   1.472 Info AuthServerConnector.cpp:68: Obtained serverPadlock for serverHash (GK9dXakIYTxf4npJldTaP0A8OGJURBnz) from the auth server.
   1.472 Info ServerMultiplayerManager.cpp:780: updateTick(6612) changing state from(CreatingGame) to(InGame)
   1.473 Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

Re: [1.1.26] Headless server config.ini options are not working

Posted: Sat Mar 06, 2021 9:39 am
by bormand
Server options should be specified in server-settings.json, as far as I remember. Make a copy of example file (server-settings.example.json), fill the settings and pass it through --server-settings argument.

Re: [1.1.26] Headless server config.ini options are not working

Posted: Sat Mar 06, 2021 9:47 am
by CovertKraken
Linux uses a config.ini instead of a .json

Edit: So, I stopped trying to use the config.ini and used the server-settings.json instead, and it looks like things are working now. As far as I understand, either should work, so it's a mystery to me why the config.ini doesn't work.

Re: [1.1.26] Headless server config.ini options are not working

Posted: Sat Mar 06, 2021 10:14 am
by bormand
CovertKraken wrote: Sat Mar 06, 2021 9:47 am Linux uses a config.ini instead of a .json
It respects game_password and other settings from the server-settings.json, not from the config.ini. Just checked it on my VPS.

Re: [1.1.26] Headless server config.ini options are not working

Posted: Sat Mar 06, 2021 10:26 am
by bormand
CovertKraken wrote: Sat Mar 06, 2021 9:47 am so it's a mystery to me why the config.ini doesn't work
Headless mode uses server-settings.json, GUI mode uses config.ini, as far as I remember.

Re: [1.1.26] Headless server config.ini options are not working

Posted: Sat Mar 06, 2021 10:37 am
by CovertKraken
Ah okay, that actually makes sense, since the graphic options are excluded from the json but included in the ini. Thanks for your help.