Skip to content

Door jumps: land on Turtle Rock 03G's raised west notch (C++ generator) - #890

Merged
peiikai merged 1 commit into
developfrom
fix/warp-ledge-spawn-cpp
Nov 25, 2026
Merged

peiikai merged 1 commit into
developfrom
fix/warp-ledge-spawn-cpp

Conversation

@peiikai

@peiikai peiikai commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What

The develop half of #889 (Python, release/0.6). With dungeon room shuffle, a door jump into Turtle Rock 03G's west doorway (the raised notch at the upper left) put Link inside the ledge. He got stuck and the game sent him back to the room he came from. Found in play on a nightly: seed NJ4C6-KFQ0B-5RKFX-6MHAZ-9F3V0-0G133, Face Shrine 06E E -> 01H W (01H is 03G).

Why

landing_search found no walkable tile past that doorway. The next tile is the ledge's lip (solid), and the rest of the row is crumbling floor. So it fell back to {2.2, 0.0}, which is inside the ledge. Now, when no landing is found anywhere and the doorway tile itself is raised, Link lands on that tile at its height (0.75 in). From there he drops into the room as in vanilla.

The rule only runs in the last pass (without areas). In the area pass, door frames at 2.1 / 3.0 count as raised doorway tiles too. A first version put it in both passes, and that moved Turtle Rock 06G E and Bottle Grotto 08G E onto their door frames even though the second pass had a real landing for them.

Testing

  • lasrando generate with the old and new code on three coupled room-shuffle requests. Only the rows into 03G W3 change: Lv06FaceShrine 06E E 8 3 01H W and Lv01TailCave 06E E 8 3 07C W, from 2.2 0.0 to 0.75 1.5. The spoilers (item placement) are identical. Regenerating with the old code gives a seed.json identical to the user's.
  • In game, macOS / Metal (M3 Max): a test row Turtle Rock 08D N -> 03G W3. With 2.2 0.0, Link lands inside the ledge and ends back in 08D. With 0.75 1.5, he lands on the notch, walks east off it into the room, and LARECOMP_DOORJUMP_TEST reports PASS. The runtime is unchanged; this was run on a release/0.6 build.

Seeds made before this fix keep the old row in their seed.json. Making the seed again from its seed ID picks up the fix.

🤖 Generated with Claude Code

Turtle Rock 03G's west doorway (row 1) is a single 1.5 tile, then the
ledge's lip, then crumbling floor. landing_search found no landing there
and fell back to 2.2 in at height 0: Link stood inside the ledge and the
game sent him back to the room he came from. Land him on the notch at its
own height instead; he drops off it into the room as in vanilla.

Only in the last pass (no areas), so door frames that have a landing
further in keep it. The C++ side of the release/0.6 fix to
dungeon_gen.landing_depth.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@peiikai
peiikai merged commit f596677 into develop Nov 25, 2026
8 checks passed
@peiikai
peiikai deleted the fix/warp-ledge-spawn-cpp branch November 25, 2026 02:20
NevesHenry pushed a commit to NevesHenry/LASRecomp that referenced this pull request Nov 26, 2026
…peiikai#889)

- peiikai#884, peiikai#888: 130 shader variants from the peiikai#883 logs (2049 records).
- peiikai#885: Linux soft page write tracking race (peiikai#883 crash), moved to
  runtime/platform/soft_tracking.h, with tools/test_soft_tracking.c in CI.
- peiikai#889: tools/rando/dungeon_gen.py stays deleted on develop; the same
  03G notch landing fix is in C++ via peiikai#890.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant