SRCDS Steam group


[Plug-ins] Installing Metamod: Source
#1
SRCDS.com Tutorials, “Installing Metamod: Source”

What is Metamod: Source:
Metamod: Source is a server plug-in that can intercept activities between the server and the client to be used as a base “hook” for use in other plug-ins. This means other plug-ins can be loaded onto MM:S and use “hooks” under one roof. It’s also a small plug-in manager, you can enable and disable installed plug-ins with a few simple commands.
For more information visit their website at http://www.sourcemm.net

How to get Metamod: Source:
MM:S can simply be downloaded as either an installer (.exe) or as a package (.zip), for this tutorial we need the package (.zip).
There is one installer and there are two packages on the download page ( http://www.sourcemm.net/?go=downloads ). The fist package is for games based on the original Source Engine (CS:S, DOD:S, HL2Big GrinM etc.), the second package is for the new Source engine (TF2 and other Orange Box games). In this tutorial I will be installing MM:S on a CS:S server, so I download the first package. Note: The installation process is exactly the same for all games, don’t worry.

The installation:
Now that you have the package downloaded above, we can start with the actual installation. Start by extracting the package somewhere on your computer, you should get the following out of the package:
[Image: MMSpackage.JPG]

These files have to be placed in the SRCDS\<modfolder>\, for me it’s C:\SRCDS\cstrike\, I simply copy the addons folder and upload it to my server’s cstrike folder.
My cstrike folder on the server now has an addons folder with MM:S in it.
This is what it should look like:
[Image: MMSinstall.JPG]

Now that all the files are in place, the only thing that’s left to do is make MM:S load when the server starts. This has to be done in a file called “gameinfo.txt”, It’s located in the main modfolder (So for me that’s cstrike).
Open up “gaminfo.txt” and you will find something that looks a little more complicated, but don’t worry we only have to edit one line of the file.
Find the following lines:
Code:
        SearchPaths
        {
            Game                |gameinfo_path|.
            Game                cstrike
            Game                hl2
        }
    }
}

Now add a line “GameBin |gameinfo_path|addons/metamod/bin”
It should look like this:
Code:
        SearchPaths
        {
            GameBin             |gameinfo_path|addons/metamod/bin
            Game                |gameinfo_path|.
            Game                cstrike
            Game                hl2
        }
    }
}

Now save the file, that’s it! Metamod:Source should now be installed on your server.

How to check if Metamod: Source is running:
Finally, check if the plug-in is actually running.
To do this start up your server, when it’s all started type “meta version” in the console. Note: If you do not have access to the console, use the RCon protocol to send the command through RCon, this can be achieved either by joining the game as a client or using programs like HLSW.
The response should be something like this (If you get an “unknown command” you did something wrong above, run through the steps again):
[Image: MMSconsole.JPG]

This tutorial:
Made by: Matts, a.k.a. “Drocona”
Made for: srcds.com, uk-gaming-servers.com
MM:S web: http://www.sourcemm.net/

Get this tutorial in .doc: Metamod Source.doc
Get this tutorial in .docx: Metamod Source.docx
Get this tutorial in .pdf: Metamod Source.pdf

Updated: 7 March 2008

Half-Life 2, Counter-Strike Source and Day of Defeat Source are trademarks and/or registered trademarks of Valve Corporation.
Copyright ©2008 SRCDS.com
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#2
Latest version uses .vdf to load, no gameinfo.txt needed, so you dont have to worry when you update about gameinfo.txt being over written.
[Image: sig_spam.JPG]
Reply
#3
Yes but the old one (1.4) still uses gameinfo.txt and I think it works better than the .vdf
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#4
Uhm, why would you use an old version of the plugin?

There are two branches:
1.4 branch for original source engine - latest version can use .vdf
1.6 branch for orange box engine - latest version can use .vdf

.vdf = no worries when updating. Smile
[Image: sig_spam.JPG]
Reply
#5
I know they both can use .vdf, I however prefer the gameinfo.txt, never had problems with it.

I might add a .vdf part later on.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#6
I used gameinfo for years, and every now and then after updating, i was driving myself mad trying to figure out why plugins weren't loading... Then I remembered that damn gameinfo.txt got overwritten!! But I guess if you use a script for updating your servers, as I do now, you just make your gameinfo.txt elsewhere and add a line to the update script to copy it over after the update...

Either way works though Smile
[Image: sig_spam.JPG]
Reply
#7
Nice tutorial!
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#8
blik
now with vdf you don't need to write line in gameinfo.txt every update

little addon to tutorial about *.vdf, work only with metamod 1.4.3 and 1.6.1 (1.6.0) releases

download metamod
http://www.sourcemm.net/?go=downloads
extract like Drocona say
the folder will be like that, for CS:S for example
Quote:[srcds]
-[bin]
-[cstrike]
--[addons]
---[metamod]
--[bin]
--[cfg]
--...
-[hl2]
-srcds.exe
...

generate vdf file
http://www.sourcemm.net/?go=vdf
or write it by self

metamod.vdf
for windows
Quote:"Plugin"
{
"file" "..\cstrike\addons\metamod\bin\server.dll"
}
for linux
Quote:"Plugin"
{
"file" "../cstrike/addons/metamod/bin/server_i486.so"
}
and put it to addons dir
folder will be looks like that

Quote:[srcds]
-[bin]
-[cstrike]
--[addons]
---[metamod]
---metamod.vdf
--[bin]
--[cfg]
--...
-[hl2]
-srcds.exe
-...

that is all
from Russia with love
Reply
#9
Filoret, do you mind me copying that about the .vdf, edit it a bit and throw it in the tutorial?
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#10
Filoret: Yup I know, hence why I mentioned the .vdf Smile
[Image: sig_spam.JPG]
Reply
#11
Drocona
It will be nice
from Russia with love
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)