hzqst / MetaHookSv

MetaHook (https://github.com/nagist/metahook) porting for SvEngine (GoldSrc engine modified by Sven-Coop)
MIT License
149 stars 38 forks source link

[Error] Texture Gamma and Lightmap Gamma Settings Reset Upon Game Restart #419

Closed Zerahfys closed 8 months ago

Zerahfys commented 9 months ago

With MetahookSV v20240302a, I encounter an issue: Texture Gamma and Lightmap Gamma settings reset upon game launch, requiring me to constantly reconfigure these parameters.

Is there a way to set these launch parameters when starting the game or another solution?

Sample video: https://youtu.be/aTN5R2RncJE

hzqst commented 9 months ago

Those cvars are not saved by vanilla engine even if metahook is not installed aren't they?

Zerahfys commented 9 months ago

Yes, apparently that's what's happening. I reinstalled the game and replaced the config.cfg file with the default one. However, I still can't get those cvars (Texture and Lightmap Gamma) to stay saved. I don't know why this issue occurs only with those parameters.

hzqst commented 9 months ago

Yes, apparently that's what's happening. I reinstalled the game and replaced the config.cfg file with the default one. However, I still can't get those cvars (Texture and Lightmap Gamma) to stay saved. I don't know why this issue occurs only with those parameters.

Probably because Valve just don't want other guys to change those cvars in the first place. Nvm. so you would like to enforce those cvars to be "configurable"?