Installing SourceMod

From AlliedModders Wiki
Revision as of 23:37, 17 March 2007 by BAILOPAN (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installing SourceMod is very simple, and it can be added with almost no configuration changes.

Prerequisites

SourceMod requires Metamod:Source 1.3d or higher. Click here to visit the Metamod:Source homepage.

SourceMod will run on any mod built using the Source SDK. It also supports "The Ship," which uses the Source engine.

Uploading/Installing

Local Server

To install SourceMod locally, simply extract the .zip (Windows) or .tar.gz (Linux) package to your mod folder (i.e. cstrike for Counter-Strike, dod for Day of Defeat, et cetera).

Next, open the addons/metamod/metaplugins.ini file with your favorite text editor (for example, notepad). Add this line:

addons/sourcemod/bin/sourcemod_mm

Save and exit.

Remote Server

To install SourceMod remotely, first extract the .zip (Windows) or .tar.gz (Linux) package to your local computer (for example, your Desktop). You will see an addons folder.

Using a tool such as FTP, locate your mod folder (i.e. cstrike for Counter-Strike, dod for Day of Defeat, et cetera). Underneath this folder, you should have an addons folder (if not, Metamod:Source is probably not installed). From your local addons folder, upload the entire contents to your remote addons folder. When done, your remote addons folder should have a sourcemod folder.

Next, copy the addons/metamod/metaplugins.ini file from FTP onto your computer. Open it up with your favorite text editor (for example, notepad, or wordpad if you run into problems), and add the following line:

addons/sourcemod/bin/sourcemod_mm

When done, save and exit. Then, copy the file back to your server, overwriting the original addons/metamod/metaplugins.ini file.

If you have trouble with these steps, you need to get acquainted with FTP and server management. However, you can also ask your server provider for help. Some providers also have web interfaces for managing your server.

Checking the Install

Your directly layout should look like:

  • [mod] - Your mod's folder
    • addons
      • metamod - Metamod:Source
      • sourcemod - SourceMod

Once SourceMod is uploaded/copied and configured with Metamod:Source, restart your server completely. If it is local, shut it down and restart it. If it is remote, you may need to ask your server provider for help. However, it is often safe to issue a "quit" command via rcon, and most providers will automatically restart your server.

First, in your server console (not client console), type:

meta list

If the install worked, you will see something like:

] meta list
-Id- Name                  Version     Author           Status  
[01] SourceMod             1.0.0.571   AlliedModders,   RUN     

You should then be able to use the SourceMod root console command, which can be invoked with simply:

sm

For example:

] sm version
 SourceMod Version Information:
    SourceMod Version: 1.0.0.571
    JIT Version: JIT (x86), 1.0.0.431
    JIT Settings: Generic 80486
    http://www.sourcemod.net/

Troubleshooting

If the install failed, you will generally see one of four symptoms.

Metamod reports NOFILE or FAILED

If "meta list" replies with something like this:

] meta list
-Id- Name                  Version     Author           Status  
[01] -                     -           -                NOFILE  

Most likely, either the files are not located in the correct place, or the file could not be loaded. For more information, use the following command (except use the correct list number):

meta list 1

Metamod lists no plugins

If "meta list" replies with something like this:

] meta list
-Id- Name                  Version     Author           Status  

You forgot to add SourceMod to the addons/metamod/metaplugins.ini file.

Metamod says nothing

If "meta list" has no reply at all, Metamod:Source is not properly installed.


Support

See SourceMod Support.