Vision: ScummVM Engine for The Learning Company Scooby-Doo Games
Project: terraglyph engine for ScummVM
Status: Pre-development — format research
Started: 2026-06
Goal
Implement a new ScummVM engine that runs The Learning Company’s Scooby-Doo CD-ROM adventure games on modern hardware via ScummVM, and contribute the engine upstream.
Once complete, players add these games to ScummVM the same way as any other supported title — point ScummVM at their disc or ripped ISO, and play.
Beyond the engine: a separate, forward-looking note sketches how these out-of-print titles could actually reach players — the distribution & compatibility-layer strategy, and the licensing an optional commercial layer would need. The engine goal above needs no license and proceeds regardless.
Non-Goals
- Bundling or redistributing copyrighted game data. Players supply their own discs.
- Modding, rebalancing, or “improving” the games. The goal is faithful playback.
- Supporting platforms ScummVM doesn’t already support.
- Standalone reimplementation outside ScummVM (DOSBox shims, custom runtime, etc.). ScummVM is the deliverable.
Target Games
All Scooby-Doo CD-ROM adventure titles published by The Learning Company / Passport / Knowledge Adventure between 2000 and 2003, plus a 2007 re-release. Engine sharing across the set is partially confirmed (TerraGlyph trio) and partially open (Case Files) — see the provenance check below.
| Title | Year | ISO file | Size | Notes |
|---|---|---|---|---|
| Scooby-Doo! Showdown in Ghost Town | 2000 | Scooby Doo Showdown in Ghost Town.iso |
607 MB | Primary RE target |
| Scooby-Doo! Phantom of the Knight | 2001 | Scooby Doo Phantom of the Knight.iso |
593 MB | Secondary target |
| Scooby-Doo! Jinx at the Sphinx | 2001 | Scooby Doo Jinx at the Sphinx.iso |
554 MB | |
| Scooby-Doo! Case File #1: The Glowing Bug Man | 2002 | Case File 1.iso |
407 MB | |
| Scooby-Doo! Case File #2: The Scary Stone Dragon | 2003 | Case File #2.iso |
584 MB | |
| Scooby-Doo! Case File #3: Frights, Camera, Mystery! | 2003 / 2007 re-release | Scooby Doo! #3.iso |
174 MB | Confirmed out of scope. Disc is a single TLC installer (Scooby-Doo!.exe), published by The Learning Company / Broderbund. Engine corrected 2026-11-21 — Macromedia Flash, not Director (the 2026-06-03 “Director” reading misread installer metadata): the installed payload is Flash (146 .swf + 2 .flv per the installer’s file table, 2026-11-30; zero Director markers). Plays from its title screen into its first rooms under Ruffle here (desktop v0.8.0 on Windows, 2026-12-01); full play is still only reported (Mony); ScummVM has no Flash engine and never will, so it stays out of scope permanently. No IBS engine payload. |
Also on disk: ScoobyDoo.iso (221 MB). Identified via the companion
archive.org-activity-challenge.url shortcut (pointing to
archive.org/details/scooby-dooac2001) as Scooby-Doo! Activity Challenge
(2001). It is a set of mini-games rather than a point-and-click
adventure, and this page assumed it used a different engine. WP-013
(2026-11-14) found the opposite: it runs Jinx’s engine (Gen 2). Its
Scooby.exe was built from the same source tree as Jinx’s
(C:\Projects\Scooby\Bonus\Mmfw\ beside Jinx’s
C:\Projects\SCOOBY\mummy\Mmfw\), one day earlier. All 112 of its MM*
framework classes are Jinx classes, and its archives are MMFW
(BONUS.MMF/.MMA/.MMP, Bonus.mms). It is no longer excluded on
engine grounds. Whether it joins a Phase 5 tier is not yet decided, since
its mini-games would be new game-layer work (see Phase 5).
The C:\pcloud\scooby-engine\ directory also contains archive.org-*.url
shortcuts for each disc, recording the provenance of the rips.
Provenance check (2026-06): archive.org and MobyGames confirm the five core ISOs are original Learning Company pressings (only Case File #3 is a re-release). Refined 2026-11-14: the Showdown and Phantom discs are TLC’s August 2001 re-pressing of both games (installer version 1.2, exes “Gold v1.19” and “Gold v1.16”), not their first 2000 pressings; see scooby-exe §Gen 1 discs are 2001 reissues. Developer attribution splits the list into two eras:
- TerraGlyph Interactive Studios developed Showdown (2000), Phantom of the Knight (2001), and Jinx at the Sphinx (2001). TLC published. Confirmed via Wikipedia, MobyGames, and PCGamingWiki.
- TerraGlyph shut down in 2001 (per Wikipedia). The Case File titles (#1, 2002; #2, 2003) shipped after that closure, under Riverdeep / The Learning Company successor branding. Their actual development studio is ambiguous in public sources (ImageBuilder Software has been credited in some listings). It is plausible but not confirmed that they inherited the TerraGlyph engine via IP transfer — TLC was itself acquired by Riverdeep around the same time.
- The Case File #3 disc on hand is a self-contained installer. Confirmed
out of scope. Published by TLC / Broderbund; single ~174 MB installer EXE at
disc root (
Scooby-Doo!.exe, a Windows installer database per its version resource — product “Scooby-Doo!(TM)”, v4.1.07, The Learning Company). Engine corrected 2026-11-21 — Macromedia Flash, not Director. The 2026-06-03 reading mistook the installer’s version metadata for a Director engine; a raw scan of the disc payload finds 456.swf+ 6.flvFlash movies and 92FWS/CWSSWF headers, and zero Director markers (no.dcr/.dxr/.dir/.cst,MV93,RIFX, “Macromedia Director”, “Lingo”). Refined 2026-11-30: those counts were name strings in the packed bytes; the installer’s file table lists 146.swf+ 2.flv(191 files), all SWF version 8 and ActionScript 1/2 only, run by a Flash Player 8 projector. Under Ruffle it plays on this project’s machines from the title screen through sign-in, a hub and its first rooms (Observed: Ruffle desktop v0.8.0 on Windows, 2026-12-01). That the whole game plays is still Reported (Mony, 2026-11-21). ScummVM has no Flash engine, so #3 is permanently out of scope regardless of what happens with #2.
Implication: the “single shared engine” assumption only holds with
confidence for the three TerraGlyph titles. Whether the Case Files share
that engine is a Phase 1 question, answered by mounting the ISOs and
comparing file structures (TGIFILE.ART, Scooby.exe, object.ini).
Engine Lineage (2026-06 finding)
Phase 1 cross-title analysis (Rich Header on each title’s main binary +
archive magic-byte inspection — see
docs/formats/scooby-exe.md Findings) reveals
one engine lineage across three format generations (Case File #2,
once listed as a fourth, is a different engine; see below):
| Gen | Titles | Toolchain | Archive | Config | Cutscenes |
|---|---|---|---|---|---|
| 1 | Showdown (2000), Phantom (2001) | VC6, game C++ build 8966 (richprint: SP5) | TGIFILE.ART (raw count + index) |
INI text (object.ini, Scooby.eng) |
Bink (binkw32.dll 286 KB) |
| 2 | Jinx (2001); Activity Challenge (2001, WP-013) | VC6, C and C++ build 8168 (richprint: release); Activity Challenge’s C++ is mostly build 8447 | MMFW wrapper container |
TBD (likely INI) | Bink + Smacker |
| 3 | Case File #1 (2002) | VC6 Processor Pack, game C++ build 8943; 36 C objects at Jinx’s 8168 | MMFW continues |
XML via libexpat.dll |
raw .avi |
| — | Case File #2 (2003) | Not this lineage (WP-005, 2026-11-13): VC6 like the lineage, but no shared code markers, dynamic MSVCRT, VS2002/2003 import libraries | .bul/.inx bulk archives (LZO) |
loose .mps + .xml scripts |
Bink (binkw32.dll 375 KB, newer SDK) + Miles (mss32.dll) |
Toolchain corrected 2026-11-14. The 2026-06 table read every title as
Visual C++ 5.0 with Linker 5.10. That came from a wrong product-ID table in
tools/rich_header.py. Every title is Visual C++ 6.0, and every PE header
says linker 6.00. The build numbers still group the titles the same way;
what they mean changed. Evidence and sources:
scooby-exe §Toolchain.
The Gen 1 → Gen 2 jump coincides with a different TerraGlyph build environment: Jinx compiles everything with VC6 build 8168, the release build, where Gen 1’s game code is the later 8966 (SP5). The 2026-06 text called this an upgrade; the compiler build went the other way. The Gen 1 exes we have are August 2001 reissue builds, made four weeks before Jinx’s, so the two environments were in use at the same time; what the 2000 release exes were built with is unknown. The Gen 2 → Gen 3 jump (late 2001 / 2002) coincides with the TerraGlyph shutdown and ImageBuilder Software (IBS) taking over development, shown by:
- IBS carrying TerraGlyph’s MMFW source into Case File #1: the same
MM*RTTI classes,MMFWresource labels andMMVisualCursor.cppsource unit as Jinx, under IBS’s own source tree - IBS rebuilding that source with a newer compiler (the VC6 Processor Pack, build 8943, for all its C++), while 36 C objects keep Jinx’s compiler build 8168, possibly a library carried over prebuilt. The 2026-06 text said IBS shipped Jinx’s compiled object files; none of Jinx’s C++ objects is in Case File #1.
- IBS introducing XML configuration via
libexpat.dll - The Case File #1 disc carrying an
IBSlogo.avialongsideTLClogo.avi
Case File #2 (2003) runs a different engine (WP-005, 2026-11-13). It was filed here as “Gen 4” after a disc inspection on 2026-06-03, which found a complete format break:
.bul/.inxbulk archives in place ofMMFW- loose
.mps+.xmlscripts - Bink back, now with Miles audio
- a two-tier
HD\+rsc\disc
WP-005 checked the executable and found no code continuity with the
lineage. The evidence, all in
docs/formats/scooby-exe.md:
- No shared code markers. Its
Case File #2.exeshares no RTTI class,MMFWstring, error template, source path or engine string with Showdown, Jinx or Case File #1. The overlap is Win32/CRT names and product names. - Different libraries. It links the CRT dynamically (
MSVCRT.dll), which no lineage binary does, and it links VS2002/2003-era import libraries instead of the 16–17 linker 5.12 import records every lineage binary carries. Its compiler is Visual C++ 6.0 like the lineage’s, so the toolchain itself does not separate it. (The 2026-06 wording, “no MSVC 5.0 C++ build 8034 objects”, rested on the mislabel corrected 2026-11-14.) - Its own framework. It uses
R*classes (RScenePort,RWorldPort,RResourcePort,RHotSpot,RCharacter,RXMLFile), LZO, IJG libjpeg and its own XML writer. - The same engine ships with another game. The disc carries a
Powerpuff Girls demo (
GroovyGoodies\PPG2Demo\) whose resources are the same.bul/.inxpair. Its engine DLLs (trinket.dll,ompp32x.dll“OM++”,tcx.dll,rbink6x.dll) contain 17 of the sameR*classes, the same bulk-file loader errors and the same LZO build. Case File #2 links that framework statically.
The same framework also runs the publisher’s launcher on both Case File
discs: Case File #1’s HD\LAUNCHER\ ships TLCLLTrinketcore.dll and
ompp32x.tlc. So the 2003 title moved onto that launcher framework, which
also ran a non-Scooby game, rather than extending the TerraGlyph engine. The verdict is
INCOMPATIBLE, and Case File #2 leaves the project’s scope (see Phase 5).
Its copyright string is Riverdeep’s; it names no developer, so this page
names none.
The TerraGlyph engine codebase continued through IBS via direct code inheritance (object files literally embedded), not just architectural reuse. This is the strongest possible engine-family signal.
Confirmed findings (2026-06-03, revised 2026-11-13):
- Case File #2 (2003): not this engine — WP-005 (2026-11-13) found no code continuity and found the same engine in a Powerpuff Girls demo on the same disc (see above). The 2026-06-03 “Gen 4” label is withdrawn.
- Phantom (2001): Gen 1 confirmed —
TGIFILE.ARTpresent on disc (≈109 MB vs Showdown’s 144 MB),binkw32.dllhash identical to Showdown (same Bink SDK build),Scooby.exebuild date 2001-08-22, the same as Showdown’s, because both cached discs are the August 2001 reissue (corrected 2026-11-14; the 2026-06 text read this as a shared original release cycle). Archive format locked to Gen 1. Verified structurally by WP-006 (2026-11-13): Phantom’sTGIFILE.ARTpasses every--verifycheck and its.dataudio passesprobe_audio.py --verify. All 71 functions WP-001 traced in Showdown are byte-identical in Phantom’sScooby.exe, so Gen 1 is one engine build over two data sets. - Case File #3: confirmed out of scope — Macromedia Flash engine (corrected 2026-11-21; was misread as Director), TLC/Broderbund publisher. Not part of this lineage; plays into its first rooms under Ruffle (observed 2026-12-01), never a ScummVM target.
- Activity Challenge (2001): Gen 2 — WP-013 (2026-11-14). Same
MMFWframework as Jinx, from the same source tree. 323 of its 510 RTTI names and 532 of its 549 engine strings are Jinx’s, and its imports differ by five functions. ItsMMFWheaders match Jinx’s, and its logo videos and launcher are byte-identical to Jinx’s. The game layer is its own:KnightsTable,PieNoonand skiing mini-games around a campfire hub. Evidence: scooby-exe §Activity Challenge.
Implementation implication: the terraglyph ScummVM engine covers one
engine lineage with format-version-aware adapters: three archive
parsers (TGIFILE.ART, MMFW for Gen 2 and 3) and two config parsers
(INI, XML). These are adapters, not separate engines. The detection table
(ADGameDescription) carries a gen flag per entry, and the engine
branches at the format-version boundaries. Case File #2 is outside it.
Why This Is Feasible
Most engine reverse engineering projects start from fully opaque binary formats. Initial inspection of Showdown in Ghost Town found that this engine is unusually well-structured.
Verified — human-readable as shipped
object.ini— Windows INI file (1,405 lines) defining every interactive object, room exit, inventory item, cursor animation, and destination room. No decoding required.Scooby.eng— Plain text localized string table using a simple[NNNN]message ID format. Trivial to parse.
Verified — handled by existing ScummVM code
BK.XXX— Bink video (magic bytesBIKi). ScummVM ships a Bink decoder; all cutscenes and animations route through it.
Not yet decoded — reverse engineering required
TGIFILE.ART — decoded (WP-002, 2026-11-13)
144 MB proprietary archive, formerly the primary risk area. WP-002
decoded it from the data file alone; every image in the file now decodes.
See docs/formats/tgifile-art.md for the
byte-level spec and tools/probe_art.py for the
reference decoder.
Structure (Showdown, verified across the whole file):
- Header:
uint32LE69 (scene count), 69 scene descriptors,uint32LE453 (object count) at0x0118, 453 eight-byte object descriptors. The descriptor values are not file offsets; their encoding is still open. The 2026-06 reading of the 453 records as(start, end)offsets, with a first payload at0x10017E, was wrong. - Engine name table from
0x0F60(WP-003): 68-byte records, type-tagged IDs. - From
0x20000: 453 object resources, packed back to back on 2,048-byte sector boundaries. Resourceiis the art forOBJidi. - Then 69 scene blocks to end of file: an object placement list plus a 640 × 480 (two are 1920 × 480) background.
- Every image is a “cel”: a 24-byte header (size, width, height, two mask
offsets), a run-length pixel stream (
F0 count hi lo= run, anything else = one literal pixel), and span-list masks. Pixels are RGB565, stored big-endian; no palette. In sprites,0x0000is transparent.
Remaining unknowns: the descriptor encodings, the scene-to-ROOM_*
mapping, and the animation-sequence records. None of them blocks image
extraction.
Success condition: render at least one Showdown background or sprite to
PNG/BMP outside the engine, matched visually against the original. Met on
recognizability: OBJ_DAPHNE_A and the other resources decode to the
characters in their canonical colors, and scene blocks decode to Ghost Town
backgrounds. A frame-by-frame comparison against captured screenshots waits
on WP-009.
Audio archives
Music.dat, Sfx.dat, Voice.dat. Decoded (WP-004, 2026-11-13):
a name-indexed set of clips, each uncompressed PCM (mostly 22050 Hz
16-bit, mono or stereo) after a 16-byte header and, for voice, a lip-sync
track. ScummVM’s raw PCM stream plays them; no new decoder is needed. See
docs/formats/audio-archives.md.
Confirmed structure (all three files share the same 12-byte header):
- Bytes 0x00–0x0B:
version(= 1, uint32LE),entry_count(uint32LE),index_offset(uint32LE; offset of the index table, per WP-001 — seedocs/formats/audio-archives.md) - Music.dat: 28 entries / 91.7 MB — Sfx.dat: 316 entries / 30.7 MB — Voice.dat: 821 entries / 103.8 MB
- Index table at
index_offset:entry_count68-byte records (u32clip offset,char[64]clip name<Section>.<Clip>), ending exactly at end of file in all three files. Clips are sector-aligned from0x800and looked up by name.
Remaining unknowns: the lip-sync bytes’ high bits, and where (if anywhere) dialogue text lives.
Execution tracked in WP-004.
For Phase 1, codec identification is sufficient. Full decode can defer to Phase 3; ScummVM already supports the codec (raw PCM).
Scooby.exe
Main executable. Ghidra analysis needed to map room transitions, puzzle state, and resource loading — but see Game Logic Strategy for how to keep that scope from spiraling.
Executable analysis has two complementary tracks (scooby-exe §Two analysis tracks): focused Ghidra work (WP-001), and decompdecomp-assisted cooperative decompilation, starting with an outside collaborator’s work on Case File #1 (WP-011).
Runtime Dependencies (Original Game)
- DirectX 7.0 — graphics + sound. ScummVM abstracts both away.
binkw32.dll— Bink video runtime. ScummVM’s built-in decoder replaces it.
Engine Contract (ScummVM Requirements)
The terraglyph engine must conform to ScummVM conventions:
- Stateless per-frame rendering. No reliance on OS-managed surfaces; the ScummVM compositor owns the screen.
- Centralized event loop via
Engine::run(). No threaded I/O or hidden update loops. - File access via ScummVM abstractions (
Common::File, archive members) — no direct filesystem calls. - In-engine decoding only. No external DLLs at runtime; Bink playback uses ScummVM’s built-in decoder.
- Deterministic, platform-independent behavior. Same input produces the same output across all ScummVM ports.
Implication: anywhere the original engine relied on DirectX surfaces, threaded resource streams, or implicit Windows-global state, that logic must be re-expressed in ScummVM-compatible form. Architectural drift here is the silent way a ScummVM PR gets bounced — keep it tight from Phase 2 onward.
For the concrete API contract (which classes to subclass, which calls to
make, what the upstream PR must satisfy), see
docs/02-SCUMMVM-INTEGRATION.md. This vision
doc owns the principles; that doc owns the implementation surface.
Game Logic Strategy
Game logic will be reconstructed via two approaches, in priority order:
A. Data-driven (preferred). Behavior inferred from object.ini,
Scooby.eng, and observed disc layout. Minimal disassembly. If
object.ini can describe a behavior — room exits, hotspot actions, cursor
mappings, inventory rules — read it from object.ini.
B. Binary-assisted (fallback). Where data files don’t fully specify
behavior — puzzle state machines, animation timing, save-game format —
trace the relevant subroutine in Scooby.exe via Ghidra and reimplement.
Rule: disassembly is a last resort. Every Ghidra-derived function adds
Phase 4 scope. Prefer the data-driven path whenever it’s feasible. The
1,405-line object.ini strongly suggests TerraGlyph already exposed most
behavior as data — exploit that.
WP-008 baseline (2026-06-03) — refines the A/B split with evidence. The
Showdown object.ini analysis (scooby-exe.md §object.ini interpreter
behavior) confirms
the asset-binding and navigation graph are pure path A — every
asset reference is a string in the WP-003 name-table convention
(ROOM_*/OBJ_*/ANIM_*), no numeric indices, 215 OBJ entries
discriminated by an ID= field with 5 values. But the puzzle / state
logic is not in object.ini — no conditional if-X-then-Y structure
exists, requiresobject only gates input events not outcomes, and the
scrappyid=Global.Scrappy.* field references a script identifier
resolved elsewhere. So path A handles binding + navigation; path B
(Ghidra trace of the Scooby.eng “Failed to load room.” loader and the
scrappyid script resolver) is unavoidable for puzzle / state behavior.
The 1,405-line comment above is correct in spirit but should be read as
“most of the asset / navigation layer is data” — not “most of the game
logic is data.”
Decision (Proposed, 2026-11-11) — decompdecomp as a complementary path-B tool. Evaluate decompdecomp as a complementary executable-analysis workflow for the Case File games, while keeping focused Ghidra analysis and the format-first strategy above. It may speed up function reconstruction, cooperative processing, byte matching and cross-game comparison. Ghidra work is still needed for subsystem identification, semantics, validation, and translation into maintainable ScummVM code. It stays Proposed until a capped local trial establishes usefulness, cost, reproducibility and repository boundaries. Decompiled code is research evidence only; the engine is written independently. Record and rationale: WP-011 §Status and decision log.
Risks & Unknowns
- Engine architecture mismatch. ScummVM’s conventions assume things like fixed palette banks, frame-stepped event loops, room-scoped resources. If TLC’s engine made very different assumptions (compositing in screen space, threaded resource streams, heavy scripting), more glue code is needed and some assumptions in this plan break.
- Audio codec. If
Music.datuses a licensed codec (patent-encumbered MP3 frames, etc.), playback may not fit ScummVM’s existing backends cleanly. Gen 1 audio is plain PCM (WP-004), so this risk is retired for the in-scope titles. Miles appears only in Case File #2, which WP-005 placed on a different engine and out of scope. - Cross-title divergence (resolved 2026-11-13). One engine lineage spans
three format generations: Gen 1 Showdown/Phantom, Gen 2 Jinx, Gen 3 Case
File #1. IBS inherited TerraGlyph’s compiled object files into Case File
#1, which confirms code-level continuity through Gen 3. Case File #2, once
listed as Gen 4, runs a different engine shared with a Powerpuff Girls
title (WP-005, see Engine Lineage) and is out of scope. Phantom’s archive
format is confirmed Gen 1 (
TGIFILE.ARTon disc, identicalbinkw32.dllhash to Showdown). Case File #3 is confirmed out of scope (Macromedia Flash; corrected 2026-11-21). Working assumption: three generation-specific adapters on one engine. Residual uncertainty: function-level confirmation of the Gen 2 → Gen 3 inheritance (WP-011). - Schedule realism. This is a first-time ScummVM engine on an undocumented format. The reference engine, BOLT, took years to get upstream. Phase ordering below is firm; durations are deliberately not estimated.
Development Phases
Per-phase work is tracked at the WP level in
docs/work-packets/WORK_INDEX.md. The phase
prose below sets the scope; the WP files specify the units of work and
their exit criteria. ECs under
docs/execution-checklists/ hold step-by-step
playbooks for the WPs most likely to sprawl.
Phase 1 — Format Research
Work items:
TGIFILE.ARTpayload decoded and images extracted from Showdown (WP-002, 2026-11-13; seedocs/formats/tgifile-art.md). Frame comparison against reference screenshots waits on WP-009.- Locate audio archive index table; identify codec(s). Done (WP-004, 2026-11-13): uncompressed PCM, see
docs/formats/audio-archives.md. - Load
Scooby.exeinto Ghidra; trace file I/O and resource lookup. - Engine-family check: mount Case File #1 and #2 ISOs; compare disc layouts and file signatures against Showdown (same file names, same magic bytes, compatible archive structure?).
Exit criteria (all required):
- At least one
TGIFILE.ARTentry extracted to PNG or BMP and matched visually against in-game output. TGIFILE.ARTstructure documented indocs/formats/tgifile-art.md: header layout (byte offsets, field sizes) and entry table (count, offsets, sizes).- At least one audio container inspected; codec identified by name (even if not yet decoded). Met (WP-004, 2026-11-13): all three
.datfiles are uncompressed PCM. - Engine-family question answered in writing: do Case File #1/#2 share format with Showdown, or do they need a separate engine? Met (WP-005, 2026-11-13): Case File #1 is the same lineage (Gen 3, inherited TerraGlyph object files) with different formats; Case File #2 is a different engine.
Fail condition: inability to extract any visual asset from TGIFILE.ART blocks Phase 2 — revisit feasibility before continuing.
Phase 2 — ScummVM Engine Scaffold
Work items:
- Fork
scummvm/scummvmintoC:\www\scummvm\. - Create
engines/terraglyph/from ScummVM’s engine template. - Implement game detection via ScummVM’s
ADGameDescriptiontable. - Wire up the event loop, graphics surface, and debug logging (define channels for resource loading, rendering, input, and script).
Detection requirements:
- Signature files:
Scooby.exe,TGIFILE.ART,object.ini. - Match on file presence + file size; use MD5 only for version differentiation.
- Detection must distinguish TerraGlyph titles from Case Files (if file structures diverge) and from regional variants.
- Do not match on ISO filename or disc directory structure — both are user-controlled.
Exit criteria:
- Engine compiles cleanly against current ScummVM
master. - Each of the five candidate ISOs is correctly detected or correctly rejected (e.g. Case File #3).
- Engine launches without crash; at least one debug-channel message appears in the log.
Phase 3 — Resource Loading
Work items:
TGIFILE.ARTparser integrated into the engine; render first background.- Audio loader for at least one
.datarchive format. Scooby.engstring parser.object.iniparser populating internal game-object structs.
Exit criteria:
- The Room 1 background of Showdown renders correctly via ScummVM’s graphics layer.
- At least one interactive object from
object.iniis positioned correctly on that background. - UI/dialogue strings resolve from
Scooby.engand display correctly. - One audio clip (music, SFX, or voice) plays through ScummVM’s audio mixer.
Phase 4 — Game Logic
Work items:
- Room/scene management and transitions.
- Cursor system and object interaction.
- Inventory.
- Bink video playback for cutscenes (via ScummVM’s built-in decoder).
- Puzzle state machine —
object.ini-driven first; reach for Ghidra only where data files don’t suffice (see Game Logic Strategy).
Exit criteria:
- Showdown in Ghost Town is playable end-to-end.
- No fatal errors or progression blockers across a full playthrough.
- All cutscenes play through ScummVM’s video subsystem with no external Bink runtime.
Phase 5 — Polish & Contribution
Scope rule (revised per Engine Lineage finding above):
- Minimum: full support for Showdown in Ghost Town (Gen 1).
- Extended (high confidence): Showdown + Phantom (Gen 1 — identical toolchain, confirmed identical
binkw32.dllhash). - Extended (medium confidence): + Jinx (Gen 2 — requires
MMFWcontainer parser as a sibling to the Gen 1TGIFILE.ARTparser). - Stretch (medium confidence): + Case File #1 (Gen 3 — requires MMFW parser, XML config via
libexpat.dll, raw.avicutscene path alongside the Bink path). - Unassigned: Activity Challenge (Gen 2 by code, WP-013, 2026-11-14). Its archives would open with the Jinx-tier
MMFWparser, but its real-time mini-games are game-layer work no adventure title needs. It joins a tier by decision, not by default. The fork already detects it as Gen 2, unsupported, so the launcher recognises the disc but will not start it. - Excluded: Case File #2 (a different engine, shared with a Powerpuff Girls title; WP-005, 2026-11-13) and Case File #3 (Macromedia Flash / TLC-Broderbund; corrected 2026-11-21).
Each generation extends the engine with one new adapter per axis; the shared engine core handles room/scene management, cursor/inventory, and puzzle state across all generations.
Work items:
- Test in-scope titles; generate
ADGameDescriptionentries for each. - Save/load support if the engine has a meaningful save format; otherwise document as a known limitation.
- ScummVM wiki page covering supported titles, known limitations, and game-data requirements.
- Open PR to
scummvm/scummvmtargetingADGF_TESTING.
Exit criteria:
- PR opened with at least Showdown in
ADGF_TESTING. - ScummVM wiki page published.
- PR accepted (with or without revisions) into ScummVM mainline.
Success Criteria
All required:
- Showdown in Ghost Town boots from an unmodified ISO mount with no patches to game data.
- A full playthrough completes to credits with no missing assets, fatal errors, or progression blockers.
- All cutscenes render through ScummVM’s video system (no external Bink runtime).
- The engine is accepted into ScummVM mainline at
ADGF_TESTINGor higher.
Stretch:
- The TerraGlyph trilogy (Showdown + Phantom + Jinx) runs without per-title engine forks.
- Case File #1 runs (Gen 3, same lineage). Case File #2 is excluded: WP-005 found it on a different engine.
Tooling
Local working set, established during Phase 1:
- Hex viewer / binary diff tool for archive inspection.
- Ghidra project (
scooby.gpr) with labeled symbols forScooby.exe. - decompdecomp (proposed, WP-011) for cooperative, byte-matching decompilation; project files stay outside this repo or under the gitignored
tools/decomp/. - Python extractor scripts under
tools/for repeatable asset dumps fromTGIFILE.ARTand the audio archives. - ScummVM debug-channel taxonomy defined in the engine (resource, render, input, script).
tools/New-ForkWorktree.ps1/tools/Remove-ForkWorktree.ps1— per-WP git worktrees of the scummvm fork underC:\claude-worktrees\, so concurrent sessions don’t collide in the singleC:\dev\scummvmcheckout (see wp-lifecycle §End-to-end step 5).
Legal Basis
Reverse engineering for interoperability is lawful in the US (17 U.S.C. § 107; Sega v. Accolade) and the EU (Software Directive 2009/24/EC, Article 6). ScummVM has operated under this framework since 2001. Game data is never bundled with the engine — players supply their own.
File Layout
C:\dev\terraglyph-engine\ ← this project (engine research + docs)
C:\dev\scummvm\ ← fork of scummvm/scummvm (engine implementation; base clone, kept clean on scooby-engine)
C:\claude-worktrees\scummvm-*\ ← per-WP fork worktrees (one branch each; where engine WPs are worked — wp-lifecycle step 5)
C:\pcloud\scooby-engine\ ← ISO images of original game discs (read-only)
Key References
- ScummVM HOWTO: Add a New Engine
- ScummVM Code Contribution Guidelines
- ScummVM BOLT engine — recent example of a newly contributed engine
- beholdnec/scummvm-funhouse — BOLT engine development fork (model to follow)
- ScummVM Forums