Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
DCX6723
Posts: 18
Joined: Mon May 30, 2016 12:34 pm

Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by DCX6723 »

Hello,

I have trouble to find tools to decode Tony Hawk's Underground 2 XBOX music_pcm.wad/music_pcm.dat. (Source Files)

I tried the Gun (Xbox) sound/music extractor or the "DAWB wad*.dat files" script without success.

The Xbox format is different from PS2, don't know what is the music format inside.

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by aluigi »

http://aluigi.org/bms/thpsu2_datwad.bms

The codec is the Xbox adpcm, I wrote a command-line tool (and also a Winamp plugin) to decode and play these files long time ago:
http://aluigi.org/papers.htm#xbox
DCX6723
Posts: 18
Joined: Mon May 30, 2016 12:34 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by DCX6723 »

Thanks a lot aluigi!
DCX6723
Posts: 18
Joined: Mon May 30, 2016 12:34 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by DCX6723 »

You can also mention in the script title that this is compatible with Tony Hawk's Project 8 (Xbox) :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by aluigi »

Thanks for the info, I have replaced the title of the script with a more generic title and added the two games in the other comment (for Google search)
DCX6723
Posts: 18
Joined: Mon May 30, 2016 12:34 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by DCX6723 »

Ok, you can also add compatibility to "Tony Hawk's American Wasteland".

The only title not compatible is Tony Hawk's Underground 1 (despite using the same format), can I share the files here? Thanks.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by AnonBaiter »

DCX6723 wrote:The only title not compatible is Tony Hawk's Underground 1 (despite using the same format), can I share the files here?
Of course.
DCX6723
Posts: 18
Joined: Mon May 30, 2016 12:34 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by DCX6723 »

AnonBaiter wrote:
DCX6723 wrote:The only title not compatible is Tony Hawk's Underground 1 (despite using the same format), can I share the files here?
Of course.

Thanks!

Tony Hawk's Underground 1 (Xbox files)

There is a memory allocation error while using the script.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by aluigi »

Script 0.1.1.

The difference is simply that the files in THUG1 already have the RIFF header and so they don't contain the information for playing them.
DCX6723
Posts: 18
Joined: Mon May 30, 2016 12:34 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by DCX6723 »

Thanks!

You can update the head like this if you want:

Code: Select all

# Tony Hawk's series Xbox dat/wad (script 0.1.1)
#   Tony Hawk's Underground
#   Tony Hawk's Underground 2
#   Tony Hawk's American Wasteland
#   Tony Hawk's Project 8
# script for QuickBMS http://quickbms.aluigi.org
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by AlphaTwentyThree »

Necro-post alarm... sorry.

I've re-written the script to support "Gun" for PC, but something is wrong - the files don't play properly or not at all.
Here's the dat, the script and the first 1MB of the first wad: https://mega.nz/#!GlNDEYwA!3Sq8MKZTokJ6 ... UQhD4qEuyI
I've added the adjusted Xbox ADPCM header to enter the variables from the DAT file. Any ideas?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by aluigi »

xbadpdec allows to play raw files too and indeed the data dumped "as-is" sounds like garbage (tried both 1 and 2 channels).
That's not xbox adpcm apparently.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Tony Hawk's Underground 2 Xbox (music_pcm.wad/music_pcm.dat)

Post by AlphaTwentyThree »

Damn... I'll ask on the hcs forum, they know their ADPCM stuff. ;)
Thanks.