Left 4 Dead

Left 4 Dead

Not enough ratings
Left 4 Dead Dedicated Server (SteamCMD) [English/Englisch] [Windows]
By Zeromix
This guide will show you how to set up a server with the SteamCMD.

The following ports must be open:
UDP/TCP 27015-27050

Also you will need 8GB of hard drive disk space.

German Version:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1795236722

I also created a tool, that automates the installation process. You can find this tool here:
https://gtm.steamproxy.vip/groups/ServerTool
   
Award
Favorite
Favorited
Unfavorite
SteamCMD Download
First of all you need the SteamCMD. You can download it here:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
SteamCMD Login
Now you need to execute this file.
After a few seconds you can login with the following code:
login anonymous
Server Files Download
Now you need to enter the following in the console:
force_install_dir ./l4d_ds/
This will create a folder with the name "l4d_ds" and it will put in the files in this folder.

Now you can start the download with:
app_update 222840 validate

If the download was sucessful, you have to type
exit
in the console to close the SteamCMD.
Run the Server
The best option is to create a .bat file in your "l4d_ds" folder (e.g. RUN.bat)
Edit the .bat file with following code:
start srcds.exe -console -game left4dead -port 27015 +map l4d_hospital01_apartment +mp_gamemode coop

You can also change the port with "-port 27015"
With this, you just created your Server!

Important:
If you host your server on the same machine, you should start L4D first and then your server.
Server Configuration
You can create the "server.cfg" in your "l4d_ds\left4dead\cfg" folder.
// Server Name hostname "Left 4 Dead Server" // Rcon Cvars rcon_password "password" //Sets remote control password // Server Password sv_password "" // Password protects server // Server Cvars mp_disable_autokick 1 //Prevents a userid from being auto-kicked sv_allow_color_correction 0 //Allow or disallow clients to use colour correction on this server. sv_allow_wait_command 0 //Allow or disallow the wait command on clients connected to this server. sv_alltalk 0 //Players can hear all other players, no team restrictions sv_alternateticks 0 //If set, server only simulates entities on even numbered ticks. sv_cheats 0 //Allow cheats on server sv_clearhinthistory 0 //Clear memory of server side hints displayed to the player. sv_consistency 1 //Whether the server enforces file consistency for critical files sv_contact "************" //Contact email for server sysop sv_pausable 0 //Is the server pausable. // Allow Versus Mode director_no_human_zombies 1 sv_steamgroup_exclusive 1 // Setting to 0 will not connect to the Match Making Service sv_steamgroup // Family Steam Group Number // Lan or internet play, Server region cvars sv_lan 0 //Server is a lan server ( no heartbeat, no authentication, no non-class C addresses ) sv_region 3 // Region Codes: 0 - US East coast, 1 - US West coast, 2 - South America, 3 - Europe, 4 - Asia, 5 - Australia, 6 - Middle East, 7 - Africa, 255 - world // HTTP Redirect sv_downloadurl "http://yourserver.com" sv_filetransfercompression 0 // Server Logging sv_log_onefile 0 //Log server information to only one file. sv_logbans 0 //Log server bans in the server logs. sv_logecho 0 //Echo log information to the console. sv_logfile 1 //Log server information in the log file. sv_logflush 0 //Flush the log file to disk on each write (slow). sv_logsdir "logs" //Folder in the game directory where server logs will be stored. // bandwidth rates/settings sv_minrate 0 sv_maxrate 25000 sv_minupdaterate 10 sv_maxupdaterate 33 sv_mincmdrate 10 sv_maxcmdrate 33 sv_client_cmdrate_difference 1 sv_client_predict 1 sv_client_interpolate 1 sv_client_min_interp_ratio -1 sv_client_max_interp_ratio -1 sv_rcon_banpenalty 60 sv_rcon_maxfailures 10 sv_rcon_minfailures 5 sv_rcon_minfailuretime 45 sv_allow_lobby_connect_only 0 // Voice Comm sv_voiceenable "1" sv_voicecodec vaudio_speex // Exec Configs exec banned_user.cfg mapchangecfgfile server.cfg mapcyclefile mapcycle.txt

These code can also be found here:
https://raw.githubusercontent.com/Zeromix9/Server-Creation-Tool/master/Server%20Configuration%20Files/Left%204%20Dead%20Server%20Config%20English.txt
Backup Link:
https://pastebin.com/d2CJ08wX

Source: https://kb.firedaemon.com/support/solutions/articles/4000086976-left-4-dead-source
MOTD/Serverbanner
You can locate this files in your
C:\Steam-Server\l4d_ds\left4dead
folder.

To edit the "Message of the day" just open the "motd.txt" file.

You can change the serverbanner in your "host.txt" file.
Configurate Sourcemod/Add Admins
At first you will need "Metamod Source" you can get it from here.[www.metamodsource.net]
You have to unzip the files in the following folder:
C:\Steam-Server\l4d_ds\left4dead

By now there should be an "addons" folder.
Now you need Sourcemod, you can get this here.[www.sourcemod.net]
You can also get the Plugins from there later.

Also extract that in this folder:
C:\Steam-Server\l4d_ds\left4dead

For the following you will need your SteamID, you can find yours out here:
http://steamidfinder.com

To configurate an admin, go to:
C:\Steam-Server\l4d_ds\left4dead\addons\sourcemod\configs
and open the
admins.cfg

As you can see, you just have to add something like this:
"Zeromix" //A name for yourself { "auth" "steam" "identity" "STEAM_0:1:31843021" "flags" "z" //Access Commands }

You can see the flags in the
admin_levels.cfg
file.

If you have configurate it, write in the chat "!admin" or in the console "sm_admin" to open the menu.

And that´s it! Have fun! ^_^
Frequently Asked Questions
I can not see my server / No one can connect to my server
Please make sure, that you have opened all the required ports in your router. If the everything is set correctly, but the problem still occurs, please contact your internet provider.
Or look for your router model here:
https://portforward.com/router.htm

Is there another way instead of opening the ports?
Yes, you can also host your server through a VPN network like "Hamachi". Of course only the people in the VPN network will be able to join the server then.
If forwarding your ports doesn´t work, please contact your ISP, i won´t be able to help you.

How can i change my server port?
Just edit the bat file with "-port 27015"

The SteamCMD download failed! What should I do now?
Mostly you just need to retry the download, then the problem should be fixed.

How do I update my server?
Just open the SteamCMD and login again, then retry the Step "Downloading the files" it will be checked which files need to be updated.
Server Creation Tool
To automate these steps to setup/upgrade a server, i created a tool, the group can be founde here:
http://gtm.steamproxy.vip/groups/ServerTool

The tool itself is hosted on Github, which can be found here:
https://github.com/Zeromix9/ServerTool

I hope, that will help you in the future!

If you like, you are also welcome to leave a small donation.
https://paypal.me/Zeromix