From here, you can choose "Steam group server" to join the game in-progress. With this configuration, you should be able to start a game from L4D2's main menu. Heartbeat // Should make your server appear in the list faster. Sv\_forcepreload 1 // Forces components to preload before player is in-game, helping with stuttering and slowdowns. Disable autokick - These settings will prevent players from being kicked for being idle. These settings make sure players can use their mods. Sv\_gametypes "coop,realism,survival,versus,scavenge" // The gametypes that can be played on your server. These settings make your server private and allow you to start a game regularly from the main menu. Rcon\_password "password" // In game, you can type "rcon\_password password" in the console to access your server console from in-game. Hostfile "hosttrh.txt" // The default ones tend to get overwritten when updating, so this is a good idea. Motdfile "motdtrh.txt" // Makes your server use a custom message of the day and banner file. Hostname "The Reptile House" // What name your server should use. Remember that anything with "//" before is a comment and will be ignored. I'll just go over some basic things here. You can edit this with most text editors (preferably ( "") ) to configure your server. You probably want to configure your server, so navigate to srcds/left4dead2/left4dead2/cfg. A lot of text will scroll by, and when you see "VAC secure mode" enabled or disabled, that's how you know the map is fully loaded. A command prompt window will appear, and yes, this is your entire server interface. Now, whenever you want to run your server, double-click that shortcut. "+exec sm.cfg" is not necessary, but it runs the configuration file sm.cfg after each map is loaded. "+map MapName\_Here" will start the server on that specified map. Once again, "-game" tells the server which game to run. **C:\srcds\left4dead2\srcds.exe -console -game left4dead2 -hostport 27015 -clientport 27016 -insecure +map c2m1\_highway +exec sm.cfg** Right-click the new shortcut, choose properties and you can paste this into the target field. In the case of L4D2, go into the left4dead2 folder and make a shortcut to srcds.exe. Once it's finished, open c:\srcds and you'll see a lot of new stuff there. When it's done, you'll see 99%, 100%, then "installation up to date".Ĥ. This will take a very long time for most people, as you're essentially downloading a second copy of the game. Double-click it to start downloading your server files to c:\srcds. Name it whatever you want, just make sure there's a ".bat" at the end. and under the file type, select "all types". "Pause" is on its own line so that command prompt doesn't disappear automatically.Ĭhoose file > save as.
With the -game paramater, instead of left4dead2 you can choose to update other games. The second quoted text is going to be the directory for your new Source Dedicated Server installation. The first quoted text is the file path to the HLDSUpdateTool you just installed. **"C:\Program Files (x86)\Valve\HLServer\HldsUpdateTool" -command update -game "left4dead2" -dir "c:\srcds" -verify\_all -retry** If you're in the Eastern United States for example, choose US east coast.Ģ. I recommend keeping the default installation directory, and when you reach the region page, choose your region. Run the application and go through the installation process.
Click the blue "from the Valve webserver" link on that page to download it.