Skip to content

smbw: fix Course853_Main (Pole Block Allure) camera framing and finale cannon trigger - #10

Merged
PyroDonkey merged 5 commits into
mainfrom
smbw-course853-pole-block-allure
Nov 10, 2026
Merged

PyroDonkey merged 5 commits into
mainfrom
smbw-course853-pole-block-allure

Conversation

@PyroDonkey

@PyroDonkey PyroDonkey commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes two 4:3 problems in Sunbaked Desert Special: Pole Block Allure (Course853_Main) by editing points of autoscroll rail 1776580222928036096 (RAIL_EDITS in tools/build_stage.py). The net change against main is five rail points; no actors are moved.

1. Vertical framing (points 0-3)

The stock climb (Y 17 -> 17 -> 25.5 -> 41) left the Wonder Flower at the bottom edge of the 4:3 view. Points 0-3 are lowered to Y 14.5, 14.5, 22.75, 36.0 (point 4 onwards unchanged). This retune was play-tested by the maintainer in Eden.

2. Finale cannon never fires (point 12)

  • Cause: rail X is the view's left edge (DEVELOPMENT.md section 22). The stock final stop at X 226.75 frames [226.75, 247.75] in 4:3, so the green cannon (ObjectBalloonKillerHodaiLeft, X 251.5, IsFirstInCamera: True) is 3.75 blocks past the right edge and never starts firing. Moving Mario right only pans the view to about X 251.
  • Fix: point 12 (226.75, 147.0, 0.0) -> (231.335, 147.0, 0.0), view [231.335, 252.335]. The cannon stays at its stock position.
  • How 231.335 was measured: from two Eden captures (1440 px = 21.0 blocks), calibrated on the lower pole's end block (X 240.5). With the stop at 226.75 the view was [226.75, 247.75]; the camera then had to move 1.59 blocks right to bring a cannon at 248.5 inside the view (body 0.335 blocks inside the right edge, and it had fired). The stock cannon body ends at 252.0, so 252.0 + 0.335 - 21.0 = 231.335. The cannon's camera margin (InsideCameraMarginX) is not stored in its AI graph, so this observed margin is the reference.
  • Trade-off: the pole's first 0.8 blocks (ball at X 230.5) fall off the left edge. Pole start to cannon centre is exactly 21.0 blocks, the full 4:3 width, so both cannot be framed with the stock cannon.
  • Side effects to watch: the last segment (point 11 -> 12, 180 frames) covers 11.3 blocks instead of 6.75, and the stopped-scroll pan can reach a right edge up to about X 258.9.

Docs

DEVELOPMENT.md section 44 described the rail point as the view centre, which is wrong; section 45 corrects it (rail X = left edge, rail Y = top edge) and records the measurements above.

Verification

  • scripts/check_repo.py: OK
  • build_stage.py --verify: 0 problems (Course853_Main: 7 byte(s) differ, all inside 5 edit(s))
  • unittest: 16 tests passed
  • verify_pchtxt.py: 0 errors
  • Play-tested in Eden at the new stop (build SHA-256 56b85df2...): the finale cannon fires and the Wonder Seed is reachable.

🤖 Generated with Claude Code

PyroDonkey and others added 3 commits November 9, 2026 13:38
…al framing

Lower points 0-3 of autoscroll rail 1776580222928036096 in Y to keep the Wonder Flower and lower poles on-screen in 4:3 while maintaining vertical clearance.
…y 3.0 blocks

Shifts ObjectBalloonKillerHodaiLeft from X = 251.5 to 248.5 so it enters the 4:3 camera view and fires its purple balloon creature when Mario approaches on the lower pole.
…ock cannon

The finale cannon (ObjectBalloonKillerHodaiLeft, X 251.5, IsFirstInCamera) never fired in 4:3: rail X is the view's left edge, so the stock stop at X 226.75 frames [226.75, 247.75] and the cannon sits 3.75 blocks past the right edge.

Move autoscroll rail 1776580222928036096 point 12 to X 231.335 (view [231.335, 252.335]) and drop the earlier 3.0-block cannon shift. The stop is measured from Eden captures: with the cannon body 0.335 blocks inside the right edge it fires, so 252.0 + 0.335 - 21.0 = 231.335. The pole's first 0.8 blocks fall off the left edge; pole start to cannon centre is exactly the 21.0-block 4:3 width.

DEVELOPMENT.md section 45 corrects section 44's camera model (rail X is the left edge, rail Y the top edge).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@PyroDonkey PyroDonkey changed the title smbw: fix Course853_Main (Pole Block Allure) autoscroll camera vertical framing smbw: fix Course853_Main (Pole Block Allure) camera framing and finale cannon trigger Nov 9, 2026
PyroDonkey and others added 2 commits November 10, 2026 07:00
…lock-allure

# Conflicts:
#	super-mario-bros-wonder/docs/DEVELOPMENT.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PyroDonkey
PyroDonkey merged commit 68f8d90 into main Nov 10, 2026
2 checks passed
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