Difference between revisions of "Multiple or Forked Servers (SourceMod)"

From AlliedModders Wiki
Jump to: navigation, search
(New page: SourceMod does not support running more than one server from the same SourceMod installation. This means you cannot: *Point multiple forked servers (a feature in Left 4 Dead's srcds) at o...)
 
m
Line 23: Line 23:
 
If you are looking to save space or unify certain files that you know will not change, use symlinks.  On Linux/FreeBSD this is the <tt>ln -s</tt> command (<tt>man ln</tt>).  On Windows Vista or 2008 Server, this is <tt>mklink</tt> from the command prompt.
 
If you are looking to save space or unify certain files that you know will not change, use symlinks.  On Linux/FreeBSD this is the <tt>ln -s</tt> command (<tt>man ln</tt>).  On Windows Vista or 2008 Server, this is <tt>mklink</tt> from the command prompt.
  
[Category:SourceMod Documentation]
+
[[Category:SourceMod Documentation]]

Revision as of 20:15, 16 February 2009

SourceMod does not support running more than one server from the same SourceMod installation. This means you cannot:

  • Point multiple forked servers (a feature in Left 4 Dead's srcds) at one SourceMod install.
  • Start multiple copies of the same srcds to the same SourceMod install.

The reason for this is that SourceMod needs to "own" certain folders.

  • SourceMod's auto-updating feature overwrites gamedata files, and could one day overwrite other files as well.
  • The "data" folder is considered writeable for any purpose, and can be used to store locks that live beyond process IDs.

You can have multiple copies of SourceMod in your "addons" folder, however. For example, you can have addons/sourcemod1 and addons/sourcemod2. There are two ways to make this work.

SourceMod 1.2 (Release) or higher: Specify +sm_basepath on the server command line. For example:

srcds -game tf +maxplayers 12 +sm_basepath addons/sourcemod2

SourceMod 1.2 Beta or earlier:

  • Specify +sm_corecfgfile on the server command line. For example:
    srcds -game tf +maxplayers 12 +sm_corecfgfile addons/sourcemod2/configs/core.cfg
  • Edit "BasePath" in the same core.cfg file to correlate to the new location.

Note: This method works in 1.2 releases or higher, but is deprecated.

If you are looking to save space or unify certain files that you know will not change, use symlinks. On Linux/FreeBSD this is the ln -s command (man ln). On Windows Vista or 2008 Server, this is mklink from the command prompt.