Skip to content

feat(tools): compare loose mods and files inside containers with diff - #81

Merged
github-actions[bot] merged 1 commit into
masterfrom
feat/cpk-diff-loose-mods
Nov 6, 2026
Merged

github-actions[bot] merged 1 commit into
masterfrom
feat/cpk-diff-loose-mods

Conversation

@endercodezz

Copy link
Copy Markdown
Owner

What changed

p3p-cpk diff on the first real translation showed two gaps, now closed:

  • Loose mods. The mod can be a directory: a bind/ folder or an Aemulus package root.
  • Files inside containers. A file missing from the base, but under a folder named after a game file, is in-container with that file's path, not added. Example: data/init/font/font0.fnt with container=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.cpk and umd1.cpk:

Before (temporary CPK) Now (package directory)
changed 1,369 1,369, same list
in-container - 336
added 336 128: 126 texture files, Package.xml, Preview.png

python tools/cpk/check.py: format check, Debug and safe unit tests, 28/28 CLI tests.

Not verified

  • [INFERRED] The in-container rule matches how Aemulus rebuilds containers: every one of the 336 paths has a matching game file, but it was not checked against Aemulus.
  • [UNVERIFIED] The translation has not been run on P3P3DS. The EBOOT patch has not been applied, so what it changes is unknown.

Closes #80
Refs #23

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.
@github-actions
github-actions Bot enabled auto-merge November 6, 2026 15:07
@github-actions
github-actions Bot merged commit ec696fd into master Nov 6, 2026
9 checks passed
@endercodezz
endercodezz deleted the feat/cpk-diff-loose-mods branch November 6, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tools: p3p-cpk diff for loose mods and files inside containers

1 participant