Save gameplay options to .ini

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Save gameplay options to .ini

Re: Save gameplay options to .ini

by _mental_ » Tue May 15, 2018 6: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.

Re: Save gameplay options to .ini

by m8f » Tue May 15, 2018 6:10 am

I myself am mostly interested in sv_dontcheckammo.

Re: Save gameplay options to .ini

by _mental_ » Tue May 15, 2018 6: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.

Save gameplay options to .ini

by m8f » Tue May 15, 2018 5: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

Top