<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Docjet</id>
	<title>AlliedModders Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Docjet"/>
	<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/Special:Contributions/Docjet"/>
	<updated>2026-05-07T09:30:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Installing_Metamod:Source&amp;diff=3228</id>
		<title>Installing Metamod:Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Installing_Metamod:Source&amp;diff=3228"/>
		<updated>2006-08-17T07:17:02Z</updated>

		<summary type="html">&lt;p&gt;Docjet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will guide you through a [[SourceMM]] installation.&lt;br /&gt;
&lt;br /&gt;
If you don't already have Metamod:Source bundled with a plugin, you can install it manually with the directions below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Download''' the appropriate package for your server: there is a Linux tarball and Windows zip file.  You can get this from the [http://www.sourcemm.net/ SourceMM Website].&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Open''' the package, you will either have &amp;quot;server_i486.so&amp;quot; or &amp;quot;server.dll&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Find '''your &amp;quot;mod folder&amp;quot; on your server. This will be something like &amp;quot;cstrike&amp;quot; or &amp;quot;hl2mp&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Make''' a folder in your mod folder called &amp;quot;addons&amp;quot;, if it doesn't already exist.  Make a folder inside addons called &amp;quot;metamod&amp;quot;, and a folder inside &amp;quot;metamod&amp;quot; called &amp;quot;bin&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Create''' a new, blank, text file called &amp;quot;metaplugins.ini&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Upload''' the files to your server:&lt;br /&gt;
&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;Upload the server.dll or server_i486.so file to your addons/metamod/bin Folder.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Upload the metaplugins.ini file to your addons/metamod folder.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;WARNING! - Do not replace the mod's server.dll/server_i486.so (usually in &amp;quot;&amp;lt;mod&amp;gt;\bin&amp;quot;). This will cause your mod to stop working.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Open''' the file in the mod folder called &amp;quot;gameinfo.txt&amp;quot;. You will see a few lines at the bottom like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SearchPaths&lt;br /&gt;
{&lt;br /&gt;
	Game				|gameinfo_path|. &lt;br /&gt;
	Game				cstrike&lt;br /&gt;
	Game				hl2&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Add''' a line before all of the &amp;quot;Game&amp;quot; entries that looks like this:&amp;lt;pre&amp;gt;GameBin				|gameinfo_path|addons/metamod/bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''You're''' done! To test whether it worked, restart your game server and type &amp;quot;meta&amp;quot; in the [[server console]]. You should get a menu.&lt;br /&gt;
&amp;lt;li&amp;gt;'''For''' more information, documentation, and troubleshooting, see [[:Category:Documentation (SourceMM)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Optional''' Cvars:&lt;br /&gt;
&amp;lt;tt&amp;gt;mm_pluginsfile&amp;lt;/tt&amp;gt; - Sets the path and name of the plugins file, defaulting to &amp;quot;addons/metamod/metaplugins.ini&amp;quot;. It is relative to the mod directory.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your gameinfo.txt gets rewritten, and your line gets removed, metamod won't run. There are a couple ways to fix this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Quick-fix''' Redo steps 7 and 8.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Windows-only batch fix''' Create a text file in &amp;quot;counter-strike source&amp;quot; called sourcemm.bat and then right-click edit. put this in.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd &amp;quot;cstrike&amp;quot;&lt;br /&gt;
copy GameInfo.txt.mms GameInfo.txt&lt;br /&gt;
cd ..&lt;br /&gt;
hl2.exe -insecure -console -game cstrike&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then in &amp;quot;cstrike&amp;quot; (under folder you were just in) copy &amp;quot;gameinfo.txt&amp;quot; and rename it &amp;quot;gameinfo.txt.mss&amp;quot; ( I got this off http://www.tcwonline.org/~dvander/cssdm/ )&lt;br /&gt;
Or chnage the permission of the file gameinfo.txt to write protected.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Linux-only fix''' Open a console or xterm or whatever your prefer and cd to the directory where you installed steam (a program called &amp;lt;tt&amp;gt;steam&amp;lt;/tt&amp;gt; will be there). Open up a new file called &amp;lt;tt&amp;gt;gameinfopatcher&amp;lt;/tt&amp;gt; (in vim or whatever editor you like) and type the following in:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/bin/bash&lt;br /&gt;
if [ &amp;quot;`grep addons/metamod/bin &amp;lt; gameinfo.txt`&amp;quot; = &amp;quot;&amp;quot; ]&lt;br /&gt;
then&lt;br /&gt;
# I love here document patches.&lt;br /&gt;
  echo gameinfo.txt needs patching for metamod.&lt;br /&gt;
  patch -Np0 &amp;lt;&amp;lt;EOPATCH&lt;br /&gt;
*** gameinfo.txt.bak	Sun Apr 16 19:04:34 2006&lt;br /&gt;
--- gameinfo.txt	Mon Apr 17 11:01:49 2006&lt;br /&gt;
***************&lt;br /&gt;
*** 41,44 ****&lt;br /&gt;
--- 41,45 ----&lt;br /&gt;
  		SearchPaths^M&lt;br /&gt;
  		{^M&lt;br /&gt;
+ 			GameBin				|gameinfo_path|addons/metamod/bin^M&lt;br /&gt;
EOPATCH&lt;br /&gt;
&lt;br /&gt;
  test $? || echo patch failed &lt;br /&gt;
  rm gameinfo.txt.orig || echo temp file deletion failed&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
  echo Already patched.&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Those &amp;lt;tt&amp;gt;^M&amp;lt;/tt&amp;gt;'s are control characters. To type them in vim, press &amp;lt;tt&amp;gt;Ctrl-v Ctrl-m&amp;lt;/tt&amp;gt;. For other editors, you're on your own. Also, be mindful of tabs and backticks. If you can't figure out how to do all that or just don't want to mess with it, you can download a tarred bzip2 from http://www.tlcomputing.com/gameinfo.txt.updater.tar.bz2 . To be able to run this script you must make it executable by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;chmod +x gameinfopatcher&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now cd into the directory of the mod whose &amp;lt;tt&amp;gt;gameinfo.txt&amp;lt;/tt&amp;gt; you need to fix. For example,&lt;br /&gt;
&amp;lt;pre&amp;gt;cd cstrike&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now you just need to run the updater like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;../gameinfopatcher&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can safely run this script any time, even if Valve changes the contents of &amp;lt;tt&amp;gt;gameinfo.txt&amp;lt;/tt&amp;gt;. I recommend running it after every update.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
[[Category:Documentation (SourceMM)]]&lt;/div&gt;</summary>
		<author><name>Docjet</name></author>
		
	</entry>
</feed>