How to Add Mods to Your Black Mesa Server ​
Plugins on a Black Mesa server run through Metamod:Source and SourceMod. You need both: Metamod:Source hooks into the Source Engine, and SourceMod builds on top of it to provide the plugin environment and the admin features. Metamod:Source has supported Black Mesa officially since version 1.10.5, and SourceMod builds on top of it.
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.
Note
Your players do not have to install anything for plugins. SourceMod plugins are executed server-side only. Only custom maps and custom content require the matching files on the players' side as well.
Install Metamod:Source ​
Download Metamod:Source
Download the current stable version of Metamod:Source 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:/bms/Afterwards the folder
/bms/addons/metamod/exists.Start the server
Start your server and check in the server console withmeta versionwhether Metamod:Source was loaded.
Note
You do not have to create your own metamod.vdf — the matching file is already part of the package. According to the Metamod documentation a self-made VDF file is only required for Left 4 Dead 1 and third-party mods.
Install SourceMod ​
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:/bms/Existing folders are merged, not replaced. Afterwards the folder
/bms/addons/sourcemod/exists.Start the server
Start your server and check in the server console withsm versionwhether SourceMod was loaded.
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:/bms/addons/sourcemod/plugins/Start the server
Start your server and check withsm plugins listwhether the plugin was loaded.
Folder structure at a glance ​
/bms/cfg/ <- server.cfg and other configurations
/bms/cfg/mapcycle.txt <- map rotation
/bms/maps/ <- maps in BSP format
/bms/addonlist.txt <- list of active VPK packages
/bms/addons/ <- VPK packages and extensions
/bms/addons/workshop/ <- VPK packages from the Steam Workshop
/bms/addons/metamod/
/bms/addons/sourcemod/
/bms/addons/sourcemod/plugins/ <- .smx plugin files
/bms/addons/sourcemod/configs/ <- configurations, e.g. admin listsVerify 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 check whether you used the Linux package and whether the folders really are located under /bms/addons/.
Custom maps and custom content ​
Stop the server
Stop your server via the dashboard.Upload maps in BSP format
Upload maps that come as a.bspfile via SFTP to the following directory:/bms/maps/Upload content in VPK format
Maps and custom content that come as a.vpkpackage belong in the addons folder instead. Packages from the Steam Workshop go into theworkshopsubfolder:/bms/addons/ /bms/addons/workshop/Activate the VPK packages
A VPK package is only loaded once it is listed in the addon list. Open the following file — if it does not exist yet, create it:/bms/addonlist.txtAdd the packages like this (
1= active,0= inactive):"AddonList" { "workshop\432070352.vpk" "1" "workshop\432074065.vpk" "1" }Add the map to the rotation
Add the map to the following file — one map per line, each without the file extension:/bms/cfg/mapcycle.txtStart the server
Start your server. Withchangelevel <map name>in the server console you switch to a map directly.
Official deathmatch maps
Black Mesa ships with ten official multiplayer maps: dm_bounce, dm_chopper, dm_crossfire, dm_gasworks, dm_lambdabunker, dm_power, dm_stack, dm_stalkyard, dm_subtransit and dm_undertow.
You can see which maps actually exist on your server in the /bms/maps/ folder. Deathmatch maps start with dm_, campaign maps with bm_.
Warning
The Black Mesa Steam Workshop is client-side. Subscribed content only ends up on your PC — for the server you have to upload the files manually to /bms/addons/workshop/ or /bms/maps/ and list them in addonlist.txt.
Important
Custom maps also have to be present on your players' machines, otherwise they cannot join. Either every player downloads the map themselves (for example through the Workshop), or you provide the files through your own download server (FastDL).
Co-op mode with SourceCoop ​
The multiplayer mode of Black Mesa is a pure deathmatch mode. If you want to play the campaign together, the community plugin SourceCoop exists for exactly that.
Meet the requirements
Metamod:Source and SourceMod have to be installed and working as described above.Download SourceCoop
Download the current version of the plugin from the GitHub project.Stop the server
Stop your server via the dashboard.Upload the files
Upload the contents of the archive (the foldersaddons,materialsandmodels) via SFTP to/bms/, following the folder structure it contains. The plugin files end up in/bms/addons/sourcemod/plugins/, the map configurations (.edtfiles) in/bms/addons/sourcemod/data/srccoop/.Set the starting map
Add the first map of the campaign you want to/bms/cfg/mapcycle.txt, for examplebm_c0a0a.Start the server
Start your server and check withsm plugins listwhether SourceCoop was loaded.
Note
SourceCoop is a community project and not an official part of Black Mesa. You can find the exact folder structure, the available settings and known limitations in the documentation of the project.
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.