Save gameplay options to .ini

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Save gameplay options to .ini

Postby m8f » Tue May 15, 2018 6:42 am

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
User avatar
m8f
 
 
 
Joined: 29 Dec 2017

Re: Save gameplay options to .ini

Postby _mental_ » Tue May 15, 2018 7:07 am

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.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Save gameplay options to .ini

Postby m8f » Tue May 15, 2018 7:10 am

I myself am mostly interested in sv_dontcheckammo.
User avatar
m8f
 
 
 
Joined: 29 Dec 2017

Re: Save gameplay options to .ini

Postby _mental_ » Tue May 15, 2018 7:55 am

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.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest