Commit Graph
204 Commits
Author SHA1 Message Date
shweetandClaude Opus 5.5 b9c36dfa07 Full redump with round 15: 2421 more locals in the next 192 game functions, 41 prototypes from round 14
Level::ChangeRoom, Entity_Player::Render, Game::LoadConfigXmls, MenuManager::LoadGraphics, Leper, ... 1801 prototypes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 07:19:49 -04:00
shweetandClaude Opus 5.5 32a702cd50 Full redump with round 14: 2240 more locals in the next 144 game functions, 29 prototypes from round 13
Manager::load_configs, Room::SpawnGreedModeWave, Menu_Options::Update, Blastocyst, Hive, Visage mask, Fistula, ... 1763
prototypes applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:39:16 -04:00
shweetandClaude Opus 5.5 4b8210b900 Full redump with round 13: 2126 more locals in the next 119 game functions, 19 prototypes from round 12
GameState::write_player, Level::load_room, Mega Satan's hand, The Haunt, PlayerHUD::RenderHearts, TrapDoor, familiar AIs, ...
005d2a70 did not decompile inside ApplyLocals (PTRSUB off of non structured pointer type) and waits with UseCard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 05:59:34 -04:00
shweetandClaude Opus 5.5 1da26aa0e7 Full redump with round 12: 1511 more locals in the next 80 game functions; ApplyLocals skips a clashing name instead of aborting
3899 of 3920 db/locals.tsv names now show in the dump (UseCard's 56 still wait). Delirium, Heretic, Reap Creep,
Entity_Effect::Render, Game::BombTearflagEffects, Menu_Stats, ... plus 18 prototypes from round 11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 05:19:48 -04: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 8e6b947042 Full redump with 15 prototypes from the locals round; ApplyLocals raises the decompiler's instruction limit for UseCard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 03:26:24 -04:00
shweet f09ffd4617 Boss fidelity 4 notes: FireProjectiles modes 2/4/5 boost, mode 9 without the fall base, MoveRandomly/FindGridPath friction conventions, the Rebirth boss audit 2026-10-26 01:09:16 -04:00
shweet 5d770fcd37 Pass 9 monster fidelity notes: fall-base audit, release/friction audits, 58 uncited records, open proposals 2026-10-26 01:06:30 -04:00
shweet a2908ab675 notes: trinkets/cards batch 5 (rif/trinkets-cards-2) 2026-10-26 00:57:25 -04:00
shweet 3feadea8b0 notes: items sweep 15 2026-10-26 00:57:17 -04:00
shweet b0b3222f59 Notes: visual polish findings (wisp size layers, costume colours, 1000.151 rings, boss overlays, Rotgut rings and pixelation, Ascent music layers and heaven door, TearHalo) 2026-10-26 00:23:40 -04:00
shweet 40d52de334 Greed pass 2: port status 2026-10-26 00:09:15 -04:00
shweet ebe04d25b0 Greed pass 2: pool tables, shop level, Taurus re-arm, Ultra Greed init/slot/shoot/death details 2026-10-26 00:09:08 -04:00
shweet 4883b7a06f notes: monster fidelity pass 8 (engine features: Army Fly seek, Bubbles geyser decode, pitfall player update, Cultist hide pick, Mother Ball free rays; tier b groups j1-j5) 2026-10-26 00:01:43 -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
shweet e31637ca19 notes: Greed/Greedier fidelity pass (rooms/greed stage ids, generate_greed map and antechamber trigger, SpawnGreedModeWave tables, button, devil door, rewards, donation machine unlocks); greed wave fields 2026-10-25 22:43:19 -04:00
shweet b60c4ca2c9 notes: boss fidelity 3 (Mega Satan hand commands and respawn, fire colorize, Mama Gurdy retreat, Chimera runs/rolls/catch, BOOMERANG has no handler, Fistula, Gideon defeated) 2026-10-25 22:14:38 -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
shweet 40e8fee5a3 characters_11: fix the costume note's character and path 2026-10-25 21:40:04 -04:00
shweet ac5188c4e6 characters_11: Birthright notes (Belial passive, Bethany, Tainted Bethany wisps, costume colours) 2026-10-25 21:39:54 -04:00
shweet 7ea12c236e notes: pass 7 monster fidelity (engine leftovers, groups i1-i7, push-order audit a1) 2026-10-25 21:38:17 -04:00
shweet 00dacd9193 notes: side view (room type 16) and Rotgut's crawl space chain 2026-10-25 20:53:57 -04:00
shweet 6279dabf83 notes: boss fidelity pass 2 (Mega Satan's 26 + 9 Shoot patterns, its pick, projectile wiggle/curve flags, red Mega Maw / Gate, Rag Mega, Mama Gurdy, Chimera, pass 1 gaps); projectile fields 2026-10-25 20:26:24 -04: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 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
shweet 75fa19c574 names: umbilical rope force, creep contact and hallowed ground setters (characters pass 11) 2026-10-25 20:05:35 -04:00
shweet 33f9f9a40f notes: characters pass 11 (Dark Esau appear and Birthright, umbilical rope, laser gore, bone throws, Forgotten Chain, T??? death and brown creep) 2026-10-25 20:05:24 -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
shweet 4642e8eeb1 notes: items sweep 14 read-not-ported (GB Bug, Worm Friend, Lil Spewer, Fruity Plum, Bird Cage, Genesis, Death Certificate, Suplex) 2026-10-25 19:16:51 -04:00
shweet ae36e13486 notes: items sweep 14 (red rooms, member card, D1, D infinity, glowing hourglass, bone spurs, lil dumpy, mystery egg, the swarm, samson's chains, jaw bone) 2026-10-25 19:10:24 -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
shweet 26ca85f8ce notes: ascent port status 2026-10-25 18:27:45 -04:00
shweet a52f5abb5b notes: Rotgut's maggot (NpcAI::ENTITY_ROTGUT_maggot attacks, crawl space rooms) 2026-10-25 18:27:37 -04:00
shweet 58752119fa notes: the Ascent (pre-ascent flag, Dad's Note's Mausoleum room, white-out timer, backwards stages, backwards generator, SetNextStage on the Ascent) 2026-10-25 17:54:21 -04:00
shweetandClaude Opus 5.5 3f1e276667 ApplyTypes: a field of unknown type (std_map, DeathmatchManager) names its first dword instead of being dropped
Shows &g_game->_deathmatchManager (462 uses of field_0x26614) and lets ItemConfig grow past a 4-byte stub, so Manager
accesses read (g_manager->_itemConfig).field_0xc. Takes effect on the next build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:52:42 -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
shweet 0eb78686a1 db/fields: Room alive enemy and boss counters (0x12c0, 0x12c8) 2026-10-25 17:51:22 -04:00
shweet 14a4468476 notes index: boss fidelity 1 (and the headings added since the last regeneration) 2026-10-25 17:50:57 -04:00
shweet c7442c0450 notes: boss fidelity 1, Mega Satan 2 wording 2026-10-25 17:50:50 -04:00
shweet 72461cf741 notes: boss fidelity 1, Mega Satan 2 left for later 2026-10-25 17:50:42 -04:00
shweet fef3e43e36 notes: boss fidelity 1, Lamb body 2026-10-25 17:49:00 -04:00
shweet 960c4968b7 notes: boss fidelity 1, Turdling 2026-10-25 17:45:24 -04:00
shweet 6e2519eafa notes: boss fidelity 1, Gurgling pair 2026-10-25 17:42:46 -04:00
shweet 24e33d17a1 notes: boss fidelity 1, Rainmaker 2026-10-25 17:31:26 -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
shweet 6710a6dfd9 notes: boss fidelity 1, Mr. Fred and Lil Blub 2026-10-25 17:22:49 -04:00
shweet 4e470558f9 notes: boss fidelity 1, Baby Plum 2026-10-25 17:19:46 -04:00
shweet d7b3e95fdc notes: boss fidelity 1, Mega Maw and The Gate 2026-10-25 17:11:45 -04:00
shweet 192e55b7ba notes: monster fidelity pass 6 (55 Rebirth records in pass6_h1..h5, the pass-5 proposals built and the speed/fly audits in pass6_engine) 2026-10-25 17:07:25 -04:00
shweet 46f88ca26b notes: boss fidelity 1, Sisters Vis and the room's boss counters 2026-10-25 16:52:51 -04:00