Starting the game with most launch options in versions 2.0.71 and below creates a config.ini file when none existed. This could be used to programmatically get the default configuration for newer versions.
Now in 2.0.72, a configuration file isn't created until the player changes a setting. Even using the --fullscreen or --shader command line arguments that are documented as saving the change to the config file do not result in a config file being generated.
I discovered that if you have an empty config.ini the game helpfully offers to reset the corrupted configuration file for you.... but only if you launch in an interactive mode that requires confirming the dialog box. If you launch a server, the log includes resetting the config file, but doesn't actually do so.
Behavior seems consistent across Windows and Linux, with and without steam.
If this is the intended behavior then consider this a feature request to allow generating and/or resetting the config from the command line. Maybe --dump-default-config? Providing the default config file in the data directory like all of the example json files would be ok... but then it wouldn't have all of the modded input key settings, so that's less preferable.
Factorio Access is only able to edit configurations through the config file, so not being able to discover new settings would be problematic.
[2.0.72] doesn't create default config.ini
[2.0.72] doesn't create default config.ini
- Attachments
-
- factorio2.0.72 no args no config.log
- (7.23 KiB) Downloaded 3 times
-
- factorio2.0.72 --start-server-load-scenario fake corrupted config not reset.log
- (3.27 KiB) Downloaded 3 times
-
- factorio2.0.72 --start-server-load-scenario base[slash]freeplay corrupted config not reset.log
- (4.97 KiB) Downloaded 3 times
-
- factorio2.0.72 --fullscreen no config.log
- (7.15 KiB) Downloaded 3 times
-
- factorio2.0.71 --start-server-load-scenario fake works.log
- (3.21 KiB) Downloaded 3 times
-
- factorio2.0.72 --start-server-load-scenario fake no config.log
- (3.21 KiB) Downloaded 3 times
