【下载】HL2 Mods 插件管理平台 Metamod: Source
介绍 by Boe:这是HL插件管理平台MetaMod的Source版,主要作用和MetaMod是一样的----接口管理平台。也就为各种Source插件提供了一个运转的平台,以使它们为HL2 Mods服务器工作。
英文原版说明:
Metamod:Source is an API manager and interception handler that sits in between the Half-Life 2 Engine (Source) and a subsequent Game Modification (MOD). It can dynamically load "SourceMM Plugins", written in C++, to intercept, override, and hook Engine and GameDLL API interfaces. It also allows for inter-plugin communication.
Metamod: Source主页:
http://www.sourcemm.net/ 安装说明(Boe翻译,整理):
1.根据你的服务器所在平台,下载对应的版本(Win/Linux);
2.找到服务器端的游戏mod所在目录,例如:SourceDS\cstrike\,在其中建立addons\metamod\bin目录,最后效果:
SourceDS\cstrike\addons\metamod\bin
3.建立一个新的空txt文档,重新将其命名为"metaplugins.ini";
4.将以下文件放进对应目录:
i.将"server_i486.so"或 "server.dll"放到 addons\metamod\bin 文件夹里;
ii.将"metaplugins.ini"文件放到 addons\metamod 文件夹里;
*注意:不要将"server_i486.so"或 "server.dll"放进SourceDS\mod\bin(如:SourceDS\cstrike\bin)里,否则将导致无法工作。
5.打开游戏模组文件夹里的"gameinfo.txt"文件,例如cstrike\gameinfo.txt找到:
SearchPaths
{
Game |gameinfo_path|.
Game cstrike
Game hl2
}
改为:
SearchPaths
{
GameBin |gameinfo_path|addons/metamod/bin
Game |gameinfo_path|.
Game cstrike
Game hl2
}
6.加载准备工作完成了,启动服务器即可,检测是否加载成功,可以在控制台输入:meta命令即可。 1.添加插件:
打开"addons\metamod\metaplugins.ini"文件.
添加插件的路径指向. 例如你的插件是CSS死亡竞技插件(CSS:DM),它的主文件是:
cstrike\addons\cssdm\bin\cssdm_mm.dll
那么你应该在metaplugins.ini里添加语句:
addons\cssdm\bin\cssdm_mm
保存即可。
2.移除插件:
打开"addons\metamod\metaplugins.ini"文件.
在要移除的插件前加;号,例如:
;addons\cssdm\bin\cssdm_mm
保存,重启服务器
或者使用Meta控制台命令屏蔽插件.
注:Meta控制台命令请参看:http://www.sourcemm.net/?go=docs&doc=console 还是老问题,管理插件的,不是提供插件。
就是说,是metamod,而非AMX。哈哈:D 换成1.0 RC2了。
- Added API for dealing with ConCommandBase registration (cvars/concmds).
This is to fix the fact that Valve API provides no way to unlist a cvar/cmd.
- Added two new commands - "meta cmds" and "meta cvars".
- Added API calls for correctly printing to the console such that rcon
will also receive messages that a plugin prints.
This problem was mentioned on hlcoders and Valve offered no reply.
- Added event hooking and cvar samples to sample_mm.
- Added new cvar, mm_pluginsfile, which defaults to "addons/metamod/metaplugins.ini".
- Fixed a bug where multiple vtable patches on the same hook were not re-patched when removed.
This caused a crash when two hooks were declared on one function, the first was removed, and
the original function was then called.
- Fixed "meta clear" not unloading all plugins.
- Fixed Metamod:Source loading plugins with a higher current API version.
- Fixed whitespace being parsed in metaplugins.ini.
- Fixed bug where SourceHook tried to patch already destroyed/unavailable memory.
- Bumped Plugin API version to 6. 居然搞了个unlist的内部命令?:D 好的.谢谢........... 汗,原来竟然没有把加载过程写完整...:sweat: 太感谢了,终于搞好了。很好玩!!!
页:
[1]