[Xbox] Destroy all humans! 2 (PKG)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

[Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

Hi! I need some help extracting the content of soundstr.pkg from the Xbox version of DAH! 2

There's an index file provided in the same RAR archive.

Download

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

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by aluigi »

The old script I wrote for the PS2 version seems compatible BUT the codec is different and therefore the generated SS2 files aren't compatible:
http://aluigi.org/bms/destroy_humans_ps2.bms
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

Ok. Is it possible to modify the script please in order to extract all the files RAW? (no automatic codec?)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by aluigi »

Yes, replace "callfunction DUMP_VAG 1" with:
log "" OFFSET SIZE 1
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

Sorry but I get an error when trying to extract the PKGs by selecting the dir file.
I took a screenshot of the error.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by aluigi »

Just made a work-around but it's not an issue of the script, version 0.1.1a
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Mygoshi »

Really weird because I remember years ago testing a script here that worked like a charm on the soundstr.pkg files and extracted all the music (headerless). Now, there's just one music extracted (52Kb).
You're right Warthoh.
Last edited by Mygoshi on Fri Jan 14, 2022 2:33 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by aluigi »

Last time it was PS2
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Mygoshi »

You're right but I remember using a script that extracted headerless XBox IMA ADPCM audio encoded at 48,000 Hz without missing files.
I don't recall which script though... But for sure there's no thread about the XBox ver. of Destroy All Humans 2 except this one.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Mygoshi »

Ok fixed, in fact @Warthog1336 you need to use the script in this thread: viewtopic.php?t=3226
Output files are mostly interleaved XBox IMA ADPCM encoded at 44,100Hz (I was wrong about the sample rate)
zeaofsuos
Posts: 104
Joined: Sun Jan 13, 2019 11:45 pm

ADMIN, DELETE.

Post by zeaofsuos »

ADMIN, DELETE.
Last edited by zeaofsuos on Wed Apr 14, 2021 5:46 pm, edited 1 time in total.
zeaofsuos
Posts: 104
Joined: Sun Jan 13, 2019 11:45 pm

ADMIN, DELETE.

Post by zeaofsuos »

ADMIN, DELETE.
Last edited by zeaofsuos on Wed Apr 14, 2021 5:46 pm, edited 1 time in total.
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

You did get DAT files that use the Xbox 4-bit IMA ADPCM codec but they're just headerless. You need to rebuild the header.

Could you please upload a sample because I removed everything. Thank you.
zeaofsuos
Posts: 104
Joined: Sun Jan 13, 2019 11:45 pm

ADMIN, DELETE.

Post by zeaofsuos »

ADMIN, DELETE.
Last edited by zeaofsuos on Wed Apr 14, 2021 5:46 pm, edited 1 time in total.
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

To me it's not an audio file so I can't help you, maybe upload other samples please?
zeaofsuos
Posts: 104
Joined: Sun Jan 13, 2019 11:45 pm

ADMIN, DELETE.

Post by zeaofsuos »

ADMIN, DELETE.
Last edited by zeaofsuos on Wed Apr 14, 2021 5:46 pm, edited 1 time in total.
zeaofsuos
Posts: 104
Joined: Sun Jan 13, 2019 11:45 pm

ADMIN, DELETE.

Post by zeaofsuos »

ADMIN, DELETE.
Last edited by zeaofsuos on Wed Apr 14, 2021 5:46 pm, edited 1 time in total.
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

Sure, you need to use this script: http://aluigi.altervista.org/bms/destroy_humans_ps2.bms

Open QuickBMS, select destroy_humans_ps2.bms and then apply it to the e.dir file. In fact, if I remember correctly (I removed all the files as I said), there are several directories like ab (Albion), bc (Bay City), common, mb (Moon Base), tk (Takoshima) and tu (Tunguska), and inside, the name of the index file .dir is different, so you have to rename it into e.dir to that there are no errors. Then, it normally extracts *.DAT files. When you get them, please send me an audio file so I can help you playing the file and converting it correctly.

Thanks.
zeaofsuos
Posts: 104
Joined: Sun Jan 13, 2019 11:45 pm

ADMIN, DELETE.

Post by zeaofsuos »

ADMIN, DELETE.
Last edited by zeaofsuos on Wed Apr 14, 2021 5:46 pm, edited 2 times in total.
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

Re: [Xbox] Destroy all humans! 2 (PKG)

Post by Warthog1336 »

You should not have SS2 output files, it's for PS2. Maybe you didn't replace that line of the script :

Code: Select all

callfunction DUMP_VAG 1


By :

Code: Select all

log "" OFFSET SIZE 1