---
title: Installing Sourcemod / Metamod on your server
description: Learn how to extend your Nodecraft hosted server with an installation tutorial for Sourcemod and Metamod.
source: "https://nodecraft.com/support/games/steam/installing-sourcemod-metamod-on-your-server"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvZGNiMGFkNjkzOC9jYXZlcy1hbmQtY2xpZmZzLXB0LTItMS0yLTAucG5nL20vIn0seyJuYW1lIjoiZ2FtZV9sb2dvIiwiaW1hZ2VfdXJsIjoiaHR0cHM6Ly9jbXMtYS5ub2RlY3JhZnQuY29tL2YvMTMzOTMyLzM3NXgxNTAvM2MxZGIyYmFiNS9taW5lY3JhZnQucG5nL20vIn0seyJuYW1lIjoiY3RhX3RleHQiLCJ0ZXh0IjoiQ3JlYXRlIHlvdXIgb3duIHNlcnZlciEifSx7Im5hbWUiOiJ0ZXh0IiwidGV4dCI6Ikluc3RhbGxpbmcgU291cmNlbW9kIC8gTWV0YW1vZCBvbiB5b3VyIHNlcnZlciJ9XQ&s=2346eaf3aaf388c779dece92559c2aa974fa15b032a071424df410eaf90c92d5"
published: "2019-01-30T02:32:50.284Z"
updated: "2022-03-14T17:00:00.000Z"
---

# Installing Sourcemod / Metamod on your server

Learn how to extend your Nodecraft hosted server with an installation tutorial for Sourcemod and Metamod.

A lot of Source Engine games such as Team Fortress 2, Counter-Strike Source, etc. can be extended via the use of Metamod and Sourcemod. This guide will show you to install Metamod and Sourcemod on your Nodecraft game server.

## What is Metamod?

Metamod is a C++ plugin environment for Source engine games. It essentially acts as a mod that sits between the game and the engine, allowing plugins to intercept calls that flow between. It specifically provides a mechanism called `SourceHook`, which is a very powerful library for intercepting overriding and superseding virtual function calls. You can find more information on [their website](https://www.sourcemm.net).

## What is Sourcemod?

Sourcemod is a server modification that depends on Metamod, and then extends various Source engine games with a highly optimised platform for scripting plugins and handling server administration. A base-set of plugins is included, but there are thousands of plugins available in the community from sites such as the [AlliedModders forums](https://forums.alliedmods.net/forumdisplay.php?f=123). You can find more information on [their website](https://www.sourcemod.net).

## Installation

Download Metamod and Sourcemod from the following URLs:

- [Download Metamod](https://www.sourcemm.net/downloads.php/?branch=stable)
- [Download Sourcemod](https://www.sourcemod.net/downloads.php?branch=stable)

### Grab the Penguin!

Here at Nodecraft, the servers run on **Linux**, so make sure to get the Linux versions of both files, which are identified by the penguin mascot of Linux.

![Download Linux versions of Sourcemod and Metamod](https://s3-assets.nodecraft.com/attachments/ZySAZzBCRyzPdB9kSL9E_TF2_installing_sourcemod_metamod_correctomundo.png)

We recommend the stable builds unless you have a specific requirement. Once downloaded, you should have a folder ready with the 2 `tar.gz` archives, like so (the filenames and sizes may be slightly different):
![Metamod and Sourcemod downloads](https://s3-assets.nodecraft.com/attachments/XkgAhQ4S5aVZxrvWZvRA_20ad9048-5ceb-4f82-8de7-eef429d0facb.png)

Upload both of these archives to your server's main game directory. Depending on your game, this may be `tf`, `cstrike`, etc.. A reference can be found below:

| Game | Directory |
| --- | --- |
| Counter Strike: Source | cstrike |
| Counter Strike: Global Offensive | csgo |
| Left 4 Dead | left4dead |
| Left 4 Dead 2 | left4dead2 |
| Team Fortress 2 | tf |

Your server directory should now look something like the following:
![Metamod and sourcemod uploads](https://s3-assets.nodecraft.com/attachments/7CkWkRyISKqahKN3Quj4_54a3b5e6-9d63-43df-bd12-5b59def7c254.png)

Using the File Manager, extract both of these archives by selecting them, and then hitting the `untar` button, like so:
![Unarchive sourcemod/metamod](https://s3-assets.nodecraft.com/attachments/dH5az3wTlC3klPOVjAYz_ce89a3d2-906d-4ed0-85fb-f6d50b2b3112.png)

> Make sure you extract both the `sourcemod` and `mmsource` archives using the `Untar` option.

Your `addons` directory should now contain 2 folders; `metamod`, `sourcemod`, and a `metamod.vdf`.

### Generate your Metamod vdf

In order for your game to recognise Metamod (and therefore Sourcemod), you must provide a `metamod.vdf` file in your `addons` directory. We'd recommend using the generator as found on the [Metamod website](https://www.sourcemm.net/vdf), but a reference can be found below, using TF2 as an example:

```
"Plugin"
{
	"file"	"../tf/addons/metamod/bin/server"
}
```

Make sure you first delete the pre-existing `metamod.vdf` file in the `addons` directory, and then upload your newly generated one, like so:
![Valid metamod and sourcemod installation](https://s3-assets.nodecraft.com/attachments/pA7XaPEgRCGTrhbfWEK3_923aab53-00fb-4b3c-af0b-7f6d543969a4.png)

## Final Steps

It's now time to test the installation by starting up your server. Once your server is online again, you'll want to run 2 commands to test that the installation was successful:

- `meta version`
- `sm version`

Both of these commands should print output about the version of Metamod/Sourcemod you are running. If it looks like the following, the installation was successful and you can begin using Sourcemod! If not, take a look back at the previous steps, or contact our support team for further assistance.
![Successful Sourcemod/Metamod install](https://s3-assets.nodecraft.com/attachments/fwiKYFN5S0ib742lVTNA_414b7eb0-130f-454d-bbf8-c17570fc43a5.png)
