WP-112: Phantom’s gardener’s house, garden and plaque, played (Gen 1)
Status: ✅ Done (2026-11-28). Fork PR barefootbetters/scummvm#37 merged on 2026-11-29 (merge commit 6b6a2df93a).
Phase: 5 (rooms checked without clicks, played)
Depends on: WP-060 ✅ (the port of the three rooms)
Companion EC: none (inline checklist under Exit criteria)
Pre-flight: pre-flight-WP-112-2026-11-28. Required: the packet modifies engines/terraglyph/**.
Targets generation(s): Gen 1, Phantom of the Knight only.
Estimated effort: Two hours
Goal
Play the gardener’s house (ROOM_P05_Gardeners_House, 0x411BF0, vtable
0x45E914), the garden (ROOM_P06_Garden, 0x411A20, vtable 0x45E8D4) and
the garden plaque (ROOM_Garden_Plaque, 0x40F840, vtable 0x45E7D0)
through the engine’s mouse and tick, against the decompile, and fix what
differs.
WP-060 ported the three rooms. Their check only inspected state and never clicked. They’re the third of the five room groups whose checks don’t click at all (after the gallery, WP-110, and the armory, WP-111).
What the decompile says
- The house’s entry (
0x411D60, after the base entry):- Back from the plaque with
CrestPuzzle:Puzzle_RightandDoor, and the door plays (mode 3). - Back from the plaque, tried and wrong:
Puzzle_Wrong. - From the town, Daphne walks in (
0x405E60, fromUR). From the garden, Fred walks in (0x405EE0, fromUL; the name at0x4691DCisFRED). - While Jane screams, one of her screams:
rand() % 5picks 1, 2 or 3, or 5 for 3 and 4.
- Back from the plaque with
- Its opening (
0x411C70,+0x2C). Back from the plaque:130C_when solved; nothing when untried;130B_,130B1_,130B2_in turn when wrong. From anywhere else while Jane screams:Intro2_orIntro_. - The plaque clicked (
0x411F10). It setsPlaqueSeen. With no ball found, Big Head says130A_,130A1_,130A2_in turn onBIG_HEAD_BG_PLAQUEand comes back here; with a ball found, the plaque’s room. - The house’s claim (
0x412110). The plaque is gone once solved; the way to the garden is there only once solved; the door is a sprite, stopped, on its first or last step. - The garden (
0x411A80,0x411AD0,0x411B50). Velma walks in from the house (U). The tracks are built only once the maze has been entered, and cycle230X_,230X1_,230X2_, from the first again on each entry. - The plaque’s room:
- Constructor (
0x40F840): no music, and the openingGardeners_House.130A_. - Entry (
0x40F8A0): no presses, all right, the toolbar hidden, the plaque not tried. - Claim (
0x40F940): each button a requires object hit by its polygon. - Tick (
0x40F8E0): step 1 under the mouse; a button held down without an event counts as pressed. - Event (
0x40FB20): step 2, the crest checked againstCrestSequence<n>, tried,Button_Click. After four presses: input held,CrestPuzzleif all were right, and the house.
- Constructor (
What differed
Nothing. The fork’s three classes match. In particular:
- the plaque room’s opening and empty music are in the fork’s room table;
- its toolbar is hidden by the toolbar’s room list;
- input is held after the fourth press through
isBusy.
Scope
In scope: fork garden_check.cpp (the played section); this packet, its
pre-flight, a pointer in WP-060 and the index row.
Exit criteria
- Expectations first. The new lines were written from the decompile before the run.
- Self-test. The new lines match the expectations, with one wording corrected (below). The rest matches the WP-111 run except for the per-run random keys. No new warnings.
- Live. A scripted run solves the crest and comes back to the house.
- Process. The fork PR against
scooby-engineis open (merged on 2026-11-29).
Result
Evidence labels: log (a self-test’s debug log), live (session) (a scripted run this session drove and read).
- No change to the rooms.
- The check (source). On
wp-112-garden(3d9de8eb96), a section at the end ofcheckGarden. - Self-test (log). The new lines:
- The house from the town:
opening none; Daphne walking in 1; door other hit 1 step 0 mode 0; plaque requires hit 2; TO_P06 none. - Jane screaming:
Intro2_/Intro_withJane_Screaming5,5and1, each playing. - The plaque, no ball:
ROOM_Big_Headwith130A_,130A1_,130A2_,130A_onBIG_HEAD_BG_PLAQUE, then the house;PlaqueSeen 1. - The plaque room:
opening Gardeners_House.130A_, the toolbar at x -123 (hidden),tried 0, the lionrequires hit 2 step 0. Over the bush: the bush step 1, the lion step 0. - The crest right: each press shows step 2 with its click. After four:
busy 1, then the house that tick, and
CrestPuzzle 1. In the house:Puzzle_RightandDoorplaying, the door in mode 3, opening130C_, no plaque, and the way to the garden. - The crest wrong, twice:
CrestPuzzle 0both times; in the house,Puzzle_Wrong, then130B_and130B1_. Left untried by its exit: the house with no sound and no opening. - The garden: Velma walking in, and no tracks. With
MazeEntered, the tracks give230X_,230X1_,230X2_,230X_. The way back plays230A_; the way to the hedge maze has no scene.
The rest matches the WP-111 run (
cb505e7) except for the per-run random keys, the armory’s random screams among them. 18 warnings in both, and no build warnings. - The house from the town:
- What I got wrong first.
- The fourth press. The first run read the room change after it with a later wait, but the check’s own tick had already taken it. The check now reads it from that tick.
- The door. I wrote that it plays “from step 3”; the call’s 3 is its mode (play once).
- Live (session). A start profile in the plaque room, with a ball found
and the crest set (
CrestSequence0–3= 3, 1, 2, 4). A sweep that waited after each move placed the four buttons. The run plays the opening130A_, then the presses:LION pressed, 1 of 4, all right 1throughDRAGON pressed, 4 of 4, all right 1, thendone, right, then the house with130C_. The screenshots show the crest before any press and after three, then the gang in the house.
Deliverables
- Fork:
wp-112-garden, PR barefootbetters/scummvm#37 (3d9de8eb96), merged on 2026-11-29 as6b6a2df93a; the fork worktree is removed, andC:\dev\scummvmwas rebuilt from it. Staged by name:garden_check.cpp. - Docs: this packet, its pre-flight, the pointer in WP-060, and the index row.
- Local only: the self-test and live logs, the screenshots, the start profile, and the expected text.