游戏王残局简化版

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  顽雨沉风: package.path = [[.\lua_lib\?.lua;]] .. package.path
60c256f91b 2024-06-27  顽雨沉风: package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
60c256f91b 2024-06-27  顽雨沉风: local 字集码互转库 = require("u8_to_a")
60c256f91b 2024-06-27  顽雨沉风: local u8 = 字集码互转库.u8_to_a
60c256f91b 2024-06-27  顽雨沉风: local f = require(u8("常用库"))
60c256f91b 2024-06-27  顽雨沉风: local d_3 = {}
60c256f91b 2024-06-27  顽雨沉风: --~ 文件路
60c256f91b 2024-06-27  顽雨沉风: --~ 普常量文件名
60c256f91b 2024-06-27  顽雨沉风: function d_3.产普常量文件(u1, u2)
60c256f91b 2024-06-27  顽雨沉风:   local h1, h2
60c256f91b 2024-06-27  顽雨沉风:   local h1_0
60c256f91b 2024-06-27  顽雨沉风:   --~ 文
60c256f91b 2024-06-27  顽雨沉风:   h1 = f.读文件(u1)
60c256f91b 2024-06-27  顽雨沉风:   h1 = string.gsub(h1, "%-%-" .. "[^\n]*", "")
60c256f91b 2024-06-27  顽雨沉风:   h1 = string.gsub(h1, "[ \t]", "")
60c256f91b 2024-06-27  顽雨沉风:   --~ 常量排
60c256f91b 2024-06-27  顽雨沉风:   h1_0 = f.历文(h1, string.gmatch, "[^\n]+")
60c256f91b 2024-06-27  顽雨沉风:   for u1 = 1, #h1_0 do
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u1] = f.加前缀(h1_0[u1], [[h1_0.]])
60c256f91b 2024-06-27  顽雨沉风:     end
60c256f91b 2024-06-27  顽雨沉风:   --~ 文
60c256f91b 2024-06-27  顽雨沉风:   h2 = f.加对限(h1_0)
60c256f91b 2024-06-27  顽雨沉风:   f.写文件(h2, u2)
60c256f91b 2024-06-27  顽雨沉风:   end
60c256f91b 2024-06-27  顽雨沉风: --~ 文件路
60c256f91b 2024-06-27  顽雨沉风: --~ 字段名文件名
60c256f91b 2024-06-27  顽雨沉风: function d_3.产字段名文件(u1, u2)
60c256f91b 2024-06-27  顽雨沉风:   local h1, h2
60c256f91b 2024-06-27  顽雨沉风:   local h1_0
60c256f91b 2024-06-27  顽雨沉风:   --~ 文
60c256f91b 2024-06-27  顽雨沉风:   h1 = f.读文件(u1)
60c256f91b 2024-06-27  顽雨沉风:   --~ 常量排
60c256f91b 2024-06-27  顽雨沉风:   h1_0 = f.历文(h1, string.gmatch, "[^\n]+")
60c256f91b 2024-06-27  顽雨沉风:   h1_0 = f.历排(h1_0, f.全筛文, "^!setname")
60c256f91b 2024-06-27  顽雨沉风:   for u3 = 1, #h1_0 do
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u3] = f.删左右空白(h1_0[u3])
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u3] = string.gsub(h1_0[u3], "^!setname ", "")
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u3] = string.gsub(h1_0[u3], "[|\t].+", "")
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u3] = string.gsub(h1_0[u3], " ", "=", 1)
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u3] = string.gsub(h1_0[u3], "[0-9a-z]+", "h1_0[%1]", 1)
60c256f91b 2024-06-27  顽雨沉风:     h1_0[u3] = string.gsub(h1_0[u3], "=([^\n]+)", [[="%1"]], 1)
60c256f91b 2024-06-27  顽雨沉风:     end
60c256f91b 2024-06-27  顽雨沉风:   --~ 文
60c256f91b 2024-06-27  顽雨沉风:   h2 = f.加对限(h1_0)
60c256f91b 2024-06-27  顽雨沉风:   f.写文件(h2, u2)
60c256f91b 2024-06-27  顽雨沉风:   end
60c256f91b 2024-06-27  顽雨沉风: d_3.产普常量文件([[D:\install\YGOPro/script/constant.lua]], u8("普常量.lua"))
60c256f91b 2024-06-27  顽雨沉风: d_3.产字段名文件([[D:\install\YGOPro/strings.conf]], u8("字段名.lua"))