Page 1 of 1

Save gameplay options to .ini

Posted: Tue May 15, 2018 5:42 am
by m8f
Now some Gameplay options CVars from ( https://zdoom.org/wiki/CVARs:Configuration ) are not saved in the .ini after GZDoom is restarted. So they only take effect until player quits the game. After player runs GZDoom again, player needs to set up this options again.

It would be nice for these CVars be saved in ini, so player doesn't have to set up them again on each game start.

I checked sv_dontcheckammo, sv_fastmonsters, sv_noautomap, sv_noautoaim. They are not saved.

GZDoom g3.3.2 - 2018-04-12 21:44:48 +0200 - SDL version

Re: Save gameplay options to .ini

Posted: Tue May 15, 2018 6:07 am
by _mental_
At the moment dmflags and dmflags2 CVARs are not saved to config. Making them archived and no-init-call will solve this.
I guess one of the reasons to keep them permanent is other commands line options that use these CVARs.
Searching through codebase reveals other places where they can be altered indirectly.

Re: Save gameplay options to .ini

Posted: Tue May 15, 2018 6:10 am
by m8f
I myself am mostly interested in sv_dontcheckammo.

Re: Save gameplay options to .ini

Posted: Tue May 15, 2018 6:55 am
by _mental_
It's all or nothing, i.e. either every flag stored in dmflags2 CVAR will be saved or none.
Actually, this CVAR is not changed indirectly, so saving it won't have undesired side effects.
Probably it's still worth doing something with dmflags (without 2) to save both CVARs.