Sensory Sweep *.PAK (PS2)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
JackTheRipper
Posts: 51
Joined: Mon Jan 10, 2022 12:12 am

Sensory Sweep *.PAK (PS2)

Post by JackTheRipper »

Seen in Alvin & the Chipmunks, and The Tale of Despereaux by Brash.

Sample: mih.pak
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Sensory Sweep *.PAK (PS2)

Post by aluigi »

Code: Select all

# Sensory Sweep PAK

get BASE_OFF long
get FILES long
get DUMMY long  # 1, maybe the pak names?
getdstring NAME 0x10
getdstring DUMMY 0x1c

savepos TMP
xmath NAMES_OFF "TMP + FILES * 16"

for i = 0 < FILES
    get NAME_OFF long
    get OFFSET long
    get DUMMY long  # 0x40
    get SIZE long

    savepos TMP
    math NAME_OFF + NAMES_OFF
    goto NAME_OFF
    get NAME string
    goto TMP

    math OFFSET + BASE_OFF
    log NAME OFFSET SIZE
next i