游戏王残局简化版

Annotation For 残局文料/集YGOPro常量并据此产lua文件.lua
Login

Annotation For 残局文料/集YGOPro常量并据此产lua文件.lua

Origin for each line in 残局文料/集YGOPro常量并据此产lua文件.lua from check-in f4c48d2eb7:

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