WP-116: Phantom’s Knights of the Snack Table, played (Gen 1)

Status: ✅ Done (2026-11-29). Fork PR barefootbetters/scummvm#41 merged on 2026-11-29 (merge commit 0c4c18ec59). Phase: 5 (rooms played) Depends on: WP-073 ✅ (the room’s claim and entry), WP-090 ✅ (the serving game), WP-115 ✅ (the cursor through a scene’s hold) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-116-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 Knights of the Snack Table (ROOM_P31_KST, 0x419700, vtable 0x45EDEC) through the engine’s own event path, against the decompile, and fix what differs.

WP-090 ported the serving game, and its check plays it through the engine’s tick. But it set the mouse’s position and button fields directly, never through the events the run loop takes. It’s the room after the five Phantom groups whose checks never clicked (WP-110–112, WP-114, WP-115).

What the decompile says

What differed

The room class matched the decompile. WP-090’s port holds.

One gap was in the engine, and WP-115 made it. WP-115 hid the cursor whenever the room’s script held input. That’s right for most rooms, but the KST’s tick shows it again in the top 100 rows every tick. With WP-115’s change the cursor was hidden there through the opening. Now:

The fork still has no fade. Which cursor the original draws during the hold (the arrow, or a rollover) isn’t traced. The fork shows what the hover gives, so the arrow away from the exit.

A refactor with no change in behaviour. The run loop’s handling of one host event (the mouse, the button, the skip keys) is now TerraglyphEngine::handleEvent(), so the check feeds the path a real mouse does.

Scope

In scope:

Exit criteria

  1. Expectations first. The new lines were written from the decompile before the run.
  2. Self-test. The new lines match the decompile, with the check slip corrected (below). The rest matches the WP-115 run except for the per-run random keys; WP-090’s KST lines are unchanged. No new warnings.
  3. Live. A scripted run shows the cursor through the opening by its row, serves a mug with the button, and leaves by the exit.
  4. Process. The fork PR against scooby-engine is 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).

Found on the way

Deliverables