The Game Modding Community - Since 2001

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.

Posts

  • 4y
    how do i download this i'm new to gamebanana.com
    Bananite
  • 5y
    I have no server.cfg! Please help me! I tried to install this the whole day long and now this :(
    Bananite
  • 6y
    KiLlEr10312 avatar
    KiLlEr10312 username pic Joined 7y ago
    Offline
    1,801 points Ranked 2708th
    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
    > **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"
  • 6y
    Qwazzy avatar
    Qwazzy Joined 6y ago
    Offline
    232 points Ranked 16675th
    > **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
  • 6y
    KiLlEr10312 avatar
    KiLlEr10312 username pic Joined 7y ago
    Offline
    1,801 points Ranked 2708th
    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
    > **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"
  • 6y
    Qwazzy avatar
    Qwazzy Joined 6y ago
    Offline
    232 points Ranked 16675th
    > **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
  • 6y
    KiLlEr10312 avatar
    KiLlEr10312 username pic Joined 7y ago
    Offline
    1,801 points Ranked 2708th
    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
    Very well written.
    Will there be any details to sourcemods?
    "TheKillerMan" avatar
    Mantra
    "TheKillerMan"
  • 6y
    Qwazzy avatar
    Qwazzy Joined 6y ago
    Offline
    232 points Ranked 16675th
    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

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 7y ago
Offline
Destiny Flag Affiliation: Destiny
14,258 points Ranked 311th
25 medals 1 legendary 4 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
  • Tutor of the Month, April 2012 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!

Scores

89 bScore
9.9 Rating

2 voters

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

Details

Difficulty Level
Beginner Difficulty

Attributes

Stats

Posts
8
Views
24,399
Date Added
6y
Date Modified
6y

Share

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

Attention Gamer! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Interested? Sign up now!

Already a Bananite? Login

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel