Repository navigation
feat(merge): new merge engine with id remapping - #6
Merged
Merged
Conversation
…iles and config saves Change sets per mod, composition with collisions and resolutions, and merged file writing for database files, System.json, maps and events, js/plugins.js with an order leaf, opaque and new files, and the MV and MZ config saves. Adds merge diagnostic codes.
IdRemapPlanner decides which added map event and map ids move, from the reference table, free text, plugin files, recorded entries and DeployedMods. IdRemapper rewrites one mod's change set. Compose takes the remap plan, lists Remap on the clashes an offer settles and adds the plan's diagnostics. Adds rules.remap_target_taken.
IdRemapPlanner.Plan takes the game's engine. A remapped map id may reach 2000 on MZ and 999 on MV or an unknown engine; map events stay at 999. The limits were checked in the MZ 1.10.0 editor.
…the mod BaseMismatch now blocks and has no default resolution; Accept and DisableMod stay the choices.
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.
Adds the new merge engine as a pure library under
RPGModder.Core/Merge. Nothing in the app calls it yet: the UI still deploys through the 1.x engine, and wiring it in is the next step after this merges.What to review first
Composer.cs: how per-mod change sets combine, what counts as a clash, and which clashes block a deploy.IdRemapPlanner.csandIdRemapper.cs: which added map and map event ids move when two mods add the same one, and how references follow the move.RPGModder.Tests/Merge/Golden: each folder is a vanilla base, two mods and the expected result.Commits
plugins.js, new files and config savesOut of scope
Checks
dotnet test RPGModder.Tests/RPGModder.Tests.csproj: 607 passed, 1 skipped (the Linux updater script test, skipped on Windows).Operations/DiagnosticCodes.cs.