ZenHAX
https://zenhax.com/

Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]
https://zenhax.com/viewtopic.php?f=6&t=9208
Page 1 of 1

Author:  R4nger [ Mon Jan 07, 2019 5:38 pm ]
Post subject:  Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]

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:  aluigi [ Thu Jan 10, 2019 4:23 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00]

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

Author:  R4nger [ Thu Jan 10, 2019 8:22 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00]

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

Attachments:
stream(.ls0).zip [4.77 MiB]
Downloaded 39 times
locstrm(.sb0).zip [176.35 KiB]
Downloaded 28 times

Author:  R4nger [ Fri May 03, 2019 5:11 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00]

Bump.

Author:  aluigi [ Fri May 03, 2019 5:47 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]

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:  bnnm [ Sat May 04, 2019 1:08 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]

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:  R4nger [ Sat May 04, 2019 2:24 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]

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

Author:  R4nger [ Sat May 04, 2019 8:35 pm ]
Post subject:  Re: Unknown compression algorithm. [05 00 00 00, Prince of Persia: Warrior Within]

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/