Reset Server Config for promod


(oxy) #1

Hi

On a promod and a custom server I configured some Clanbase Configs to be voteable.

I would also like to provide a vote (i.e. create a config) to reset the server to the default values.
I could use write config etc., but then settings like si_name would make it to the config, and I would have to update the name in autoexe.cfg and in the “reset” config.

Best thing would be to just have the default values for the variables modified in the clanbaseconfig.

Well I know, using some grep + vim + scriping magic I could create such a config… but you know, is there a better way?

Thanks in advance
oxy


(oxy) #2

Well, I found at http://myhannes.info/wiki/index.php/Cvars_full_list es_vanillaMode. I did not yet test it, but maybe it does the trick.


(AnthonyDa) #3

Your question has a bit of non sense, this is why nobody replied.
Are you trying to vote a set of cvar or resetting all cvar to default ?

You can try a “cvar_restart” but it will restart everything ! (sever name and co). The cvar es_vanillaMode turns some cvar to make the gameplay 100% like base.


(Ryan) #4

[QUOTE=AnthonyDa;209341]Your question has a bit of non sense, this is why nobody replied.
Are you trying to vote a set of cvar or resetting all cvar to default ?

You can try a “cvar_restart” but it will restart everything ! (sever name and co). The cvar es_vanillaMode turns some cvar to make the gameplay 100% like base.[/QUOTE]

The es_vanillaMode is bugged tough, like u still don’t get grenades from supplycrates and stuff.
(Only 3 or so cvars arent controlled so its not a whole lot.) Why not just copy your etqwpro config, and put all the etqwpro cvars to vanilla and let that config be voted?


(oxy) #5

Because it’s too much work setting every CVAR to default.

@AnthonyDa: OK, maybe I’ve been a bit unclear. I have some settings for my custom server, they are the preferred settings. But, players can vote Clanbase config etc., but they should be able to revert the clanbase settings and go back to the server settings (“my preferred settings”).

BUT, I found a solution. cvar_dump get’s me a list of all cvars, I edited the textfile: search/replace all values and put “reset” before every cvar. Very easy with a texteditor (vim ftw).
After ressetting this configs I just executed autoexec.cfg. Voila.


(Apples) #6

Just get a cfg for any config you may want to play with, and allow ppl to vote their cfg when they want to switch… As exemple some times ago I had like 4V4, 6V6 and 12V12 cfg running on a promod server and ppl could vote for it, there is no “default” config, just make one and call it “favourite” or “default” for exemple… or anything else :wink:

Peace