Commit Graph
25 Commits
Author SHA1 Message Date
shweet aefd3e2098 Test round 1 fixes (headless harness, about 8M frames, 731 items, 41 characters, every floor and menu, entity sweeps and 1,100 fuzz runs): EntityList's destructor frees the room's entities on restart (00417e50, a pool leak that crashed long sweeps), the Online Awards stats page (Menu_OnlineAwards, 008e6a80), Mr. Me's wisp errand across rooms, the boss warning count, tooth, coin and stone tear sprite scale, NPC status first-match order, an effect's idle animation range 2026-11-23 20:19:41 -05:00
shweet cc77c923e8 Curation round 26 (code only): the Siren, Singe's body and Butt Slicker, DebugRenderer and the hitsphere and player-info debug views, saved key bindings for menu actions, Mega Blast, 4.5 Volt, C Section, Mom's Bracelet, Book of the Dead and Everything Jar, and a parity audit of the player, pickups, level, familiars and Entity_NPC fixing about 90 differences; 005832c0 and 0058a010 renamed 2026-11-23 09:47:38 -05:00
shweet 534339a496 Curation round 24 (code only): pickups and slots, level generation with the Ascent and the Death Certificate return, rooms and grid entities, Game and Entity core with Polty, Clutch, Matriarch, Chimera, Bumbino and other bosses, the player's remaining branches, familiars and weapons, HUD and engine stubs, 004b6a90 renamed push_back, shared constants folded (66 duplicates, 38 main gaps) 2026-11-23 03:27:24 -05:00
shweetandClaude Opus 5.5 837aa06518 Curation round 1: 66 boot-path functions rewritten in src/; the game links into a Linux executable
Six agents took over ANM2/AnimationState/LayerState, ItemConfig, EntityConfig, StringTable/Font/FormattedText/RichText,
OptionsConfig/ChallengeParams and ModManager/ModEntry functions (FormattedText::parse checked against a transliteration
of its assembly on 200,000 random inputs). 174 field rows and 32 names from the round are merged into db/.
source_tree.py: a struct or class src/*.h defines is no longer emitted in classes.h (class takeover) and gets no stubs;
data labels get stub definitions. build/isaac links (64-bit ELF) and stops at the first function not reconstructed:
IsaacMain. Boot path 64/615 functions curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:13:25 -05:00
shweetandClaude Opus 5.5 264c401368 Full redumps with rounds 23-24: second-pass locals in the largest named functions, 270 prototypes from round 22
Round 23: 2490 locals in 50 functions (default names there 5761 -> 2946). Round 24: 1116 locals in 79 more.
3032 prototypes applied. db/protos.zhl also holds round 24's 12 prototypes for the next build.
scripts/locals_round.py: pick / locals / protos steps of a locals round (the /tmp copies were lost in a reboot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:42:50 -05:00
shweetandClaude Opus 5.5 b1b64761d0 Full redump with round 11: 1335 more locals named in the next 64 largest game functions (all applied)
UsePill, Game::Render, Entity_Laser::update_laser, Room::render_water, the Beast, CreateGlitchedCollectible, the NPC
dispatcher, ... Entity_Player::UseCard still fails in ApplyLocals ('Bad instruction count exceeded', not the instruction
limit: raising it did not help), so its 56 rows wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 04:14:02 -04:00
shweetandClaude Opus 5.5 79259ccf8f Full redump with round 10: 1017 local variables named in the 37 largest game functions
Entity_Player::UseActiveItem/update_effects/EvaluateItems/Update/TakeDamage, Entity_Tear::Update, Entity_Familiar::Update,
EntityConfig::LoadEntities, Room::Init, Level::place_special_rooms, Hush, Mega Satan, ... (only single-role variables:
damageSource, isPenalized, genRng, secretRoomIdx, daemonsTailRng). Entity_Player::UseCard's 56 rows did not apply
(ApplyLocals could not decompile it this run; it now prints the decompiler's error).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 22:57:49 -04:00
shweetandClaude Opus 5.5 40e518bc76 Full redump with round 9 prototypes (1716 applied) and KAGE_LogMessage returning again
Ghidra had KAGE_LogMessage marked non-returning, so ~1,200 functions were cut off at their first log call. ApplyProtos
clears the flag on any function with a RET, re-disassembles after its calls and regrows the callers: 'does not return'
5337 -> 2355 (all genuine: _invalid_parameter_noinfo_noreturn, _Xlen, _CxxThrowException), dump 1.235M -> 1.299M lines.
596 more prototypes, ~20% with REPENTOGON register notation: param_N lines 44610 -> 42588, in_XMM 1237 -> 734.
12 renames from the agents (HUD::LoadGraphics at 008ed350 = Menu_OnlineLobby::load_member_sprite, Room::MamaMegaExplosion
= Weapon::fire_bomb, vector_iterate_noop = PlayerManager::get_total_luck, log_room_transition = RoomTransition::start, ...).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 21:41:31 -04:00
shweetandClaude Opus 5.5 df5db46f62 Full redump with round 8: 471 confirmed prototypes (1103 applied, was 622); ApplyProtos takes free functions
Every db/protos.zhl line is checked against the callee's RET n. Typed parameters make more pointers typed: named
->members 104k -> 115k (field_0x 3946 -> 4576 as newly typed pointers show their unknown members), param_N lines
47349 -> 44610. 83 targets skipped: XMM float args/returns or ECX/EDX + caller-cleaned stack (whole-program optimisation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:21:16 -04:00
shweetandClaude Opus 5.5 57cb93d778 Full redump with round 7: 465 names + ~40 corrections, 208 fields; stale REPENTOGON structs verified
field_0x 5868 -> 3946, named ->members 99k -> 104k, unnamed code 19% -> 13.5% of bytes, 9132 FUN_ left.
LayerState/ChallengeParam/DailyChallenge/Menu_Online/GameStateItemPool/ItemPool_Item/BackwardsStageDesc, left in Ghidra by
an early unfiltered import, now come from 86 verified rows (all offsets held; GlowingHourglassState's tail is +0x188 here).
Corrections: libpng/libjpeg/libvorbis misnames, wrong ZHL matches (Manager::ResizeWindow = Cutscene::ANM2Part::Update,
NPCAI_Pathfinder::EvadeTarget = netplay), GameOver::Show, Level::load_room. std::vector<bool> is 0x10 (bit count).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:32:02 -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 55ff607849 Full redump with round 5: 600 function names, 11 corrections, 27 fields, 66 globals; drop ECX-offset class placement of FUN_
The FUN_ placement (1d43433) fit any small-offset function to a dense class: 29 library functions went to OptionsConfig,
ScoreSheet/Popup/NightmareScene/Room code to Entity_Player or Entity. Reverted, and the 72 placed functions moved back to
global. Corrections include wrong ZHL signature matches (Entity_Familiar::RestoreState is a libpng writer,
Entity_Pickup::TriggerShopPurchase a netplay message reader, LoadArchiveFile is Gamepad_processEvents) and
theora/vorbis/miniz misnames. 10134 FUN_ left; raw in_ECX + 0x 17363 (+1.1k from the un-placing).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:51:30 -04:00
shweetandClaude Opus 5.5 a928f6204f Full redump with 65 typed globals, 53 fields, 346 function names; apply_db.py writes atomically
g_game/g_manager typed: 1483 g_manager-> and 834 g_game-> member accesses now visible (field_0x 10636 -> 14385 counts them);
named members 81k -> 91k, raw in_ECX + 0x 18425 -> 16225. ApplyGlobals takes array types (char[5]).
apply_db.py used to truncate all.c before computing the new text, so a killed build left it empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:25:09 -04:00
shweetandClaude Opus 5.5 32c608fb18 Full redump: typed this for 783 methods by ECX fit; in_ECX raw accesses 24003 -> 18425, named members 81k -> 93k
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:28:39 -04:00
shweetandClaude Opus 5.5 78730f0352 Full redump with the sprite fix: field_0x 31459 -> 24359 (npc-> 13022 -> 6874), 20 decompile failures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 23:06:50 -04:00
shweetandClaude Opus 5.5 67c8120d40 Full redump with confirmed prototypes (601) and typed this for every method class
raw param/ECX offset accesses 29249 -> 25173 (now typed pointers), undefined4 params 3266 -> 3064

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:45:19 -04:00
shweetandClaude Opus 5.5 a317ff1f22 Full redump with tier-3 names and corrections; vtable names in Ghidra
290 NpcAI routines typed (was 249), unnamed FUN_ 11761 -> 11128

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 21:14:59 -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 25d89ba2c0 Full redump: 712 db names, projectile fields, Hopper locals
field_0x 25610 -> 25448, unnamed FUN_ 11761, decompile failures 22 -> 21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 18:20:59 -04:00
shweetandClaude Opus 5.5 1fac9adbe2 Full redump: split zhl fields + tier-2 names applied; build.sh: reused failures are not retried live
field_0x 25918 -> 25610, unnamed FUN_ 12105 -> 11763

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 17:37:52 -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 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