Discuz! Board

标题: [教程|Tutorial]制作MH插件|How to make MetaHook Plugin [打印本页]

作者: Jerry小坏    时间: 2017-7-13 13:14
标题: [教程|Tutorial]制作MH插件|How to make MetaHook Plugin
1. 下载MetaHook
[EN]Download MetaHook

2. 把MetaHook解压到游戏目录[]
[EN]Decompress MetaHook to your GameDirectory



3. 检查你的游戏目录里的esf文件夹里的metahook文件夹里是否有一个[SC]MetaHook 0.4 - Dev.rar

[EN]Check if there is a file named "[SC]MetaHook 0.4 - Dev.rar" in GameDir\esf\metahook





4. 在metahook文件夹内创建一个文件夹并命名为SC
[EN]Create a new folder in GameDir\esf\metahook and name it as SC





5. 解压[SC]MetaHook 0.4 - Dev.rar到SC文件夹里
[EN]Decompress "[SC]MetaHook 0.4 - Dev.rar" to the folder SC





6. 下载安装VS2005
[EN]Download and Install VS2005


7. 在SC文件夹里的Plugins文件夹里附带有两个MH插件的源码,用VS2005打开其中一个源码里的sln文件
[EN]In the directory esf\metahook\SC\Plugins there are two additional MHP SourceCode, open one of them(.sln file) by VS2005



8. 把菜单栏里的Debug切换为Release
[EN]Switch "Debug" to "Release" in the menu bar



9. 鼠标右键点击你的项目然后点“生成”[]
[EN]Right-Click your project then click "Build"



10. 生成出的插件会保存在Release文件夹中
[EN]The Plugin will be built in the "Release" folder



11. 如果你想要在游戏中运行这个插件,就把这个插件复制到esf文件夹里的metahook文件夹里的plugins文件夹里,然后用记事本打开esf文件夹里的metahook文件夹里的configs文件夹里的plugins.lst把你的插件文件名写进去保存就行了
[EN]If you want to run the plugin, copy the plugin to "esf\metahook\plugins" and open "esf\metahook\configs\plugins.lst" by NotePad, then write the file name of the plugin and save it









欢迎光临 Discuz! Board (https://esfbbs.foxnyx.top/) Powered by Discuz! X3.2