Skip to content

MaxPack 1.0.7

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:19
· 100 commits to main since this release
Immutable release. Only release title and notes can be modified.

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 .p5z grows without packing it again. maxpack add <game.p5z> --dlc <DLC> puts DLC that come out later into a .p5z already made, as pack --dlc would have (the next addcontN/, dlc_emu.ini written 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 (same archive_id and level), a new index and footer; nothing before the old end is written again. The new index is of version 2 (prev_size and grown after version 1's fields), which readers of before refuse; a .p5z that 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-ng v0.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 .p5z had). A failure or a cancel cuts the .p5z back exactly; after a power cut, every command that opens the .p5z (and so the window) does, and says so; a reader meanwhile sees the .p5z as 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, update and compact stop saying so); an append that had ended before its journal could be deleted is kept, and add/update say so (journal_left).

  • maxpack compact <in.p5z> -o <out.p5z>: a copy without the room add and update leave, copying what is stored and laying the chunks out again, nothing compressed again; it is of version 1, the .p5z packing that dump gives. info says how many times a .p5z grew and the room it does not use; info --json has grown, unused_bytes and recovered; info --play ends with "index_version":2,"grown":N for one that grew. unpack --folder of one that grew lays its volumes out again, so the folder works anywhere; the console installer refuses one (grown_p5z). --capabilities has grow. The repair data of a .p5z that grew no longer match it: MaxPack says so.

  • The window: in Details, the card of a .p5z has Add DLC… and Update with a new dump…, each with its bar, Cancel and end card; the .p5z is 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 .p5z grew and the space it does not use. In its 11 languages.

  • maxpack info --sums <game.p5z>: what the index records of its packs, as level N, archive_id <hex> and one ampr_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 that diff compares the two packs. info --json of a .p5z has the same as archive_id, level and volume_sums; in C, mp_p5z_sums_get, mp_p5z_sums_lines and mp_p5z_sums_json. For .p5z files 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.json and no eboot.bin), of the game's title ID. Each DLC with files of its own goes, all its files, to addcont0/, addcont1/... in the order given (at most 100); a license only adds no folder. MaxPack writes dlc_emu.ini at the root: [PSAC] with the content_id and mount_point=/app0/addcontN of each DLC with files, [PSAL] with download_status=NO_EXTRA_DATA for each license. On the console, MaxPack for the console finds that file loose in the .p5z and 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 .p5z is 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 the addcontN/ folders and the dlc_emu.ini. A DLC's sce_sys/ stays loose, as the game's does, so its addcontN/ 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 own dlc_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 without param.json or 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 has dlc_data, dlc_license and dlc_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 .p5z has not been tried on a real PS5 yet.

  • info --json says content (game or dlc), dlc_data (a DLC with files of its own, not a license only) and dlc: the DLC a game carries, from its own dlc_emu.ini, each with its content ID, whether it has data, its folder, and the size and files in it. A DLC's title_id is its content ID's. info and icon open a DLC package; analyze and pack still take only a game, and a DLC package given as one says to use --dlc. --capabilities has dlc.

  • 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.

  • .p5z covers in the file manager. With Open .p5z files with MaxPack on (Settings › Windows Explorer, or the installer), the Windows Explorer shows each .p5z with its game's cover, its sce_sys/icon0.png, as its thumbnail, in the views with medium icons or larger, whichever program opens .p5z files. It is maxpack-thumbs.dll, next to MaxPack.exe: a thumbnail provider of the Explorer, registered for you only (under HKEY_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 .p5z and 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 .p5z still being copied, damaged, over a cap or not a .p5z at 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.sh also installs, in ~/.local/share, the type of .p5z files (application/x-maxpack-p5z, by the name and by the first bytes) and a freedesktop thumbnailer that runs maxpack-core icon, for the covers in file managers that run .thumbnailer files 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 .thumbnailer files: neither shows the covers. install.sh --uninstall removes them. The menu entry says MaxPack opens .p5z files.

Changed

  • The check of whether a dump is complete never counts dlc_emu.ini or the addcont0/ to addcont99/ folders at the root as files of more, against either list: what pack --dlc adds, or a user adds by hand for dlc_emu. So a dump that carries its own dlc_emu.ini no 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 .p5z that grew. Settings says "Built in: ampr-emu-ng v0.5.1-maxpack.2".