Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

Valkyrie Profile 2 Silmeria

Featured Replies

Tri-Ace SLZ type 2 and 3.

QuickBMS should work with Star Ocean/Tri-Ace SLZ/Pack/ADLD

VP2_N.BIN: 3.22 GB. “SLZ 02” header at offset 0x21209000.

VP2_NB~1.1: 1.44 GB. “SLZ 03” header at offset 0x70, immediately after a six-entry package table

There was an undub made years ago, and I always wondered how and found an old to-do list.

I wanted the English dubbing, primarily, Lezard's. There were great clips on YouTube which have been lost to time...

  • Author

Well, I have to admit, working with AI I indexed, transcribed all the cutscene audio so I have that, but not the battle cries/scenes I wanted. >:(

It is cool though, this is my first foray into this kind of work in a long time that isn't manual and I have to admit using an llm to transcribe the audio into text files was excellent too.

but quite an excellent preservation tool indeed, it would be fun to get the character art/graphics/etc but that is something I don't want to get into...though getting the original models seems so accessible :>

  • Author

tl;dr how the compression works, quickbms should do it but I went on more manually because last time I used quickbms it made me mad >:(


1. Finding the resource boundaries

  1. The two main files are VP2_N.BIN and the companion file exposed by ISO9660 as VP2_NB~1.1.

    The companion file begins with a sequence of packages aligned to 2,048-byte disc sectors. Each package has a 16-byte header containing an entry count and the start of its data. Following that is a table of 16-byte records: a four-byte resource tag, an ID, a stored size and an offset relative to the package start.

    That table was the useful starting point. It supplies actual boundaries for each resource, so extraction can operate on bounded entries rather than guessing where one file ends and another begins. The next package starts after the largest entry end, rounded up to the next sector boundary.

    2. Identifying the compression

    Many entries begin with SLZ followed by a one-byte mode. This is tri-Ace’s SLZ compression family.

    The 16-byte header contains:

    - The three-byte SLZ signature and one-byte mode

    - Compressed payload size, excluding the header

    - Expected decompressed size

    - A fourth 32-bit field whose meaning wasn’t consistently established

    The decoder was adapted from CUE’s existing tri-Ace SLZ implementation distributed with QuickBMS, rather than treating the algorithm as a new discovery. The Python adaptation retains GPL-3.0-or-later licensing.

    3. How the decompression works

    SLZ uses literal data and references to bytes already written into the output. A reference says, effectively, “go back this distance and copy this many bytes.” Overlapping copies are allowed, which makes repeated patterns cheap to represent.

    Mode 0 stores the data without compression.

    Modes 1 and 2 read a flag byte and process its bits from least significant to most significant. A set bit means copy one literal byte. A clear bit means read a two-byte instruction describing a backward distance and a copy length.

    For ordinary references, the distance is formed from the first byte and the low four bits of the second byte. The upper four bits of the second byte specify the length, plus three.

    Mode 2 additionally recognizes run-length instructions. These repeat a single byte many times, which is particularly useful for padding or other uniform data.

    Mode 3 uses 16-bit flag groups and two-byte literals. Its back-reference distances and lengths are scaled for word-oriented data. It follows the same basic idea, but handles data in two-byte units.

    4. Turning that into an extractor

    The workflow was:

    - Parse the package tables into a manifest of resource offsets and sizes.

    - Read each resource within its declared bounds.

    - If it has a valid SLZ header, dispatch to the appropriate decompressor.

    - Otherwise, preserve the entry as raw data.

    - Give outputs deterministic names based on their source location and identifiers, since original filenames weren’t recovered.

    - Record sizes and SHA-256 hashes for verification.

    The decompressor checks input bounds, invalid backward distances and output overruns. It stops at the exact expanded size declared by the header. This matters because simply finding the letters SLZ in a multi-gigabyte archive isn’t enough to establish a valid compressed object.

    An early useful check was an SLZ mode-2 object at offset 0x21209000 in the main BIN. It expanded into a structurally valid PS2 IOP MIPS ELF executable, giving an independent sanity check beyond “the decoder produced some bytes.”

    5. What was recovered

    The sequential package-table pass covered 511 packages and 6,841 entries:

    - 4,200 SLZ-compressed entries

    - 2,641 uncompressed or otherwise non-SLZ entries preserved raw

    The compressed entries included 982 mode-1, 1,297 mode-2 and 1,921 mode-3 objects.

    Additional bounded SLZ scanning recovered 23 objects from the main BIN and 18 from the companion-file tail. The combined extraction produced 6,882 payload files totaling 822,338,622 bytes, roughly 784 MiB.

    All output sizes and hashes were reread and checked against the extraction reports. That verifies the saved output matches the extraction results; it doesn’t establish that every resource on the disc has been found.

    6. Containers and encryption are separate layers

    Some extents begin with ZLS rather than SLZ. The observed ZLS objects are bundles containing multiple SLZ resources, so unpacking the bundle and decompressing its contents are separate steps.

    Two other objects begin with SLE. Static analysis found a loader transformation that converts their encrypted payloads into ordinary SLZ data using a repeating 16-byte runtime key. The loader then changes the signature and invokes the normal decompressor.

    Those two objects remain unresolved because the key wasn’t recovered. Merely changing SLE to SLZ causes invalid back-references, since the compressed payload itself still needs to be transformed.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.