Page 1 of 1

script to change server.cfgs

Posted: Wed May 23, 2007 5:35 am
by Gold
I did a script that changes from one map rotation to another.
It seems to be working fine except it will only work while i am in the server.What i did was add the script to the global folder and call it in the last map of the rotation with exec global/server2.cfg and put it on timer since we rotate each map for 12 minutes..720.When it gets to the last map in the rotation of server2.cfg i have that map running it back to server.cfg which keeps the loop going.What i would like is any ideas of how to do this without me or another admin having to be present in the server before it will work.Using $player stufftext "rcon exec server2.cfg" Probally pretty simple for someone that knows more about rcon than i do.Thats sure not my greatest skill but i am trying to learn more.Any ideas will be appreciated.
<TWZ>Gold <<mohaa freak!

Posted: Wed May 23, 2007 5:52 am
by ViPER
why 2 cfgs? - to better understand... what is it you are trying to achieve?

Posted: Wed May 23, 2007 9:55 am
by Gold
Can you rotate more than 30 maps without a crash? I can not and i know a lot of servers that can not...i am currently rotating 60 atm thou with the above script ..just looking for a better method to do so.Hope that helps explain why lol
<TWZ>Gold <<mohaa freak!

Posted: Wed May 23, 2007 10:40 am
by ViPER
Yes i do run more than 30 - but im running Spearhead maybe its different.

If you exec/ from the mapscript why do you need to be present? stufftext wont work if no one is on the server.

Posted: Tue May 29, 2007 6:32 am
by Gold
Thanks anyways for replies but i found out ci has the option to change server.cfgs to whichever ya want at a specified time.Seems like that i am not the only one who was thinking of this lol.
thanx
<TWZ>Gold <<mohaa freak!