"C:\SRCDS\left4dead2\srcds.exe" -console -game left4dead2 +hostip YOUR.WAN.IP.ADDY -ip YOUR.LAN.IP.ADDY +hostport 27016 +clientport 27006 -nohltv +exec server.cfg +map c5m1_waterfront</div>
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 whatever you prefer.
Don't forget to put a space between srcds.exe and -console.
Click OK when finished. Double Click Shortcut to start server.
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 L4D2dServer.bat.
2- Add the following line of code to the batch file:
@echo off<br />cls<br />echo Protecting srcds from crashes...<br />echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.<br />title srcds.com Watchdog<br />:srcds<br />echo (%time%) srcds started.<br />start /wait left4dead2\srcds.exe -console -game left4dead2 +hostip YOUR.WAN.IP.ADDY -ip YOUR.LAN.IP.ADDY +hostport 27016 +clientport 27006 -nohltv +exec server.cfg +map l4d_hospital05_rooftop<br />echo (%time%) WARNING: srcds closed or crashed, restarting.<br />goto srcds<br />
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. IV. Cracking Server:
To avoid using the matchmaking system and use direct connections instead,
Make sure you have the the following set in your server.cfg:
sv_lan 0<br />mp_disable_autokick 1<br />sv_consistency 1<br />sv_allow_lobby_connect_only 0</div>
Use the Revolution Emulator:
1. Download L4D2_RevLoader from this thread.
2. Install to C:\SRCDS\left 4 dead 2\
you only need these files: rev.ini, steam.dll, and steamclient.dll.
3. Open "rev.ini" and edit so it only contains the following:
V. Updating Server:
[Loader]<br /><br />SteamClientDll=bin\steamclient.dll</div>
To update server, just run the update.bat that you created in the first part of this guide.
NOTE: In order for the rev-emu to work properly, you need to have MS visual C++ and .Net Framework:
Download and install Microsoft Visual C++ 2008 SP1 Redistributable Package: 32-bit
Download and install Microsoft's .net Framework 3.5