The headless server crashes with the provided example configuration file (specifically map-settings.example.json) as it has missing required JSON keys.
1. What did you do? I pulled the container image factoriotools/factorio:2.1.7 and started it, which as default behavior copies the example config files from the headless server zip and uses them as defaults (This issue is reproducible outside this Docker image too, however, by manually copying the example configs out of the server zip into the data folder)
2. What happened? The game crashed with the error "0.000 Error Util.cpp:81: Key "evolution_group_size_factor" not found in property tree at ROOT.enemy_expansion"
3. What did you expect to happen instead? The example configuration should include all required keys for the server to start properly.
4. Does it happen once, sometimes, or always? Always, however as a workaround you can copy the config of an existing savefile generated by the client instead.
I've attached a full log of the error as well.
[2.1.7] Crash of headless with bundled example config (missing JSON keys)
- hypergonial
- Manual Inserter

- Posts: 3
- Joined: Sun Jul 28, 2024 9:49 am
- Contact:
[2.1.7] Crash of headless with bundled example config (missing JSON keys)
- Attachments
-
- full-log-docker.txt
- The first half of the logs is from the Docker entrypoint, but I included the entire log for the sake of completeness.
- (5.31 KiB) Downloaded 4 times
Re: [2.1.7] Crash of headless with bundled example config (missing JSON keys)
This appears to be an issue with this third-party docker container. I downloaded a fresh headless zip, copied the example configuration, and it spun up a server just fine.
Don't forget, you're here forever.
Re: [2.1.7] Crash of headless with bundled example config (missing JSON keys)
The values were missing from the file. I've added them and also updated the example values to match the new defaults. Thanks for the report, fixed for 2.1.8.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
