names/notes: alternate path (secret exits, SetNextStage routing, mirror world, mineshaft, quest doors, Lost Curse, minecarts)

This commit is contained in:
shweet committed 2026-10-24 20:40:42 -04:00
1 parent 8f10ec33f9
commit 5237b587b7
3 files changed
+109

No files matched your search

+9
View File
@@ -1403,3 +1403,12 @@
007729d0 Entity_Player::TakeDamage Entity_Player vtable slot 8 (TakeDamage), 25 KB
0099b520 GridEntity_Gravity::PostInit GridEntity_Gravity vtable slot 1; Tiles_Itemdungeon(_Gideon).anm2; ZHL exact sig said Entity_Player::InitPreLevelInitStats
00721310 GridEntity_Wall::PostInit GridEntity_Wall vtable slot 1; Brick/LowBrick/Decoration anims; ZHL prefix29/30 said Entity_Player::TryRemoveTrinket
0074bae0 Level::get_secret_exit_kind the floor's secret exit door kind (1 Downpour, 2 Mines, 3 Mausoleum, 4 Mom's Heart) by depth and path; read 2026-10-24 (alt_path.md)
0074bba0 Level::get_secret_exit_room makes room -10 lazily: kind 4 a boss room of subtype 90, else a ROOM_SECRET_EXIT of that subtype (alt_path.md)
0070d360 GridEntity_Door::get_secret_exit_kind the -10 room's subtype for a secret exit door, 4 for a subtype 90 boss room (alt_path.md)
0074f0c0 Level::generate_mirror_world copies dimension 0's rooms into dimension 1, the treasure room as subtype 34 (alt_path.md)
0074f360 Level::generate_mineshaft dimension 1's eight fixed mineshaft rooms (subtypes 11, 30, 20) (alt_path.md)
007f01c0 Room::update_door_transitions players walking into doors start room transitions; a 0x10 door (mirror) passes while not open (alt_path.md)
009be850 PlayerManager::add_lost_curse null item 112 for every player (white fire) (alt_path.md)
007d87a0 Entity_Player::spawn_ghost_corpse effect 1000.6 playing the player's Death, before the Lost Curse (alt_path.md)
00739370 Level::place_special_rooms the level's special rooms: boss, shops, treasure, mirror/mineshaft/photo door rooms (alt_path.md)
Can't render this file because it contains an unexpected character in line 18 and column 80.
+5
View File
@@ -7,6 +7,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n
|---|---|
| `entities/` | per-entity findings from the monster-fidelity passes (state machines, timings, speeds, what the port changed or skipped) |
| `systems/greed_mode.md` | Greed waves' coins and music, Ultra Greed/coins/doors states, donation machine spawn, Greed doors/button, Mega Satan door |
| `systems/alt_path.md` | Repentance's path: secret exit kinds and doors, Level::SetNextStage's routing, the mirror world and mineshaft dimensions, quest doors, the white fire's Lost Curse, minecarts |
| `systems/room_features.md` | Room spawns (grid index wrap, trigger outputs 969 / Room::TriggerOutput, held Spawners), pressure plates and the mineshaft rail plate, white and giga poops, Mom's bed, Fissure and its spawner, Mother's Shadow, secret Isaac; why Rotgut's maggot, the Beast, Ultra Horsemen and Dogma wait |
| `items/items_sweep_10.md` | Smelter/Guppy's Tail room drop variant, Daemon's Tail pickup picker, I'm Drowsy slowdown, Guillotine orbit layer + orbit distance table, Converter |
| `items/items_sweep_11.md` | Nancy Bombs flag roll (GetBombFlags) |
@@ -216,6 +217,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings;
| psychic_horf | 0x513080 | psychic_horf: NpcAI::ENTITY_HORF 00513080. Skipped (already matches) | [entities/pass3_b.md](entities/pass3_b.md) |
| pustule | 0x4dea40 | pustule: ENTITY_PUSTULE 004dea40. Changed | [entities/pass4_01.md](entities/pass4_01.md) |
| quakey | 0x4fd540 | quakey (NpcAI::ENTITY_QUAKEY 004fd540, 823.0) | [entities/pass3_d.md](entities/pass3_d.md) |
| quest doors | 0x8279d0 | quest doors (Room::TrySpawnSpecialQuestDoor 0x8279d0) | [systems/alt_path.md](systems/alt_path.md) |
| rail plate | 0x74eaf0 | rail plate: Level 0x74eaf0 (raise a mineshaft rail) | [systems/room_features.md](systems/room_features.md) |
| rainmaker | 0x578a70 | rainmaker: NpcAI::ENTITY_RAINMAKER 00578a70. Changed (small) | [entities/pass4_03.md](entities/pass4_03.md) |
| reap_creep | 0x57bc8c | reap_creep (asm 0057bc8c..) | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) |
@@ -228,6 +230,8 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings;
| scarred_double_vis | 0x52c720 | scarred_double_vis (39.3) — NpcAI::ENTITY_VIS 0052c720 | [entities/pass2_misc3.md](entities/pass2_misc3.md) |
| scarred_guts | 0x5153b0 | scarred_guts: ENTITY_GUTS 005153b0 (40.1). Changed | [entities/pass4_02.md](entities/pass4_02.md) |
| scarred_para_bite | 0x5240a0 | scarred_para_bite: ENTITY_PARA_BITE 005240a0 (variant 1). Changed (partly) | [entities/pass4_01.md](entities/pass4_01.md) |
| secret exit door | 0x7f7a40 | secret exit door (Room::TrySpawnSecretExit 0x7f7a40, from Room::TriggerClear) | [systems/alt_path.md](systems/alt_path.md) |
| secret exit kind | 0x74bae0 | secret exit kind (Level::get_secret_exit_kind 0x74bae0, misnamed _RoomDescriptor::GetShapeGridCount) | [systems/alt_path.md](systems/alt_path.md) |
| secret Isaac | 0x65d950 0x6627e0 | secret Isaac (slot 6.14, Entity_Slot::Update 0x65d950, HandleCollision 0x6627e0) | [systems/room_features.md](systems/room_features.md) |
| secret_room_keeper | 0x6c2220 | secret_room_keeper: ENTITY_SHOPKEEPER 006c2220. Skipped (matches) | [entities/pass3_a.md](entities/pass3_a.md) |
| shady BACKSPLIT | 0x653070 0x654569 0x657df8 | shady BACKSPLIT (Entity_Projectile::Update 00653070, asm 00654569.., 00657df8..) | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) |
@@ -261,6 +265,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings;
| tainted_magdalene hug | 0x78e1f0 | tainted_magdalene hug (Entity_Player::HandleCollision 0x78e1f0, type 0x16) | [characters/characters_9.md](characters/characters_9.md) |
| tainted_mulligan | 0x50c370 | tainted_mulligan (22.3): NpcAI::ENTITY_HIVE 0050c370. Changed | [entities/pass4_03.md](entities/pass4_03.md) |
| tar_boy | 0x5442a0 | tar_boy: NpcAI::ENTITY_TARBOY 005442a0 | [entities/pass3_b.md](entities/pass3_b.md) |
| the path | 0x7467c0 | the path (Level::SetNextStage 0x7467c0) | [systems/alt_path.md](systems/alt_path.md) |
| the_forgotten knife hits | 0x9666f0 | the_forgotten knife hits (Entity_Knife::HandleCollision 0x9666f0; knife 8.1 club, 8.2 Bone Scythe) | [characters/characters_8.md](characters/characters_8.md) |
| the_frail_2 | 0x476860 | the_frail_2: NpcAI::ENTITY_PIN 00476860 (variant 2, state 9: the two beams) | [entities/boss_approx_2.md](entities/boss_approx_2.md) |
| the_gate | 0x45fc00 | the_gate: Gate AI 0045fc00 (263.0). Changed (partly) | [entities/pass4_02.md](entities/pass4_02.md) |
+95
View File
@@ -0,0 +1,95 @@
# Alternate path (Repentance's secret exits, mirror world, mineshaft, Mausoleum), 2026-10-24
What the isaac-classic port (rif/mineshaft) read from the exe for the path's quest chain.
## secret exit kind (Level::get_secret_exit_kind 0x74bae0, misnamed _RoomDescriptor::GetShapeGridCount)
Greed: none. depth = stage (+1 with Curse of the Labyrinth, +1 more on stage type 4/5); an odd stage on the path
without the Labyrinth has none (Downpour I, Mines I, Mausoleum I). depth 1-2: 1 (Downpour), 3-4: 2 (Mines), 5: 3
(Mausoleum), 7 on the path: 4 (Mom's Heart, Mausoleum II), else 0 (Depths II: its door is the photo door instead).
`Level::get_secret_exit_room` 0x74bba0 makes room -10 lazily: kind 4 a boss room of subtype 90 (Mom's Heart in the
Mausoleum), else a ROOM_SECRET_EXIT (27) of that subtype, from the special rooms.
## secret exit door (Room::TrySpawnSecretExit 0x7f7a40, from Room::TriggerClear)
On the last boss room (or forced): the first door slot from a seeded random one (descriptor seed: `>>2 ^ <<9 ^ >>15
& 7`) that the room's shape has and that is free, made a door to -10 (GridEntity_Door::SetRoomTypes). Not in
challenge 0x2c, not in Mom's Mausoleum boss room (subtype 89) once IsPreAscent, not on stages 1-6 with game state
flag 0x30 (the Ascent). With an explosion-fed spawn it also scatters dust (1000.59).
`GridEntity_Door::get_secret_exit_kind` 0x70d360: the -10 room's subtype for a type 27 target (or current), 4 for a
boss room of subtype 0x5a (90). SetRoomTypes (0x710fa0): subtype 2 (Mines) or 4 -> variant 3 (cracked: a blast
opens it), 3 (Mausoleum) -> varData 1 and variant 1, 1 (Downpour) -> variant 1 (a key). LoadSprite (0x70d3f0):
Door_Downpour.anm2, Door_Mines.anm2 + Door_Mines_Planks.anm2, Door_Mausoleum.anm2 (Door_Mausoleum_Alt.anm2 with
HasPhotoDoor: its flag 0x40), Door_MomsHeart.anm2 (Disappear inside -10). TryUnlock (0x710480) on the Mausoleum's
door: the photo door takes a Polaroid/Negative (0x7103c0); else a touch costs 2 half hearts (TakeDamage flags
0x12002080), blood gibs, and opens at varData 0 (two touches). TryBlowOpen (0x70fb60) on kind 4 needs entity 3.223
(the Full Knife familiar): particles, Poof_Large1, sounds 0x4d and 0x1c, game state flag 0x34 (0x100000 of the high
word).
## the path (Level::SetNextStage 0x7467c0)
Off the path, leaving through the secret exit (game state flag 0x2c, `[0x9953] & 0x1000`) goes to the same stage on
the path (stage type 4, or 5 when Dross/Ashpit/Gehenna are unlocked and the next stage's seed `& 2` is 0); on it, the
next stage. On the path a stage's normal trapdoor: an odd stage's to the next stage on the path, an even one's to
stage + 2 off it (Downpour II -> Caves II: the path's floors count one deeper). Staying on regardless: leaving
Downpour II (stage 2, or 1 with the Labyrinth) holding Knife Piece 1, or Mines II holding both pieces, from a black
market (0x16), the secret exit room (0x1b), the error room (3) or room -12; and IsMausoleumHeartStage (stage 6 on
the path, game state flag 0x2e) -> Corpse. Stage 9 on the path (after Corpse II) is ???.
## dimensions
`Level::GetRoomByIdx` 0x740bc0: room -100 is the current room in the other dimension (0 <-> 1); -101 from dimension 0
is room 162 (row 12, column 6) of dimension 1, from dimension 1 the dimension 0 room of subtype 10.
Mirror world (`Level::generate_mirror_world` 0x74f0c0, dimension 1): every room of dimension 0 copied with its
RoomConfig and seeds, but the first treasure room, which draws a treasure room of subtype 0x22 (34: Knife Piece 1)
for its shape. HasMirrorDimension 0x74ef70: stage 2 (or 1 with the Labyrinth) on the path.
Mineshaft (`Level::generate_mineshaft` 0x74f360, dimension 1): eight rooms at fixed places on the 13-wide grid,
LevelGenerator::CreateRoom(x, y, shape): (6,12) 1x1 subtype 11, (6,10) IIV, (5,8) 2x2, (5,7) 1x1, (5,5) 2x2,
(7,5) IIH, (9,5) 1x1 (all subtype 30), (9,4) 1x1 subtype 20 (Knife Piece 2), each GetRandomRoomWithFallbackStage
(stage 29 Mines' rooms, difficulty 0, the doors its CreateRoom made). HasAbandonedMineshaft 0x74efd0: stage 4 (or 3
with the Labyrinth) on the path. generate_dungeon takes 3 rooms off and asks one dead end more on these floors.
Level 0x739370 (the level's special rooms): HasMirrorDimension -> a normal room of subtype 34 as a new end room and
one normal room replaced by a subtype 1 one (the white fire room); HasAbandonedMineshaft with Knife Piece 1 (0x272)
-> a normal room of subtype 10 (fallback stage 29) as a new end room and two rooms replaced by subtype 1 ones (the
rail plate rooms); HasPhotoDoor (stage 6 off the path, unlocked) -> one room replaced by subtype 1 (the marked skull).
## quest doors (Room::TrySpawnSpecialQuestDoor 0x8279d0)
RoomConfigRoom::ParseXml 0x829af0 / RoomConfig::ReadRoom 0x82aea0: ENTITY_ENVIRONMENT 970.2 on a door's place sets
that slot in the config's mask at +0x3c (5000.0 sets flag 0x80 at +0x4c). On a mirror floor a normal room of subtype
34 gets door -100 there, on a mineshaft floor a normal room of subtype 10 or 11 door -101 (subtype 30 rooms carry
the mark but get none). SetRoomTypes: -100/-101 in dimension 0 are variant 3. The mirror's flag 0x10 (LoadSprite:
door_downpour_mirror.anm2, Break / Closed) keeps Open() from opening it and TryUnlock from unlocking it; the room's
door check (`Room::update_door_transitions` 0x7f01c0) passes a 0x10 door while its state is not 2 (whole), others
while it is 2; walking into -100 starts transition 18 with the other dimension (Game::StartRoomTransition), and
Level::ChangeRoom enters at the door it left by. GridEntity_Door::Update keeps the mirror's collision class 4 (a wall)
whole or broken; whether only a ghost reaches it is not settled here. TryBlowOpen on it: state 2, "Break", sound 0x262
(SOUND_MIRROR_BREAK), level state flag 0x800000 (STATE_MIRROR_BROKEN), Player::DonateLuck(-7) for a player's blast.
In the mirror world with the mirror broken, Entity_Player's update (0x794e50, asm 0x796033) takes half a heart
(TakeDamage 1.0, flags 0x10002000) each time null item 116 (mirror death, cooldown 30) runs out.
`Room::IsMirrorWorld` 0x827b70: dimension 1 on a mirror floor; Entity_Player's update negates the movement's x there.
Room::SpawnEntry 0x7ed310: in the mirror world no pickup (type 5) spawns, but in a treasure room of subtype 34; 9000
(trapdoors) and 999.39 neither.
## white fire, Lost Curse (null item 112)
Entity_Player::take_damage_impl 0x7729d0: damage from 33.4 (white fire) on a player not the Lost (10, 31, 40, 39) and
without the curse: `Entity_Player::spawn_ghost_corpse` 0x7d87a0 (an effect 1000.6 playing the player's Death),
`PlayerManager::add_lost_curse` 0x9be850 (null item 112, count 1, for every player), sound 0x2b. Its count rises to 2
as a room clears (Entity_Player::TriggerRoomClear 0x7a8fd0); ClearTemporaryEffects (0x7907a0, every room change)
drops a count-2 curse unless the room entered is in the mirror world. The curse: Lost death anim, Lost-style flight
and spectral tears (EvaluateItems), free devil deals (Room::GetShopItemPrice).
## minecarts (the mineshaft's ride)
NpcAI::ENTITY_MINECART 0x4ce8a0 (965): +0x3c0 its rider. Variant 0 breaks (NpcHelper::minecart_break) 3 frames
without one; variant 10 (the entrance's) holds state 16 at its target point until it runs (state 4): dust clouds
(1000.59) while V2.x > 0.8, velocity += heading * 1.3 * V2.x, V2.x = V2.x * 1.02 + 0.01 a tick, friction 0.9. Off the
room it leaves (state 3) with its rider. Room init (0x823f50): an actor beside a cart-start rail gets a cart there
(Entity::GiveMinecart 0x6b7be0), players only in multiplayer; a 965.10 beside any rail is set on it (speed 0.2).
RoomTransition::Update carries a riding player's cart (Entity_Player::AttachMinecart 0x7d9180).