Repository navigation
feat(tools): compare loose mods and files inside containers with diff - #81
Merged
Merged
Conversation
The first real translation showed two gaps in p3p-cpk diff: it is loose files, not a mod.cpk, and all 336 files reported as added lie inside game containers. diff now takes a directory, and such a file is in-container with the path of its container. Verified on the Russian translation v0.8.3 against umd0 and umd1: 1,369 changed as before, 336 in-container, 128 added (package and texture files only). tools/cpk/check.py: 28/28 CLI tests.
This was referenced Nov 6, 2026
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 diffon the first real translation showed two gaps, now closed:bind/folder or an Aemulus package root.in-containerwith that file's path, notadded. Example:data/init/font/font0.fntwithcontainer=data/init.bin. It counts as a difference for the exit code.The docs record what the translation contains, and the claim that translations need no EBOOT patch is now
[WRONG].Verification
Russian translation v0.8.3 (Kotone Team), against the image's
umd0.cpkandumd1.cpk:changedin-containeraddedPackage.xml,Preview.pngpython tools/cpk/check.py: format check, Debug and safe unit tests, 28/28 CLI tests.Not verified
in-containerrule matches how Aemulus rebuilds containers: every one of the 336 paths has a matching game file, but it was not checked against Aemulus.Closes #80
Refs #23