SRCDS Steam group


SRCDS auto launch.
#2
havent tried this myself, but its from another tutorial on another site

Code:
To create a Startup batch file with extra script to restart server if it crashes:
1- Go to your C:\SRCDS directory and create a new text file named L4DServer.bat.
2- Add the following line of code to the batch file:
L4DServer.bat
@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 l4d\srcds.exe -console -game left4dead +hostip YOUR.WAN.IP.ADDY -ip YOUR.LAN.IP.ADDY +hostport 27016 +clientport 27006 -nohltv +exec server.cfg +map l4d_hospital05_rooftop
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Fill in YOUR.WAN.IP.ADDY with your external IP address and YOUR.LAN.IP.ADDY with your internal 'static' IP address if you are behind a router. You could change +map to whichever map you prefer.
Save .bat when finished. Double Click L4DServer.bat to start server with crash protection. :)
Reply


Messages In This Thread
SRCDS auto launch. - Jacinth - 03-14-2010, 01:24 PM
RE: SRCDS auto launch. - xawiahn - 03-14-2010, 01:44 PM
RE: SRCDS auto launch. - Jacinth - 03-14-2010, 01:51 PM
RE: SRCDS auto launch. - BloodAngel - 03-17-2010, 09:36 PM
RE: SRCDS auto launch. - Mooga - 03-19-2010, 02:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)