WP-095: Phantom’s wizard’s skull: the demo and the attempt played (Gen 1)

Status: ✅ Done (2026-11-28). Fork PR barefootbetters/scummvm#19 merged on 2026-11-28 (merge commit 6b5b02c53b). Phase: 5 (a gap found while searching packets for setup-only checks) Depends on: WP-077 ✅ (the room’s class), WP-072 ✅ (the magic mirror room, the demo’s way in and out), WP-081 ✅ (the bedroom a solve leads to) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-095-2026-11-28. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Showdown has no such room. Estimated effort: Half a day


Goal

Check the wizard’s skull room (ROOM_Wizards_Skull, class 0x42D7B0) against the decompile by playing it through the engine’s tick and live, and fix what differs from the original.

Background

WP-077 ported the room. Its self-test checked the claims, the keys and the flow by name, and its live run started in the room and watched it draw. Nothing clicked a skull, and the hand demo was “ported from the reconciled trace” but never run: start_room doesn’t come from the mirror room. It was the next candidate from Jeff’s search of the packets for setup-only checks, after WP-090, WP-092, WP-093 and WP-094.

The fork at bfeaa1c (source):

Scope

In scope: fork wizards_rooms.{h,cpp} (the skull room only) and wizards_check.cpp; this packet, its pre-flight, a WP-095 note in scooby-exe, a pointer in WP-077, and the index row.

Out of scope: the library (0x42D1F0), which the search didn’t flag.

Exit criteria

  1. Self-test. The new skull lines match text written from the decompile before the run. The rest matches the bfeaa1c (WP-094) self-test, with three exceptions: the per-run random keys, the reworded claim line, and the known-flaky arena line. No new warnings.
  2. Live (session). From the mirror room, the hand demonstrates and the gang returns through movie 31. From the library, clicking the skulls to the combination opens the wizard’s bedroom through movie 6.
  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 class (0x42D7B0–0x42E6C0), its vtable (0x45F4C4), and the listings for the anim calls’ hidden arguments. Also:

The detail is in the WP-095 note under scooby-exe. WP-077’s account holds, and its strcmp polarity is confirmed: the demo is entered from the mirror room.

The port (source). On wp-095-wizards-skull (ab9a1d261b). Two debug lines help a live run:

Self-test (self-test). The combination is pinned to 1, 0, 3, 2 and the saved faces to 2, 0, 3, 1, with the profile’s Clickables section holding D for skull 1. The text of each line was written from the decompile before the run (kept locally); all match.

The attempt line prints the exit’s object name where the written text said “built”; that’s the only wording difference.

The rest of the self-test matches the WP-094 branch’s run (8bc6cf2994, merged as bfeaa1c) but for:

The runtime warnings match, 18 each.

Build (log). Terraglyph only, in the fork worktree. No warnings in the engine; the two shared-code warnings (gob, halestorm) were there before.

Live (live — session, with log). Both runs started from a test profile: the combination 1, 0, 3, 2, the faces 2, 0, 3, 1, IntroDone clear, and Clickables holding D for skull 1. Its StartRoom is the skull room, and start_room named the room to come from.

Deviations:

Deliverables

Notes