SRCDS Steam group

How to auto restart server?
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
@echo off
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 Watchdog
echo (%time%) srcds started.
start /wait /high srcds.exe -console -game obsidian +map oc_lobby +maxplayers 12 -ip -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?
You would have to run the server as a service.
~ Mooga ...w00t? - on Twitter
[Image: 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.
yes but how can you run it like a service i have the same problem( i'm runn it as a bat fille) .
So if I just use NTWrapper and ran it as a service, it would auto restart by itself, or what else do I have to do?
Got it... used serverchecker, magnificent program Big Grin

Forum Jump:

Users browsing this thread: 1 Guest(s)