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

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!

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: Restart command wipes out all custom cvars in a players config!

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

by yum13241 » Tue Oct 01, 2024 5:56 am

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

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

by Rachael » Tue Oct 01, 2024 2:34 am

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.

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

by phantombeta » Mon Sep 30, 2024 4:41 pm

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.

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

by camaxide » Mon Sep 30, 2024 9:12 am

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.

Top