Repository navigation
feat(tools): show what a mod.cpk changes with p3p-cpk diff - #77
Merged
Merged
Conversation
Each file of a mod is added, changed or same against one or more base archives, by extracted content, so a stored copy of a compressed file counts as the same. Names match without regard to case and a match that differs in case is marked: how the game's CRI library matches names is not known yet. Verified on ULUS-10512: all of umd0.cpk against the image is 5,860 same; a mod of real game files with one edited is reported as expected. tools/cpk/check.py: 24/24 CLI tests, 150 damaged mods included.
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.
What changed
p3p-cpk diffshows what amod.cpkdoes to the game's archives, the first step of #23:added,changedorsame, by extracted content, so a stored copy of a compressed file counts as the same.umd0.cpkandumd1.cpk. The first that has a file wins.case-differs.Verification
On the local ULUS-10512 ISO:
umd0.cpkas the mod, against both archivessame=5860, exit 0, 6 s, every file extracted from both sidessamechangedumd1.cpksameagainst both,addedagainstumd0.cpkalonesame ... case-differsadded, exit 1added, exit 1python tools/cpk/check.py: format check, Debug and safe unit tests, 24/24 CLI tests, including 150 damaged mods throughdiff(exit 0, 1 or 2, never a panic).Not verified
case-differsmeans the file may not load, not that it won't.Closes #76
Refs #23