Repository navigation
feat(tools): build a bind folder from a mod with p3p-cpk bind - #88
Merged
Merged
Conversation
Most of a translation lies inside the game's containers, which only Aemulus could rebuild. bind writes a bind/ folder with the changed files and the containers, nested ones too, with the mod's files put in. A file it can't place is listed as unresolved. Verified: 185 of 185 real containers rebuild byte for byte. The Russian translation v0.8.3 places 266 of 336 files (the rest is .tmx inside .spr), and its first dialogue shows in Russian on the PC runner. tools/cpk/check.py: 37/37 CLI tests.
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 bind <out dir> <mod> <base...>makes a mod usable without Aemulus. It writes abind/folder with the changed files and rebuilds the game's containers around the mod's files, nested containers too. A file it can't place is listed asunresolved, and the exit code is 1.tools/cpk/src/pak.zigreads and rebuilds the game's two PAK layouts.Verification
new_game.txt, stopped at vblank 9600: the game readsbind/data/init.bin,init_free.binandtitle/sex_select.bin, and the first dialogue is in Russian, in Cyrillic. No runtime change, original EBOOT.python tools/cpk/check.py: 37/37 CLI tests, including non-zero padding, containers with the same name, and 150 damaged containers.Not verified
.spr: 70.tmxfiles (interface graphics) stayunresolved.Closes #87
Refs #23