SRCDS Steam group


changelevel, password cleared, help please
#1
Here's my problem. I have a public tf2 server, that I also use to scrim. Come time to scrim, I password the server, and my team and the other team join. I change the map, and the join password is cleared, making it public again. Of course, people see a well populated server and start joining before I can password it again in time. I have two questions:

1. What happens when the map is changed on the server, is server.cfg executed?

2. What in your opinion is the optimal solution for this problem, I was thinking an alias like this:

alias scrim_well "changelevel cp_well; exec cevo_well.cfg; sv_password password"

but, I have no idea if that would work or not.

Any help is much appreciated.
Reply
#2
the server.cfg is executed on every map change, this is a double edged sword. your example is an example of how it can be a bad thing, but you can make it so changes can naturally occur without really interfering with people, simply by updating the config file.

I have a couple recommendations.

1) simply update the config file before you changelevel to reflect your recent need for a password. changelevel, BAM the password is there, or at least it should be : pheer :

2) do not run a mp_password cvar (i think thats the password cvar?) at all in any configs that auto-execute, and simply define this as needed. This can be a problem incase you forget to set it back, so be careful Toungue.

3) ???

4) Profit

5) http://www.youtube.com/watch?v=eBGIQ7ZuuiU
Reply
#3
BloodyIron Wrote:the server.cfg is executed on every map change, this is a double edged sword. your example is an example of how it can be a bad thing, but you can make it so changes can naturally occur without really interfering with people, simply by updating the config file.

thank you

BloodyIron Wrote:2) do not run a mp_password cvar (i think thats the password cvar?) at all in any configs that auto-execute, and simply define this as needed. This can be a problem incase you forget to set it back, so be careful Toungue.

I can't believe I missed this easy obvious solution, thanks again. I'm not terribly worried about forgetting to remove the password when I'm done, so this is the easiest, most ideal solution for me I think.

BloodyIron Wrote:5) http://www.youtube.com/watch?v=eBGIQ7ZuuiU

Rick Rolled, Sad
Reply
#4
ownt .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)