Repository navigation
MaxPack 1.0.6
MaxPack 1.0.6 for the PC: MaxPack now packs PS5 debug packages (FPKG, .pkg) straight to a .p5z or a folder. It decrypts and decodes them as it reads them: nothing to install or mount, no other tool and no temporary space. It carries no keys: it reads the packages made with the default passcode (or the one you give it) and refuses retail packages, PS4 packages, patches and add-ons. It also checks dumps: whether one is complete, against the original package's list of files when the dump still has it, or else whether the copy has every file its dump tool wrote. Tested with a real game's FPKG: read whole, its .p5z verified and it plays on the console. A game saves about the same from its package as from its folder, so a game whose own data is already compressed saves little either way. It also has everything in 1.0.5 and 1.0.4.
Still being tested. Please try it with your games and tell us how it goes: report a bug or a tested game. The Copy report button fills in most of it.
| System | File |
|---|---|
| Windows | maxpack-windows-x64-setup.exe (installer, no administrator rights) or maxpack-windows-x64-portable.zip |
| macOS, Apple silicon | maxpack-macos-apple-silicon.dmg (or .tar.gz) |
| macOS, Intel | maxpack-macos-intel.dmg (or .tar.gz) |
| Linux x64 | maxpack-linux-x64.tar.gz |
Verify a download: sha256sum -c SHA256SUMS, and gh attestation verify <file> -R DeLFuS77/maxpack proves it was built by this repository's workflow from tag v1.0.6.
Added
- PS5 debug packages (FPKG,
.pkg) as the source (engine:pack,analyzeand--levels,info,icon,verify --against): MaxPack reads the debug packages ("fake PKGs") that ProsperoPkgTool and the tools that port it make of a dump, itself and read-only. It decrypts (AES-128-XTS; AES-128-CBC for thesce_sysfiles the package keeps outside its PFS) and decodes (Kraken) each block as it reads it, with nothing installed, mounted or written and no other tool. The keys come from the package's content ID and its passcode: the default of 32 zeros, or the one given with--passcode <32 characters>; MaxPack carries no keys. A package made with another passcode says so (this package was made with another passcode; give it with --passcode, and the error codepasscodewith--json). Retail packages (retail packages need keys this tool does not have), PS4 packages, patches and additional content are refused with the reason: only a full PS5 game is packed. What comes out is the package's files: its PFS'suroot, with thesce_sysfiles of its CNT put back where a dump has them. So the.p5zis that of the folder the package was made from, less what its builder changed: ProsperoPkgTool fake-signs the executables, addspfs-version.dat,keystoneandright.sprxwhen they are missing, makes its own PlayGo files and.ddspictures, and dates every file when it built the package. A damaged or hostile package stops with the reason. Formats and checks: docs/source-images.md. info --jsonsayskindfpkgfor a package,compressedwhen its blocks are Kraken-compressed, andcontent_idfrom itsparam.json(or the package's own);analyze --jsonsays it insource.kind;--capabilitieshasfpkgandpasscode.- Speed, on a 32-thread PC, for a generated 3.00 GB game (6,584 files) as a Kraken
.pkg(2.25 GB), a stored.pkg(3.11 GB) and an.ffpkg(3.96 GB): reading it with every file's SHA-256, from the cache, 5401 MB/s from the Kraken package, 7348 from the stored one and 4786 from the.ffpkg. The blocks are decrypted and decoded by the reading threads, 16 for a package (Kraken decodes about 600 MB/s per thread), with the CPU's AES instructions on 64-bit x86 PCs that have them (a portable AES elsewhere). Packing to a.p5zwith all 32 threads: 8.4 s at level 3 from either package and 8.2 s from the.ffpkg; 18.8 to 18.9 s at level 19 from all three. Peak memory 552 MiB, against 504 MiB from the.ffpkg. The three.p5zare identical. - The PC window takes them too, everywhere it takes an image: dropping them, Add files (the dialogs show
*.pkg), Add folder, the command line, Send to, Compress, Compare levels, Details and Rename; and Compress with MaxPack on.pkgfiles in the right-click menu (Windows, for you only; only that entry: the program that opens them and their icon stay as they were; a menu of 1.0.5 gets it the first time the window opens). Details says "PS5 package (FPKG)" and, under Package file, what it takes ("Kraken compression"); the room is the game's and the saving is against the package's file, as for an image; Copy report says the kind, and whether a passcode was given, never which.- Settings › FPKG passcode: for packages made with a passcode other than the default. A package that needs one says so in its row, in the 11 languages, and is read again once it is given.
- The window needs an engine that says
fpkgandpasscodein--capabilities.
- Whether a dump is complete (engine and window). A PS5 package lists the files of its image in
sce_sys/playgo-hash-table.dat(one hash per path, no names), and a dump that still carries it is checked against it: how many files the original package has, how many the dump has, how many are missing, what the dump has that the package does not (OS junk and the package's own entries insce_sys/aside) and, of that, what dump tools leave behind (adecrypted/folder at the root,*.auth_infofiles,entitlements.txtandentitlement_key.dat).sce_sys/about/right.sprxis not counted: package builders add their own. A dump without the table, or with one of another format, is not checked, and says why.analyze(text and JSON),info --jsonandverify(text and its JSON result) gaincompleteness:checkable,reason,listed,present,missing,extra_count,extra_bytes,leftover_count,leftover_bytes, and the first extra paths (extra_paths, inanalyze --jsonandinfo --json). A.p5zis checked against the table it carries, a compressed folder with the files in its packs, and a PS5 package (.pkg) as a dump, with its files (a builder that makes its own table, as ProsperoPkgTool does, lists what it put in the package).packwarns when files are missing and packs all the same; its JSON result has the counts too. No change to the.p5zformat.--capabilitieshascompleteness, which the window needs.pack --leave-out-leftoversleaves out what dump tools leave behind, only when the table proves it is not the game's: without one, everything stays andpacksays so.verify --againstdoes not count what was left out as missing.- The window: a Compress row warns "3 files of the original game are missing" before anything is packed; Details (and the card of a
.p5z) says whether the game is complete, what is not in the original package and what dump tools left, with its size; Verify says it under each.p5zand compressed folder it can check. Settings › While working has Leave out what dump tools leave behind (on): what Compress does with them when the table proves they are not the game's. Copy report has the counts, never a name or a path. In the 11 languages. - Without that table, the dump tool's list. Most dumps do not carry the table; most carry the list their dump tool wrote,
ampr_emu.index(every file it wrote, with its size). It is checked instead, and said so (source:playgoordump_index): it tells whether the copy has every file the dump tool wrote with the size it wrote (missing, and the newsize_mismatch), which finds copies cut short or damaged; never that the dump is complete. What a fine dump differs from its list in is not counted: info and checksum files that are not the game's (*.nfo,*.sfv,*.diz), the emulators the user changes (fakelib/,fakelib2/,dlc_emu.ini), what the game writes while it runs (Saved/,*.log) and the runtime's own files; on 15 real dumps it raised no false alarm (12 checked, 3 without a list). A list that cannot be trusted is not used, and the reason says why (dump_index_damaged,dump_index_mismatchfor another game or version,dump_index_packed). The table wins when there is one, and only the table proves leftovers are not the game's. A.p5zkeeps the dump tool's list, and says the same as its dump; a compressed folder has MaxPack's own list, which is not used. The window says "All 95 files the dump tool wrote are here" or "Damaged copy: 2 files the dump tool wrote are missing", never "complete", in Compress, Details, Verify and Copy report. - The hash and the table's layout are adapted from ProsperoPkgTool by pearlxcore (MIT); its notice is in
src/core/mp_playgo.cand inTHIRD_PARTY_NOTICES.