::=======================::
:: 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 My GAME 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 GAME SRCDS for crashes
>> GAME_Guardian.log echo.
>> GAME_Guardian.log echo (%date%)(%time%) Started up SRCDS Guardian for GAME.
::Insert a return point if it crashes
:srcds
echo (%date%)(%time%) GAME Server is now online.
>> GAME_Guardian.log echo (%date%)(%time%) GAME 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%) GAME Server crashed or closed. Now restarting...
>> GAME_Guardian.log echo (%date%)(%time%) GAME 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