Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4|回复: 0
打印 上一主题 下一主题

[教程|Tutorial]制作MH插件|How to make MetaHook Plugin

[复制链接]

189

主题

189

帖子

580

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
580
跳转到指定楼层
楼主
发表于 2017-7-13 13:14:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.  

GMT+8, 2026-10-26 06:59 , Processed in 0.282509 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表