Compressed .pak from 新英雄神鹰

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Compressed .pak from 新英雄神鹰

Post by moonpaladin »

Hello! I'm trying to unpack this .pak file. I were able to decompress it partially, I got .pvr .lua .xml and .dat files, seems that these .dat files contain some meshes and textures.
Hope someone can take a look at this, thanks for your time !
https://www.mediafire.com/file/ltzonkyx ... k.pak/file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compressed .pak from 新英雄神鹰

Post by aluigi »

Code: Select all

# 新英雄神鹰 PAK

get INFO_OFF long
get DUMMY long  # 20000
goto INFO_OFF
for i = 0
    getdstring NAME 0x40
    if NAME == ""
        break
    endif
    get OFFSET long
    get SIZE long
    get ZSIZE long
    get FLAGS long  # last file is 0x100 while other are 0x101, 0x100 is probably for compression
    clog NAME OFFSET ZSIZE SIZE
next i
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Compressed .pak from 新英雄神鹰

Post by Ekey »

Code: Select all

# 新英雄神鹰 (PAK) format
# script for QuickBMS http://quickbms.aluigi.org

goto 0x48
get MAX_OFFSET asize

for
   getdstring NAME 64
   get OFFSET long
   get SIZE long
   get ZSIZE long
   get FLAGS long
   
   if OFFSET == MAX_OFFSET
      cleanexit
   endif
   
   if ZSIZE == SIZE
       log NAME OFFSET SIZE
   else
       clog NAME OFFSET ZSIZE SIZE
   endif
next
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Compressed .pak from 新英雄神鹰

Post by Ekey »

Oh dammit, Luigi was faster than me :D
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compressed .pak from 新英雄神鹰

Post by aluigi »

;)
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Compressed .pak from 新英雄神鹰

Post by moonpaladin »

Thanks alot! aluigi, Ekey!
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Compressed .pak from 新英雄神鹰

Post by moonpaladin »

This game have others .pak files with a size around 400mb, the script works but it reach at one point that thrown this error :shock: , what could be the issue? :oops:. Thanks!

Image

*update*, using the -p command fixed that problem!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compressed .pak from 新英雄神鹰

Post by aluigi »

Is it possible to upload the first file generated by the script http://aluigi.org/bms/filecutter.bms on the PAK that gave you that error?
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Compressed .pak from 新英雄神鹰

Post by moonpaladin »

aluigi wrote:error

Hello aluigi, here are the two .pak that throwed that error.
https://www.mediafire.com/file/2zagas0f ... S.zip/file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compressed .pak from 新英雄神鹰

Post by aluigi »

Ok now I understand, in short it reserves space for 20000 files and leave these unused entries blank.
I updated the script for avoiding the error:
http://aluigi.org/bms/new_heroes_pak.bms

You already extracted the files so no need to re-use it.
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Compressed .pak from 新英雄神鹰

Post by moonpaladin »

Thanks alot for all your effort :)