游戏王残局简化版

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

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

Origin for each line in 残局文料/副_容冗/集YGOPro常量并据此产lua文件.lua from check-in 89f423ff38:

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