Commit Graph
100 Commits
Author SHA1 Message Date
shweet a319517a5b Mod options on the overlay: Mod Config Menu and Dead Sea Scrolls settings as native widgets in Game Options' Mods tab; GPL-2 LICENSE; README trimmed to a short overview of the differences from Repentance+, its behaviour and libraries; REPENTOGON's reference checkout gitignored 2026-11-25 19:34:24 -05:00
shweet 2d2c4536da XML only, rapidjson, and the decompilation workspace removed
Game data is XML only: the JSON form of documents, the DataFormat option and Anm2Ed's JSON .anm2 loader are gone.
DataNode wraps pugixml alone, resource_find takes one path, and the read padding simdjson needed is dropped.
simdjson is replaced by rapidjson (external/rapidjson, upstream master: REPENTOGON's pinned 2016 commit does not
build with clang) for REPENTOGON's own JSON save files, through json_save's document and member helpers.

The decompilation workspace is removed (analysis/, db/, dump/, notes/, project/, scripts/): generated-src's
classes.h and stubs.cpp move to src/generated/, the overlay moves to src/overlay/ (with its console commands in
commands.cpp), and the build adds ccache, mold, precompiled headers, an optional unity build and a build/<platform>/
folder linking the resources, mods and assets. Also included: the save folder and options.ini flags (--saves,
--options, --help), Steam Cloud left offline, and further REPENTOGON vanilla fixes and player and room behaviour.
2026-11-25 05:01:29 -05:00
shweet 4ff67e2e96 REPENTOGON phase 5, complete: the render pipeline API, the last functions, XML and behaviour patches, EntitySaveStateEx, the Log window; ASMPatch and Steam-only tests not applicable (13 rows); the REPENTOGON global exposed as version 1.1.3 (e2c5aec); LuaBridge class __type and require search fixes; coverage 2,834 of 2,834; the 12 REPENTOGON mods run without errors alone and together; 72 goldens identical from converted resources and the install 2026-11-24 18:02:02 -05:00
shweet 8c95737332 REPENTOGON phases 3 and 4: XML extensions for players, items, pools, pocket items, achievements, challenges, cutscenes, giantbook, backdrops, boss colours and entities through the format-neutral data API; REPENTOGON's ImGui Lua API and console extensions on the overlay; behaviour patches behind REPENTOGON's options and the parity switch; save-state management and mod reloading; 72 goldens identical from converted resources and the install 2026-11-24 15:17:22 -05:00
shweet 881a82b325 REPENTOGON phase 2: about 1,880 of its Lua functions, properties and constructors ported onto the rebuild's classes (new classes CostumeSpriteDesc, History, PocketItem, LevelGenerator and others), REPENTOGON's changes to vanilla functions behind the parity switch; 72 goldens identical from converted resources and the install 2026-11-24 07:22:07 -05:00
shweet 6d8a43775d XML data layer: pugixml (external/pugixml, v1.15), a format-neutral DataNode API for every loader, DataFormat=auto|json|xml (default xml), KAGE's archive file system ported (index once, four unpackers, the original's mount order) so --resources can point at an install's resources/ with no import step, the original XML .anm2 loader beside Anm2Ed JSON, mods' own XML; 72 goldens identical from converted resources and from the install 2026-11-24 05:57:54 -05:00
shweet 74322af121 REPENTOGON phase 1: 361 of 396 callbacks fired at their original sites with REPENTOGON's arguments, filters and return handling, inert without mods (72 goldens identical), vanilla changes behind the parity switch; source_tree.py skips src/'s own template structs 2026-11-24 04:58:51 -05:00
shweet 2cc082f6ee REPENTOGON phase 0 (e2c5aec, GPL-2): ISAAC_REPENTOGON option (on), src/repentogon/ with the hidden REPENTOGON global switch, callback ids 1000-1499 with REPENTOGON's enable state and dispatch (priorities, optional and two-parameter filters, isolated errors), its scripts loaded from assets/repentogon/scripts, its options store and a vanilla-parity switch (on) in the overlay, scripts/repentogon_coverage.py and analysis/repentogon_coverage.tsv (2,834 rows) 2026-11-24 03:23:39 -05:00
shweet 78cb0775b0 Developer overlay from isaac-classic (ISAAC_OVERLAY, on by default): Dear ImGui docking (external/imgui), Unifont and Font Awesome in assets/fonts through git-lfs; Console, Game Options, Mods and Debug windows replace the drop-down console, always available, with no effect on EnableDebugConsole or achievements, and off under the harness. Resource paths: the game folder's own resources/ prefix and an absolute --resources directory resolve (the Fart animation failed to load with --resources) 2026-11-24 02:46:40 -05:00
shweet 2e30446824 Test round 3 fixes (unlocked content on Normal and Hard: odds and pools, every character, challenge, special seed and ending from the menus, unlock visuals, about 90 save and continue points, 72 stable goldens): Tainted Eden's Birthright survives Continue (GameState player fields), WeightedOutcomePicker::AddOutcomeWeight adds a new outcome only with a positive weight (0049cb60), Torn Pocket drops nothing from an empty pocket 2026-11-24 01:50:15 -05:00
shweet ee965dad25 Test round 2 fixes (wrong behaviour against the decompile: stats, combat, odds, level generation, visuals, the Lua API and 45 real mods): Blue Womb's last boss room is the start room (0074a500), Font:GetCharacterWidth takes a string and FontRenderSettings' wrap and truncation take a width, the original's callback error names, mod paths under --mods, SetStateFlag with a negative flag, the run timer hidden by default, popup and transformation text keys, room loads premultiply through a lookup table (about 3x faster, traces identical), --screenshot-every for windowed runs 2026-11-23 22:17:09 -05:00
shweet 7d407d5c19 Tidy the repo root: build.sh's derived tables into analysis/, build.sh, decompile.sh and find.sh into scripts/, stale by-products removed, .gitignore regrouped, README describes the src/ layout and the test harness 2026-11-23 20:24:03 -05:00
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 ff2c61a63a Test harness: --headless (no-op GL table with a CPU texel store, no window, audio or pacing), a virtual clock for every time read, --record/--replay of per-frame input, --frames, --trace state hashes and details, --mods for a private mods folder 2026-11-23 17:26:08 -05:00
shweet 7d3cf33c20 Sort src/ into subsystem folders (engine, game, level, level/grid, entity with player, npc, boss, familiar, effect, pickup and weapon, ui, ui/menu, lua, online), drop each folder's prefix from file names, include by path from src/, glob src/ recursively 2026-11-23 16:41:49 -05:00
shweet 9254158eef Curation round 29 (code only): Entity_Player::Update in the original's frame order, EvaluateItems' missing multipliers, sin, cos and atan2 widened to double like the game, the '#KEY' translate fix for menus, HUD and pause screen, item pool, chest, stage transition and Lua binding fixes; parity audit at 85% of lines 2026-11-23 16:34:18 -05:00
shweet 719e5ef04d Curation round 28 (code only): float pow, log and exp widened to double like the game, inlined HasTrinket preview handling, explicit RNG argument order, update_effects rebuilt in the original's order, weapon vtable slots, null-frame reads, and a parity audit finishing every boss, every enemy, the level and most rooms, grid entities and weapons; misnamed pill and null-item ids corrected (55 duplicates) 2026-11-23 14:40:39 -05:00
shweet e66baf4063 Curation round 27 (code only): Weapon_Bone::Fire and the fetus tear (no offline gaps left), TakeDamage's interleaved hit order, 74 SetAnimation reset flags corrected, and a parity audit of every boss, every enemy, the rest of the player and tears, effects and familiars; one normalize_angle_degrees, IsTargetInAttackRange defaults (59 duplicates) 2026-11-23 12:08:14 -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 5c89798773 Curation round 25 (code only): the ultra horsemen and the Beast's background, the Scourge and Polty, the player's last gaps with the frame gate removed, game core, debug and daily, local co-op and player-controlled enemies, TMTRAINER, local versus, the vanilla Lua API, the special-daily fix, shared constants folded (60 duplicates, 10 offline gaps) 2026-11-23 07:35:21 -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
shweet 11c71fe041 Curation round 23 (code only): the Mods menu and HUD pieces, Dogma and the Beast, Visage, Hornfel and other bosses, enemies and Entity_NPC branches, player revivals and missing methods, the player's frame, familiars, lasers, weapons and bombs, shared constants folded (115 duplicates, 385 gaps) 2026-11-23 00:41:14 -05:00
shweet b9405bfb31 Curation round 22: every NpcAI below type 400, Repentance bosses and Rotgut, the player's last branches, clots and familiars, bomb tear effects and chain lightning, Mother and Home to Dogma, Greed and Greedier, the new Anm2Ed JSON loader, shared IDs folded (135 duplicates) 2026-11-22 21:57:51 -05:00
shweet 6a11163842 Curation round 21: rock drops, Boss Rush and room setup, Dross, Ashpit and Gehenna enemies, Book of Virtues wisps and Dream Catcher, the last familiars and effects, player damage branches, a Corpse floor and Abyss crash fix, shared constants (186 duplicates) 2026-11-22 11:00:43 -05:00
shweet 8dbeb1bc4a Curation round 20: player update, costumes and render, Missing No., the last actives and cards, familiars, Pin, the Frail, Wormwood and the Heretic, Dross to Gehenna, effects and the devil room purchase, champion colours, the quit path, save fields, shared vector helpers 2026-11-22 00:33:35 -05:00
shweet ee863e70e6 Curation round 19: EvaluateItems and charged shots, actives split into Rebirth and Repentance dispatches, cards and runes, champions and death effects, War, Death, Uriel and the boss sweep, Delirium, T. Lilith's Gello and familiars, effects, price sprites and the devil room 2026-11-21 15:05:20 -05:00
shweet 9dfc09518c Curation round 18: tears and four weapons, passive item and trinket sweeps, pills and most cards, alt path and main path enemies, Hush and the Blue Womb, Mega Satan, the Void, Tainted ???, Forgotten, Lilith and Eden, wisps 2026-11-21 10:34:58 -05:00
shweet 024cb12016 Curation round 17: Theora and Vorbis cutscene videos, Ludovico, Epic and Dr. Fetus, Tractor Beam and Eye of the Occult, familiars and blue spiders, fortune teller and restock, the Bag of Crafting and four tainted characters, ten enemies, water and the ultra secret door, Isaac, ???, the Lamb and Hush 2026-11-21 01:27:03 -05:00
shweet e9de039d0f Curation round 16: Mom's Knife and the bone club, sin minibosses and death rewards, slots and beggars, NPC rendering and twelve bosses, alt path visuals, the Forgotten's flight and tainted HUDs, Sheol and the Cathedral to the credits, familiars and transformations 2026-11-20 22:44:36 -05:00
shweet 76c594f9a0 Add Ogg, Vorbis and Theora as static decoder-only submodules for cutscene videos 2026-11-20 20:56:57 -05:00
shweet 78a2680134 Curation round 15: restart and mods, Brimstone and Tech X, room gaps, eight bosses, the Womb and Mom's Heart, the Forgotten and tainted starts, alt path enemies and exits 2026-11-20 20:54:59 -05:00
shweet 6e3da161fc Curation round 14: console and Lua API, effects, lasers, enemies, eleven bosses, the Depths and Mom, status effects, the playable characters 2026-11-20 19:04:41 -05:00
shweet 8ae02a8422 Curation round 13: grid entities, more enemies, Caves, boss helpers and five bosses, chests and costumes, curses and alt stages, the Lua API 2026-11-20 16:32:45 -05:00
shweet f8ce24fc6c Curation round 12: basement enemies, projectiles, tear flags, lighting and blend modes, actives, boss deaths, familiars, shops and secret rooms 2026-11-20 14:25:15 -05:00
shweet 698eeb74e9 Curation round 11: effects, room clears, items, Continue, bombs, active items, the boss and Basement II 2026-11-20 11:54:27 -05:00
shweetandClaude Opus 5.5 d8385e6c64 Curation round 10: combat, pathfinding, death and game over, items and stats, room state, Continue, Lua callbacks
Seven agents took over tear and contact collision, NPC death with blood and gibs, champions, PathFinder, the Gaper's
kin, the player's death with the game over screen, item pedestals with collectible pickup, AddCollectible and
EvaluateItems, room state save and restore, GameState::read, pressure plates, fireplaces, entity lights, ambient
sounds, and one Lua callback enum with gated runners. Integration reconstructed Room::Update's loot preview and
Entity_NPC::UpdatePickupGhosts and replaced a leftover Sacred Orb stub that stopped every pedestal roll.
Under gdb: Gapers die with blood and gibs, a cleared room opens its doors, the treasure room's item is taken (banner,
costume, stats: a Magic Mushroom gives damage 3.5 -> 6.12 and a heart), death leads to the game over diary, and a saved
run is read back on the next boot with Continue offered. 3028 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:55:14 -05:00
shweetandClaude Opus 5.5 48933cd312 Curation round 9: floors and walls, room transitions, collision, the first enemies, saving, damage, pickups
Seven agents took over the backdrop's floor and wall rendering, room transitions (StartRoomTransition, on_leave,
room_enter), grid collision with tear hits and decal baking, Entity_NPC's core with the AI dispatch and the first
enemies (flies, Gaper, Pooter, Clotty, Horf, Dip, Spider), the run's save, player damage, PlayerManager::Update,
ShowName, pickups, slots and the common effects. Integration added LuaEngine::PostNewLevel/PostNewRoom, one shared
lua_callback_check (4 copies merged) and the enemy type range the original checks.
Under gdb a run draws its rooms with floors and walls, walks between rooms, fights Gapers with contact damage and the
damage flash, and collects pickups. Next: tears hitting enemies, pathfinding, item pedestals, death.
2891 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 08:24:38 -05:00
shweetandClaude Opus 5.5 69a354f843 Curation round 8: the first room plays: Isaac walks and shoots tears
Eight agents took over Room::Init's pieces, RailManager, Room::Render/render_lighting/Update, the GridEntity hierarchy
(walls, doors, rocks, pits, poop ...), Game::Update and interpolate_update, the run's save, update_ingame_input,
Game::Spawn with the entity factory and grid collision, the player's movement and tears through Weapon/Weapon_Tears,
PlayerManager's positions, the camera focus, MinimapConfig, PlayerHUD, mod shader rendering, Entity_Tear and
Entity_Effect. Integration wrote Level::get_secret_exit_kind, shared the secret-exit enum (four copies merged) and
fixed the generator's vtable-stub check (word boundary and namespace, not a substring).
Under gdb a run reaches the first room: doors, HUD with hearts and minimap, WASD movement with acceleration, arrow-key
tears that fly and splash. Floor and walls (Backdrop::RenderFloor/RenderWalls) and room transitions are next.
The official build/isaac reaches the start room and stops at Entity_NPC::Redirect. 2770 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 06:43:01 -05:00
shweetandClaude Opus 5.5 b85591bdf4 Curation round 7: Game::Start, level generation, Room, Camera, the Entity hierarchy, Entity_Player, the run frame
Six agents took over Game::Start, Level::SetNextStage, BossPool, save_game_state, level generation to the first room
(place_special_rooms, RoomDescriptor, load_room), Room, Camera, Entity/EntityList/EntityRef with a curated skeleton of
every Entity_* subclass, Entity_Player, Game::Render, Manager::Update's run branch, RoomTransition, ItemInfoHUD and
StatHUD. Integration wrote FirstTrinketOwner and room_shape_get_door_grid_index (checked against the decompile for
every shape and slot) and folded the duplicated constants. A run now generates its floor, loads the start room and
draws the HUD (under gdb); Isaac renders correctly when drawn, the room itself waits for Room::Render.
2479 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 05:33:11 -05:00
shweetandClaude Opus 5.5 addd027977 Curation round 6: boot finished, the run starts; HUD, pause screen, minimap, preloads, floor generation
Six agents took over OnlineEmotes (emote wheel), OnlineStatsScreen's deeds, VictoryRunPrompt, RevivePlayerMenu, HUD,
PauseScreen, Minimap, PreloadManager, ProceduralItemManager, Game::LoadBossRushXml, GameState's loading, the menu loose
ends, Manager::StartNewGame, LevelGenerator and Level (Game now derives from Level). Integration: completion_widget.h
breaks an include loop, call sites moved to the new APIs. --mute (main.cpp) keeps the mixer running at zero gain.
build/isaac reaches the main menu by itself (input skips the intro); under gdb, picking a character calls
StartNewGame and stops at Game::Start. 1611 functions taken over, boot path 287/615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:09:22 -05:00
shweetandClaude Opus 5.5 fed6918a10 curate_brief.js: test runs are muted and skip the intro
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:54:44 -05:00
shweetandClaude Opus 5.5 233d5123e8 Curation round 5: Game construction, FXLayers, PlayerManager, the menus; the main menu renders
Eight agents took over ScoreSheet, DeathmatchManager, giantbook and boss overlays, FXLayers, PlayerManager, the menu
manager with the save and prompt flow, twelve menus (character wheel, options, challenges, daily (offline), special
seeds, leaderboard (local), collection, bestiary, stats, controller select, key config, cutscenes), console text input
and gamepad hot-plug through platform listeners. Integration moved input to device ids.
KAGE's projection matrix now reaches the 'ProjectionMatrix' uniform the basic shaders from afterbirthp.a declare, as
well as the exe's 'Transform', which takes the color-mod and HQ4X passes from black to correct output.
Under gdb with stubs skipped, the intro, title, file select, main menu and character wheel render as in the game.
1330 functions taken over, boot path 261/615. build/isaac stops at OnlineEmotes::init in Game::LoadConfigXmls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:59:23 -05:00
shweetandClaude Opus 5.5 fd8b965350 Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes
Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the
clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's
output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An
integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34
installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the
intro cutscene plays through and the main menu's frame loop runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 01:32:19 -05:00
shweetandClaude Opus 5.5 ddf913f304 Curation round 3: Lua engine, Manager, sound, menus, cutscenes, rooms, item pools, saves; boots past LuaEngine::Init
Seven agents took over LuaEngine (the mod API registration deferred), the rest of Manager (LoadConfigs, fonts, render
surfaces, Update/Render), MusicManager/SFXManager, MenuManager with the title/save/game menus, Cutscene/NightmareScene/
Backdrop, RoomConfig (src/rooms ported and retired) with ItemPool, and PersistentGameData (the original binary save
format) with InfoDisplay. An integration pass moved call sites to the new APIs, declared the taken-over free functions,
fixed two data.cpp crashes (an empty children array, null attribute strings), and made the generator keep a header's own
name where a prototype names another address. Clean build (0 warnings with -Wall -Wextra). build/isaac runs the game's
Lua scripts (without the mod API yet) and stops at reload_resource_paths. 901 functions taken over, boot path 204/615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:53:08 -05:00
shweetandClaude Opus 5.5 a7061306fa curate_brief.js: declare taken-over free functions in a header, keep decompilation notes, full include paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:41:48 -05:00
shweetandClaude Opus 5.5 d5c7b29bad notes/systems: keep the anm2 and rooms decompilation write-ups the src/ ports retired
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:41:40 -05:00
shweetandClaude Opus 5.5 e35ad1316f curate_brief.js: Manager is taken over
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:04:59 -05:00
shweetandClaude Opus 5.5 28e2e48842 Curation round 2, wave B: ItemConfig, EntityConfig, mods, Manager and the KAGE platform on SDL3; boots to LuaEngine::Init
- item_config, entity_config and mod_manager take over their families as idiomatic classes (std containers,
  unique_ptr, bitset tear flags). Every big loader reads the imported JSON: entities2.xml gives 1349 entities.
- manager.h/.cpp take over Manager (g_manager) and IsaacStartup. Members are the curated subsystems by value.
- kage_graphics, kage_input and kage_sound take over KAGE's graphics (shaders, render targets, batches, PNG through
  stb_image), input (SDL3 keyboard, mouse, gamepads) and sound (SDL3 audio, wav and stb_vorbis ogg, pitch and volume).
- source_tree.py: classes inside a namespace block in src/ headers count as taken over, and a still-generated class's
  vtable slot keeps its stub unless src/ defines that exact method.
build/isaac opens the window, sets up GL 4.6, framebuffers and PulseAudio, logs the version, and stops at
LuaEngine::Init. 522 functions taken over, boot path 156/615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:03:39 -05:00
shweetandClaude Opus 5.5 346dc95e13 scripts/curate_brief.js: the curation round brief (whole-class takeovers), kept in the repo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:17:39 -05:00
shweetandClaude Opus 5.5 0afb31d503 external/: stb (stb_image for the game's PNGs, as in smack-a-brother)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:16:59 -05:00
shweetandClaude Opus 5.5 780767f5e1 Curation round 2, wave A: anm2 (Anm2Ed JSON), text, config as idiomatic classes; SDL3 platform opens a window
- anm2.h/.cpp take over ANM2, AnimationState, LayerState, AnmCache and the frame data. They read Anm2Ed's JSON documents
  with simdjson and play them as the game does (interpolation baked at load). src/anm2/ and msvc.h are retired.
- font, formatted_text, string_table and rich_text take over the text classes. FormattedText::parse is still bit-exact
  against its assembly.
- options_config and challenge_params take over OptionsConfig, ChallengeParams and the .ini helpers. The tests include
  Save's exact bytes.
- platform.h/.cpp and main.cpp run IsaacMain on SDL3: the window and GL context open, and the run stops at the first
  built-in shader (FUN_00a13fa0).
- source_tree.py: a taken-over parent stays bytes, taken-over methods are not re-emitted as a namespace, and every
  address in a (a, b, c to d) list on a comment counts as taken over.
- log.h: reconstruction_missing() for a taken-over class's methods that are not written yet.
206 functions taken over, boot path 89/615. The full build waits for wave B: item_config, entity_config and mod_manager
still use the old APIs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:04:54 -05:00
shweetandClaude Opus 5.5 d6e1ca7c6c data.h: resource_path (lowercased, as the game normalizes); .anm2 files are Anm2Ed JSON documents
The import tool now writes every .anm2 as Anm2Ed's JSON document under its own name (anm2ed convert --format json),
as isaac-classic does; other XML keeps the generic {tag, attrs, children, text} mapping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:31:16 -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 8c31c98a81 notes/systems/filesystem.md: the packed .a archive format; data_path lowercases like the game
The import tool (tools/import.py, gitignored) unpacks all 22 archives (checksums verified), converts XML and anm2 to
JSON and writes every path lowercased, matching the game's case-insensitive lookups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:56:56 -05:00
shweetandClaude Opus 5.5 08ca87dded src/gl.h: the OpenGL entry points the game calls, loaded through SDL (no libepoxy), as in smack-a-brother
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:45:50 -05:00
shweetandClaude Opus 5.5 2b108ca729 Generated stubs: the build links into a Linux executable that runs as far as src/ goes
source_tree.py writes generated-src/stubs.cpp: every function, vtable slot and import src/ has not taken over, defined
as a stub that prints 'Reached <name> <address>, not reconstructed yet' and stops. CMake builds src/*.cpp + stubs into
the isaac executable, so each run names the next function to curate. src/main.cpp hands over to the game's IsaacMain.
Classes with only parameterised constructors get a defaulted one, so stub constructors of their holders compile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:44:40 -05:00
shweetandClaude Opus 5.5 9d4d4f5c64 Build 29: zero-length placeholder structs, generated-src with standard types
--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:41:34 -05:00
shweetandClaude Opus 5.5 2d3c4eb75b src/data.h: the curated loaders' view of a converted game document (resources/<path>.json via simdjson)
Elements are {tag, attrs, children, text} with attribute strings as written, so a loader walks them the way the game
walked rapidxml nodes and converts values with the same semantics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:33:10 -05:00
shweetandClaude Opus 5.5 1326bb1571 source_tree: generated code coexists with the standard library and simdjson
Ghidra's primitive names become the standard types they are (undefined4/uint/ulong -> uint32_t, byte -> uint8_t ...;
Ghidra's ulong is 4 bytes, glibc's 8); the prelude includes the C library headers and every Ghidra type, global, import
or free function the headers already declare is left to them; the MSVC STL stand-ins move to namespace msvc. A curated
file can now include <string>, <vector>, simdjson.h and classes.h together. Body rate unchanged: 877/3256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:30:14 -05:00
shweetandClaude Opus 5.5 0b86c1071f external/: simdjson v5.1.1; the game reads JSON that an import tool makes from the player's install
Config and .anm2 data are converted from the install's XML (and packed archives) into a gitignored resources/ by a
tool in the gitignored tools/, as in smack-a-brother. The game has no XML parser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:27:08 -05:00
shweetandClaude Opus 5.5 199c3d3d2b external/: SDL3 (release-3.4.20) and Lua 5.3.6 as static submodules, wired into CMake
SDL3 replaces GLFW, Win32 and OpenAL (window, OpenGL context, input, gamepads, audio), trimmed to those pieces as in
smack-a-brother. Lua 5.3 keeps the mod API. Online features become offline stubs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:14:59 -05:00
shweetandClaude Opus 5.5 832ea0297b source_tree: db/fields.tsv (and --fields files) overlay the build's field list, so a new field needs no Ghidra rebuild
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:12:39 -05:00
shweetandClaude Opus 5.5 4badd39376 source_tree --check: report boot-path curation (what Manager::Init reaches, the first milestone)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:12:06 -05:00
shweetandClaude Opus 5.5 3ce74c6e2d Reconstruction layout: generated-src/ (generated) and src/ (curated), CMake, the first takeover: RNG
The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function
defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body.
src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read
from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT,
from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra).
structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:10:23 -05:00
shweetandClaude Opus 5.5 2ff2d5d87f source_tree: pointer casts through GHIDRA_CAST (a float holds the pointer's bits); ApplyTypes: zero-length placeholders
MSVC copies pointers through XMM registers, so Ghidra types some as float: those casts now reinterpret the bits
(float-to-pointer errors 2415 -> 171). Classes with no known field get a zero-length struct, so the decompiler stops
typing 4-byte values with them (applies next build). The hazard count now covers every raw (char *)x + n access: 32689.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:01:50 -05:00
shweetandClaude Opus 5.5 bafef76746 source_tree: STL member layouts, (int) casts that keep pointer width, EntityPtr as a pointer, Ghidra partial fields
Container fields use the MSVC layouts ApplyTypes gives Ghidra (vector_X -> std_vector ...); (int)/(uint) casts become
GHIDRA_INT/GHIDRA_UINT (32-bit numbers, full-width pointers); EntityPtr behaves as the raw pointer the code treats it
as; EXPR._0_4_ partial accesses become explicit offsets; field-less Ghidra placeholders no longer claim 4 bytes.
--check: 878/3262 method bodies compile for x86_64 (26.9%).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:58:28 -05:00
shweetandClaude Opus 5.5 fdfdb10137 Build 28: DumpAll exports types, globals and imports; the generated tree targets 64-bit Linux
DumpAll writes dump/types.tsv (Ghidra structs/unions with components, typedefs, enums with values), data.tsv (global
data labels with types) and externals.tsv (imported functions). source_tree.py lays the Ghidra types out with the
classes (591 types, 347 sized), declares every global, import and code label, drops Windows calling conventions,
leaves third-party classes (std, rapidxml, theoraplayer, luabridge, stb_vorbis) declared but not reconstructed, turns
raw vtable calls on typed objects into named virtual calls and (int)p + n byte arithmetic into (char *)p + n.
The tree now targets x86_64 Linux; the original 32-bit layout stays as LAYOUT32 asserts, checked with -m32 (they hold).
--check: 775/3262 method bodies compile for x86_64 (23.8%), 23010 raw offset accesses left (64-bit hazards).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:54:04 -05:00
shweetandClaude Opus 5.5 177020866b Build 27: real class sizes in Ghidra's structs; src/game: generated C++ tree with method bodies
ApplyTypes grows each struct to its RTTI size: this[1] misreads 1363 -> 941, prototypes applied 3266.
scripts/source_tree.py now writes src/game/classes.hpp (477 classes, every free and namespace function declared,
Ghidra p-code intrinsics as macros) and one .cpp per class with its decompiled method bodies; member calls become
direct calls ((Class *)(obj))->Class::method(args) and field_0xN bytes explicit offsets. --check compiles the tree:
652/3315 method bodies compile against the header (19.7%), the rest mostly need the data globals and Ghidra types
DumpAll exports from the next build. CLAUDE.md is untracked (gitignored).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:18:39 -05:00
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 d4033485ba Full redump with round 25: 778 locals in 97 functions; ApplyProtos renames a local that blocks a parameter name
Prototypes applied 3163 -> 3241, rejected 113 -> 35 (a locals row had named the stand-in local like the parameter).
Round 25 agents may fix wrong names and retype in place (39 same-name rows). Dropped the row naming Level::load_room's
this 'pit'; locals_round.py no longer merges renames of this. Round 25's prototypes are held in db/protos.zhl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:59:02 -05:00
shweetandClaude Opus 5.5 24098479e7 ApplyProtos: read the purge from the RETs when Ghidra has none, trust db/ prototypes past that; log what it skips
Purge unknown 139 -> 11, prototypes applied 3032 -> 3163 (round 24's 12 included), param_N lines 33145 -> 31116,
in_ECX 35059 -> 32432; Room::Update/Render get a typed this. ApplyLocals: a same-name row with a type retypes in place,
and an unparseable type fails only its row. notes/decomp_issues.md collects what the round 23-24 agents found wrong.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:16:18 -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
shweet c4708deb51 Merge items/floors13 notes 2026-10-30 23:17:14 -04:00
shweetandClaude Opus 5.5 ff1a7e589b names/notes: floors13 - LevelGenerator for Repentance+ floors in isaac-classic: generate_dungeon's retries and photo-door block_cell, add_dead_end 0x9af1e0, try_resize_room's 14 spots and slots (the last read past the array), DetermineBossRoom's XL corridor, place_boss_room's XL second room, place_secret_room scoring, Level::get_secret_room_excluded_cells 0x738d70 (was Console::Print), place_special_rooms' required rooms; HasPhotoDoor 0x74f030 checked against the port's depths_ii key
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:14:01 -04:00
shweet a2536b4077 Merge items/ultra_secret follow-up notes 2026-10-30 22:22:19 -04:00
shweetandClaude Opus 5.5 4528d5c4cc Parity notes: ultra secret follow-up ported (pocket card outlines, stage 11 / HasPhotoDoor 0x74f030 start room exception, SetRoomTypes red-room normal doors, super secret colorize); the Abandoned Mineshaft's colorize left
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 22:21:45 -04:00
shweet ab107b3bba Merge items/ultra_secret notes 2026-10-30 21:57:28 -04:00
shweetandClaude Opus 5.5 d799646db4 Parity notes: ultra secret rooms and red rooms (place_special_rooms 0x739370's ultra secret step, try_place_room 0x9ae640, block_room_area 0x9b1860; UseRedKey 0x5b2360, UpdateRedKey 0x8271e0, CanSpawnDoorOutline 0x74cd70, get_door_neighbor_room 0x74cb50, MakeRedRoomDoor 0x74d010; Soul of Cain 0x7b7aed; type 29's pool, backdrop 50, music 0x33, colorize, map exclusions, door hole); Level::roll_red_room_type 0x74cea0 and get_red_room_neighbor_slots 0x74c9e0 named
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 21:57:00 -04:00
shweet f67f271995 Merge items/red_chest notes 2026-10-30 21:08:08 -04:00
shweetandClaude Opus 5.5 1184062f18 Parity notes: red chest (GetChestLoot 0x6dae40 variant 360 branch, TryOpenChest 0x6e6e40 spawning, ThrowSpider 0x6c2750, Pickup_PickVariant 0x6ddcd0's chest chain, POOL_RED_CHEST 9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 21:07:12 -04:00
shweet 690b01459a Merge items/pedestals notes 2026-10-30 20:03:21 -04:00
shweetandClaude Opus 5.5 4cefceb1d6 Pedestals parity notes: collectible Wait 20 (Init 0x6e02f0, Update 0x6e3940, HandleCollision 0x6e8ae0), other pickups' Appear/DropSound gate, Render 0x6e69b0's shared altar/item origin, FindFreePickupSpawnPosition 0x813520
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 20:02:44 -04:00
shweet 10775d097f Merge items/strange_key notes 2026-10-30 19:45:04 -04:00
shweetandClaude Opus 5.5 8aa913ef2b Strange Key's Pandora's Box branch (UseActiveItem 0x5ba903): pool table read as ItemPoolType (6/8/12 = library/golden chest/curse, correcting parity_rooms2), shuffle, spawn loop; rng_vector_at 0x5cbd00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:38:00 -04:00
shweet cba1310e2e Merge items/blue_rooms notes 2026-10-30 18:45:15 -04:00
shweetandClaude Opus 5.5 43b608e25f Blue rooms and Blue Key: GridEntity_Door::TryUnlock 0x710480 forces key/coin doors (variant 1/2) open for free and marks the target room (flag 0x40000), StartRoomTransition 0x6fd7c0 -> Level::prepare_blue_room 0x74d4a0 (target DecorationSeed RNG 5/27/28, Init3's three draws, shape 6/7 or 4/5, GetRandomRoom type 28 then any shape, doors to target and source), Level::ChangeRoom 0x73fc80 clearing the mark through the entered room's doors, load_room 0x73e0a0's dead end to negative rooms, SetRoomTypes' unlocked doors in room -16, backdrop 13 (LoadBackdropGraphics 0x7f1380), the blue door light, SpawnClearAward's multiplier; Level::get_door_slot 0x73d9b0 named
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 18:41:32 -04:00
shweet ea42962f58 Merge items/player_parts notes 2026-10-30 17:47:06 -04:00
shweetandClaude Opus 5.5 88b8393cfe Player parts: how Entity_Player::Update 0x782af0 transforms the head and body layer groups separately (UpdateCostumes 0x75bf00 marks layers 1, 2, 3, 11 as body; head layers take HeadTransform, _headScale, the head lift * 8; render_build_sprite_quad 0x409cb0 scales a layer about its frame pivot), Jelly Belly's wobble constants (0x787178), and the other part effects (Adrenaline, Tainted Magdalene's hug, Reverse Chariot shake, Berserk, Mars, CACHE_SIZE head scale in EvaluateItems 0x763570)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:43:06 -04:00
shweet 71e01c6ba8 Merge items/effect_update: Salvation beam cadence 2026-10-30 17:22:38 -04:00
shweetandClaude Opus 5.5 08fd9ee26e notes: Salvation beam cadence settled from the exe: ANM2::GetLayerFrame 0x40b1a0 is GetNullFrameById (null HitNull, hidden before the Hit, 16 frames after), EntityList::Update 0x4186c0 updates in insertion order and skips entities spawned this tick (AddEntity 0x418500 push_back), Entity_NPC::Update runs the new beam's first Update itself (0x6c8cfd) then re-arms it every tick in range: charges/rewinds one frame a tick, Hit after 24 charged frames, then one 3.5 hit per tick while re-armed (else every 3rd), at most 16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:22:23 -04:00
shweet 825d658d42 Merge items/effect_update: Crack the Sky case 19 2026-10-30 17:19:52 -04:00
shweetandClaude Opus 5.5 2ab2d8f43d notes: Crack the Sky 1000.19 (Entity_Effect::Update case 19 @0x5e96b5) from case decompile + asm: Spotlight/SpotlightDelayed/SpotlightDelayed2, Salvation's subtype 3 wait (playback speed 0 and rewind by time scale at state -1, re-armed by Entity_NPC::Update's set_state(1)), the target's charge-up colour (p = frame / Hit frame), Hit: sounds 0xad/0xac, ShakeScreen(5), 1000.18.1 crater, subtype 3's four variant-5 lasers at damage x0.5; damage every 3rd state tick while layer 0 is visible (2.0 to players from enemy beams, else collision damage to NPCs); timing interplay logged as a question
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:19:30 -04:00
shweet ab22edda78 Merge items/effect_update: decompile.sh --case and Entity_Effect::Update item cases 2026-10-30 17:16:52 -04:00
shweetandClaude Opus 5.5 e640efa18f notes: Entity_Effect::Update item cases transcribed via decompile.sh --case + asm: Salvation halo (case 123 @0x6064cc; its beams are Entity_NPC::Update's 1000.19.3), Trinity Shield (47 @0x5f2add), Luna moonlight (39.1 @0x5f2246 + timer callback 0x6073f0), Spear of Destiny (83 @0x5fea2f), Linger Bean cloud (105 @0x600dfc), Death Skull (109 @0x6029b5), Larynx/Mega Bean shockwave (127/202 @0x5fa30d) with Larynx's use from asm (pitch (n-8)*0.2+1.1, SetCollisionDamage(n*28+20), fade from n>=6), Mega Blast's laser damage (hit damage x5, x2 deathmatch), Meat Cleaver slash (176 @0x5df80d -> Entity_NPC::split 0x6d97e0), Vade Retro ghosts (144 @0x5d78ee), Ocular Rift (180 @0x5e1225), Jacob's Ladder chain lightning (167 @0x5e038f); names for 9 helpers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:16:16 -04:00
shweetandClaude Opus 5.5 9c1cc9c741 decompile.sh --case: decompile single switch cases of functions Ghidra times out on (Entity_Effect::Update 0x5d4380): DecompileCase.java patches the switch JMP at 0x5d47cc to jump straight to the case in a -readOnly copy and re-flows the body; all 139 cases decompile in ~90 s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:09:29 -04:00
shweet 308b17336a Merge items/death_certificate follow-up notes 2026-10-30 17:05:34 -04:00
shweetandClaude Opus 5.5 0aadfd025b Death Certificate follow-up: dimension maps (refresh_room_icons draws the current dimension's room map), transition 20's timing, and dimension 2's other rules read (pick_collectible's branch is a projectile variant; pit art from the room backdrop; rock drops never Mines)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:05:06 -04:00
shweet eb4952ed8f Merge items/death_certificate parity notes
# Conflicts:
#	db/names.tsv
2026-10-30 16:46:45 -04:00
shweetandClaude Opus 5.5 35955a3517 Death Certificate and dimension 2: Level::generate_dark_closet 0x751650 (was GenerateHome), Level::enter_dark_closet 0x7515c0, the LevelGenerator's tables and growth, the way back (RemoveOtherOptions, Game::Update, ChangeRoom) and dimension 2's looks; notes/items/parity_death_certificate.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 16:45:54 -04:00
shweet eb485534ed Merge items/familiars2 follow-up notes 2026-10-30 16:04:41 -04:00