Note: This guide will use the default directory of the root of Hard Drive: E: This makes it easier to send the directory command as it is shorter. However, you can paste text to CMD prompts by right clicking in the CMD header: Run the steamcmd.exe to install the tool's files, the dialog will appear installing files: Note: Do not install server files within the SteamCMD folder. While SteamCMD is downloading the tool, go ahead and setup your server directory.
Install Notes: 1. Double click Left 4 Dead 2.exe to start the extraction process. How To Install Metamod, Sourcemod, Extend Max-Players And Install Custom Maps & Campaigns*. Use the guide here. Game: Left 4 Dead 2. Attention: 1. Please remove any addons which include talker files before you install Modified Talker. You can only use one talker addon at a time.
This guide uses the root of a Hard Drive: E: L4D2 Note: Using the root of a Hard Drive makes it easier to navigate through file structures and execute Change Directory (cd) commands in SteamCMD, however remember you can paste your server directory into the prompt should you decide to place it alongside the Left 4 Dead 2 game folder in your Steam Client Directory. There are many resources out there for Port Forwarding. This guide is aimed at servers that are hosting on a provider or system other than the game client.
This guide will work for Listen Servers (Listen Servers are servers hosted on the same Computer that you play the game on) Those creating a Listen Server will encounter Port Forwarding issues which if you know how to access your router control panel, is an easy fix. For those not familiar with the process, please utilize Google and other resources such as the ones below for assistance in forwarding your ports. If you are hosting your server on a game server provider (GameServers, VPS (Virtual Private Server such as NFOServers) or a host that you actually pay for, then you don't need to worry about this as your provider should have all ports forwarded automatically depending on what server you are hosting. By default the L4D2 port is 27015 however it may have a range from 0 or more. www.portforward.com www.canyouseeme.org/b.
The cfg file is what contains the settings (in the form of cvars) for your server. By default the server.cfg does not exist after installing and creating your server. You will need to create one: www.dropbox.com is a very detailed server.cfg www.dropbox.com is a standard L4D2 server.cfg Note: Be sure to rename these files to 'server.cfg' should you decide to download and install to your server! To create a new server.cfg, create the cfg within a text editor such as notepad, or www.sublimetext.com or notepad-plus-plus.org and save the file as server.cfg The server.cfg file should be located.
E: L4D2 left4dead2 cfg server.cfg Create this file using notepad, simply right-click in the folder and select New⇒Text Document. Don’t name it anything yet; just creat a blank text file. For a complete list of L4D2 Cvars, see For a text file list of all L4D2 Cvars see www.dropbox.com One of the most important things to keep in mind while writing the server.cfg is the syntax. It is very simple actually. For those using Sublime Text: tf2rj.com sublime.wbond.net // means the server will ignore everything behind // on that line, so if you want to stop using a variable, put // in front of it - this is commonly referred to as 'commenting out' which tells the server to ignore that command/cvar. Every variable has to be put on its own line, or else it will not be read/executed and the server console may report an error about it so you can narrow down the issue. If you have spaces somewhere (the name of the server for example), be sure to write it between quotes.
Hostname 'Use quotes with spaces' Here are some explanations on the most important variables: svmaxupdaterate 100: This variable sets the maximum amount of updates the server will send to each client per second. If you set this to 100, your server will run optimally because the tickrate automatically adjusts this value. Having a tickrate of 33 will make this variable 33 as well. Thus, a setting of 100 for this variable is more or less a “one size fits all.” svminupdaterate 20: This variable is the opposite of maxupdaterate.
During the years I’ve been hosting servers, I’ve found out that when the updates drop below 20 per second, clients start to experience lag. That’s why we set this to 20; just like maxupdaterate, this value fits all servers. Svmaxrate: This variable probably has the most impact on the quality of the server performance.
It’s the maximum amount of data sent to one client per second. If you don’t have a great connection, you can set this variable to make your server run perfectly. As I explained above, this has something to do with the maxplayers of the server. To calculate this variable we use a formula; it’s simple and 90% accurate. www.dropbox.com is an example server.cfg file you can download and edit.
Just be sure to name it server.cfg. (This section will be re-written) Every time a player enters a Left 4 Dead server online, a message of the day screen welcomes them. There’s a default MOTD, but if you’re paying for your own server, you probably want to customize it. This guide will show you how. First, we’ll look at the actual MOTD screen: There’s two sections that you are able to customize: the host banner on top and the message of the day which takes up the majority of the screen on the bottom. These two sections are actually just web pages (html files), which can be entered into the files on the server or hosted on your own web server/web host.
The two files to control these sections are “host.txt” for the host banner, and “motd.txt” for the MOTD. You can find these in your server’s L4D directory at l4d/left4dead/. Note that this is NOT the same directory as the server.cfg file that you use to change server settings. The server.cfg file is located in l4d/left4dead/cfg/. The default host banner and MOTD run off of Valve’s web servers. The default host.txt and motd.txt files contain only one line which is a URL to the website you wish to have displayed.
You can either use this method if you have your own hosting or you can just fill the.txt file with HTML code. If you have multiple servers with the same banner, it’s best to use web hosting so you only have to change the banner in one place. One very important thing to realize about the MOTD and host banner is that they change sizes depending on the resolution the player is running. The following values are in pixels, you can click on the screen resolutions to see what the MOTD looks like on that resolution: The ratio of width to height for the host banner is 5:1, and the ratio of width to height is 2:1. You have two choices with the host banner: either make it one large size and have it be cropped for people on lower resolutions (which is what I believe Valve does), or you can use some CSS in your HTML code to automatically resize the banner no matter what resolution a player is using. This is the method we use, and it’s a simple little trick. Our host.txt file has just one line: The code to that webpage is as follows: Left 4 Dead 411 That’s all it is!
The title doesn’t show up anywhere, so it’s not important. The body styling is to make sure the image appears in the very top left, with one pixel of padding, and a background color for when the image is loading. The image tag has a style of 100% width and height. If you go to that page in your browser, it’ll look really messed up. But since you know for a fact that every resolution has a 5:1 ratio for the host banner, it will always look fine and be in the same proportions.
One little bug: on 1920×1080, when you first get into the game sometimes the banner is sized strangely (pic). Hopefully this gets fixed. The MOTD section is the same as the host banner – it can be either a hosted HTML file (place the URL on a single line in the top of the.txt file) or you can just put the HTML code directly into the text file. All we have is a simple background image with some centered text, you can see it/view the source here if you need an example. If your MOTD is not showing up, you might have to set motdenable 1 in your server.cfg. That’s all there is to it! Head to our forums if you need any help.
//////////////////////////////// // Examples: (do not put // in front of real lines, as // means 'comment') // // 'STEAM0:1:16' 'bce' //generic, kick, unban for this steam ID, no immunity // '!127.0.0.1' '99:z' //all permissions for this ip, immunity value is 99 // 'BAILOPAN' 'abc' 'Gab3n' //name BAILOPAN, password 'Gab3n': gets reservation, generic, kick // //////////////////////////////// 'STEAM1:1:16622384' '99:z' That is MY SteamID for example purposes, just replace it with your ID. After you edit that, just upload the addons & cfg folders to your server where the existing addons & cfg folders are. Failure to copy these files to te right location will result in SourceMod failing to load. After you have uploaded the files, restart the server and send this command. Sm sm version sm plugins sm plugins list sm plugins reload 1 sm plugins refresh sm plugins unload funvotes sm plugins load funvotes sm exts list /gamedata If an extension or a plugin is using functionality provided by the game engine, e.g. Respawn a player or equipping a player with a weapon, sourcemod needs to know a few 'facts' (to be precise: offsets and signatures) about the function.
These can change after valve releases an update. At this point you don't need to know more about this, because sourcemod has an integrated updater, which automatically fetches the new gamedata files for you.
/logs The holy grail of debugging your actions. Everything will be logged here.
If someone asks you what the logfiles are saying or whether you get any errors: reproduce your problem, then take a look at the logfiles and just copy&paste the messages. Don't try to be smart here and post what you think the given errors are saying, just post the lines. Or fix the problem yourself if you understand the error. /plugins All plugins (.smx files) in this directory will be loaded automatically when sourcemod starts. Plugins will also be reloaded on mapchange if their file has changed. /plugins/disabled Plugins in this sub-folder won't be loaded.
Move plugins from the parent directory to this one to disable a plugin and vice-a-versa. You will find some official alliedmods plugins in this directory you might want to install (e.g. Rockthevote) and some others you want to disable by moving them here (e.g. /scripting You can find the sourcecode to plugins in this directory, at least the original alliedmods ones.
You don't need to place any files here to install a plugin, but it is highly recommended to not only install the smx files, but also their corresponding sp file. /translations Not much to say about this folder, it contains translations for many languages. Plugins are encouraged to provide translation files, so you might need to copy some files in here when installing a plugin. Some basic console commands. You will more than likely use smadmin (SourceMod) for your admin controls: addip Bans a player by IP address for a specified number of minutes. Entering 0 for minutes is a permanent ban.
Banid Bans a player by SteamID for a specified number of minutes. Entering 0 for minutes is a permanent ban. Banid kick Bans a player by SteamID for a specified number of minutes and kicks them from the server. Entering 0 for minutes is a permanent ban. Changelevel Changes the server to the specified map. For a full list of maps, type: maps. in the console.
Dropclient Kicks a client by their UserID. To find a full list of UserID’s on the server, type: users in the console. Heartbeat Manually sends a heartbeat to the master server. Info Displays user information about the requested client based on SteamID. Kick or Kicks a user by Player name, or UserID. To find a full list of UserID’s on the server, type: users in the console. Listid Lists all SteamIDs in your server ban list.
Listip Lists all IP addresses in your server ban list. Maps Lists all maps containing a partial name, for example: maps de would list all maps with de in their name. This section is all over the place but dumbs it down so one can understand better! More than four (4) players in Online Cooperative Campaign (Co-Op for short) is possible.however you will have to compromise!
It is possible to have more than four players in Co-Op but NOT while in a lobby reservation. What is a Lobby Reservation? Sorry, it's not your reservation for the ballroom at the Hilton. Basically what this means regarding SRCDS is players can join a reserved server and disconnect at will and the matchmaking magic thingy will find new people to replace the player that just disconnected. How do I tell if my server is reserved? The status command will return either unreserved (as above) or a reservation code: How do I make my server reserved?
Generally what I will do is send this command before connecting (via lobby) to my server. Mmdedicatedforceservers SERVERIP:PORT What does this have to do with more than 4 players in Co-Op? You will have to smunreserve the server once you have 4 people. This means your server will no longer have a lobby reservation and in order to get new people on the server, they must either connect directly through either the server browser or console.
So how I does has moar than 4 people? You read up on these plugins before you go throwing them onto your server! www.sourcemod.net www.sourcemm.net forums.alliedmods.net forums.alliedmods.net forums.alliedmods.net forums.alliedmods.net - not required but optional! Also check forums.alliedmods.net out. Here are the plugins I use on my Left 4 Dead 2 Server.
I managed to get sourcemods working years ago for Left 4 Dead 2 and trying to install them again seems to be pure disaster. I've done everything tutorials ask for and yet it seems I can't get the mods working correctly.I downloaded sourcemod 1.5.0 for windows -I downloaded mmsource 1.9.0 for windows -the contents have been merged into my directory -metamod.vdf is moved into the add-ons folder -removed all the previous plugins I had -incorporated my steam ID into 'adminssimple' All of these procedures were added and according to most videos, the console commands included 'sm' and 'meta'. Typing these into my console, I get nothing. So I decided I need to change the launch options to '-insecure' After typing this into the launch options, I try to make a new game, singleplayer, local server, anything, and the loading screen instantly freezes near the end of the loading bar. I have to ctrl+alt+delete every time this happens. What am I doing wrong? 6y Every time you start the game, it should tell you that you have plugins that don't allow you to join VAC secured servers.
If it doesn't say that, something's wrong. These folders and files should be in these directories: metamod and sourcemod folders = addons metamod.vdf = addons So first, check and see if those are in the right place, and if they are, and still don't work, then that's not the problem obviously.
Let me know if it doesn't work, I'll have to look into it more. Making Life Awesome Everyday. Submitter 6y.Posted by. Every time you start the game, it should tell you that you have plugins that don't allow you to join VAC secured servers.
If it doesn't say that, something's wrong. These folders and files should be in these directories: metamod and sourcemod folders = addons metamod.vdf = addons So first, check and see if those are in the right place, and if they are, and still don't work, then that's not the problem obviously.
Let me know if it doesn't work, I'll have to look into it more. Everything is in correct order. I even removed everything to replace sourcemod with 1.4 and 1.3 as I was told 1.5 is actually defective and even then, every sourcemod installation leaves me with the same problems. Coach Disciple.