06-05-2009, 03:33 PM
So I run a mod called obsidian conflict, hl2 orange box based, crases often, and when it does it takes me a few hours to realize-a day. This is not good, so I saw this script and it works
Thing is, the game relays back the error code and I have to hit ok, then it restarts. I don't care about the error code, I just want it to restart right after that. Is this possible?
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.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait /high srcds.exe -console -game obsidian +map oc_lobby +maxplayers 12 -ip 192.168.1.118 -port 27015
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Thing is, the game relays back the error code and I have to hit ok, then it restarts. I don't care about the error code, I just want it to restart right after that. Is this possible?