You can turn it into a service.
OR, you can customize this bat script and add a shortcut to your start-up folder.
And as mentioned, most of the credit goes to Drocona.
I just re-wrote comments and made it a little easier for newbies
OR, you can customize this bat script and add a shortcut to your start-up folder.
And as mentioned, most of the credit goes to Drocona.
I just re-wrote comments and made it a little easier for newbies

Code:
::=======================::
:: SRCDS Guardian ::
:: Black-Sky ::
:: Drocona ::
:: ::
:: EDITED FOR DEFRAG ::
:: BY MOOGA ::
:: ::
:: TF2 Version ::
::=======================::
::This will make the window clear, remove all paths etc, just to keep the important stuff
@echo off
::Give a name to the window, nothing really important.
title SRCDS Guardian TF2 Server
::Clear the window
cls
::Report to console what we are doing
echo ****To close this script, close this windows and then the SRCDS window****
echo.
echo.
echo Watching the TF2 SRCDS for crashes
>> TF2_Guardian.log echo.
>> TF2_Guardian.log echo (%date%)(%time%) Started up SRCDS Guardian for TF2.
::Insert a return point if it crashes
:srcds
echo (%date%)(%time%) TF2 Server is now online.
>> TF2_Guardian.log echo (%date%)(%time%) TF2 Server is now online.
::Start the actual server
start /wait C:\hl2server\orangebox\srcds.exe -console -game tf -maxplayers 24 +fps_max 200 -port 27015 +map ctf_2fort -tickrate 66
echo (%date%)(%time%) TF2 Server crashed or closed. Now restarting...
>> TF2_Guardian.log echo (%date%)(%time%) TF2 Server crashed or closed. Now restarting...
::Server crashed or closed, so we point it to the return point to start the server again
goto srcds
~ Mooga ...w00t? - SRCDS.com on Twitter
![[Image: 76561197965445574.png]](http://badges.steamprofile.com/profile/simple/steam/76561197965445574.png)
Please do not PM me for server related help
![[Image: 76561197965445574.png]](http://badges.steamprofile.com/profile/simple/steam/76561197965445574.png)
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.