WP-138: Series, publisher and year for the TerraGlyph games in the TV app

Status: ✅ Done (2026-12-02), every exit criterion met. Private PR barefootbetters/scooby-engine-private#98 merged on 2026-12-02 (20c9579); no fork change. Pre-flight READY. See §Result. Phase: 5 (polish & distribution). Depends on:

Unblocks: the TV library sorted by series and publisher; a game’s year and series for any later screen that shows them. Companion EC: — (the steps fit in §Execution). Pre-flight: required. The packet changes what the TV build packages. Targets generation(s): all four detected TerraGlyph games and the Activity Challenge bonus disc. No engine code. Estimated effort: half a day: the metadata, the script, one Windows check, one TV build and the checks.


Goal

The launcher’s Group popup already offers Series, Publisher, Engine and Year. For the TerraGlyph games it has nothing to group by: they fall under No Series, Unknown Publisher and a bare terraglyph. After this packet the TV pack carries their metadata, so on the TV the five TerraGlyph games group under Scooby-Doo, under The Learning Company (as the Humongous games group under Humongous Entertainment), under the engine TerraGlyph, and by year. No fork code.

Background

What the fork does today (origin/scooby-engine @ c1f2825762), read for this draft:

Scope

In scope

  1. The metadata, in the private identity, as three files beside the covers. Each defines only ids the stock pack lacks, and refers to the stock pack’s tlc rather than redefining it, so nothing of the stock pack is overwritten:
    • tvapp-engines.xml: the engine terraglyph, named TerraGlyph;
    • tvapp-series.xml: the series scoobydoo, named Scooby-Doo;
    • tvapp-games.xml: the five terraglyph games in the detection table (showdown, phantomknight, jinxsphinx, casefile1, activitychallenge), each with its name as the detection table gives it, company_id="tlc", series_id="scoobydoo" and its year. The other required attributes are present and empty.
    Game id Year Source
    showdown 2000 README’s target-games table
    phantomknight 2001 README
    jinxsphinx 2001 README
    casefile1 2002 README
    activitychallenge from the disc its copyright line; left empty if the disc doesn’t say

    The publisher of every title is The Learning Company, as the README’s target-games line says. Case File #1’s developer (ImageBuilder) doesn’t change that: the launcher groups by publisher. If the Activity Challenge disc names another publisher, it takes that company’s stock id, or none.

  2. The pack script: New-ThumbnailPack.ps1 stores the three files at the pack’s root, unchanged, after checking each parses as XML and that every element carries the attributes the parser requires. The read-back check covers them as it covers the covers.
  3. A Windows check before the TV: the pack in a scratch iconspath, the launcher grouped each way.
  4. The TV build, installed over the current one with adb install -r (the app’s data and games stay), and captures.

Out of scope

Decisions

None open. Choices made in the draft, each reversible in one line:

Dependencies

Execution

  1. Pre-flight, recorded in pre-flight-WP-138-2026-12-02; its open line, the TV’s state, is checked first.
  2. The metadata and the script on a private branch wp-138-tv-pack-metadata; the pack rebuilt by the script alone.
  3. Windows: the rebuilt pack in a scratch iconspath with the stock pack; Group set to Series, Publisher, Engine and Year in turn, and the log checked for “Failed to parse XML file”.
  4. The TV build and install: the next versionCode, adb install -r.
  5. Captures on the TCL, the grid grouped by Series and by Publisher, with the remote. scummvm.ini is backed up first and restored byte for byte.
  6. Close: private PR, this WP and WORK_INDEX.md.

Exit criteria

  1. New-ThumbnailPack.ps1 builds the pack with the three files at its root, byte-identical to their sources, and refuses a file that doesn’t parse or lacks a required attribute.
  2. On Windows and on the TCL, with the pack:
    • Series: the installed TerraGlyph games sit under Scooby-Doo; the Humongous games still sit under their stock series;
    • Publisher: the TerraGlyph games sit under The Learning Company;
    • Engine: they sit under TerraGlyph;
    • Year: each sits under its year.
  3. No “Failed to load XML file” or “Failed to parse XML file” warning in the Windows log or in logcat.
  4. Without the pack (the stock pack alone), the grouping is as before.
  5. scummvm.ini on the TV is byte-identical after the checks.
  6. The private PR with the metadata, the script and the rebuilt pack is merged.

Deliverables

Result

Drafted, pre-flighted and run on 2026-12-02 in one session (pre-flight-WP-138-2026-12-02).

Checked

  1. The script. The three files sit at the pack’s root, byte-identical to their sources in the read-back. A copy missing a required attribute and a malformed copy were each refused, with no pack written.
  2. Windows (the fork’s Windows build, e1dd7bea63, list view; the rebuilt pack in a scratch iconspath beside the stock pack; the five TerraGlyph games plus Freddi Fish and Putt-Putt configured):
    • Series: the TerraGlyph games under Scooby-Doo; Freddi Fish and Putt-Putt under their stock series.
    • Publisher: under The Learning Company.
    • Engine: under TerraGlyph.
    • Year: 2000, 2001 and 2002 as in the table; Activity Challenge under 2001.
    • Stock pack only: No Series and Unknown Publisher, as before.
    • No “Failed to load/parse XML file” in any of the eight logs.
  3. The TCL (the installed games: Showdown, Phantom of the Knight, Beneath a Steel Sky), the grid grouped each way through scummvm.ini (run-as): Scooby-Doo and No Series; Revolution and The Learning Company; Sky (Beneath a Steel Sky) and TerraGlyph; 1994, 2000 (Showdown) and 2001 (Phantom). The TV theme’s group headers keep the names’ case and hyphen, so the engine name file shows there as TerraGlyph; the stock theme’s list view on Windows uppercases headers.
  4. logcat: no XML warning and no “Missing data asset”.
  5. scummvm.ini was byte-identical to its backup after each run. The app rewrites the file in its own key order when it runs, so the backup was taken at the start of each run; the keys and values matched the first backup throughout.

Captures that show the app name are on the private redesign page.

Notes