SRCDS Steam group


L4D SRCDS Guardian
#1
This should work for L4D.
Modify the path as needed.

Code:
:: _ _ _ ___ :: | | | |_| | | \ :: | | | | | | :: | | --- | | | | SRCDS Guardian :: | |___ | | | | forums.srcds.com :: |_____| |_| |___/ :: ::=======================:: :: SRCDS Guardian 2.0 :: :: Left 4 Dead Version :: :: Mooga :: :: srcds.com :: ::=======================:: ::=========================================================:: :: Thanks To Black-Sky & Drocona for making SRCDS Guardian :: :: This script is open source. Feel free to edit at will. :: :: :: :: This script was writen for the use of the srcds.com :: :: online community. If you are interested in running a :: :: Source Dedicated Server or need help, drop by our :: :: forums at... *****forums.srcds.com :: ::=========================================================:: :: This will keep the window clean and easy to read @echo off ::=======================:: :: SET YOUR VARIABLES! :: ::=======================:: ::=======================:: :: Window and Log name :: :: Replace "My Server" :: ::=======================:: set servername="Left 4 Dead" ::=======================:: :: Your start command :: ::=======================:: set runcmd=C:\l4d_demo\l4d_demo\srcds.exe -console -game left4dead -port 27035 +map l4d_dem_hospital01_apartment -tickrate 66 :: Sets the title of the window title SRCDS Guardian 2.0 %servername% :: Clears the window incase there is anything there cls :: Prints to the window what we are doing echo SRCDS Guardian 2.0 has been started! echo. echo ************************************************************************** echo To close the server, close this windows and type exit in the server window echo ************************************************************************** echo. echo. >> %servername%_Guardian.log echo. >> %servername%_Guardian.log echo (%date%)(%time%) SRCDS Guardian 2.0 has been started! echo (%date%)(%time%) %servername% is now starting... >> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now starting... :: This is a return point in case the server crashes or is closed :restart echo (%date%)(%time%) %servername% is now online >> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now online echo Watching %servername% for crashes... >> %servername%_Guardian.log echo (%date%)(%time%) Watching %servername% for crashes... ::Start the actual server start /wait %runcmd% echo (%date%)(%time%) Crash or Close detected! >> %servername%_Guardian.log echo (%date%)(%time%) Crash or Close detected! echo (%date%)(%time%) %servername% is now restarting... >> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now restarting... ::Server crashed or closed, so we point it to the return point to start the server again goto restart

Also attached in a zip (since we can't post batch scripts).


Attached Files
.zip   L4D SRCDS Guardian.zip (Size: 1.04 KB / Downloads: 101)
~ Mooga ...w00t? - SRCDS.com on Twitter
[img]*****badges.steamprofile.com/profile/simple/steam/76561197965445574.png[/img]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#2
Thanks mooga =)
Reply
#3
good stuff, thx Smile I used to use the older one provided by srcds.com the example they had there, its good but yours is way cleaner Smile
Reply
#4
Thanks nizoo.
A few months back to took SRCDS Guardian and did a full re-write to make it cleaner. I would use it all the time, and customizing it was a pain because you had to hunt down all the command line and all the game references.

I wonder if I'll ever find a way of cleaning it up even more...
~ Mooga ...w00t? - SRCDS.com on Twitter
[img]*****badges.steamprofile.com/profile/simple/steam/76561197965445574.png[/img]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#5
well all i know now is that it looks awesome Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)