进阶注意:
1. 数据保存在 interface\Cube\cubesave.ini 中。简要说下结构
[CubeSave]
Name1=1. 函数库 -- 代码名称,Name1最后的1表示这是第一段代码
LineCnt1=7 -- 代码行数,由于很难处理回车问题,所以代码是分行保存的,此处用来记录行数,LineCnt1最后的1表示这个指示的是第一段代码的行数。
Code1_1=function print(... -- 实际代码,Code1_1中的第一个1表示属于第一段代码,第二个1表示第一行,下同。
Code1_2= local a = {...}
Code1_3= for i, v in ipairs(a do
Code1_4= a = tostring(v
Code1_5= end
Code1_6= OutputMessage("MSG_SYS", table.concat(a, "\n" .. "\n"
Code1_7=end
Auto1=1 -- 是否自动运行,1表示进入游戏后自动执行,0表示不执行。
疯了的想法:
[Yueliang] (5.1/5.0) - Compiles Lua source to standard Lua byte codes. Implemented in Lua. This is a no-brainer port, but it also includes an optional more native style port of the parser/lexer.
[LuLu] (5.1) - Lua 5.1 VM implemented in Lua. Implements a VM interpreter and coroutine library, but reuses the host Lua environment for data types and standard library functions.