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.

Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]

Featured Replies

  • Author
  • Localization

R4nger, posted Mon Jan 07, 2019 5:38 pm (42027)


Hello ZenHAX users!

I have been attempting to extract an archive with .wav files in it, however when I extracted it I found it is sped up (even with correct bits and freq) and covered up with static, so I came to the conclusion it is compressed. I first checked the quickbms algo identifying page, however, I didnt find any reference to the bytes at the start of the file. Theres two files (one with extension .ss0 and one with .sl0, but both serve the same purpose) with the first 4 bytes being the same so I am assuming that the comtype for them is the same, there is also no uncompressed size for these files.

These first four bytes are essentially 0x05 or 05 00 00 00 (little endianness)

If this is a very simple thing than I'm sorry however I couldn't find it anywhere else. :D
  • Author
  • Localization

aluigi, posted Thu Jan 10, 2019 4:23 pm (42106)


I suggest you to provide a sample file and moreover the name of this game/software.
  • Author
  • Localization

R4nger, posted Thu Jan 10, 2019 8:22 pm (42149)


The game is Prince of Persia: Warrior Within. The file structure (offset, size, etc.) is stored in a separate .sb0 file. Sample file and mentioned .sb0 stored below, their original extension is in the file name. (The orignal stream.ls0 was 108Mb, so I just cut a big chunk of it leaving a 5Mb one.)
  • Author
  • Localization

R4nger, posted Fri May 03, 2019 5:11 pm (47564)


Bump.
  • Author
  • Localization

aluigi, posted Fri May 03, 2019 5:47 pm (47567)


Nothing that rings any bell in my mind.
I can see the compressed size (0x15a43) of the first file in SB0 but still no idea about the algorithm or where the raw compressed data should really start (offset 0x30?).
  • Author
  • Localization

bnnm, posted Sat May 04, 2019 1:08 pm (47586)


You can play those files with vgmstream: https://hcs64.com/vgmstream.html

Open the .sb0 with foobar vgmstream plugin for instance, and all subsongs will be unpacked and playable.
  • Author
  • Localization

R4nger, posted Sat May 04, 2019 2:24 pm (47590)


Well yes, but the main reason I wanna extract them with QBMS is so I can repack them again.
  • Author
  • Localization

R4nger, posted Sat May 04, 2019 8:35 pm (47602)


While DecUbiSnd provides valuable insight into the different formats of Ubisoft, im having a very hard time actually reading the source code into how the program decompresses it.
However if it helps the .ls0 file is a Version 5 type of format.
  • Author
  • Localization

Sonderhen, posted Thu Apr 16, 2020 11:03 pm (56002)


Hello, I Trying replace audio files inside stream.ls0

I can extract these audios with "Decode Ubisoft Sounds" but i cannot replace the audios.

someone can help me?
Guest
This topic is now closed to further replies.

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.