WP-142: the Mermaid’s Cavern hotspot’s animation doesn’t show (Gen 1)
Status: ✅ Done (2026-12-03): a finding. The port draws the animation; the self-test line is fork PR barefootbetters/scummvm#73, merged by Jeff on 2026-12-03 (128127cf37). Jeff’s live re-check passed. See §Result.
Phase: 5 (polish)
Depends on: WP-078 ✅ (the room), WP-100 ✅ (the room, played)
Found by: WP-087’s live run, 2026-12-02, EC-010 beat 18
Companion EC: none (inline checklist under Exit criteria)
Pre-flight: pre-flight-WP-142-2026-12-03, verdict FINDING.
Targets generation(s): Gen 1, Phantom of the Knight only.
Estimated effort: Two hours
Goal
Make OBJ_P21_MERMAID_HOTSPOT2’s animation visible when it’s clicked in
ROOM_P21_Mermaids_Cavern, as the original draws it.
What the run showed
- Jeff, live (2026-12-02): “animations don’t show with clicks”, with a screenshot of the cavern. Asked which spot and where: “only this cavern, the one that should animate”.
- Log (
C:\pcloud\scooby-engine\verification\wp-087-2026-12-01\run1.log, forkc1f2825762) at 20:38:03:clickable OBJ_P21_MERMAID_HOTSPOT2 clicked at tick 1958: anim ANIM_P21_MERMAID_HOTSPOT2A steps 6 sound SFX_P21_MERMAID_HOTSPOT2A next ANIM_P21_MERMAID_HOTSPOT2B, thenrests on ANIM_P21_MERMAID_HOTSPOT2B at tick 1976. The engine ran the animation and its sound; the screen didn’t show it. - The art (the self-test’s cel check, fork
1b5db3fc40): HOTSPOT2 has 24 cels of about 16×72. HOTSPOT3 has none (196 bytes, no cels), so a click on it only plays its sound. That’s the disc’s data, not this defect.
Leads (to check, not conclusions)
- Draw order. The self-test’s room check lists the cavern’s order as the five characters, the ghost, HOTSPOT1–3, the ruby, the exit, then layer 0. If HOTSPOT2 sits where a character or a layer covers it, it plays unseen. Compare the decompile’s claim for the cavern’s hotspots (layer, depth, parent), as fork PRs #58 and #59 did for other Phantom rooms.
- Its place. Confirm the cels draw at the placement’s position, not off screen or under the toolbar.
- The frame. A capture of the room on each tick of the animation shows whether any of its cels reach the screen.
Scope
In scope
- Find why HOTSPOT2’s cels don’t show, and fix it in its own fork PR, with a self-test line recording the frame changing while the animation plays.
Out of scope
- HOTSPOT3 (no cels on the disc) and the room’s other behaviour (WP-100).
Exit criteria
- The self-test shows the room’s frame changing over HOTSPOT2’s six steps.
“Six steps” is all three states: A 6, B 18, C 6. self-test:
princess check play cavern hotspot2reads 7, 18 and 6 distinct frames of rows 0–149, each state’s rest differing from the frame before its click (fork PR #73). With HOTSPOT2 hidden on a scratch build, the same line reads 1 distinct frame andthe rest 0in every state. - Jeff, or a watched session, sees the animation play when clicking it.
live — Jeff (2026-12-03): “the window lit and the bat flew, all three
showed”, with the three
clickable OBJ_P21_MERMAID_HOTSPOT2 clickedlines inlive1.log(18:40:55, :56, :58). live — session: the shotstip_*,ruby_*andfix_*. - The rest of the self-test matches its baseline but for the random keys and any line the fix changes on purpose. self-test, seeded: every other check line matches; the rest of the diff is the noise floor two baselines measured (table in §Result).
Result
2026-12-03. A finding: the port draws HOTSPOT2’s animation. No engine
behaviour changes. Fork PR
barefootbetters/scummvm#73
(f0f4ad0e76, merged by Jeff on 2026-12-03 as 128127cf37) adds the self-test line. The diagnosis, lead by lead, is in
pre-flight-WP-142-2026-12-03.
Logs, configs and shots are in
C:\pcloud\scooby-engine\verification\wp-142-2026-12-03\.
The states and steps
From the art (object 239, one cel per frame) and the click lines:
| State | Steps | Ticks to rest | Cels | On screen |
|---|---|---|---|---|
| A | 6 | 18 | 0 → 5 | The window at the top right lights up. |
| B | 18 | 54 | 6, 7 → 22, 23 | A bat leaves the window and crosses the top of the cavern to the left edge. |
| C | 6 | 18 | 5 → 0 | The window goes dark. |
Cels 6 and 23, the two 556×448 ones, are transparent but for the lit window and a mark a few pixels wide at the bottom left. HOTSPOT3 (object 240) has no cel at all: a sound-only spot on the disc.
The cause of the report
Nothing in the port. live — session, on the unchanged tip 168ae21c7d
(no draw-path file changed since WP-087’s build c1f2825762), clicking the
hit-tested point (552, 60):
capture-tip.log,shots-tip:tip_a03–tip_a24the window lit;tip_b08,tip_b12,tip_b20,tip_b25,tip_b29,tip_b34the bat from the window to x 11;tip_c12–tip_c_restthe window dark.capture-ruby.log,shots-ruby, in Jeff’s order of play (the ruby, then HOTSPOT3 twice, then HOTSPOT2):ruby_a03,ruby_a14lit;ruby_b12,ruby_b25the bat;ruby_c_restdark.capture-stay.log,shots-stay, the pointer left on the spot: it covers the window’s middle and the rest shows (stay_a03,stay_a14).
When the report came. Jeff’s WP-087 messages and run1.log were stamped by
the same clock. “animations don’t show with clicks” was sent at 20:38:00. The
log’s clicks on clickables before it are HOTSPOT3’s two, at 20:37:26 and
20:37:27. The first HOTSPOT2 click came at 20:38:03. His screenshot (20:37:44)
shows the window dark, as HOTSPOT2 rests before a click. “only this cavern, the
one that should animate” (20:40:33) came after the three HOTSPOT2 clicks. It
doesn’t say whether he saw the window or the bat. My reading: the report came
from HOTSPOT3, which shows nothing by the disc’s data. Jeff’s live re-check
then saw HOTSPOT2 play in all three states (below).
The fix
None to the game. The self-test couldn’t see pixels: checkAllClickables() runs
on a standalone Room and never draws. The new line, in princess_check.cpp,
plays HOTSPOT2 in the real cavern through the engine’s mouse and tick, draws the
room through Room::draw() after every tick, and counts the distinct frames of
rows 0–149, where every one of its cels lies.
The new line, before and after
| Build | Line |
|---|---|
168ae21c7d (tip) |
none |
f0f4ad0e76 (PR #73) |
princess check play cavern hotspot2: from ANIM_P21_MERMAID_HOTSPOT2A; A 6 steps, rests after 18 ticks on ANIM_P21_MERMAID_HOTSPOT2B, 7 distinct frames of rows 0-149, the rest 1; B 18 steps, rests after 54 ticks on ANIM_P21_MERMAID_HOTSPOT2C, 18 distinct frames of rows 0-149, the rest 1; C 6 steps, rests after 18 ticks on ANIM_P21_MERMAID_HOTSPOT2A, 6 distinct frames of rows 0-149, the rest 1 |
| scratch, HOTSPOT2 hidden (not committed) | … A 6 steps, rests after 18 ticks …, 1 distinct frames of rows 0-149, the rest 0; B 18 steps …, 1 distinct frames …, the rest 0; C 6 steps …, 1 distinct frames …, the rest 0 |
The line read exactly as predicted from the art before the first run. It can’t fail on the tip, because the tip isn’t broken; the hidden control shows it would catch an animation that plays by the log but isn’t drawn.
The diff
Seeded (random_seed=142), headless, --debuglevel=11, up to debug tools
check hits: seeded-baseline-168ae21c7d.log, …-run2.log and
seeded-wp142.log.
| Lines that differ | Baseline vs baseline (noise) | Baseline vs f0f4ad0e76 |
|---|---|---|
… check … lines (1,943 in the baseline) |
1: debug tools check hits (ms) |
2: the new line, and debug tools check hits (ms) |
| Lip-sync bytes | 692 | 1,108 |
Clip order, 4 streams playing |
38 | 68 |
| WFR beat ms, audio converter lines | 8 | 10 |
| Build stamp | 0 | 2 |
| Other | 84: KST and souvenir-store timing, file opens | 240: the same kinds, plus the new check’s own click at, hover, clickable … clicked, rests on, music and scene lines |
Jeff’s live check
live — Jeff, 2026-12-03, on f0f4ad0e76: “the window lit and the bat
flew, all three showed”. live1.log:
18:40:55 click at 555,89 on 9 OBJ_P21_MERMAID_HOTSPOT2
18:40:55 clickable OBJ_P21_MERMAID_HOTSPOT2 clicked at tick 507: anim ANIM_P21_MERMAID_HOTSPOT2A steps 6 sound SFX_P21_MERMAID_HOTSPOT2A next ANIM_P21_MERMAID_HOTSPOT2B
18:40:56 clickable OBJ_P21_MERMAID_HOTSPOT2 clicked at tick 553: anim ANIM_P21_MERMAID_HOTSPOT2B steps 18 sound SFX_P21_MERMAID_HOTSPOT2B next ANIM_P21_MERMAID_HOTSPOT2C
18:40:58 clickable OBJ_P21_MERMAID_HOTSPOT2 clicked at tick 625: anim ANIM_P21_MERMAID_HOTSPOT2C steps 6 sound SFX_P21_MERMAID_HOTSPOT2C next ANIM_P21_MERMAID_HOTSPOT2A
He then clicked the shell wall above Fred six times (18:41:21–18:43:10, e.g.
click at 206,253 on 10 OBJ_P21_MERMAID_HOTSPOT3) and asked whether it is
“just audio effects, no animations”. It is: HOTSPOT3’s object has no cel on
the disc, so each click plays its sound and draws nothing (§The states and
steps).
The launch line he ran:
$env:Path = "C:\msys64\ucrt64\bin;$env:Path"; & 'C:\claude-worktrees\scummvm-wp-142-cavern-hotspot-animation\build-tg\scummvm.exe' --config='C:\pcloud\scooby-engine\verification\wp-142-2026-12-03\wp142-live.ini' --debugflags=script,input,graphics --debuglevel=1 --logfile='C:\pcloud\scooby-engine\verification\wp-142-2026-12-03\live1.log' phantomknight
What’s left
Nothing. Fork PR #73 merged on 2026-12-03 (128127cf37).