Repository navigation
MaxPack 1.0.7 for the PC: DLC inside the .p5z, added when you compress or later, without compressing the game again, and updating a .p5z to a new version of the game by compressing only what changed. A .p5z grows by appending only: what was already in it is never rewritten, and if the power goes out halfway the next time MaxPack opens it, it is exactly as it was. Tested on a PS5 (firmware 13.60): two DLC added to a 35.47 GB .p5z in 0 seconds (it grew by 12 KB), and the game starts and recognizes them. Also new: covers on .p5z files in the Windows Explorer (and a thumbnailer for Linux file managers), and maxpack info --sums, to compare a .p5z with one made on the console. It carries ampr-emu-ng v0.5.1-maxpack.2. To play a .p5z that grew you need MaxPack for the console 1.0.2; a .p5z with DLC added when compressing plays with 1.0.1 too.
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.7.
Added
-
A
.p5zgrows without packing it again.maxpack add <game.p5z> --dlc <DLC>puts DLC that come out later into a.p5zalready made, aspack --dlcwould have (the nextaddcontN/,dlc_emu.iniwritten again with the DLC it had and the new ones).maxpack update <game.p5z> <new dump>makes it a new version of its game: it compares the new dump with the.p5z's list by path, size and SHA-256, compresses only what is new or changed, drops what is gone and keeps the DLC; it must be the same game in another version (a DLC given as the new dump is refused:not_a_game), and when more than half of the game changed it stops unless given--force. Both only append: new regions, new volumes after the old ones (samearchive_idand level), a new index and footer; nothing before the old end is written again. The new index is of version 2 (prev_sizeandgrownafter version 1's fields), which readers of before refuse; a.p5zthat never grew stays of version 1, byte for byte. Its packs follow ampr-emu-ng's p5z rules (chunks in any order, room between them, headers that count fewer volumes), which need ampr-emu-ngv0.5.1-maxpack.2; at most 256 volumes. Tested on the PC end to end; not yet on a PS5. -
Cut short, nothing lost. Before appending, MaxPack writes
<name>.p5z.maxpack-append(the size and footer the.p5zhad). A failure or a cancel cuts the.p5zback exactly; after a power cut, every command that opens the.p5z(and so the window) does, and says so; a reader meanwhile sees the.p5zas it was. Another MaxPack never undoes an append at work. The journal's name is flushed to disk before the first byte is appended; one that cannot be read is left alone with its.p5z(add,updateandcompactstop saying so); an append that had ended before its journal could be deleted is kept, andadd/updatesay so (journal_left). -
maxpack compact <in.p5z> -o <out.p5z>: a copy without the roomaddandupdateleave, copying what is stored and laying the chunks out again, nothing compressed again; it is of version 1, the.p5zpacking that dump gives.infosays how many times a.p5zgrew and the room it does not use;info --jsonhasgrown,unused_bytesandrecovered;info --playends with"index_version":2,"grown":Nfor one that grew.unpack --folderof one that grew lays its volumes out again, so the folder works anywhere; the console installer refuses one (grown_p5z).--capabilitieshasgrow. The repair data of a.p5zthat grew no longer match it: MaxPack says so. -
The window: in Details, the card of a
.p5zhas Add DLC… and Update with a new dump…, each with its bar, Cancel and end card; the.p5zis verified after it grows, and gets its repair data again when it had some. An update of most of the game says so and offers Update anyway. Details says how many times a.p5zgrew and the space it does not use. In its 11 languages. -
maxpack info --sums <game.p5z>: what the index records of its packs, aslevel N,archive_id <hex>and oneampr_zstd-NNN.pak <size> <sha256>line per volume (the SHA-256 of its bytes after its 64-byte header), the lines MaxPack for the console prints after packing on the console, so thatdiffcompares the two packs.info --jsonof a.p5zhas the same asarchive_id,levelandvolume_sums; in C,mp_p5z_sums_get,mp_p5z_sums_linesandmp_p5z_sums_json. For.p5zfiles that grew too. -
DLC inside the
.p5z.pack --dlc <DLC>(as many as needed) puts a game's DLC inside what is made of it: a PS5 package of additional content (.pkg, with the same passcode) or a dumped DLC folder (sce_sys/param.jsonand noeboot.bin), of the game's title ID. Each DLC with files of its own goes, all its files, toaddcont0/,addcont1/... in the order given (at most 100); a license only adds no folder. MaxPack writesdlc_emu.iniat the root:[PSAC]with thecontent_idandmount_point=/app0/addcontNof each DLC with files,[PSAL]withdownload_status=NO_EXTRA_DATAfor each license. On the console, MaxPack for the console finds that file loose in the.p5zand adds dlc_emu, which tells the game its DLC are installed where the file says, inside the.p5z: one file with the game and its DLC, nothing installed. The.p5zis still of format version 1, so MaxPack for the console 1.0.1 plays it; it verifies and unpacks as any other, and its original is the dump with theaddcontN/folders and thedlc_emu.ini. A DLC'ssce_sys/stays loose, as the game's does, so itsaddcontN/folder is a real one in the console's cache too. It stops before writing anything, with the reason and an error code for--progress json, for a dump that has its owndlc_emu.ini(dlc_has_ini: two lists are not mixed), more than 100 DLC with files or an ini over the 32 KiB dlc_emu reads (dlc_too_many), and (dlc_refused) a DLC of another game, the same one twice, a content ID that is not 36 characters, a "DLC" with the game's own content ID, a game given as a DLC, a DLC folder withoutparam.jsonor already packed, or a game with no title ID. What dump tools leave behind and the OS's files are left out of a DLC, and make no license a DLC with files. The result line hasdlc_data,dlc_licenseanddlc_bytes. A game whose Fakelib setting on the console is Off gets no dlc_emu and sees none of its DLC. That a game reads a DLC with files of its own from inside a.p5zhas not been tried on a real PS5 yet. -
info --jsonsayscontent(gameordlc),dlc_data(a DLC with files of its own, not a license only) anddlc: the DLC a game carries, from its owndlc_emu.ini, each with its content ID, whether it has data, its folder, and the size and files in it. A DLC'stitle_idis its content ID's.infoandiconopen a DLC package;analyzeandpackstill take only a game, and a DLC package given as one says to use--dlc.--capabilitieshasdlc. -
The window: in Compress, a game's DLC are dropped with it, added with Add files or Add folder, or with Add DLC under the game; each goes inside every game of the list with its title ID. The game's row says how many ("with 2 DLC"), the DLC's row which game it goes inside, or why it goes in none (no game of its ID in the list, the same DLC twice, or it came after its game started). One the engine would refuse (no content ID dlc_emu takes, or the content ID of a game of the list) is an error on its own row and never stops a game. Compress waits until every row is read, so no DLC is left out for being read late. A DLC is never compressed alone and its original is never deleted. Details says what a DLC is and lists the DLC of a
.p5z; Copy report says how many, never which. In its 11 languages. -
.p5zcovers in the file manager. With Open .p5z files with MaxPack on (Settings › Windows Explorer, or the installer), the Windows Explorer shows each.p5zwith its game's cover, itssce_sys/icon0.png, as its thumbnail, in the views with medium icons or larger, whichever program opens.p5zfiles. It ismaxpack-thumbs.dll, next toMaxPack.exe: a thumbnail provider of the Explorer, registered for you only (underHKEY_CURRENT_USER, no administrator) with that place and taken away with it, or when you uninstall MaxPack. It reads only the header, the footer and the index of the.p5zand the cover itself, never the game, within caps (an index of 64 MiB compressed or 128 MiB unpacked, a cover of 8 MiB and 4096 pixels a side): a.p5zstill being copied, damaged, over a cap or not a.p5zat all shows the normal icon. The cover is decoded with WIC, which comes with Windows, and the DLL carries its own C runtime. A place that MaxPack 1.0.6 or before turned on gets the covers the first time the window opens. An update goes in while the Explorer has the DLL loaded: the installer sets the loaded one aside and deletes it when it can. The portable version has no DLL, and still writes nothing in Windows. -
Linux:
install.shalso installs, in~/.local/share, the type of.p5zfiles (application/x-maxpack-p5z, by the name and by the first bytes) and a freedesktop thumbnailer that runsmaxpack-core icon, for the covers in file managers that run.thumbnailerfiles outside a sandbox, such as Thunar (through Tumbler); others may show them too. GNOME Files runs thumbnailers in a sandbox that cannot see~/.local, where this install puts the engine, and KDE Dolphin does not use.thumbnailerfiles: neither shows the covers.install.sh --uninstallremoves them. The menu entry says MaxPack opens.p5zfiles.
Changed
- The check of whether a dump is complete never counts
dlc_emu.inior theaddcont0/toaddcont99/folders at the root as files of more, against either list: whatpack --dlcadds, or a user adds by hand for dlc_emu. So a dump that carries its owndlc_emu.inino longer counts it as one. - The ampr-emu-ng that comes with MaxPack is now v0.5.1-maxpack.2, the release that also plays a
.p5zthat grew. Settings says "Built in: ampr-emu-ng v0.5.1-maxpack.2".