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

+29
View File
@@ -0,0 +1,29 @@
-- Inspect only the named Peak module and configuration loader; no state writes.
do
local s=_G.__gacPeakCycleSchema1 or {phase=0,index=0};_G.__gacPeakCycleSchema1=s
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_CYCLE_SCHEMA] '..tostring(v))end
if s.phase<3 then
local ok,err=pcall(function()
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
if s.phase==0 then
local m=CS.RPG.Client.GlobalVars.s_ModuleManager.ChallengePeakModule
s.module=m;s.fields=m:GetType():GetFields(flags);log('MODULE '..tostring(m:GetType()));s.phase=1
end
if s.phase==1 then
for i=s.index,math.min(s.index+15,s.fields.Length-1)do
local f=s.fields[i];log('FIELD '..f.Name..' '..tostring(f.FieldType))
if not f.IsStatic and (f.Name:lower():find('cycle') or f.Name:lower():find('settle') or f.Name:lower():find('result')) then
local good,v=pcall(function()return f:GetValue(s.module)end);if good then log('VALUE '..f.Name..' '..tostring(v))end
end
end
s.index=s.index+16;if s.index>=s.fields.Length then s.phase=2;s.index=0;s.methods=typeof(CS.RPG.GameCore.GameCoreConfigLoader):GetMethods(flags)end
elseif s.phase==2 then
for i=s.index,math.min(s.index+31,s.methods.Length-1)do
local m=s.methods[i];if m.Name:find('ChallengePeak',1,true)then log('LOADER '..tostring(m))end
end
s.index=s.index+32;if s.index>=s.methods.Length then s.phase=3;log('END')end
end
end)
if not ok then s.phase=3;log('ERROR '..tostring(err))end
end
end