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


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:

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:

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:

WP-005 checked the executable and found no code continuity with the lineage. The evidence, all in docs/formats/scooby-exe.md:

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):

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

Verified — handled by existing ScummVM code

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):

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):

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)


Engine Contract (ScummVM Requirements)

The terraglyph engine must conform to ScummVM conventions:

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


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:

Exit criteria (all required):

  1. At least one TGIFILE.ART entry extracted to PNG or BMP and matched visually against in-game output.
  2. TGIFILE.ART structure documented in docs/formats/tgifile-art.md: header layout (byte offsets, field sizes) and entry table (count, offsets, sizes).
  3. At least one audio container inspected; codec identified by name (even if not yet decoded). Met (WP-004, 2026-11-13): all three .dat files are uncompressed PCM.
  4. 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:

Detection requirements:

Exit criteria:

  1. Engine compiles cleanly against current ScummVM master.
  2. Each of the five candidate ISOs is correctly detected or correctly rejected (e.g. Case File #3).
  3. Engine launches without crash; at least one debug-channel message appears in the log.

Phase 3 — Resource Loading

Work items:

Exit criteria:

  1. The Room 1 background of Showdown renders correctly via ScummVM’s graphics layer.
  2. At least one interactive object from object.ini is positioned correctly on that background.
  3. UI/dialogue strings resolve from Scooby.eng and display correctly.
  4. One audio clip (music, SFX, or voice) plays through ScummVM’s audio mixer.

Phase 4 — Game Logic

Work items:

Exit criteria:

  1. Showdown in Ghost Town is playable end-to-end.
  2. No fatal errors or progression blockers across a full playthrough.
  3. 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):

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:

Exit criteria:

  1. PR opened with at least Showdown in ADGF_TESTING.
  2. ScummVM wiki page published.
  3. PR accepted (with or without revisions) into ScummVM mainline.

Success Criteria

All required:

  1. Showdown in Ghost Town boots from an unmodified ISO mount with no patches to game data.
  2. A full playthrough completes to credits with no missing assets, fatal errors, or progression blockers.
  3. All cutscenes render through ScummVM’s video system (no external Bink runtime).
  4. The engine is accepted into ScummVM mainline at ADGF_TESTING or higher.

Stretch:


Tooling

Local working set, established during Phase 1:


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