CVars set with CVar.Set* do not get saved

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Guest

CVars set with CVar.Set* do not get saved

Post by Guest »

Example: https://drive.google.com/file/d/1Z75ax7 ... share_link

The problem seems to be GetCVar, because server CVars do not get saved either. Using FindCVar works for both types, but that's a bad idea for user CVars. Just start a new game. test_string should be set to "test" when checked from the console, but it won't be. So upon closing GZDoom, it won't get saved. In-game it does count as changed for all intents and purposes, and fetching it with GetString returns the correct string, as seen in the printed string. Problem is, I need to store short user-specific data in CVars through ZScript, so the part where it's not saved to the config is kind of a problem.
User avatar
phantombeta
Posts: 2063
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: CVars set with CVar.Set* do not get saved

Post by phantombeta »

Return to “Closed Bugs [GZDoom]”