Difference between revisions of "Installing SourceMod"

From AlliedModders Wiki
Jump to: navigation, search
 
m (Prerequisites: Make all references to MM:S consistent)
 
(56 intermediate revisions by 20 users not shown)
Line 1: Line 1:
 +
{{Languages|Installing_SourceMod}}
 +
 
Installing SourceMod is very simple, and it can be added with almost no configuration changes.
 
Installing SourceMod is very simple, and it can be added with almost no configuration changes.
  
 
=Prerequisites=
 
=Prerequisites=
SourceMod requires [[SourceMM|Metamod:Source]] 1.3d or higher. [http://www.sourcemm.net/ Click here] to visit the Metamod:Source homepage.
+
A GUI Web Browser to retrieve Metamod:Source and SourceMod compressed archives.
 +
A tool to copy archive to your dedicated server host.
 +
 
 +
SourceMod requires [[Metamod:Source]] 1.9.0 or higher (it is recommended that the latest version is used). [http://www.metamodsource.net/ Click here] to visit the Metamod:Source homepage. Instructions to install Metamod:Source manually can be found [[Installing Metamod:Source|here]].
 +
 
 +
SourceMod will run on almost any mod built using the Source SDK. Only the latest release of a mod is officially supported.
  
SourceMod will run on any mod built using the Source SDKIt also supports "The Ship," which uses the Source engine.
+
Valve sometimes makes changes in their games that break SourceMod between releases.  When this happens, you may need to install snapshot versions of Metamod:Source and SourceModYou can see if this is required on the [[Required Versions (SourceMod)|Required Versions]] page.
  
 
=Uploading/Installing=
 
=Uploading/Installing=
 
==Local Server==
 
==Local Server==
To install SourceMod locally, simply extract the <tt>.zip</tt> (Windows) or <tt>.tar.gz</tt> (Linux) package to your mod folder (i.e. <tt>cstrike</tt> for Counter-Strike, <tt>dod</tt> for Day of Defeat, et cetera).
+
To install [http://www.sourcemod.net/downloads.php SourceMod] locally, simply extract the <tt>.zip</tt> (Windows) or <tt>.tar.gz</tt> (Linux) package to your mod folder (i.e. <tt>cstrike</tt> for Counter-Strike, <tt>dod</tt> for Day of Defeat, et cetera).
 
 
Next, open the <tt>addons/metamod/metaplugins.ini</tt> file with your favorite text editor (for example, notepad).  Add this line:
 
<pre>addons/sourcemod/bin/sourcemod_mm</pre>
 
 
 
Save and exit.
 
  
 
==Remote Server==
 
==Remote Server==
 
To install SourceMod remotely, first extract the <tt>.zip</tt> (Windows) or <tt>.tar.gz</tt> (Linux) package to your local computer (for example, your Desktop).  You will see an <tt>addons</tt> folder.   
 
To install SourceMod remotely, first extract the <tt>.zip</tt> (Windows) or <tt>.tar.gz</tt> (Linux) package to your local computer (for example, your Desktop).  You will see an <tt>addons</tt> folder.   
  
Using a tool such as [http://www.google.com/search?q=FTP FTP], locate your mod folder (i.e. <tt>cstrike</tt> for Counter-Strike, <tt>dod</tt> for Day of Defeat, et cetera).  Underneath this folder, you should have an <tt>addons</tt> folder (if not, Metamod:Source is probably not installed).  From your local <tt>addons</tt> folder, upload the entire contents to your remote <tt>addons</tt> folder.  When done, your remote <tt>addons</tt> folder should have a <tt>sourcemod</tt> folder.
+
Using a tool such as [https://encrypted.google.com/#q=FTP FTP], locate your mod folder (i.e. <tt>cstrike</tt> for Counter-Strike:Source, <tt>dod</tt> for Day of Defeat:Source, et cetera).  Underneath this folder, you should have an <tt>addons</tt> folder (if not, Metamod:Source is probably not installed).  From your local <tt>addons</tt> folder, upload the entire contents to your remote <tt>addons</tt> folder.  When done, your remote <tt>addons</tt> folder should have a <tt>sourcemod</tt> folder.
  
Next, copy the <tt>addons/metamod/metaplugins.ini</tt> file from FTP onto your computerOpen it up with your favorite text editor (for example, notepad, or wordpad if you run into problems), and add the following line:
+
If you have trouble with these steps, you need to get acquainted with FTP and server managementHowever, you can also ask your server provider for helpSome providers also have web interfaces for managing your server.
<pre>addons/sourcemod/bin/sourcemod_mm</pre>
 
 
 
When done, save and exitThen, copy the file back to your server, overwriting the original <tt>addons/metamod/metaplugins.ini</tt> 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.
+
Alternatively, if you copied the tar.gz to your srcds directory, execute the following from the cstrike sub directory:
 +
tar -xzf ../sourcemod-1.1.0.tar.gz
  
 
=Checking the Install=
 
=Checking the Install=
Your directly layout should look like:
+
Your folder layout should look like:
 
*<tt>[mod]</tt> - Your mod's folder
 
*<tt>[mod]</tt> - Your mod's folder
 
**<tt>addons</tt>
 
**<tt>addons</tt>
Line 34: Line 34:
 
***<tt>sourcemod</tt> - SourceMod
 
***<tt>sourcemod</tt> - 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.
+
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]], since most providers will automatically restart your server.
  
 
First, in your [[server console]] (not client console), type:
 
First, in your [[server console]] (not client console), type:
Line 41: Line 41:
 
If the install worked, you will see something like:
 
If the install worked, you will see something like:
 
<pre>] meta list
 
<pre>] meta list
-Id- Name                  Version     Author          Status 
+
Listing 1 plugin:
[01] SourceMod             1.0.0.571  AlliedModders,  RUN    </pre>
+
     [01] SourceMod (1.1.0.2489) by AlliedModders LLC</pre>
  
 
You should then be able to use the SourceMod root console command, which can be invoked with simply:
 
You should then be able to use the SourceMod root console command, which can be invoked with simply:
Line 50: Line 50:
 
<pre>] sm version
 
<pre>] sm version
 
  SourceMod Version Information:
 
  SourceMod Version Information:
     SourceMod Version: 1.0.0.571
+
     SourceMod Version: 1.1.0.2489
     JIT Version: JIT (x86), 1.0.0.431
+
     SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.1.0-svn)
     JIT Settings: Generic 80486
+
    SourcePawn API: v1 = 4, v2 = 2
 +
     Compiled on: Sep  5 2008 02:02:12
 
     http://www.sourcemod.net/
 
     http://www.sourcemod.net/
 
</pre>
 
</pre>
 +
 +
 +
Lastly, assuming you have already setup your administration user (if not, see [[Adding Admins (SourceMod)|this page]]), you can test the in game menu by joining the server, and in the client console type the following:
 +
<pre>sm_admin</pre>
 +
You should see a menu popup with all you options.
  
 
=Troubleshooting=
 
=Troubleshooting=
Line 62: Line 68:
 
If "meta list" replies with something like this:
 
If "meta list" replies with something like this:
 
<pre>] meta list
 
<pre>] meta list
-Id- Name                  Version    Author          Status 
+
Listing 1 plugin:
[01] -                    -          -                NOFILE </pre>
+
  [01] <NOFILE></pre>
  
 
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):
 
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):
<pre>meta list 1</pre>
+
<pre>meta info 1</pre>
  
 
==Metamod lists no plugins==
 
==Metamod lists no plugins==
 
If "meta list" replies with something like this:
 
If "meta list" replies with something like this:
 
<pre>] meta list
 
<pre>] meta list
-Id- Name                  Version    Author          Status  </pre>
+
Listing 0 plugins:</pre>
  
You forgot to add SourceMod to the <tt>addons/metamod/metaplugins.ini</tt> file.
+
There are several causes of this error.
 +
 
 +
# The most common cause is that sourcemod.vdf can't be located in the addons/metamod folder.  Verify that sourcemod.vdf is present in this folder.
 +
# If sourcemod.vdf is present, make sure you are using the correct build of Sourcemod (zip = windows, tar.gz = linux).
  
 
==Metamod says nothing==
 
==Metamod says nothing==
If "meta list" has no reply at all, Metamod:Source is not properly installed.
+
If "meta list" has no reply at all, Metamod:Source is not properly installed. [[Installing Metamod:Source|This wiki page]] may provide you with clues on how to solve this problem.
 
 
  
==Support==
 
See [[SourceMod Support]].
 
  
 
[[Category:SourceMod Documentation]]
 
[[Category:SourceMod Documentation]]

Latest revision as of 09:23, 15 November 2021

Language: English  • 한국어 • русский • 中文

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

Prerequisites

A GUI Web Browser to retrieve Metamod:Source and SourceMod compressed archives. A tool to copy archive to your dedicated server host.

SourceMod requires Metamod:Source 1.9.0 or higher (it is recommended that the latest version is used). Click here to visit the Metamod:Source homepage. Instructions to install Metamod:Source manually can be found here.

SourceMod will run on almost any mod built using the Source SDK. Only the latest release of a mod is officially supported.

Valve sometimes makes changes in their games that break SourceMod between releases. When this happens, you may need to install snapshot versions of Metamod:Source and SourceMod. You can see if this is required on the Required Versions page.

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).

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:Source, dod for Day of Defeat:Source, 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.

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.

Alternatively, if you copied the tar.gz to your srcds directory, execute the following from the cstrike sub directory: tar -xzf ../sourcemod-1.1.0.tar.gz

Checking the Install

Your folder 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, since 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
Listing 1 plugin:
    [01] SourceMod (1.1.0.2489) by AlliedModders LLC

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.1.0.2489
    SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.1.0-svn)
    SourcePawn API: v1 = 4, v2 = 2
    Compiled on: Sep  5 2008 02:02:12
    http://www.sourcemod.net/


Lastly, assuming you have already setup your administration user (if not, see this page), you can test the in game menu by joining the server, and in the client console type the following:

sm_admin

You should see a menu popup with all you options.

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
Listing 1 plugin:
  [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 info 1

Metamod lists no plugins

If "meta list" replies with something like this:

] meta list
Listing 0 plugins:

There are several causes of this error.

  1. The most common cause is that sourcemod.vdf can't be located in the addons/metamod folder. Verify that sourcemod.vdf is present in this folder.
  2. If sourcemod.vdf is present, make sure you are using the correct build of Sourcemod (zip = windows, tar.gz = linux).

Metamod says nothing

If "meta list" has no reply at all, Metamod:Source is not properly installed. This wiki page may provide you with clues on how to solve this problem.