[1.1.109] fullscreen command line arg not working as expected

Bugs that are actually features.
Post Reply
majoca
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Dec 20, 2020 8:50 pm
Contact:

[1.1.109] fullscreen command line arg not working as expected

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13327
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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
If you want to get ahold of me I'm almost always on Discord.

majoca
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Dec 20, 2020 8:50 pm
Contact:

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

Post by majoca »

Ah, gotcha. That did the trick, thanks for the response!

Post Reply

Return to “Not a bug”