CVars set with CVar.Set* do not get saved

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

CVars set with CVar.Set* do not get saved

Post by Guest »

Example: ... 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
Posts: 2038
Joined: Thu May 02, 2013 1:27 am
Graphics Processor: nVidia with Vulkan support
Location: Brazil

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

Post by phantombeta »

Return to “Bugs [GZDoom]”