According to https://wiki.factorio.com/Command_line_parameters, the command line argument "--fullscreen BOOL" should allow for toggling whether to start the game in windowed or fullscreen mode. I have attempted using both "--fullscreen false" and "--fullscreen true" (in separate attempts), both from the VSCode debugger and from the Steam launch options. In all cases, the game starts in fullscreen mode, even when I have "full-screen=false" in my config.ini file (and in that case, removing the fullscreen command line arg altogether results in the game starting in windowed mode, as expected).
My expected behavior would be that "--fullscreen false" starts the game in windowed mode, and "--fullscreen true" starts the game in fullscreen mode, and both options write that setting to the config.ini file, as documented in the wiki link above.
I am on Windows 11 if that matters.
[1.1.109] fullscreen command line arg not working as expected
Re: [1.1.109] fullscreen command line arg not working as expected
Thanks for the report. The command line options library we use requires that boolean command line options be defined like this: any other way will use the default for boolean values which is "true". See: https://github.com/jarro2783/cxxopts?ta ... ean-values
Code: Select all
--fullscreen=false
If you want to get ahold of me I'm almost always on Discord.
Re: [1.1.109] fullscreen command line arg not working as expected
Ah, gotcha. That did the trick, thanks for the response!