ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax
It is currently Fri Aug 12, 2022 8:23 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Jul 31, 2022 2:34 am 
User avatar

Joined: Mon Nov 04, 2019 3:18 am
Posts: 47
Image

Image

Somebody can help me to extract this compressed file format, please?


Attachments:
Pac.rar [1.18 MiB]
Downloaded 9 times
Top
   
PostPosted: Sun Jul 31, 2022 3:53 am 
User avatar

Joined: Fri Mar 10, 2017 7:23 am
Posts: 248
Here's the BMS script to decompress the PAC file:

pac_decompress.bms

Code:
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:
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


Top
   
PostPosted: Sun Jul 31, 2022 2:18 pm 
User avatar

Joined: Mon Nov 04, 2019 3:18 am
Posts: 47
BloodRaynare wrote:
Here's the BMS script to decompress the PAC file:

pac_decompress.bms

Code:
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:
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!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited