Skip to content

Instantly share code, notes, and snippets.

@AARP41298
Last active July 9, 2025 17:24
Show Gist options
  • Save AARP41298/f9ec90b2ecf594be24a90d98a5d8c4f0 to your computer and use it in GitHub Desktop.
Save AARP41298/f9ec90b2ecf594be24a90d98a5d8c4f0 to your computer and use it in GitHub Desktop.
L4D2 Dedicated Server

Simple Installation

Donwload de Server

Based on: https://steamcommunity.com/sharedfiles/filedetails/?id=276173458

Download: https://developer.valvesoftware.com/wiki/SteamCMD
Direct WIN download: https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip Put in: C:\steamcmd

Open cmd
Press win + R

cmd

Press enter

cd C:\steamcmd
steamcmd.exe
force_install_dir C:\L4D2
login anonymous
app_update 222860 validate
exit

Config the server

Config server.cfg

cd C:\l4d2\left4dead2\cfg
notepad server.cfg

✍️WRITE

hostname "Your Server Name Here"
rcon_password yourpass
sv_lan 0
sv_consistency 0
sv_allow_lobby_connect_only 0

💾SAVE

Scrip to run the server forever:

cd C:\l4d2
notepad "infinite l4d2.bat"

✍️WRITE

:srcds
echo (%time%) srcds started.
start /wait C:\l4d2\srcds.exe -console -game left4dead2 +maxplayers 8 +exec server.cfg +map c2m1_highway
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

💾SAVE

You can create a shortcut for fastes acces. C:\ProgramData\Microsoft\Windows\Start Menu\Programs

To open the server at windows start, you can use my powershell script

Port forward 27015 in your modem

FOR MODS

Download https://github.com/Geam/steam_workshop_downloader
Put in: whathever, recommended C:\L4D2
Install Python
ONLY WORK WITH COLLECTIONS

Only one:

py workshop.py -o C:\l4d2\left4dead2\addons 2233971331

Multiple:

py workshop.py -o C:\l4d2\left4dead2\addons 122131588 3514750197

Recommended
My compilation: 2233971331
Included the next ones:

Deathcraft: 122131588
The Hive: 3514750197

Plugins

Download
Sourcemod
Metamod
Extract both in: C:\l4d2\left4dead2

Metamod vdf
Select L4D2
Download
Put in: C:\l4d2\left4dead2\addons

Make yourself an admin
Get your steamID at https://steamid.io/

notepad "C:\l4d2\left4dead2\addons\sourcemod\configs\admins_simple.ini"

at the bottom WRITE

"STEAM_0:1:123345"		"99:z"

SAVE

Download some plugins
https://www.sourcemod.net/plugins.php
Go to the lastes comments for updated versions.

Plugins go in: C:\l4d2\left4dead2\addons\sourcemod\plugins
Tranlation go in: C:\l4d2\left4dead2\addons\sourcemod\translations

Plugin example

[L4D1+2] Perkmod:
This version is the one that i use
NOTE: rename plugin.perkmod - all langs 1 file.txt to plugin.perkmod.txt

Country Nick Plugin:
This version is the one that i use
NOTE: Update database
Use the GeoLite2-City.mmdb and put in
C:\l4d2\left4dead2\addons\sourcemod\configs\geoip

Testing:
Error:

UTIL_SetModel: not precached: models/survivors/survivor_producer.mdl

https://forums.alliedmods.net/showpost.php?p=2521202&postcount=13

READ THE LOG Confirm plugins with sm plugins list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment