Installing Source Dedicated Server

A Tutorial for Left 4 Dead 2

How to install and configure a Source Dedicated Server.

Installation ------------ 1. Start off by downloading the [Half-Life Dedicated Server Update Tool](http://www.srcds.com/db/engine.php?subaction=showfull&id=1097362093 ""). Click the blue "from the Valve webserver" link on that page to download it. Run the application and go through the installation process. I recommend keeping the default installation directory, and when you reach the region page, choose your region. If you're in the Eastern United States for example, choose US east coast. 2. Now, create a new text document. You can paste this information inside: **"C:\Program Files (x86)\Valve\HLServer\HldsUpdateTool" -command update -game "left4dead2" -dir "c:\srcds" -verify\_all -retry**
**pause** The first quoted text is the file path to the HLDSUpdateTool you just installed. The second quoted text is going to be the directory for your new Source Dedicated Server installation. With the -game paramater, instead of left4dead2 you can choose to update other games. Some of the more popular games are: - cstrike (Counter-Strike: Source)
- tf (Team Fortress 2)
- garrysmod (Garry's Mod)
"Pause" is on its own line so that command prompt doesn't disappear automatically. Choose file > save as... and under the file type, select "all types". Name it whatever you want, just make sure there's a ".bat" at the end. You should see a new .bat (batch) file now. 3. Double-click it to start downloading your server files to c:\srcds. This will take a very long time for most people, as you're essentially downloading a second copy of the game. When it's done, you'll see 99%, 100%, then "installation up to date". 4. Once it's finished, open c:\srcds and you'll see a lot of new stuff there. In the case of L4D2, go into the left4dead2 folder and make a shortcut to srcds.exe. Right-click the new shortcut, choose properties and you can paste this into the target field. **C:\srcds\left4dead2\srcds.exe -console -game left4dead2 -hostport 27015 -clientport 27016 -insecure +map c2m1\_highway +exec sm.cfg** Once again, "-game" tells the server which game to run. "+map MapName\_Here" will start the server on that specified map. "+exec sm.cfg" is not necessary, but it runs the configuration file sm.cfg after each map is loaded. Now, whenever you want to run your server, double-click that shortcut. A command prompt window will appear, and yes, this is your entire server interface. 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. Configuration ------------- You probably want to configure your server, so navigate to srcds/left4dead2/left4dead2/cfg. You should see server.cfg. You can edit this with most text editors (preferably [Notepad++](http://notepad-plus-plus.org/ "") ) to configure your server. I'll just go over some basic things here. Remember that anything with "//" before is a comment and will be ignored. // Information
hostname "The Reptile House" // What name your server should use.
motdfile "motdtrh.txt" // Makes your server use a custom message of the day and banner file.
hostfile "hosttrh.txt" // The default ones tend to get overwritten when updating, so this is a good idea.
sv\_lan 0
sv\_region 0
rcon\_password "password" // In game, you can type "rcon\_password password" in the console to access your server console from in-game. // These settings make your server private and allow you to start a game regularly from the main menu.
sv\_steamgroup "123456" // Very important! See [this](http://www.custwiki.cyberwurx.com/index.php/Setting_your_Steam_Group_ID "")
sv\_steamgroup\_exclusive 0
sv\_allow\_lobby\_connect\_only 0 // Preferences
sv\_gametypes "coop,realism,survival,versus,scavenge" // The gametypes that can be played on your server.
maxplayers "8"
sv\_maxplayers "8"
sv\_visiblemaxplayers "-1"
sv\_removehumanlimit "1"
sv\_force_unreserved "1"
sv\_alltalk 1
// These settings make sure players can use their mods.
sv\_pure 0
sv\_pure_kick_clients_0
sv\_consistency 0
// Disable autokick - These settings will prevent players from being kicked for being idle.
mp\_disable\_autokick 1
sm\_cvar director\_afk\_timeout 9999999
sm\_cvar mp\_allowspectators 1
sv\_spectatoridletime 999999999
// Performance
setmaster add 188.40.40.201:27011
setmaster add 68.142.72.250:27011
setmaster add 72.165.61.151:27013
setmaster add 72.165.61.189:27011
sv\_forcepreload 1 // Forces components to preload before player is in-game, helping with stuttering and slowdowns. heartbeat // Should make your server appear in the list faster. In theory, at least. Playing ------- With this configuration, you should be able to start a game from L4D2's main menu. Click "play campaign". From here, you can choose "Steam group server" to join the game in-progress. If you want to start a lobby however, choose play with friends > create new campaign lobby. Under the server type, make sure it's "steam group server". Start the lobby and you should be able to invite friends, change the level and whatever else. If you've set sv_steamgroup up like I explained earlier, when you start the game you should connect to your new server.
Sign up to access this!

Posts

  • cjthegamer avatar
    cjthegamer Joined 5y ago
    Offline
    5y
    how do i download this i'm new to gamebanana.com
    Bananite
    URL to post:
  • BuddyXYZ avatar
    BuddyXYZ Joined 6y ago
    Offline
    6y
    I have no server.cfg! Please help me! I tried to install this the whole day long and now this :(
    Bananite
    URL to post:
  • KiLlEr10312 avatar
    KiLlEr10312 username pic Joined 7y ago
    Offline
    1,801 points Ranked 2920th
    8 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    6y
    > **Posted by Qwazzy** > > **Posted by KiLlEr10312** > > > > Much would be appreciated. > > My friend Shadman and all of his fans want to play on my maps, but I can't situate a way to host a local server because the stock Source Dedicated Server does not allow custom content. > > I'm not familiar with hosting custom maps, but I might be able to help you get sourcemod up and running, assuming you haven't been able to do so yet. Well I can read the tutorial on that. I'll figure out the maps thing on my own.
    "TheKillerMan" avatar
    Mantra
    "TheKillerMan"
    URL to post:
  • Qwazzy avatar
    Qwazzy Joined 7y ago
    Offline
    232 points Ranked 17924th
    6y
    > **Posted by KiLlEr10312** > > Much would be appreciated. > My friend Shadman and all of his fans want to play on my maps, but I can't situate a way to host a local server because the stock Source Dedicated Server does not allow custom content. I'm not familiar with hosting custom maps, but I might be able to help you get sourcemod up and running, assuming you haven't been able to do so yet.

    9.8

    Invisible Misfit
    URL to post:
  • KiLlEr10312 avatar
    KiLlEr10312 username pic Joined 7y ago
    Offline
    1,801 points Ranked 2920th
    8 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    6y
    > **Posted by Qwazzy** > > **Posted by KiLlEr10312** > > > Very well written. > > Will there be any details to sourcemods? > > I finally figured out how to install sourcemod onto mine. So I *might* be able to help you if you're having trouble, I'm not sure. > > But yeah, much props to this tutorial. Now I have my own server that helps make playing with my friends more fun and less aggrivating, thanks to SM plugins. Much would be appreciated. My friend Shadman and all of his fans want to play on my maps, but I can't situate a way to host a local server because the stock Source Dedicated Server does not allow custom content.
    "TheKillerMan" avatar
    Mantra
    "TheKillerMan"
    URL to post:
  • Qwazzy avatar
    Qwazzy Joined 7y ago
    Offline
    232 points Ranked 17924th
    6y
    > **Posted by KiLlEr10312** > Very well written. > Will there be any details to sourcemods? I finally figured out how to install sourcemod onto mine. So I *might* be able to help you if you're having trouble, I'm not sure. But yeah, much props to this tutorial. Now I have my own server that helps make playing with my friends more fun and less aggrivating, thanks to SM plugins.

    9.8

    Invisible Misfit
    URL to post:
  • KiLlEr10312 avatar
    KiLlEr10312 username pic Joined 7y ago
    Offline
    1,801 points Ranked 2920th
    8 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    6y
    Very well written. Will there be any details to sourcemods?
    "TheKillerMan" avatar
    Mantra
    "TheKillerMan"
    URL to post:
  • Qwazzy avatar
    Qwazzy Joined 7y ago
    Offline
    232 points Ranked 17924th
    6y
    I've been wanting to figure out how to run server plugins using "Local server" in a lobby, I've seen it work before... but this looks like it'll accomplish the same basic thing with little headache. Thanks for the guide!

    9.8

    Invisible Misfit
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Doktor haus
tutorial

Submitter

Doktor haus avatar
Doktor haus username pic Joined 8y ago
Offline
Destiny Flag Affiliation: Destiny
15,161 points Ranked 300th
26 medals 1 legendary 5 rare
  • Reached 100 subscribers Medal icon
  • 3rd Place - Original Weapons Skinning Contest Medal icon
  • Reached 50 subscribers Medal icon
  • Received thanks 50 times Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon

Doktor haus avatar
Doktor haus
Destiny Flag
Affiliation
Destiny

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Beginner

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 26.0k Views
  • 8 Posts
  • 6ySubmitted
  • 6yModified

Scores

89 bScore
9.9 Rating

2 voters

Sign up to access this!

More from Submitter

WiPs by Submitter

More Server Administration Tutorials

bcp.crwdcntrl.net tracking pixel