WP-024: Scrappy’s hints, Scooby Snacks and the speech lock (Gen 1)

Status: ✅ Done (2026-11-14) Phase: 4 (game logic: the toolbar’s helpers) Depends on: WP-020 ✅ (characters, scenes, lip sync), WP-023 ✅ (the toolbar and the game cursor) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half-day Pre-flight: pre-flight-WP-024-2026-11-14


Result (2026-11-14)

The reference is wp024_ref.py, written from the trace. It reads TGIFILE.ART through tools/probe_art.py, plus object.ini and the sound indexes, and never runs the engine. At script level 3 the engine logs one line per hint and per snack, and the reference prints the same lines: 126 on Showdown, 138 on Phantom, none different.

Exit criterion Result
1. Every hint ✅ 78 hints on Showdown and 82 on Phantom match. With Scrappy’s cursor, each exit with a scrappyid shows the hint cursor (50 and 56 do). The wiggle plays, Scrappy says the clip, and the arrow comes back. An exit without one shows Scrappy’s cursor, and a click puts the arrow back with no line. Each character with a Global.Scrappy.<NAME> clip gets its hint once met. Every hint clip a placed exit names exists.
2. Every snack ✅ 46 on Showdown and 54 on Phantom match. The box plays Global.Snack_Box and hands over the snack. Scooby or Shaggy plays ANIM_<NAME><set>EAT_SNACK and is idle again after 3 ticks a step (18, 27 or 45 ticks); the count goes from 1 to 0. Fred’s Global.Snack_GivenA_ follows where Fred is in the room, Velma’s …C_ where he isn’t. No room has a line of its own. With no snacks left, the box has Scrappy say Global.940B_1_SCRAPPY.
3. Live, Showdown ✅ The run played its input through the engine’s new test_script, with the window minimized; the host’s mouse wasn’t touched, since Jeff was at the machine. In Town Center: the van drove in, a click on Scrappy gave his cursor, and the road exit showed the hint. A click there played Global.Scrappy.Town_Center_to_Street3, and his lock was released when it ended. The snack went to Scooby, who ate it, and Fred said Global.Snack_GivenB_1_FRED (a random pick) while the toolbar drove off. Reopened, the empty box had Scrappy say Global.940_1_SCRAPPY.
4. Build and diff ✅ Scooby-only build: 0 errors, 0 warnings. The exit check (71 and 82), click check (191 and 174) and inventory check (24 and 33 lines) are identical to WP-023’s run, so the speech lock left scene timing alone. Fork commit 550cbb48fa stages its 8 files by name, inside engines/scooby/, and is pushed.

Deviations and gaps:


Goal

Make the last two working buttons of the toolbar act as the original’s do. Scrappy gives hints about exits and suspects. The snack box hands out Scooby Snacks for Scooby and Shaggy to eat.

Background

WP-023 drew Scrappy and the snack box but left their clicks out. In Scooby.exe (details in scooby-exe):

Scope

In scope (fork, engines/scooby/ only):

Out of scope:

Exit criteria

  1. Every exit’s hint (and every met suspect’s) on both discs matches an independent reference: what the cursor shows, and what is heard and said.
  2. Every snack for Scooby and Shaggy matches it: the sequence, the line, the ticks until idle and the count.
  3. Live, in Showdown: a hint on an exit, a snack for Scooby with the snack-given line, and the empty snack box.
  4. Scooby-only build: 0 errors and 0 warnings. The exit, click and inventory checks are unchanged line for line. The fork diff stays inside engines/scooby/, staged by name.

Deliverables