Raised This Month: $51 Target: $400
 12% 

DeathMatch Auto-Runs and Stops on my server...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lex_talionis
Member
Join Date: Aug 2005
Location: Austin, TX
Old 10-12-2005 , 17:40   DeathMatch Auto-Runs and Stops on my server...
Reply With Quote #1

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/
lex_talionis is offline
lex_talionis
Member
Join Date: Aug 2005
Location: Austin, TX
Old 10-14-2005 , 17:00   Setup and running perfectly!
Reply With Quote #2

Working some on Mani Map Adverts too:



http://lex.urldownload.com/

Lex
lex_talionis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode