Save gameplay options to .ini

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

Moderator: GZDoom Developers

User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Save gameplay options to .ini

Post 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
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Save gameplay options to .ini

Post 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.
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: Save gameplay options to .ini

Post by m8f »

I myself am mostly interested in sv_dontcheckammo.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Save gameplay options to .ini

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

Return to “Feature Suggestions [GZDoom]”