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>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 06:43:01 -05:00
1 parent b85591bdf4
commit 69a354f843
140 files changed
+23561 -20206

No files matched your search

+6 -2
View File
@@ -566,11 +566,15 @@ def stub_define(owner, decl, addr): # a declaration as a definition that stops
label = (f'{owner}::' if owner else '') + name + (f' {addr:08x}' if addr else '')
return text.replace(name + '(', (f'{owner}::' if owner else '') + name + '(', 1) + f' {{ generated_stub("{label}"); }}\n'
incomplete = {t for t in forward if t not in done} | {c for c in curatedClasses if '::' in c}
srcText = ''.join(open(os.path.join(root, n), errors='replace').read() for root, _, names_ in os.walk(srcDir) for n in names_ if n.endswith('.cpp'))
srcTexts = [open(os.path.join(root, n), errors='replace').read() for root, _, names_ in os.walk(srcDir) for n in names_ if n.endswith('.cpp')]
def src_defines(owner, method): # src/ defines owner::method: qualified, or by its short name at top level or inside its namespace block
space, _, short = owner.rpartition('::')
pattern = re.compile(rf'(?<![\w:]){re.escape(short)}::{re.escape(method)}\(')
return any(f'{owner}::{method}(' in t or (pattern.search(t) and (not space or f'namespace {space}' in t)) for t in srcTexts)
def stub_wanted(owner, decl, addr, isSlot=False): # a vtable slot of a generated class keeps its stub unless src/ defines that very method
if owner in curatedClasses or (owner or '').rpartition('::')[0] in curatedClasses: return False
if addr not in curated: return True
return isSlot and f'{owner.rpartition("::")[2]}::{re.search(r"(~?\w+)\(", decl).group(1)}(' not in srcText
return isSlot and not src_defines(owner, re.search(r"(~?\w+)\(", decl).group(1))
stubText = ''.join(stub_define(o, d, a) for o, d, a, *slot in stubs if stub_wanted(o, d, a, *slot))
with open(outDir + '/stubs.cpp', 'w') as o:
o.write(generated_rename('// Generated by scripts/source_tree.py: every function src/ has not taken over yet, as a stub that stops the game\n'