Commit Graph
20 Commits
Author SHA1 Message Date
shweetandClaude Opus 5.5 c426b91486 Full redump with round 26 (689 locals in 127 functions); src/game/classes.hpp: reconstructed class declarations
classes.tsv (vtable.py --classes): 194 RTTI classes with vftable, direct bases (offsets from the PMD), vtable slots and,
for 176, the exact size from the deleting destructor's sized delete. Sizes flow into structs.hpp (static_assert sizeof)
and, next build, into Ghidra's structs (ApplyTypes 'size' rows) so this[1]._x stops standing in for the tail.
scripts/source_tree.py generates src/game/classes.hpp: 293 classes with real bases, vtables in slot order (overrides,
REPENTOGON slot names, vfunc_N placeholders), fields at their offsets, 2400 method declarations; it compiles with
clang --target=i686-pc-windows-msvc and all 174 sizeof / 1899 offsetof asserts hold. Round 26's prototypes are held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:43:13 -05:00
shweetandClaude Opus 5.5 36ae4cbfb8 ApplyProtos: REPENTOGON register notation (float r<xmm3>, int x<edx>, float<xmm0> returns, static cleanup) via custom storage
Whole-program optimisation passes many floats in XMM registers and some arguments in ECX/EDX with the caller popping the
stack; those declarations were skipped. Every prototype is now applied with explicit storage (this in ECX for __thiscall).
Tested on a project copy: 1103 -> 1158 applied from the existing files (REPENTOGON's register declarations now fit),
e.g. void __thiscall Game::SetBloom(Game *this,int Time,float Strength).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:25:00 -04:00
shweetandClaude Opus 5.5 f7a1e00362 Full redump with round 6 and STL/small-struct typing: field_0x 14227 -> 5868, named ->members 90k -> 99k
ApplyTypes: std_vector/string/deque/map/set/list members get MSVC layouts (_begin/_end/_capacity ...), structs used as a
member type are built even when small (BitSet128 _tearFlags._l, KColor, RNG were dropped), structs padded to a multiple
of 4 (PlayerCostumeMap stride 0x10). headers.py prints STL members at their real size and pads to the alignment.
Round 6: 99 fields (Manager ItemConfig lists/InfoDisplay/lobby settings, Game transitions/PreloadManager, PersistentGameData
arrays, HomingLaser, EntityList), 500 names, 6 corrections (Menu_Challenge::Render, Level::compute_room_distances, ...).
9622 FUN_ left, in_ECX + 0x 17363 -> 16720.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:31:00 -04:00
shweetandClaude Opus 5.5 2e4322b8a5 db/globals.tsv + ApplyGlobals.java: label and type global data; apply_db.py 1000x faster (token match + dict lookup)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:36:51 -04:00
shweetandClaude Opus 5.5 cbb2f465ec Typed this for ~780 more methods whose ECX reads fit their class's confirmed fields; Sprite/Color = ANM2/ColorMod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:08:01 -04:00
shweetandClaude Opus 5.5 134ab40589 Fields: 325 identified from the most-used unnamed offsets; bracketing is no longer evidence; '-' rows delete wrong fields
Entity _mass (0x2d4) and _depthOffset (0x2b0) were REPENTOGON fields kept by bracketing and both wrong
(Lua getters read 0x37c / 0x358). Bracketed fields now need direct confirmation; 155 are being re-verified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 23:40:33 -04:00
shweetandClaude Opus 5.5 e285a40016 db/protos.zhl: own function signatures, applied like REPENTOGON's only where RET n agrees
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:50:46 -04:00
shweetandClaude Opus 5.5 eafedb13a3 README: UseActiveItem now has its real prototype
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:50:02 -04:00
shweetandClaude Opus 5.5 288ea53ab4 ApplyProtos: REPENTOGON prototypes applied only where the callee's RET n agrees (~600 functions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:22:39 -04:00
shweetandClaude Opus 5.5 5d1b595294 Struct fields only where this exe confirms them; 600 verified fields; generated src/structs.hpp
REPENTOGON targets 1.9.7.12 and its offsets drift, so they are no longer trusted by themselves:
scripts/zhl_fields.py (replaces fix_offsets.py) keeps a REPENTOGON field only when a getter or the
game's Lua field table confirms it, or it sits between two confirmed fields with the same shift.
8 agents verified the rest against code (Game/Manager/Entity_Player shift in steps; Room, ANM2,
EntityConfig unshifted). src/structs.hpp is generated from the confirmed fields with static_asserts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 21:37:10 -04:00
shweetandClaude Opus 5.5 17fa5aa8e2 use_dispatch: id -> case table for UseActiveItem/UseCard/UsePill from the jump tables; find.sh active/card/pill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 21:14:38 -04:00
shweetandClaude Opus 5.5 8f10ec33f9 db: vtable audit fixes (Entity_Player::TakeDamage, GridEntity_Gravity/Wall::PostInit)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:31:05 -04:00
shweetandClaude Opus 5.5 e22000166d vtable.py: bases from RTTI; 35 slot names inherited from REPENTOGON's base layouts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:30:12 -04:00
shweetandClaude Opus 5.5 3e43a4ced2 find.sh vtable CLASS: vtable slots from the exe's RTTI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:29:01 -04:00
shweetandClaude Opus 5.5 0a615743fc db: 575 tier-3 names (largest unnamed functions) and 50 corrections of wrong ZHL/ICF names
Entity_Player::Update, RoomTransition::ChangeRoom, PlayerHUD::RenderHearts, ReviveFromTrinket,
Menu_Game::Update, MenuManager::Render were on the wrong functions; real Beast and Scourge bodies
found; the Lua Font table was attributed to KColor; Weapon vtable slots from the exe's RTTI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:28:28 -04:00
shweetandClaude Opus 5.5 ba6ef6dcb0 db/locals.tsv + ApplyLocals.java: per-function local variable renames/retypes; apply_db renames name-only locals in the dump
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 17:40:37 -04:00
shweetandClaude Opus 5.5 e9a88c1d9c db: 344 tier-2 helper names; fix NpcAI names that were shared helpers (Gemini, Mask)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 16:26:08 -04:00
shweetandClaude Opus 5.5 09369a8c15 Full redump with Lua fields, embedded struct types and 352 db names
field_0x uses 31045 -> 25918; unnamed FUN_ 12414 -> 12105

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 15:57:36 -04:00
shweetandClaude Opus 5.5 13fb3d891e db: 85 more names (Lua-vs-sig fixes, top gameplay helpers); apply_db by address; atomic redump
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:23:19 -04:00
shweetandClaude Opus 5.5 ad8f933086 Salvage Repentance+ 1.9.7.17 decompilation toolkit, notes and name database
Ghidra 12.2 project and full dump of isaac-ng.exe v1.9.7.17, query scripts, notes
indexed by entity, anm2/rooms reimplementations, and db/ (names + fields) that
build.sh re-applies. Fixes awk numeric address comparison in find.sh/decompile.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:08:19 -04:00