Metamod
A guide on how to install and compile Metamod:Source for Source 2 dedicated servers.
Metamod:Source is a plugin loader for Source 2 games like Counter-Strike 2. It provides a basic plugin API but does not offer functionality on its own. This guide covers both installation and compilation for Linux and Windows.
Installation
Steps to Install Metamod:Source
Download the Latest Build:
- Download the latest development build of Metamod:Source from the official releases page.
Move the addons
Folder:
- Extract the downloaded archive and move the
addons
folder to yourgame/csgo
directory.
Edit gameinfo.gi
:
- Open the
gameinfo.gi
file located ingame/csgo
. - Add the following line to the
SearchPaths
section:
Note: After every CS2 update, you must re-edit the gameinfo.gi
file, as it is replaced with each update.
Compilation
Linux Compilation
A guide on how to compile Metamod:Source for Linux.
You can use the Windows Subsystem for Linux (WSL) to compile on Windows. This guide is tested on Ubuntu 20.04.
Prerequisites
File Structure
For simplicity, perform all steps in an alliedmodders
folder:
Ubuntu 20.04 Setup
Download AMBuild
Compilation Instructions
Set up the HL2SDK and Metamod:Source repositories:
Set environment variables:
Build Metamod:Source:
Windows Compilation
A guide on how to compile Metamod:Source for Windows.
Prerequisites
Installing Visual Studio 2022
- Download and install the Community Edition of Visual Studio 2022.
- During installation, ensure the Desktop development with C++ component is selected.
File Structure
For simplicity, perform all steps in an alliedmodders
folder: