WP-101: Phantom’s wizard’s bedroom and veranda, played (Gen 1)

Status: ✅ Done (2026-11-28). Fork PR barefootbetters/scummvm#26 merged on 2026-11-28 (merge commit 1604799960). Phase: 5 (from the search of the packets for rooms checked only by name) Depends on: WP-081 ✅ (the two rooms’ classes), WP-094 ✅ (the Wizard’s Rule Room the wizard sends the gang to) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-101-2026-11-28. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Showdown has neither room. Estimated effort: A few hours


Goal

Play the wizard’s bedroom (ROOM_P24_Wizards_Bedroom, 0x42CCF0) and the veranda (ROOM_P28_Veranda, 0x4183B0) through the engine’s mouse and tick, and live, against the decompile, and fix what differs.

Background

WP-081 ported both rooms. Its self-test checked the classes, the clips and the claim by name. Its live run saw the bedroom enter and the veranda draw. It noted that “the base click of the wizard with the plain arrow” was left to the engine. The pair was third on the list from Jeff’s search of the packets, after WP-099 and WP-100.

The fork at 1539a7b (source):

Scope

In scope: fork wizards_bedroom_rooms.{h,cpp} and wizards_bedroom_check.cpp; this packet, its pre-flight, a WP-101 note in scooby-exe, a pointer in WP-081, and the index row.

Out of scope: the veranda, which matches the original, beyond playing it.

Exit criteria

  1. Self-test. The new lines match text written from the decompile before the run. The rest matches the WP-100 self-test except for the per-run random keys. No new warnings.
  2. Live (session). A click on the wizard plays movie 60 into the Wizard’s Rule Room.
  3. Process. The fork PR against scooby-engine is open (merged later the same day), and each claim carries its evidence label.

Result

Every claim is Gen 1, Phantom. Evidence labels: source (the decompile), self-test, log (the engine’s debug log of a live run), live — session (a scripted run this session drove). Nothing here is live — Jeff.

Source. Scooby.exe (SHA-256 619EA687…AF807ED), Ghidra 12.1.4 headless:

The veranda matches the fork (the well’s cycle, Big Head, the openings and the keys).

The port (source). On wp-101-wizards-bedroom (002baf691b):

Self-test (self-test). The text was written from the decompile before the run (kept locally). Each line clicks through the engine’s mouse.

What failed first. The first run’s veranda line alternated between a line and nothing. My check clicked the well again without going to Big Head, which the room had already asked for, so every other click went nowhere. With the check going to Big Head and back, as play does, the cycle matches.

The rest of the self-test matches the WP-100 run (1539a7b) except for the per-run random keys. The runtime warnings match, 18 each.

Build (log). Terraglyph only, in the fork worktree; no warnings in the engine.

Live (live — session, with log). start_room=ROOM_P24_Wizards_Bedroom; a mouse sweep found the wizard at (340, 240). Then:

  1. click at 340,240 on 5 OBJ_WIZARD;
  2. the wizard clicked, to ROOM_P30_WFR movie 60;
  3. movie 60, 424 frames in 35.4 s;
  4. ROOM_P30_WFR loads with its six bottles.

This is the first time the Wizard’s Rule Room has been reached by playing the fork rather than through start_room.

Deliverables

Notes