0
焦点头条

【小雪】插件制作教学系列(一)《一切都从零开始》

2014-02-23 13:06| 查看: 13516 |作者: 小雪



准备工作
怎么才能实现一个导出错误日志,并且重载窗口的插件?
我们要知道导出错误日志的命令以及加载窗口的命令是什么。在这里就提供给大家,以后这些命令需要自行去游戏解包出来的Lua源文件中去寻找(使用字符查找工具,下面会有比较详细地介绍查询方法。)

导出错误日志:Output(GetLastLuaError())
加载窗口文件:Wnd.OpenWindow("文件路径""窗口名字")
关闭窗口文件:Wnd.CloseWindow("窗口")

编写基础功能
首先在interface里面建立一个文件夹


在文件夹里建立2个文本档案,其实随便什么档案都可以,去文件夹选项里面取消隐藏已知扩展名。


改扩展名


编辑info.ini文件


保存后测试一下有没有被系统识别


用SciTE打开lua文件,记得使用邮件选择Edit Script,并在第一行建立一个空的表格。


开始编写语句


运用前面得到的知识来编写


Output()能导出函数,数字,字串符,变量,表格等等。这个在调试过程中经常会用到。
由于我们并不知道窗口路径以及窗口名字,得靠手动输入,所以在先前建立的空表格中加入两个变量,用于保存输入信息。注意";"的使用,在表格中逗号跟分号用于分割。
如果你将变量写在一个表格中,那么这个变量名字并不是你输入的名字,而是:表格名字.变量名字
像图中的dir,在调用、存储和改变的时候要这样写:ToolsForEditing.dir


收藏 分享 邀请

游客 2016-05-16 10:41
mi9VMU You produced  ...
引用
游客 2016-05-14 03:17
You have brought up  ...
引用
游客 2016-04-06 01:43
bYohsZ very couple o ...
引用
游客 2016-03-31 18:45
bjfls4 Wow, great ar ...
引用
游客 2016-01-31 02:30
AWZu3D ugg australia ...
引用
游客 2016-01-01 20:43
boQTg6
引用
游客 2015-02-26 22:14
RqaqJn  <a href="htt ...
引用
游客 2014-11-23 07:13
紫檀手串的价值也是很大的:在本草纲目上就有记载,紫檀能够止痛止血,还能够调节气血;紫檀木所散发出来的香气对人们的心脏肾脏肝脏有很好的调节保养作用;紫檀手串戴在身上,还能够稳定人的情绪,使人遇事平静、沉稳,还有助于睡眠和安神醒脑,长期佩戴能够促进新细胞再生,预防皱纹的出现;紫檀对肠胃也很好,有的人就是把紫檀屑放到枕芯里当抱枕睡觉,对肠胃有很好的舒缓作用;在蒙古族的医学上还有记载,紫檀能够消除关节肿痛,和 ...
引用
游客 2014-09-28 10:26
1、春天,山坡的朝阳处雪开始融化,慢慢地露出黄黑色的地皮;雪水滋润着泥土,浸湿了去年的草楂;被雪盖着过了冬眠的草根苏醒复活了,渐渐地倔强有力地推去陈旧的草楂烂叶,奋力地生长起来。与此同时,去年秋天随风摇落下来的草木种子,也被湿土裹住,在孳殖着根须,争取它们的生命。山的背阴处虽然还寒气凛凛,可是寒冷的威力已在渐渐衰弱。朝阳处的温暖雪水顺着斜谷流过来,融化了硬硬的雪层,开始冲开山涧溪水的冰面。巨大的冻 ...
引用
游客 2014-09-28 06:27
每到春天,红得如火的木棉花,粉得如霞的芍药花,白得如玉的月季花竞相开放。它们有的花蕾满枝,有的含苞初绽,有的昂首怒放。一阵阵沁人心肺的花香引来了许许多多的小蜜蜂,嗡嗡嗡地边歌边舞。 <br><br>盼望着,盼望着,(表现急切喜悦的心情)东风来了,春天的脚步近了。 <br><br>清晨,春姑娘穿着美丽的衣裳,舞着暖风,招展地笑着向我们走来,给大自然披上了新装,使万物显现出无限生机.一缕缕金黄色的阳光撒向刚披上新装的草地,阳 ...
引用
游客 2014-09-24 20:58
ahF8QM I have been absent for some time, but now I remember why I used to love this blog. Thanks , I'll try and check back more frequently. How frequently you update your site?
引用
游客 2014-08-26 06:10
A lot of thanks for each of your work on this web site. My mom really loves going through investigation and it is simple to grasp why. Many of us notice all relating to the dynamic ways you make invaluable information by means of this web blog and even cause response from others on the issue so our favorite princess is certainly studying a whole lot. Take advantage of the remaining portion of the  ...
引用
游客 2014-08-09 08:42
I have been exploring for a bit for any high quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this site. Reading this information So i¡¦m happy to convey that I've a very just right uncanny feeling I discovered exactly what I needed. I most indisputably will make sure to don¡¦t overlook this website and provides it a glance regularly.
gebrauchte  ...
引用
游客 2014-08-08 21:10
What i don't understood is actually how you are no longer really a lot more smartly-liked than you might be right now. You're so intelligent. You already know therefore considerably in terms of this topic, produced me individually consider it from a lot of varied angles. Its like women and men are not involved unless it is one thing to accomplish with Lady gaga! Your own stuffs nice. All the time  ...
引用
游客 2014-08-08 20:06
Good ¡V I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs and related info ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your customer to communicate. Excellent task..
Che ...
引用
游客 2014-08-04 14:04
I would like to convey my gratitude for your generosity supporting men and women who really need help with your theme. Your personal commitment to passing the solution up and down ended up being amazingly interesting and have consistently empowered many people just like me to get to their aims. Your useful help signifies a whole lot to me and even more to my colleagues. Thanks a lot; from all of u ...
引用
n5012346 2014-07-05 11:49
: Well written. Who's number four? Lately Ive been following Damon Vickers, a finacial luminary from Seattle. If you havnt read his book The Day after t ...
oh ·····can you speak  Chinese?
引用
游客 2014-07-05 09:01
有剑网三pak v3的解包工具么?
引用
游客 2014-06-18 04:52
Well written. Who's number four? Lately Ive been following Damon Vickers, a finacial luminary from Seattle. If you havnt read his book The Day after the Dollar Crashes, you should get plan a trip to the bookstore. I feel that people dont really fathom the magnitude of the situation we face today. To have a great manager like Damon Vickers, who called the market plummet in both 2000 and 2008, publi ...
引用
游客 2014-04-14 15:47
请问一下有没有交流群?
引用

查看全部评论(20)

关注订阅号"剑网3PVE"
获取第一手剑三资讯

关闭
您当前使用的浏览器版本过低,网站部分功能可能失效,请更换合适的浏览器。了解更多
返回顶部