Commit Graph
9 Commits
Author SHA1 Message Date
shweetandClaude Opus 5.5 1d43433e1b this_types: also place unnamed FUN_ functions in a class when their ECX offsets match one class's field starts unambiguously
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:30:21 -04:00
shweetandClaude Opus 5.5 5dbb3e398d ApplyTypes: FamiliarAI routines typed __fastcall(Entity_Familiar *familiar) like NpcAI (ECX reads all fit)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:08:58 -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 d806b3b969 ColorMod layout from the Lua Color getters; Entity._splatColor; embed small/placeholder structs (EntityPtr)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 23:08:54 -04:00
shweetandClaude Opus 5.5 540cc49d34 ApplyTypes: place fields in offset order and keep an embedded struct over views into it
Entity._sprite (ANM2, now its full 0x114) was being overwritten by _spriteOffset/_spriteScale/_isFlipX,
which are sprite members; every sprite access had fallen back to field_0x48/0x78/0x7c/0x8c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:46:55 -04:00
shweetandClaude Opus 5.5 3f88849636 ApplyTypes: classes with __thiscall methods keep a typed this even with no confirmed field
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 21:59:11 -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 03a56f217f Import anm2/rooms labels into db, embed struct fields, mine Lua getters for fields
- db/names.tsv: 163 names from src/anm2 and src/rooms labels (2 fix wrong ZHL names)
- ApplyTypes: embed known structs (Entity._sprite is an ANM2) instead of skipping them
- scripts/lua_fields.py -> lua_fields.tsv: 96 fields from the game's own Lua getters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:19:48 -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