SRCDS Steam group


Server configs reset on every map change?
#1
What is the way to go around this problem that once in-game folks vote e.g alltalk off or you as an admin change it off but when the map changes it will run server.cfg and alltalk would be on again.

Same problem appears when I run the server in a training mode by executing server_training.cfg and after map change the server is using once again the server.cfg

So what is the proper way to go around this?

I use sourcemod if that helps any. And i am a noob in these matters.
Reply
#2
put this in your server.cfg:
sv_alltalk 0
Warning Level: 0%
Reply
#3
What i am trying to say here is that if ppl playing vote about some cvar, how can i make sure that this cvar wont be changed back to its default value during map change?
Reply
#4
You can't because after the mapchange the server.cfg is executed with the cvars in it.
Warning Level: 0%
Reply
#5
So there is no plugin etc. that would carry on the voted results (ff, alltalk etc...) to the following rounds?
Reply
#6
No!!!!!
Reply
#7
The mod would need to write the information to a cfg file and then runs the file at the beginning of every round.
Possible, but I don't know of any.
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#8
Remove the sv_alltalk cvar from the server.cfg - that would maybe work.
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#9
(08-16-2010, 04:52 PM)lol554 Wrote:  Remove the sv_alltalk cvar from the server.cfg - that would maybe work.

Then it's getting back to default on a mapchange after they voted it to be non default.
Warning Level: 0%
Reply
#10
(08-16-2010, 05:31 PM)Arjen Wrote:  
(08-16-2010, 04:52 PM)lol554 Wrote:  Remove the sv_alltalk cvar from the server.cfg - that would maybe work.

Then it's getting back to default on a mapchange after they voted it to be non default.

That is false. Configs set manually do not get reset unless the server.cfg has the command, or the server restarts. So try just removing it from your server.cfg and going with that. Smile
Reply
#11
Lol Beaver's right. Tested the sv_alltalk at a cs:s server: default sv_alltalk 0. Changing it to 1 stays 1 after mapchange.
Warning Level: 0%
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)