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:
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:
Code:
@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:
Code:
@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/