Metamodのインストール

Last-modified: 2009-09-30 (水) 00:30:05

http://wiki.alliedmods.net/Installing_Metamod:Source
Installing Metamod:Source

 

※「E:\cssserver」に「srcds」をインストールしたものとします。
※各自自分のインストールした環境に置き換えて読んでください。
※「srcds」が起動していたら一旦終了させてください。その方が安心です。
※Windowsユーザー専用

 

超概略:インストール手順
①ファイル解凍→addonsというフォルダをぶちこみ
②metamod.vdfをaddonsフォルダにぶちこむ
③SDS(SourceDedicatedServer)コンソール起動、コンソールから入力
「meta version」と打ちバージョンが返ってきたら成功
■おわり

 
 
 

Normal Installation

 

1. Download Metamod:Source (1.7 or higher recommended).

 

ダウンロードしてきたファイルを・・・

 

2. Extract the package to your game folder. For example, for Counter-Strike:Source,
you would have cstrike/addons/metamod after extracting. If you are uploading to FTP,
extract the files locally before transferring to your server's game folder.

 

解凍すると「addons」というフォルダがある。これを「E:\cssserver\cstrike」に放り込みます。
原文ではFTPとか書いてありますが、主にLinuxなどの場合遠隔鯖にアクセスする手段として
ファイルの転送にFTP(SSH)使う場合もあります。Windowsユーザーにはあまり関係ありません。

 

Once finished,
place this file in your addons folder. Note: If you wish to use the old method of
modifying gameinfo.txt, please see the GameInfo section below and skip this step.

 

新規の場合「metamod.vdf」というファイルを作らねばなりません。
http://www.metamodsource.net/?go=vdf に飛んでVDFを作成してください。
まぁ実態はテキストファイルなので普通に環境変数が入ってるだけです。
従来からの環境引き継ぎを希望する場合「metamod.vdf」を新規に作る必要はありませんが、
「gameinfo.txt」に手を加える必要があるかもしれません。
この場合詳しくは「GameInfo section」を参照すること。
「gameinfo.txt」は「E:\cssserver\cstrike\gameinfo.txt」にあります。
※「gameinfo.txt」にパスを通せばVDF無しでも動かせます。Lilyさんがそうやってました。
Lilyさんの指定(これだけ指定してVDFは無し)

			GameBin |gameinfo_path|addons\metamod\bin
			Game |gameinfo_path|.
			Game cstrike
			Game hl2

Wiki側の指定

			Game				|gameinfo_path|.
			Game				cstrike
			Game				hl2

Wiki側がmetamod.vdfで実際に指定したもの

	"file"	"..\cstrike\addons\metamod\bin\server.dll"
 

4. Restart your server.

サーバーを再起動し・・・(一応最初から停止させた方が無難です)

 

5. Type "meta version" in your server console (or RCON).
You should see a line like: "Loaded As: Valve Server Plugin."
If the command is not recognized, see the Troubleshooting section below.

 

コンソールからmeta versionと打てばバージョンが表示されます。
エラーが出た場合、新規なら通常metamod.vdfの記述が間違ってるんでしょう。
それ以外のエラー場合、このページでは具体的な解決策は提示できません。
Metamodのトラブルシュートを参考にして解決を図ってください。


http://wiki.alliedmods.net/Gameinfo_Deprecation

 
FAQ

Are any features lost from the VSP version?

 

Technically, yes. When loading as a GameDLL via gameinfo.txt, Metamod:Source has a chance to intercept factories that the Engine gives the Game upon loading. Of course, there isn't really a necessary reason to intercept that - everything that passes between the Game and Engine is a virtual interface, and thus hookable via SourceHook. Furthermore, there are all sorts of dangers in tricking the Engine/Game into receiving alternate interface implementations, the most obvious being the loss of unloadability. So we're fairly confident that no plugins do anything like this, and if you're a developer, you shouldn't do it.