[PS2] - Splatter Master *.PAC File

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
OAleex
Posts: 52
Joined: Mon Nov 04, 2019 3:18 am

[PS2] - Splatter Master *.PAC File

Post by OAleex »

Image

Image

Somebody can help me to extract this compressed file format, please?
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: [PS2] - Splatter Master *.PAC File

Post by BloodRaynare »

Here's the BMS script to decompress the PAC file:

pac_decompress.bms

Code: Select all

comtype lzss0

get UNK long # Always 0x01
get SIZE long
savepos CURRPOS
get ZSIZE asize
math ZSIZE - CURRPOS
get NAME basename
string NAME + .dec
clog NAME CURRPOS ZSIZE SIZE


And here's the script to extract the files from the resulting dec files

dec_extract.bms

Code: Select all

get FILES long
padding 16
xmath OFFSET "FILES * 0x20 + 0x10"
for i = 0 < FILES
   getDstring NAME 16
   get SIZE long
   padding 16
   log NAME OFFSET SIZE
   math OFFSET + SIZE
next i
OAleex
Posts: 52
Joined: Mon Nov 04, 2019 3:18 am

Re: [PS2] - Splatter Master *.PAC File

Post by OAleex »

BloodRaynare wrote:Here's the BMS script to decompress the PAC file:

pac_decompress.bms

Code: Select all

comtype lzss0

get UNK long # Always 0x01
get SIZE long
savepos CURRPOS
get ZSIZE asize
math ZSIZE - CURRPOS
get NAME basename
string NAME + .dec
clog NAME CURRPOS ZSIZE SIZE


And here's the script to extract the files from the resulting dec files

dec_extract.bms

Code: Select all

get FILES long
padding 16
xmath OFFSET "FILES * 0x20 + 0x10"
for i = 0 < FILES
   getDstring NAME 16
   get SIZE long
   padding 16
   log NAME OFFSET SIZE
   math OFFSET + SIZE
next i


Thanks, man!