Page 1 of 1

[1.1.109] fullscreen command line arg not working as expected

Posted: Thu Jul 25, 2024 9:39 pm
by majoca
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.

Re: [1.1.109] fullscreen command line arg not working as expected

Posted: Wed Aug 07, 2024 4:05 pm
by Rseding91
Thanks for the report. The command line options library we use requires that boolean command line options be defined like this:

Code: Select all

--fullscreen=false
any other way will use the default for boolean values which is "true". See: https://github.com/jarro2783/cxxopts?ta ... ean-values

Re: [1.1.109] fullscreen command line arg not working as expected

Posted: Sun Aug 25, 2024 12:58 am
by majoca
Ah, gotcha. That did the trick, thanks for the response!