This readme goes over the basics for installing Metamod and managing Metamod plugins for Sven Co-op. For more advanced usage and configuration, see this page.
- Download https://github.com/wootguy/metamod-p/releases/tag/1.12p38_fix
- Create folders
svencoop/addons/metamod/dlls - Extract
metamod.dll(Windows) ormetamod.so(Linux) intosvencoop/addons/metamod/dlls/ - Create empty file
svencoop/addons/metamod/plugins.ini - Add one of these launch options to the game, depending on your OS:
- Windows:
-dll addons/metamod/dlls/metamod.dll - Linux:
-dll addons/metamod/dlls/metamod.so
- Windows:
- Start the game and test that Metamod works by typing
meta versionin the console.
Each plugin may have its own special installation steps, but all plugins should share the steps below.
- Download the plugin files. You should at least have a .dll and .so file.
- Add the plugin file to your dlls folder:
- For Windows, extract the .dll file to
svencoop/addons/metamod/dlls/ - For Linux, extract the .so file to
svencoop/addons/metamod/dlls/
- For Windows, extract the .dll file to
- Add the .dll or .so path to your plugins.ini file. You need to add
win32orlinuxbefore the path, depending on your OS (see examples below). - Type
meta refreshin your server console to load the new plugins, or restart the server.
plugins.ini is where you list the plugins you want to load. It's similar to the default_plugins.txt file for angelscript, but much simpler.
Here's an example plugins.ini for Windows with a couple of plugins installed:
win32 addons/metamod/dlls/example_plugin.dll
win32 addons/metamod/dlls/another_plugin.dll
and the same example but for a Linux system:
linux addons/metamod/dlls/example_plugin.so
linux addons/metamod/dlls/another_plugin.so
You can start a line with the # character to write comments or disable plugins. Here's an example plugins.ini with comments and the "another_plugin" plugin disabled:
# Hello welcome to my plugins.ini
# This is where I write my plugin paths
win32 addons/metamod/dlls/example_plugin.dll
#win32 addons/metamod/dlls/another_plugin.dll
# ^ hmm something is wrong with this plugin. I disabled it for now.
WARNING: Disabling/unloading plugins on a live server may cause a crash.
When installing a new plugin, all you need to do is type meta refresh in the server console to load it. If you want to update a plugin without restarting the server, you'll need follow the steps below.
- Rename the old plugin .dll to something else ("Example.dll" -> "Example_lolololol.dll")
- Copy the new .dll file to the same place, using the old name ("Example.dll")
- Type
meta listin console to find the name of the plugin that needs reloading. - Type
meta reload Examplein console to reload the plugin (replacing "Example" with the name of the plugin found in the previous step).
In my experience, using meta refresh or meta unload to reload plugins will crash the game.
- Type
meta listin console to find the name of the plugin that needs reloading. - Type
meta unload Exampleto unload the current version of the plugin (replacing "Example" with the name of the plugin found in the previous step).- WARNING: Some plugins will crash the server at this step. In those cases you just always need to restart the server to update.
- Replace the plugin .so file with the updated version.
- Type
meta refreshto reload the plugin.