help request P o Persia - Two Thrones music sb0 conversion

Coders and would-be coders alike, this is the place to talk about programming.
fallorn
ultra-n00b
Posts: 3
Joined: Wed Dec 14, 2005 12:57 pm

help request P o Persia - Two Thrones music sb0 conversion

Post by fallorn » Wed Dec 14, 2005 1:26 pm

Hi, just beat Prince of Persia: The Two Thrones and Im hoping to extract the music. Specifically the song used in the credits (Stuart Chatwood - I Still Love You)

GameExtractor ( http://www.watto.org/extract/ ) and Rahly's bigextractor.exe ( http://www.terrygoodkind.net/~rahly/bgae.php ) open up the sound.big file easily, but this leaves me with a bunch of .sb0 files, which are less than useful to me.
I've tried VAG's tools for Warrior Within ( http://ga-agent.nm.ru/stuff/popwwtools05b.zip ) and Sands of Time ( http://ga-agent.nm.ru/stuff/popsottools05.zip ), but both fail in converting the .sb0 files to some usable format.
somewhere else on the forums ( viewtopic.php?t=1329 ) I read that the program awave should help me convert these but no matter what combination I try, all I get is a sonic icepick to my brain.
anybody have a clue how to convert this new demonic form of .sb0 files?
(sample attatched as extracted with Rahly's bigextractor.exe)

thanks,
fallorn
You do not have the required permissions to view the files attached to this post.

fallorn
ultra-n00b
Posts: 3
Joined: Wed Dec 14, 2005 12:57 pm

Post by fallorn » Wed Dec 14, 2005 1:46 pm

Boy, I sure deserve that ultra-noob title under my name to the left... the credits are in .bik format with the music attatched, I think some work with necrotools' fmv extractor and rad tools will yield me the specific song im looking for, something to try in the morning at least. This does not negate the actual problem with the .sb0 files for the rest of the soundtrack, but it does solve the specific problem regarding that particular song that I was attempting to retrieve.

User avatar
Mr.Mouse
Site Admin
Posts: 4041
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 562 times
Contact:

Post by Mr.Mouse » Wed Dec 14, 2005 8:54 pm

I don't think sb0 files are actually sounds. Hmm.

fallorn
ultra-n00b
Posts: 3
Joined: Wed Dec 14, 2005 12:57 pm

Post by fallorn » Thu Dec 15, 2005 12:11 am

Hmmm indeed. I know that in the past the .sb0's were found to be a variety of PCM. And when I listened to it as a PCM 8 Bit Signed, it did sound like some kind of garbled musical... what's the word? spike? maybe? but if it was even there it was still pretty garbled, and i was kinda tired, and definitely tired of listening to very loud high pitched static, so i might have been imagining that.

-fallorn

P.S. the fmv extractor and bink tools did the trick to get it to wav, and a few seconds later winamp moved it into mp3 format. (would have done ogg but my portable mp3 player wont play that file type)

Rahly
VVIP member
VVIP member
Posts: 412
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly » Thu Dec 15, 2005 1:04 am

the .sb0 files change with game engine versions, they are the sound, and you can extract the sound from the BIK credits if you use RAD Tools (maker of BInK format). the tools are free for personal use.
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)

User avatar
Mr.Mouse
Site Admin
Posts: 4041
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 562 times
Contact:

Post by Mr.Mouse » Thu Dec 15, 2005 8:14 am

Ah! Good!

Turfster
veteran
Posts: 92
Joined: Fri Dec 16, 2005 2:12 am
Been thanked: 10 times
Contact:

Post by Turfster » Fri Dec 16, 2005 4:37 am

I'm currently working on a Prince of Persia trilogy toolset (which will hopefully end up just as powerful in the end as my BloodRayne one). Anyway, the current version can extract all in-SB0 sounds for all three games.
I'm still stuck on the ones that refer to external stream files, though.
I know that it's compressed *somehow* (obviously), and I'm pretty sure it's some form of 4bit ADPCM compression, but then I'm completely stuck. I've tried running the data through Benjamin Haisch's xbox adpcm decoder and I've tried to decode it using a PS2 adpcm decoder, but both gave pretty useless output files.

Any ideas/insights/help are/is welcome ;)

The current version extracts the files tagged as "does not extract correctly" as the raw data with a fake wave header, so if you want to take a look at the data for yourself, just remove/skip the first 44 bytes of the wav file.

Droolie
veteran
Posts: 114
Joined: Fri Aug 19, 2005 4:31 pm
Has thanked: 14 times
Been thanked: 33 times

Post by Droolie » Fri Dec 16, 2005 3:17 pm

Hi. I just post here to say that the SB0 files are the SFX ( sound effects ) and there is a .SS0 file that is 232mb! I think that one contains the music. It's called stream.ss0. I would like that you ( or another guy ) managed to extract it...

BTW: I extracted it with Persian Rug because I coudn't extract it with game extractor or MultiEx Commander...

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Post by aluigi » Fri Dec 16, 2005 10:10 pm

Turfster wrote: and I'm pretty sure it's some form of 4bit ADPCM compression, but then I'm completely stuck. I've tried running the data through Benjamin Haisch's xbox adpcm decoder and I've tried to decode it using a PS2 adpcm decoder, but both gave pretty useless output files.
Any ideas/insights/help are/is welcome ;)
This week-end I have in mind to write a raw2wave program for many adpcm algorithms (ms, dvi, various gsm, gamecube and possibly others).
But where you have found the codecs and their source code for Xbox and PS2 adpcm?

Turfster
veteran
Posts: 92
Joined: Fri Dec 16, 2005 2:12 am
Been thanked: 10 times
Contact:

Post by Turfster » Fri Dec 16, 2005 10:42 pm

Got the Xbox code from Benjamin Gorman (see the psychonauts explorer 1.2 source), PS2 ADPCM is basically XA ADPCM with a larger set of delta's, as far as I've been able to figure out.

dimi
beginner
Posts: 31
Joined: Fri Apr 29, 2005 1:09 am

Post by dimi » Fri Dec 16, 2005 11:27 pm

Check my post viewtopic.php?t=692
for XBox ADPCM codec

Turfster
veteran
Posts: 92
Joined: Fri Dec 16, 2005 2:12 am
Been thanked: 10 times
Contact:

Post by Turfster » Tue Dec 20, 2005 1:41 am

I let the compressed audio streams rest for a moment (it was that or go mad...) and turned to the actual data files.

I've managed to uncompress the BIN files (at least, it seems to give good valid data for the few I've tried that were actually compressed), so I can start working on the actual data file formats now.
Not that this is of much use to anyone else yet (unless they want to help me figure out the data file formats *hint hint* :wink:), just keeping you informed.
Anyway, the new version is up on my crappy POP tool site

Turfster
veteran
Posts: 92
Joined: Fri Dec 16, 2005 2:12 am
Been thanked: 10 times
Contact:

Post by Turfster » Sat Apr 22, 2006 2:31 pm

(Not really about the SB0 files, since I'm still stuck on the damn audio format, but this is the best sort of relevant thread to post this in imho :wink: )

Anyway, I figure it's time to finally release version 2.0 of my POP Toolset.
Still can't decode all the music/sound files, but, on the other hand, you should be able to extract all textures and static 3D data from (almost) all *wow*.bin files (remember, static level data only, no character meshes or traps). Try to stick to the Game Objects in the list if you want useful files ;)

It's still pretty hacky, so if anyone runs into any problems with files, drop me a line.

Easiest way to view/export everything that's in the file in one go :
- Make sure "Write 3D models" and "Clear previous" are not checked on the options page.
- Open the bin file
- hit the extract all objects button
(if you want to export, hit the extract all textures button too)
- go to the display tab
- hit Export data
Voila, you now have an OBJ/3DS file with the same name as the bin file that should contain everything decodeable in the file.

How to use the display tab :
* LMB on viewscreen looks around
* MMB zooms in-out
* RMB moves on the X/Y plane
* The slider is a multiplier (number is in the lower right corner) for zoom/movement

User avatar
Savage
VIP member
VIP member
Posts: 560
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 17 times

Post by Savage » Sat Oct 07, 2006 7:31 pm

I found a new version of POpt2t music extracto it's the 0.7 of vag's tools i tried and works great!!!..but....
Any tool to reverse this: .wav/ogg to Sb0?
You do not have the required permissions to view the files attached to this post.

SMaz
ultra-n00b
Posts: 2
Joined: Sun Feb 26, 2006 2:58 pm
Location: Germany

Post by SMaz » Sat Feb 17, 2007 4:09 pm

I use Persian Rug to extract the Textures from the Prince. Now I edit the Textures and add some cool Tattoos. How can I import the *.tga File back into the Game ?

Anyone an Idea (like Turfster, seems you managed this ? (Screenshot on http://prince.turfster.be/)

cya

Post Reply