WP-121: Phantom’s dining room, played (Gen 1)
Status: ✅ Done (2026-11-29). Fork PR barefootbetters/scummvm#45 merged on 2026-11-29 (merge commit 9338192dd4).
Phase: 5 (rooms played)
Depends on: WP-063 ✅ (the port of the room), WP-116 ✅ (handleEvent())
Companion EC: none (inline checklist under Exit criteria)
Pre-flight: pre-flight-WP-121-2026-11-29. Required: the packet modifies engines/terraglyph/**.
Targets generation(s): Gen 1, Phantom of the Knight only.
Estimated effort: Two hours
Goal
Play the dining room (ROOM_P12_Dining_Room, 0x40FD00, vtable
0x45E810) through the engine’s own event path, against the decompile, and
fix what differs.
WP-063 ported the room. Its check clicked Maria through
the room class’s click() and hotspot 2 through clickClickable(), never
through the mouse. It’s the fourth of the 11 checks that click through a
class or script function, after the drawbridge, the room of doors and the
throne room (WP-117, WP-119, WP-120).
What the decompile says
- Entry (
0x40FD80):- the first time, movie 35 into
ROOM_Maria, without the base entry; - after that:
- the base entry, and Maria is met;
- with her game won and her clue not given:
350A_, blocking, her clue, and “to give” (+0xB8); - one snack is needed.
- the first time, movie 35 into
- The tick (
0x410110):- Maria clicked with the arrow (game
+0x20bit 4, her+0x08) before her game is won: the exit handler, toROOM_Maria; - then, only once she’s idle:
- with “to give”:
GIVES, then “thanks” (+0xB9), the cursor hidden at once, and input held; - idle again with “thanks”: the exit handler, to
ROOM_Suspect_ChooserwithGlobal.Thank_You_.
- with “to give”:
- Maria clicked with the arrow (game
- The event (
0x410610): hotspot 2 scares the five. object.ini:- the mug is an exit to the KST, with the open hand and
350B_; - the other exits each have their own rollover and scene;
- the burger is an inventory object with pickup movie 37.
- the mug is an exit to the KST, with the open hand and
What differed
Nothing. The room class matches the decompile, and nothing in the engine
needed a change. The hold while Maria gives is the class’s isBusy(),
which returns “thanks”.
Scope
In scope:
- Fork:
dining_check.cpp(the played section). - Docs: this packet, its pre-flight, a note in scooby-exe, a pointer in WP-063, 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 decompile, with the expectation I got wrong corrected (below). The rest matches the WP-120 run except for the per-run random keys. No new warnings.
- Live. Scripted runs show the hovers, hotspot 2’s fright, a click on Maria into her game, and her clue with no cursor while she gives it.
- 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, with screenshots).
- The change (source). On
wp-121-dining-room(6a6f12487e): a section at the end ofcheckDining, with events fed throughhandleEvent(). - Self-test (log).
- The first visit, from the room of doors: movie 35 into
ROOM_Maria. - Again:
- Maria met, and one snack needed;
- the open hand on Maria, hotspots 1 and 2, and the mug;
ANIM_CURSORERonTO_P11,ANIM_CURSOREU45LonTO_P13;- the burger not hit.
- Maria clicked with the arrow:
ROOM_Maria, movie −1. - Hotspot 2: the five scared at once.
- The mug:
350B_, thenROOM_P31_KST. - Her game won:
350A_held, and Maria a clue owner;- her
GIVESthe tick after: input held by the room class (room busy 1), no cursor over hotspot 1, and a click on it not taken; - then
Global.Thank_You_, andROOM_Suspect_Chooser.
- Her clue given:
- the burger, an inventory object at depth 1 under the root, with the open hand over it;
- clicked: movie 37 back to this room, and the burger in a slot.
The rest matches the WP-120 run (
fbe9d0b356), except for the per-run random keys (the drawbridge’s states and flag points, Ewan’s question, the room of doors’ way to the armory, the screams in the gardener’s house and the armory). 18 warnings in both runs, and no build warnings inengines/terraglyph. - The first visit, from the room of doors: movie 35 into
- What I got wrong first. I expected the cursor and a click to go
through while Maria gives her clue, because I’d missed the class’s
isBusy()in its header. The run held input and hid the cursor there, as the original does. - Live (session). Two runs from profiles, entered from the room of doors:
- Run 1:
- the hovers on Maria, hotspot 2, the mug and two exits;
- hotspot 2: the five switch to their
SCAREDanimations, and the screenshot shows a bat; - a click on Maria: “to her game”, and
ROOM_Maria.
- Run 2, her game won:
350A_on entry, her clue generated;ANIM_MARIAGIVES, thenGlobal.Thank_You_, and the suspects and clues;- the screenshots during
350A_andGIVESshow no cursor.
The burger was played by the self-test only.
- Run 1:
Deliverables
- Fork:
wp-121-dining-room, PR barefootbetters/scummvm#45 (6a6f12487e), merged on 2026-11-29 as9338192dd4; the fork worktree is removed, andC:\dev\scummvmwas rebuilt from it. Staged by name:dining_check.cpp. - Docs: this packet, its pre-flight, the note in scooby-exe, the pointer in WP-063, and the index row.
- Local only: the self-test and live logs, the screenshots, the profiles, and the expected text.