Pre-Flight — WP-020 — 2026-11-14
Filled-in copy of docs/reference/pre-flight for WP-020. Verdict at the bottom.
Written before engine code, on Jeff’s “continue” after PR #55 merged. WP-019 named the exit transition as next; this pre-flight follows the trace that scoped it.
Header
- WP:
WP-020 - Title: The exit transition: characters, scenes and the walk-off (Gen 1)
- Pre-flight date:
2026-11-14 - Targets generation(s): 1
- Targets disc(s): Showdown, Phantom
Pre-flight intent
Validating readiness for
WP-020. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-017 | ✅ Done | 2026-11-14 | The sequence player and the 36 Hz tick. |
| WP-018 | ✅ Done | 2026-11-14 | Placement kinds, hit tests and the exit click, which this WP replaces with the transition. |
| WP-019 | ✅ Done | 2026-11-14 | Clips play through the mixer. Clip headers already carry the lip-sync fps and byte count. |
Repo + disc state
- Project worktree on new branch
claude/wp-020fromorigin/main(78612ac), clean. - Fork on
scooby-engineatac1b4def76, clean, in sync. - Character placements. 258 of 261 character placements in the two titles already name
ANIM_<NAME><SET>IDLE_MASTER, which the character constructor (0x4048E0) switches to. The other three (ICDOUBLEdigging,EWANstirring,BRADidling) are per-room set pieces. So the engine keeps each placement’s own sequence on entry, and the room checks from WP-016 to WP-018 stay valid. - Scene lines. Every exit scene in both titles resolves to lines
<scene><n>_<NAME>with exactly one speaker per line (14 exits in Showdown, 34 in Phantom).
Doc-vs-tree cross-check
- The click path (
0x402130→0x404820→0x4024C0) ends in the current room object’s vtable+0x24. Showdown has 47 room classes. 31 use the default handler0x40C1E0; the other 16 override it, and every override calls the default once its story checks pass. This WP implements the default; the overrides are per-room code. character=anddirection=are in 125 exit sections, but the exit constructor (0x401850) never reads them. It readsfred=,daphne=,velma=,shaggy=andscooby=.- WP-019’s background said the transition plays “a voice line”. It plays a scene: numbered lines, each spoken by the character whose clip exists, with lip sync.
Scope lock
Allowed paths (this repo):
docs/02-SCUMMVM-INTEGRATION.md (§6 implementation notes)
docs/formats/scooby-exe.md (function table, exitobject keys, transition section)
docs/formats/audio-archives.md (lip-sync paragraph)
docs/work-packets/WP-020-exit-transition.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-020-2026-11-14.md
Fork: engines/scooby/**, staged by name.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Timing depends on audio. Lines end when their clips end, so a headless check can’t replay a scene tick for tick. | high | med | Split the check. The scene’s lines are resolved by name (deterministic). The walk-off is a pure tick simulation, checked tick by tick against a reference. Playback and lip sync are checked live. |
| Story overrides block exits in the original (Town Center’s first exits, for example). | high | low | Out of scope; the default handler runs everywhere until per-room code exists. Documented as a deviation. |
| The talking sequence is driven by lip-sync bytes; a shape past the sequence’s last step would draw out of range. | low | med | Clamp the step and count how often the data would need it. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing), on Jeff’s “continue” of 2026-11-14 Date: 2026-11-14
After execution — lessons learned
Lesson: split timing-dependent behaviour into a deterministic plan and a live run. A scene’s length depends on its clips, but which lines it has and how the walk-off unfolds do not. The level-3 check covers the plan for every exit; one live run covers playback and lip sync.
Lesson: read what the constructor reads, not what the ini carries. 125 exit sections have character= and direction=. The trace shows they are dead keys, and that the per-character keys drive the walk.
Lesson: keep scratch edits the same length. Detection checks object.ini’s size, so the malformed-input test edited values in place at the same length.
Scope note: the lock held. One fork commit, staged by name. The scratch game folder was deleted, and the ISOs were dismounted.