How to Add Mods to Your Left 4 Dead Server ​
There are two kinds of extensions for a Left 4 Dead server: plugins through Metamod:Source and SourceMod, which run purely server-side, and custom campaigns as VPK add-ons, which every player has to install as well.
Important
Your server runs on Linux. Always download the Linux package (.tar.gz) of Metamod:Source and SourceMod — the .zip package is the Windows build and will not work.
Install Metamod:Source ​
Metamod:Source hooks into the Source Engine and is the foundation for SourceMod.
Download Metamod:Source
Download the current stable version of Metamod:Source for Left 4 Dead as a Linux package (.tar.gz).Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.Upload the files
Extract the archive and upload theaddonsfolder it contains to the following directory:/left4dead/Afterwards the folder
/left4dead/addons/metamod/exists.Replace metamod.vdf
Open the file/left4dead/addons/metamod.vdfand replace its content completely with this:"Plugin" { "file" "../left4dead/addons/metamod/bin/server" }Start the server
Start your server and check in the server console withmeta versionwhether Metamod:Source was loaded.
Important
Step 5 is mandatory for Left 4 Dead. The package ships a metamod.vdf pointing at addons/metamod/bin/server — that path does not work for Left 4 Dead. Without the leading ../left4dead/ the engine will not load Metamod:Source and meta version answers with Unknown command.
Tip
You can also have the matching file generated by the VDF generator of Metamod:Source. Select Left 4 Dead as the game there.
Install SourceMod ​
SourceMod builds on top of Metamod:Source and provides the plugin environment as well as the admin features.
Download SourceMod
Download the current stable version of SourceMod (currently the 1.12 branch) as a Linux package (.tar.gz).Stop the server
Stop your server via the dashboard.Upload the files
Extract the archive and upload theaddonsandcfgfolders it contains via SFTP to the following directory:/left4dead/Existing folders are merged, not replaced. Afterwards the folder
/left4dead/addons/sourcemod/exists.Start the server
Start your server and check in the server console withsm versionwhether SourceMod was loaded.
Note
When uploading, make sure not to overwrite the metamod.vdf from step 5 of the Metamod installation again. The SourceMod package does not contain a VDF file, but some FTP clients replace whole folders instead of merging them.
Install plugins ​
Download the plugin
Download the plugin you want. Ready-to-use plugins come as a.smxfile.Stop the server
Stop your server via the dashboard.Upload the plugin
Upload the.smxfile via SFTP to the following directory:/left4dead/addons/sourcemod/plugins/Start the server
Start your server and check withsm plugins listwhether the plugin was loaded.
Note
Plugins are executed server-side only. Your players do not have to install anything for them.
Install custom campaigns ​
Custom campaigns come as a .vpk file and are installed on the server exactly the way players install them.
Download the campaign
Download the campaign you want as a.vpkfile.Connect via SFTP
Connect to your server via SFTP.Upload the VPK
Upload the.vpkfile to the following directory:/left4dead/addons/Activate the campaign
Enter the following command in the server console:update_addon_paths;mission_reloadThis applies the campaign without a restart. Alternatively restart your server.
Important
Custom campaigns have to be installed locally by all of your players as well. Anyone who does not have the campaign cannot play it on your server.
Warning
There is no Steam Workshop for Left 4 Dead. Custom campaigns are therefore only available from third-party sites. Only download .vpk files from sources you trust.
Folder structure at a glance ​
/left4dead/addons/ <- .vpk files for custom campaigns
/left4dead/addons/metamod.vdf <- loader file for Metamod:Source
/left4dead/addons/metamod/
/left4dead/addons/sourcemod/
/left4dead/addons/sourcemod/plugins/ <- .smx plugin files
/left4dead/addons/sourcemod/configs/ <- configurations, e.g. admin lists
/left4dead/cfg/ <- server.cfg and other configurationsVerify the installation ​
Enter the following commands in the server console:
| Command | Description |
|---|---|
meta version | Show the Metamod:Source version |
meta list | Show the extensions loaded by Metamod |
sm version | Show the SourceMod version |
sm plugins list | Show the loaded SourceMod plugins |
Warning
If the server answers one of these commands with Unknown command, that component was not loaded. In that case first check the content of metamod.vdf, then whether you used the Linux package and whether the folders really are located under /left4dead/addons/.
Warning
Always stop your server before uploading files. After a game update Metamod:Source, SourceMod and individual plugins can become incompatible — check whether updates are available in that case.
Tip
To learn how to give yourself admin rights with SourceMod afterwards, see Add Admin.