Factorio 1.1.26 (build 58172, linux64, headless)
Server fails to start if the --server-settings argument specifies a config.ini. The error message is "Unexpected character (;) at /opt/factorio/config/config.ini:1"
Removing the first three lines (each starting with a semicolon) results in a similar error complaining about subsequent lines. The server starts successfully if a config.ini is NOT specified as an argument.
[1.1.26] Headless server fails to start if a config.ini is specified
-
- Burner Inserter
- Posts: 6
- Joined: Mon Feb 08, 2021 6:26 am
- Contact:
Re: [1.1.26] Headless server fails to start if a config.ini is specified
--server-settings argument expects server settings JSON file (for example Factorio/data/server-settings.example.json), so it fails to parse INI file. To specify config.ini, use --config argument.
-
- Burner Inserter
- Posts: 6
- Joined: Mon Feb 08, 2021 6:26 am
- Contact:
Re: [1.1.26] Headless server fails to start if a config.ini is specified
Using --config allowed the server to start, but unfortunately it is now not respecting my config options, most notably the requirement for a password. Tested connecting both from LAN and over the internet; not sure if this makes a difference. I've confirmed in the log that the executable is recognizing the --config option. No changes to the config from before.
Re: [1.1.26] Headless server fails to start if a config.ini is specified
Pass server-settings.json to --server-settings, pass config.ini to --config.
-
- Burner Inserter
- Posts: 6
- Joined: Mon Feb 08, 2021 6:26 am
- Contact:
Re: [1.1.26] Headless server fails to start if a config.ini is specified
More info here: viewtopic.php?f=49&t=96702&p=540048#p540048
tl;dr - headless uses json, gui uses ini.
tl;dr - headless uses json, gui uses ini.