游戏王残局简化版

Annotation For single_doc/副_容冗/集YGOPro常量并据此产lua文件.lua
Login

Annotation For single_doc/副_容冗/集YGOPro常量并据此产lua文件.lua

Origin for each line in single_doc/副_容冗/集YGOPro常量并据此产lua文件.lua from check-in 60c256f91b:

60c256f91b 2024-06-27    1: package.path = [[.\lua_lib\?.lua;]] .. package.path
60c256f91b 2024-06-27    2: package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
60c256f91b 2024-06-27    3: local 字集码互转库 = require("u8_to_a")
60c256f91b 2024-06-27    4: local u8 = 字集码互转库.u8_to_a
60c256f91b 2024-06-27    5: local f = require(u8("常用库"))
60c256f91b 2024-06-27    6: local d_3 = {}
60c256f91b 2024-06-27    7: --~ 文件路
60c256f91b 2024-06-27    8: --~ 普常量文件名
60c256f91b 2024-06-27    9: function d_3.产普常量文件(u1, u2)
60c256f91b 2024-06-27   10:   local h1, h2
60c256f91b 2024-06-27   11:   local h1_0
60c256f91b 2024-06-27   12:   --~ 文
60c256f91b 2024-06-27   13:   h1 = f.读文件(u1)
60c256f91b 2024-06-27   14:   h1 = string.gsub(h1, "%-%-" .. "[^\n]*", "")
60c256f91b 2024-06-27   15:   h1 = string.gsub(h1, "[ \t]", "")
60c256f91b 2024-06-27   16:   --~ 常量排
60c256f91b 2024-06-27   17:   h1_0 = f.历文(h1, string.gmatch, "[^\n]+")
60c256f91b 2024-06-27   18:   for u1 = 1, #h1_0 do
60c256f91b 2024-06-27   19:     h1_0[u1] = f.加前缀(h1_0[u1], [[h1_0.]])
60c256f91b 2024-06-27   20:     end
60c256f91b 2024-06-27   21:   --~ 文
60c256f91b 2024-06-27   22:   h2 = f.加对限(h1_0)
60c256f91b 2024-06-27   23:   f.写文件(h2, u2)
60c256f91b 2024-06-27   24:   end
60c256f91b 2024-06-27   25: --~ 文件路
60c256f91b 2024-06-27   26: --~ 字段名文件名
60c256f91b 2024-06-27   27: function d_3.产字段名文件(u1, u2)
60c256f91b 2024-06-27   28:   local h1, h2
60c256f91b 2024-06-27   29:   local h1_0
60c256f91b 2024-06-27   30:   --~ 文
60c256f91b 2024-06-27   31:   h1 = f.读文件(u1)
60c256f91b 2024-06-27   32:   --~ 常量排
60c256f91b 2024-06-27   33:   h1_0 = f.历文(h1, string.gmatch, "[^\n]+")
60c256f91b 2024-06-27   34:   h1_0 = f.历排(h1_0, f.全筛文, "^!setname")
60c256f91b 2024-06-27   35:   for u3 = 1, #h1_0 do
60c256f91b 2024-06-27   36:     h1_0[u3] = f.删左右空白(h1_0[u3])
60c256f91b 2024-06-27   37:     h1_0[u3] = string.gsub(h1_0[u3], "^!setname ", "")
60c256f91b 2024-06-27   38:     h1_0[u3] = string.gsub(h1_0[u3], "[|\t].+", "")
60c256f91b 2024-06-27   39:     h1_0[u3] = string.gsub(h1_0[u3], " ", "=", 1)
60c256f91b 2024-06-27   40:     h1_0[u3] = string.gsub(h1_0[u3], "[0-9a-z]+", "h1_0[%1]", 1)
60c256f91b 2024-06-27   41:     h1_0[u3] = string.gsub(h1_0[u3], "=([^\n]+)", [[="%1"]], 1)
60c256f91b 2024-06-27   42:     end
60c256f91b 2024-06-27   43:   --~ 文
60c256f91b 2024-06-27   44:   h2 = f.加对限(h1_0)
60c256f91b 2024-06-27   45:   f.写文件(h2, u2)
60c256f91b 2024-06-27   46:   end
60c256f91b 2024-06-27   47: d_3.产普常量文件([[D:\install\YGOPro/script/constant.lua]], u8("普常量.lua"))
60c256f91b 2024-06-27   48: d_3.产字段名文件([[D:\install\YGOPro/strings.conf]], u8("字段名.lua"))