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:
- WP-132 ✅: the TV pack
(
gui-icons-tvapp.dat) and the fork commit that loads it from the APK’s asset root. - WP-118 ✅: the launcher’s controls, the Group popup among them, reached with the remote.
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:
- The launcher reads every
*.xmlin every icon pack.LauncherDialog’s constructor (gui/launcher.cpp:229) callslistMatchingMembers(mdFiles, "*.xml")on the GUI’s icons set and parses each file into oneMetadataParser.SearchSet::listMatchingMembers(common/archive.cpp:551) lists the matches of every archive in the set, not just the first, so a second pack’s XML adds to the stock pack’s. - The parser fills four tables, keyed by id: games (
<engine>:<game>), engines, series and companies (gui/MetadataParser.cpp:70). A later file overwrites an entry with the same key; new keys add. - Grouping reads those tables:
LauncherSimple::groupEntries(gui/launcher.cpp:1352) for the list,LauncherGrid::groupEntries(:1598) for the grid. Each uses a game’scompany_id,series_idandyear, and the engines’, series’ and companies’ display names. - The TV pack is in the icons set. WP-132’s fork commit adds the
gui-icons*.datpacksSearchManholds, sogui-icons-tvapp.datat the APK’s asset root is read in place. Today it holds only covers (icons/<engine>-<game>.png), built by the private identity’stools/New-ThumbnailPack.ps1. - What the stock pack has (
gui/themes/gui-icons.dat:games.xml,engines.xml,series.xml,companies.xml): the companytlc(The Learning Company),he(Humongous Entertainment), and the seriescarmen,freddi,puttputt. Noterraglyphengine, no Scooby-Doo series, noterraglyph:*games. - The TV theme keeps the Group popup (
laGroupPopupin the TV layouts). - The parser’s required attributes: a
gameneedsid,name,engine_id,company_id,moby_id,datafiles,wikipedia_pageandseries_id; anengineneedsid,name,alt_nameandenabled; aserieneedsidandname. A missing one fails that file’s parse.
Scope
In scope
- 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
tlcrather than redefining it, so nothing of the stock pack is overwritten:tvapp-engines.xml: the engineterraglyph, named TerraGlyph;tvapp-series.xml: the seriesscoobydoo, named Scooby-Doo;tvapp-games.xml: the fiveterraglyphgames 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 showdown2000 README’s target-games table phantomknight2001 README jinxsphinx2001 README casefile12002 README activitychallengefrom 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.
- The pack script:
New-ThumbnailPack.ps1stores 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. - A Windows check before the TV: the pack in a scratch
iconspath, the launcher grouped each way. - The TV build, installed over the current one with
adb install -r(the app’s data and games stay), and captures.
Out of scope
- Metadata for games other engines run. The 54 Humongous games in the TV pack already have theirs in the stock pack.
- A cover or metadata for Case File #2: excluded (WP-005).
- Upstream submission to ScummVM’s icons repository. The engine isn’t upstream.
- The Windows preview build’s packaging and any new launcher screen.
Decisions
None open. Choices made in the draft, each reversible in one line:
- The series’ id and name:
scoobydoo, Scooby-Doo, in the stock pack’s style (puttputt, Putt-Putt). - The publisher: the stock pack’s
tlcfor every title, per the README. - Separate file names (
tvapp-*.xml, notgames.xml): the launcher reads any*.xml, and distinct names keep the pack’s files from being mistaken for the stock pack’s.
Dependencies
- The private repo’s
tv-app-identity(tools/New-ThumbnailPack.ps1,thumbnails/,assets/gui-icons-tvapp.dat). - A Windows build of the fork at
origin/scooby-enginefor the desk check; no fork change. - WSL’s Android build tree as in WP-137.
- The TCL 65Q77K over Windows
adb.
Execution
- Pre-flight, recorded in pre-flight-WP-138-2026-12-02; its open line, the TV’s state, is checked first.
- The metadata and the script on a private branch
wp-138-tv-pack-metadata; the pack rebuilt by the script alone. - Windows: the rebuilt pack in a scratch
iconspathwith the stock pack; Group set to Series, Publisher, Engine and Year in turn, and the log checked for “Failed to parse XML file”. - The TV build and install: the next versionCode,
adb install -r. - Captures on the TCL, the grid grouped by Series and by Publisher, with
the remote.
scummvm.iniis backed up first and restored byte for byte. - Close: private PR, this WP and
WORK_INDEX.md.
Exit criteria
New-ThumbnailPack.ps1builds 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.- 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.
- No “Failed to load XML file” or “Failed to parse XML file” warning in the
Windows log or in
logcat. - Without the pack (the stock pack alone), the grouping is as before.
scummvm.inion the TV is byte-identical after the checks.- The private PR with the metadata, the script and the rebuilt pack is merged.
Deliverables
- Private: the three XML files,
New-ThumbnailPack.ps1, the rebuiltgui-icons-tvapp.dat, the captures. - Public: this WP, its pre-flight and the
WORK_INDEX.mdrow. Captures that show the app name stay private.
Result
Drafted, pre-flighted and run on 2026-12-02 in one session (pre-flight-WP-138-2026-12-02).
- Private:
barefootbetters/scooby-engine-private#98,
merged on 2026-12-02 as
20c9579(squash): the three metadata files (thumbnails/metadata/tvapp-{engines,series,games}.xml, pinned LF by a.gitattributesso the pack rebuilds to the same bytes on any checkout),New-ThumbnailPack.ps1, the rebuiltgui-icons-tvapp.dat(23,588,395 bytes, SHA-256BEE071E3…328B) and the TV captures on the redesign page. - Activity Challenge’s year and publisher came from what WP-013 already
recorded (the TLC logo and
INSTALL\TLC\BONUSCD.CD, mastered 2001-09-18): 2001,tlc. The disc wasn’t read again. - The TV runs versionCode 26041074 (
2026.4.1-wp138.1), built in WSL on WP-137’s fork tree with only the pack changed, and installed over 26041073 withadb install -r. The pack inside the APK hashes the same as the rebuilt one.
Checked
- 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.
- Windows (the fork’s Windows build,
e1dd7bea63, list view; the rebuilt pack in a scratchiconspathbeside 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.
- 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. logcat: no XML warning and no “Missing data asset”.scummvm.iniwas 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
- Leak check. This repo carries no identity values (the app name, its distinctive word, the package id), as in EC-015. The metadata itself is public fact (titles, publisher, years) and names no app.
- A later stock pack that adds its own
terraglyphengine or a Scooby-Doo series would be read alongside this one; whichever file parses last sets the shared id’s name. The ids here don’t clash with today’s stock ids.