Repository navigation
feat(merge): remap database record ids across the twelve kinds - #7
Merged
Merged
Conversation
The reference table is now rows of data that one walker reads for scan and rewrite: event commands, record fields, map fields, System.json and the \N[n] text code. Filler (a record with the editor's blank shape that its own mod never names) never clashes and claims no target. Null holes in database files take the engine's blank record, pinned from the MZ 1.10.0 editor. Database ids are capped at 9999 on MZ and 999 on MV or an unknown engine. Ids the scan cannot pin down (a vanilla sibling, the second equip slot in a dual-wield game, a float or string id, a by-variable troop or actor with a matching constant or random range, Get Location Info by character off MZ) refuse the move, as does a plugin text code holding the old id outside a comment. A recorded move whose mod now names the old id in free text still applies, with the new warning rules.remap_stale_reference.
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.
B4, step 2 of id remapping: the twelve database kinds (items, weapons, armors, skills, states, enemies, troops, common events, actors, classes, animations, tilesets).
Review first
RPGModder.Core/Merge/ReferenceTable.cs: every place an id can appear, as rows of data.RPGModder.Core/Merge/ReferenceMap.cs: one walker reads those rows to scan and to rewrite.What changes
rules.remap_stale_reference: a recorded move still applies when its mod now names the old id in free text.MergedFileWriter.Writegains an optional engine parameter; no caller breaks.Out of scope
Switches and variables (step 3, B5) and the profile wiring (lane A, A9).
Verification
dotnet format --verify-no-changesclean on the merge paths.