Repository navigation
Offer compatible ROMs when the table's ROM is missing - #55
Merged
Merged
Conversation
The component now keeps the other ROMs of its machine that can run the table, taken from the games catalog (identical, compatible or unverified; ROMs marked "different" are left out both ways), and writes them into the .vpe package. Export refreshes the list from the catalog. In the player, the PinMAME plugin checks before a launch whether the table's ROM is in the ROM folder. When it's missing and at least one compatible ROM is there, the launch asks which one to play with and saves the choice for the table. The engine then starts that ROM, and its NVRAM, AltSound, diagnostics and ROM name follow it, while the table's settings stay with its own ROM. Resetting ROM memory resets the ROM that plays. Package format: case 1 of "Versioning the items schema" in Packaging/FORMAT.md, an optional field older readers ignore, so no schema bump.
[Medium impact] The PR appears safe to merge; the previous compile issue is fixed and no new actionable issues remain. SummaryThe PR lets players choose an available compatible ROM when a table’s own ROM is missing.
|
The test project links the definition and its converter, which now use the compatible ROM types, so these move to a file without Unity dependencies that the project links too. Adds tests for the compatibility rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a table's PinMAME ROM isn't in the user's ROM folder but other ROMs of the same machine are, the player now offers to play the table with one of those.
Editor and package
drivers[].physical_compatibility): identical, compatible, or unverified when the catalog doesn't know. ROMs markeddifferentare never offered, and a table made for one gets no alternatives.PinMameGamelogicEnginePackable.CompatibleRoms.Packaging/FORMAT.md, an optional field older readers ignore, so no schema bump.Player
IPluginLaunchCheck. Before a table loads, it reads the package's ROM list and blocks the launch only when the table's ROM zip is missing, at least one listed ROM zip is present, and no present choice is saved. The existing launch setup dialog then shows a "Compatible ROM" choice (the present ROMs, identical ones first) and saves it for the table.PrepareGameAsyncthe plugin hands the choice to the engine, which then starts that ROM. NVRAM, AltSound, diagnostics andIRomNameProvider.RomNamefollow the running ROM; the game identity, and so the table's saved settings, stay with the table's own ROM.Related: the DMD plugin takes the colorization of the running ROM (VisualPinball/VisualPinball.Engine.DMD, branch
feat/compatible-roms), and the player applies the ROM folder before plugin launch checks.Testing
different; packable round trip, and older payloads without the list.