Restart command wipes out all custom cvars in a players config!

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!
User avatar
camaxide
Posts: 386
Joined: Thu Jun 11, 2015 8:38 am

Restart command wipes out all custom cvars in a players config!

Post by camaxide »

So, mid playtesting I had one of my playtesters wanting to test something, so he changed some variable in the console and wanted to restart the map, so he tried Restart in the console.
This restarted the engine, and swapped from Doom2 straight into Ultimate Doom. But what's worse it everything was reset.. The mod uses cvars to track player achievements, unlocks, best times, and progress.. so his 50 hours of playtesting progress was wiped in an instant by a command named 'Restart' without a warning.
Reading the wiki this command should only restart the gzdoom engine - not wipe a players custom config cvars.
A function like this would be best named WipeSettings, or ResetEverything.. and upon calling it there should be a yes / no prompt asking 'Are You Sure?!' like before you quit a game.. as this is a very hostile command for anyone not fully knowing what they are about to do.

A full reset function could be good to place somewhere in the menu - and if a console command is to be present it needs another wording.
User avatar
phantombeta
Posts: 2147
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Restart command wipes out all custom cvars in a players config!

Post by phantombeta »

The restart command only restarts the engine. It doesn't wipe the config, if it wiped yours, that's a bug- most likely involving being unable to open the existing config file.
User avatar
Rachael
Posts: 13881
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Restart command wipes out all custom cvars in a players config!

Post by Rachael »

For now until the issues can be resolved with the restart ccmd it's temporarily renamed to debug_restart so that people don't accidentally type it in the console for it meaning something other than what they think it does.
yum13241
Posts: 854
Joined: Mon May 10, 2021 8:08 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavorOS (basically Arch)
Graphics Processor: Intel with Vulkan/Metal Support

Re: Restart command wipes out all custom cvars in a players config!

Post by yum13241 »

restart has always been a glitchy mess. You may as well have it jump to the beginning of the program, surely it does the same thing, right ? /s

Return to “Bugs [GZDoom]”