[script] Call of Duty: Black Ops/Modern Warfare 3 (Wii) sound.pak [PAK0]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[script] Call of Duty: Black Ops/Modern Warfare 3 (Wii) sound.pak [PAK0]

Post by AlphaTwentyThree »

Here's the script for the sound.pak for the Wii version of Call of Duty: Black Ops. The resulting dsp files can ve converted to genh with my script here: viewtopic.php?f=6&t=2512

Code: Select all

# extracts the sound.pak from Call of Duty: Black Ops/Modern Warfare 3 (Wii)
# resulting dsp files can be converted with the script at http://zenhax.com/viewtopic.php?f=6&t=2512
# written by AlphaTwentyThree of Zenhax
# script for QuickBMS http://quickbms.aluigi.org

idstring "PAK0"
get UNK long
get FILES long
get MULTIPLIER long
get DATASTART long
for i = 1 <= FILES
   get CRC long
   get OFFSET long
   xmath OFFSET "OFFSET * MULTIPLIER + DATASTART"
   get SIZE long
   get NAME basename
   string NAME p= "%s_0x%08x.dsp" NAME CRC
   log NAME OFFSET SIZE
next i