PDA

View Full Version : DeathMatch Auto-Runs and Stops on my server...


lex_talionis
10-12-2005, 18:40
Hey gang,

Well, I like CSDM so much, I've decided to have it "On" between 8pm and 10pm CST -6GMT every day and I wanted to share with the community how I went about doing this in a "hands-off" way.

First I made a 256X256 map advert (Mani) to let all those who play know ahead of time of the DeathMatch schedule:

http://lex.urldownload.com/dm.jpg

Then since I use MeanServerLoader to run my srcds.exe CSS DS and the NT service is called Asrcds, I wrote two batch files to shutdown my server, convert files to csdm, and start back up and one to revert the csdm server back to my original, non-csdm server. Then I used my Windows scheduler to schedule to run the csdm.bat at 8pm and run the normcss.bat at 10pm. I've done all testing and will launch on my sever tonight!

csdm.bat:
@echo off
net stop Asrcds
wait 5

del c:\srcds\cstrike\gameinfo.txt
del c:\srcds\cstrike\mapcycle.txt
del c:\srcds\cstrike\maplist.txt
del c:\srcds\cstrike\cfg\mani_server.cfg
del c:\srcds\cstrike\cfg\autoexec.cfg
del c:\srcds\cstrike\cfg\server.cfg

copy c:\srcds\DeathMatch\gameinfo.txt c:\srcds\cstrike\
attrib +R c:\srcds\cstrike\gameinfo.txt
copy c:\srcds\DeathMatch\mapcycle.txt c:\srcds\cstrike\
copy c:\srcds\DeathMatch\maplist.txt c:\srcds\cstrike\
copy c:\srcds\DeathMatch\mani_server.cfg c:\srcds\cstrike\cfg
copy c:\srcds\DeathMatch\autoexec.cfg c:\srcds\cstrike\cfg
copy c:\srcds\DeathMatch\server.cfg c:\srcds\cstrike\cfg

net start Asrcds

normcss.bat:
@echo off
net stop Asrcds
wait 5

attrib -R c:\srcds\cstrike\gameinfo.txt
del c:\srcds\cstrike\gameinfo.txt
del c:\srcds\cstrike\mapcycle.txt
del c:\srcds\cstrike\maplist.txt
del c:\srcds\cstrike\cfg\mani_server.cfg
del c:\srcds\cstrike\cfg\autoexec.cfg
del c:\srcds\cstrike\cfg\server.cfg

copy c:\srcds\RegularCSS\gameinfo.txt c:\srcds\cstrike\
copy c:\srcds\RegularCSS\mapcycle.txt c:\srcds\cstrike\
copy c:\srcds\RegularCSS\maplist.txt c:\srcds\cstrike\
copy c:\srcds\RegularCSS\mani_server.cfg c:\srcds\cstrike\cfg
copy c:\srcds\RegularCSS\autoexec.cfg c:\srcds\cstrike\cfg
copy c:\srcds\RegularCSS\server.cfg c:\srcds\cstrike\cfg

net start Asrcds

So it's not great in that the server goes off-line for a couple of mins. but at least it's a "hands-off" approach.

Just wanted to share this.

Lex

http://lex.urldownload.com/

lex_talionis
10-14-2005, 18:00
Working some on Mani Map Adverts too:

http://lex.urldownload.com/maplogos.jpg

http://lex.urldownload.com/

Lex