Data Management
Data Management is the catalog workshop. It owns the user working copy of Master.db, the enrichment sources that dress it, and the Inbox of unmatched cabinet launches.
Choose the right altitude
Section titled “Choose the right altitude”| Altitude | Use it for |
|---|---|
| Workshop | Enable build inputs, preview changes, and rebuild Master.db |
| Catalog | Search the game catalog or an enrichment dataset, inspect rows, and save local corrections |
| Inbox | Resolve or ignore unmatched launches captured by ArcadeServer |
Data Packs installs packages. Workshop enables applicable inputs in the Data Build Profile. Install and enable are separate actions.
Which catalog owns the data?
Section titled “Which catalog owns the data?”In this workflow, active catalog describes the selected catalog snapshot; it is not an extra editable game database. Keep these objects separate:
| Object | Owner and purpose | Change it through |
|---|---|---|
| Shipped catalog baseline | Seed and record-restore source; remains separate from user work | The supported catalog bootstrap/repair workflow, not ordinary package writes |
User working Master.db | Studio’s current game identities and merged catalog data | Data Management inputs, corrections and explicit rebuild |
| Data Build Profile | Enabled inputs, priorities and pending build work | Data Management → Workshop |
| Package catalog/index | Available-package metadata and diagnostic projections | Data Packs, including its explicit index rebuild |
| Installed-package ledger | Package install/remove/disable lifecycle state | Package lifecycle actions; it does not select Workshop inputs |
| Published runtime catalog | The game catalog copy in the selected Server’s active bundle | Publish the intended working catalog, then verify the active bundle |
| Host runtime target catalog | Program/frontend targets and process aliases, separate from game identities | Existing target-catalog client/API; activation from a published target-rules artifact remains unverified |
The working catalog and its published copy can share the name Master.db while
representing different saved states. A package version, a catalog snapshot identity
and Games.RomId identify different things. Do not use one as proof of another.
The current workflow does not require a second Server live catalog or a direct connection to Studio’s working database. See Architecture for other ownership boundaries and Publish checks for readback.
Rebuild the working catalog
Section titled “Rebuild the working catalog”Open Data Management → Workshop after installing metadata enrichment, changing catalog sources, or saving catalog corrections.
- Review the enabled build inputs.
- Review Button labels, Controller templates, and Metadata enrichment when applicable.
- Preview the rebuild.
- Select Rebuild Master.db.
The rebuild starts from the existing user working catalog and merges by strong identity. It does not wipe the Games table or rewrite existing RomId values.
| Available input | Rebuild behavior |
|---|---|
| DAT or XML sources | Import rows, then apply enrichment |
| Metadata enrichment only | Keep the working catalog and apply labels, colors, and templates |
| Both | Import first, then enrich |
| Neither | Stop without writing because there is no work to apply |
The build uses a candidate copy, validates it, and swaps it into place only after validation. The shipped baseline remains read-only.
If rebuild fails, retain its reported build result and backup/candidate information. The failure path attempts to restore the snapshot; inspect the result and working catalog before publishing. A dry-run or preview is not a completed catalog rebuild.
Find and correct catalog data
Section titled “Find and correct catalog data”Open Catalog and choose a dataset. The picker includes Master.db and the enrichment sources used for platform mapping, ignore or keep rules, prefix cleanup, button labels, community colors, and controller templates.
Use the compact dataset, search, and Find row to locate entries. Select a catalog game to inspect or correct it. Use Add new for a source row; manual game creation belongs under Catalog inspection, not Inbox.
Catalog corrections are stored as local overrides waiting for rebuild. They are not a live runtime overlay.
Keep strong identity intact
Section titled “Keep strong identity intact”Games.RomId is the catalog identity. ArcadeStudio supports evidence-based forms such as arcade ROM name, SHA-1, disc serial, game code, title ID, and CRC depending on the platform and source.
Titles, filenames, and paths are reference fields, not identity proof. Do not invent an ID from a platform name and ROM filename, and do not rewrite existing official IDs during a merge.
Review unmatched launches
Section titled “Review unmatched launches”When ArcadeServer cannot identify a launched game against the published catalog, it records an observation for Data Management → Inbox.
For each observation:
- Resolve links it to an existing catalog identity.
- Add it to the local catalog only when the captured evidence supports a strong identity.
- Ignore dismisses an observation you do not want to act on.
Inbox is a durable review queue, not a copy of the catalog and not the main manual-create form.
Understand enrichment
Section titled “Understand enrichment”Enrichment sources normalize and dress catalog records; they do not replace Master.db.
- Platform mapping resolves aliases to a canonical platform.
- Ignore and keep rules filter import noise; keep wins over ignore.
- Prefix list removes known platform prefixes from titles.
- Button labels add role-specific names used by Overlay and LED defaults.
- Controller templates provide platform default roles for new profiles.
- Community colors add catalog-default control colors; pack and user LED overrides still win later.
Rebuild applies applicable enrichment to the working catalog without changing game identity.
Publish the catalog
Section titled “Publish the catalog”Publish copies the user Master.db as it currently exists on disk into the cabinet bundle. Publish does not rebuild the database and does not read corrections that are still waiting outside it.
The safe sequence is:
- Save catalog or enrichment changes.
- Rebuild
Master.db. - Review the result in Catalog.
- Publish the cabinet bundle.
ArcadeServer then opens the published copy. It never needs direct access to Studio’s working catalog.
Next: Data Packs or ArcadeServer.