03-09-2009, 08:26 PM
(This post was last modified: 03-09-2009, 10:01 PM by Mycologist.)
Hello everyone, this is my first post on these forums!
After reading that the -autoupdate function does not work on a windows server, I started looking for a way to update my server when I "quit" from console or my server crashed. I created a solution, so I thought I would share it. If you have any way of improving on this batch script, please let us know. For now all my servers run on this and it works perfectly. Thanks to whoever first created this watchdog!
After reading that the -autoupdate function does not work on a windows server, I started looking for a way to update my server when I "quit" from console or my server crashed. I created a solution, so I thought I would share it. If you have any way of improving on this batch script, please let us know. For now all my servers run on this and it works perfectly. Thanks to whoever first created this watchdog!
Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title SRCDS Auto-Update Watchdog
:srcds
echo (%time%) srcds started.
start /wait /min /Low C:\<directory>\hldsupdatetool -command update -game "tf" -dir C:\<directory>
start /wait /min /High C:\<directory>\orangebox\srcds.exe -console -game tf -tickrate 66 -maxplayers 32 -port 27015 +map pl_badwater +ip ***.***.***.*** +fps_max 600 +sv_pure 1 +sv_lan 0
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds