Destroy All Humans! (Xbox) - SOUNDSTR.PKG

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Destroy All Humans! (Xbox) - SOUNDSTR.PKG

Post by Mygoshi »

Hello, I would need a script which would let me extract the content from the PKG file.

Here are samples: (deleted link)

Thanks!
Last edited by Mygoshi on Wed May 06, 2020 7:01 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Destroy All Humans! 1 (XBOX) - SOUNDSTR.PKG

Post by aluigi »

I guess something like this (yeah the first 3 files start from offset 0 so 2 of them should be deleted):

Code: Select all

open FDSE "e.dir"
open FDSE "soundstr.pkg" 1
goto 0x1c
get OFFSET long
goto OFFSET
get FILES long
for i = 0 < FILES
    get DUMMY1 long
    get OFFSET long
    get SIZE long
    get DUMMY4 long
    get DUMMY5 long
    get DUMMY6 long
    get DUMMY7 long
    get DUMMY8 long
    get DUMMY9 long
    get DUMMY10 long
    log "" OFFSET SIZE 1
next i
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Destroy All Humans! 1 (XBOX) - SOUNDSTR.PKG

Post by Mygoshi »

It worked! Thanks :D

Do you happen to have a script for the PS2 version? It is different.

Here are samples: (deleted link)

Thanks!
Last edited by Mygoshi on Wed May 06, 2020 7:03 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Destroy All Humans! 1 (XBOX) - SOUNDSTR.PKG

Post by aluigi »

The format is identical but here there are only 10 references.
I don't know what's the rest.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Destroy All Humans! 1 (XBOX) - SOUNDSTR.PKG

Post by Mygoshi »

Right, thank you for looking at it.