Difference between revisions of "Installing SourceMod/zh"
MisakaSora (talk | contribs) |
MisakaSora (talk | contribs) |
||
Line 13: | Line 13: | ||
=上传/安装= | =上传/安装= | ||
− | ==本地服务器== | + | ==本地服务器== |
− | 本地安装[http://www.sourcemod.net/downloads.php SourceMod],仅需要把<tt>.zip</tt> (Windows) | + | 本地安装[http://www.sourcemod.net/downloads.php SourceMod],仅需要把<tt>.zip</tt> (Windows)或<tt>.tar.gz</tt> (Linux)文件解压到游戏目录下,比如Counter-Strike(反恐精英)的<tt>cstrike</tt>目录下、Day of Defeat(胜利之日)的<tt>dod</tt>目录下等等。 |
==Remote Server== | ==Remote Server== |
Revision as of 00:31, 26 August 2019
Language: | English • 한국어 • русский • 中文 |
---|
安装SourceMod非常简单,几乎不需要添加什么配置修改。
Contents
前提条件
一个图形界面的网页浏览器,下载Metamod和SourceMod压缩包。 一个可以把文件拷贝到你专用服务主机上的工具。
SourceMod需要1.9.0或更高的Metamod:Source(建议使用最新版本)。点我访问Metamod:Source主页。手动安装SourceMM的教程可以在这找到。
SourceMod几乎可以运行在所有起源引擎的游戏/模组上。
Valve在SourceMod的不同版本间,有时会在游戏中有不兼容SourceMod的更新。当出现这种情况时,你可能需要安装Metamod和SourceMod的快照版本,可以在需要的版本页面进行查看自己是否需要。
上传/安装
本地服务器
本地安装SourceMod,仅需要把.zip (Windows)或.tar.gz (Linux)文件解压到游戏目录下,比如Counter-Strike(反恐精英)的cstrike目录下、Day of Defeat(胜利之日)的dod目录下等等。
Remote Server
To install SourceMod remotely, first extract the .zip (Windows) or .tar.gz (Linux) package to your local computer (for example, your Desktop). You will see an addons folder.
Using a tool such as FTP, locate your mod folder (i.e. cstrike for Counter-Strike:Source, dod for Day of Defeat:Source, et cetera). Underneath this folder, you should have an addons folder (if not, Metamod:Source is probably not installed). From your local addons folder, upload the entire contents to your remote addons folder. When done, your remote addons folder should have a sourcemod folder.
If you have trouble with these steps, you need to get acquainted with FTP and server management. However, you can also ask your server provider for help. Some providers also have web interfaces for managing your server.
Alternatively, if you copied the tar.gz to your srcds directory, execute the following from the cstrike sub directory: tar -xzf ../sourcemod-1.1.0.tar.gz
Checking the Install
Your folder layout should look like:
- [mod] - Your mod's folder
- addons
- metamod - Metamod:Source
- sourcemod - SourceMod
- addons
Once SourceMod is uploaded/copied and configured with Metamod:Source, restart your server completely. If it is local, shut it down and restart it. If it is remote, you may need to ask your server provider for help. However, it is often safe to issue a "quit" command via rcon, since most providers will automatically restart your server.
First, in your server console (not client console), type:
meta list
If the install worked, you will see something like:
] meta list Listing 1 plugin: [01] SourceMod (1.1.0.2489) by AlliedModders LLC
You should then be able to use the SourceMod root console command, which can be invoked with simply:
sm
For example:
] sm version SourceMod Version Information: SourceMod Version: 1.1.0.2489 SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.1.0-svn) SourcePawn API: v1 = 4, v2 = 2 Compiled on: Sep 5 2008 02:02:12 http://www.sourcemod.net/
Lastly, assuming you have already setup your administration user (if not, see this page), you can test the in game menu by joining the server, and in the client console type the following:
sm_admin
You should see a menu popup with all you options.
Troubleshooting
If the install failed, you will generally see one of four symptoms.
Metamod reports NOFILE or FAILED
If "meta list" replies with something like this:
] meta list Listing 1 plugin: [01] <NOFILE>
Most likely, either the files are not located in the correct place, or the file could not be loaded. For more information, use the following command (except use the correct list number):
meta info 1
Metamod lists no plugins
If "meta list" replies with something like this:
] meta list Listing 0 plugins:
There are several causes of this error.
- The most common cause is that sourcemod.vdf can't be located in the addons/metamod folder. Verify that sourcemod.vdf is present in this folder.
- If sourcemod.vdf is present, make sure you are using the correct build of Sourcemod (zip = windows, tar.gz = linux).
Metamod says nothing
If "meta list" has no reply at all, Metamod:Source is not properly installed. This wiki page may provide you with clues on how to solve this problem.