pre cw with probe and a bunch script to read game behavior

This commit is contained in:
CAtlas0784 committed 2026-10-21 20:40:13 +07:00
1 parent 5120219ae2
commit da8a32f60d
310 files changed
+219693 -872

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
-- Read only named constant tables, bounded to 64 rows per heartbeat.
do
_G.__gacCwConstants=_G.__gacCwConstants or {tableIndex=1}
local state=_G.__gacCwConstants
local tables={'ConstValueCommonExcelTable','ConstValueClientExcelTable'}
if state.tableIndex<=#tables then
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_CONSTANT] '..tostring(v))end
local ok,err=pcall(function()
if not state.iterator then state.iterator=CS.RPG.GameCore[tables[state.tableIndex]].dataDict:GetEnumerator()end
for i=1,64 do
if not state.iterator:MoveNext()then
log('END '..tables[state.tableIndex]);state.iterator=nil;state.tableIndex=state.tableIndex+1;return
end
local row=state.iterator.Current.Value
if tostring(row.ConstValueName):lower():find('gridfight') then
log('ROW '..tables[state.tableIndex]..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))
end
end
end)
if not ok then log('ERROR '..tostring(err));state.iterator=nil;state.tableIndex=state.tableIndex+1 end
end
end