[Feature] Automatically associate ROMs created by the Patcher with the original game

Open
#5,790 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, database

Research direction

Start by tracing how the integrated ROM Patcher handles “Upload to RomM” and how ROM records inherit metadata identity and join existing version groups. The issue does not name files or tests, so first locate the patcher upload flow and the code that creates ROM records; check how hashes and per-ROM saves and play history are kept independent. Done means an enabled-by-default option associates the new record with the original game while preserving the distinct ROM and its independent hash-based metadata.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

When using RomM's integrated ROM Patcher with the Upload to RomM option, the resulting patched ROM is added to the library and scanned as a new ROM.

However, the patched ROM does not automatically inherit its association with the original game. Depending on the results of the metadata scan, it may appear as a separate, unmatched entry in the gallery.

For example, when applying a ROM improvement patch to U.N. Squadron for the SNES, the patched ROM appeared as a separate entry without the original game's metadata or cover art. I was able to address this by manually assigning the original ROM's IGDB ID to the patched ROM, allowing RomM to recognize them as alternative versions of the same game.

This requires unnecessary manual intervention, particularly when applying patches to numerous games in a library. Since the patching operation originates from an existing ROM's detail page, RomM already knows which game is being patched.

Describe the solution you'd like

When using the integrated ROM Patcher with Upload to RomM selected, provide an option, enabled by default, to associate the resulting ROM with the original game.

The expected behavior would be:

  • Preserve the original ROM and create the patched ROM as a separate ROM record.
  • Automatically associate the patched ROM with the original game's metadata identity.
  • Display the patched ROM as an alternative version of the original game using RomM's existing version-grouping functionality.
  • Preserve the patched ROM's distinct filename and independently calculated hashes.
  • Continue to independently determine hash-dependent metadata, such as RetroAchievements compatibility, rather than assuming compatibility with the original ROM.
  • Maintain independent save files, save states, and play history for each version.

An option such as Associate with original game in the Patcher interface would allow users to disable this behavior when creating a substantially different ROM hack that should be treated as a standalone game.

Describe alternatives you've considered

Currently, it is possible to manually match the patched ROM to the original game's metadata or manually assign a shared metadata provider ID.

While this works, it requires additional steps after every patching operation and is particularly cumbersome when applying improvement patches across a large library.

Additional context

This feature would be particularly useful for:

  • Fan translations and retranslations.
  • Bug-fix patches.
  • Quality-of-life improvements.
  • Restoration and uncensoring patches.
  • Performance improvements such as FastROM and SA-1 patches.
  • Games with multiple alternative enhancement patches.

The intention is to make it easy to maintain both the original and improved versions of a game without cluttering the gallery with separate entries.

This request is related to #4582, which proposes recording the provenance of ROMs created by the Patcher. Recording that relationship could also facilitate automatic association with the original game, although this request is specifically focused on the metadata and version-grouping behavior within RomM.

AI assistance disclosure

I used ChatGPT to help organize my observations and draft this feature request. The workflow and behavior described above are based on my own RomM installation and testing. I reviewed the request before submitting it.

Dominant language
Python
Stars
13.3k
Forks
747
Avg merge
20h 58m
Merged PRs (30d)
207

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rommapp/romm

All issues in rommapp/romm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.