The Mythical Realm 2(*.pak)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

The Mythical Realm 2(*.pak)

Post by The soul of light »

Hi ~ aluigi.
The game's resource compression format is PAK, I do not know what BMS script can extract these files, can you help me? Thank you~! :P
hnb.7z
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: The Mythical Realm 2(*.pak)

Post by The soul of light »

MerlinSVK wrote:http://aluigi.altervista.org/bms/phone_game.bms

:P Thank you very much, my friend, the perfect job.
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: The Mythical Realm 2(*.pak)

Post by The soul of light »

I try to use script to extract the files, but an error has occurred, the script on the part of the file work is normal, but most files an error occurred, can you help me take a look at where the problem is?Thank you ~
Sample:https://share.weiyun.com/7b2b3161ad681ea70a80fb1812686066
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: The Mythical Realm 2(*.pak)

Post by MerlinSVK »

That .pak contains uncompressed files, that's why was there an error. Try this script.

Code: Select all

# Phone Game (script 0.2)
# script for QuickBMS http://quickbms.aluigi.org

idstring "kcap"
get VER long
get DUMMY long
get FILES short
get ARCHIVE_SIZE long
getdstring ZEROES 0x12
math BASE_OFF = 0x44002
for i = 0 < FILES
    get DUMMY longlong
    get SIZE long
    get OFFSET long
    get TYPE byte

    math OFFSET + BASE_OFF
    savepos TMP
    goto OFFSET

    get NAMESZ byte
    get ZSIZE long
    get SIZE long
    getdstring NAME NAMESZ
    savepos OFFSET
   if SIZE == ZSIZE
      log NAME OFFSET SIZE
   else
      clog NAME OFFSET ZSIZE SIZE
   endif
    goto TMP
next i
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: The Mythical Realm 2(*.pak)

Post by The soul of light »

Wow Oh ~! Perfect work ~! Thank you! MerlinSVK. :P