[help]Netease files after extracted from mpk

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Jenny_1367
Posts: 6
Joined: Sun Nov 07, 2021 4:15 am

[help]Netease files after extracted from mpk

Post by Jenny_1367 »

I had a problem decrypting the files after extracting them from .mpk (I think its also possible to get it from loading the game in an emulator)
there are .2 files and files without extension
I saw there are zzz4 in the .2 files (not at the start) and not much from the other files
I already tried using the messiah BMS script but nothing really worked
some example files and extra files are here
https://mega.nz/folder/0HxBFaIC#uX8yXW0mlY_7n6uUgMBJaQ
the game is '时空中的绘旅人'
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [help]Netease files after extracted from mpk

Post by aluigi »

Are you sure that's the right link?
There are many folders.
What are the exact two files you mentioned?
lisomn
Posts: 40
Joined: Thu Jan 11, 2018 7:14 am

Re: [help]Netease files after extracted from mpk

Post by lisomn »

Code: Select all

goto 0x20
get block_size long
get fsize asize
math fsize - 0x20
if block_size != fsize
    cleanexit
endif
get unk long
get fsize asize
savepos c_pos
for i = 0
    get block_size long
    get unk long
    get zero long
    get bsize long

    set zsize = block_size
    math zsize - 0x18
    # Disorder (Messiah Game Engine) files decompressor
    getdstring ALGO 4
    if ALGO == "ZZZ4"
        comtype lz4
    elif ALGO == "LZMA"
        comtype lzma
    else
        comtype ""
    endif
    get bsize long
    savepos OFFSET

    string name = ""
    string name + i
    string name + "_"
    string name + ALGO
    string name + ".data"

    if ALGO == "ZZZ4"
        clog name OFFSET zsize bsize
    elif ALGO == "LZMA"
        clog name OFFSET zsize bsize
    else
        //ALGO NNNN ?????
        //log name c_pos block_size
    endif


    math c_pos + block_size
    goto c_pos
    if c_pos == fsize
        break
    endif
next i

tada!
Jenny_1367
Posts: 6
Joined: Sun Nov 07, 2021 4:15 am

Re: [help]Netease files after extracted from mpk

Post by Jenny_1367 »

lisomn wrote:

Code: Select all

goto 0x20
get block_size long
get fsize asize
math fsize - 0x20
if block_size != fsize
    cleanexit
endif
get unk long
get fsize asize
savepos c_pos
for i = 0
    get block_size long
    get unk long
    get zero long
    get bsize long

    set zsize = block_size
    math zsize - 0x18
    # Disorder (Messiah Game Engine) files decompressor
    getdstring ALGO 4
    if ALGO == "ZZZ4"
        comtype lz4
    elif ALGO == "LZMA"
        comtype lzma
    else
        comtype ""
    endif
    get bsize long
    savepos OFFSET

    string name = ""
    string name + i
    string name + "_"
    string name + ALGO
    string name + ".data"

    if ALGO == "ZZZ4"
        clog name OFFSET zsize bsize
    elif ALGO == "LZMA"
        clog name OFFSET zsize bsize
    else
        //ALGO NNNN ?????
        //log name c_pos block_size
    endif


    math c_pos + block_size
    goto c_pos
    if c_pos == fsize
        break
    endif
next i

tada!



Thank you! However, I used it as .bms and only got some zzz4.data, did I do something wrong? sorry for the inconvenience ><
Jenny_1367
Posts: 6
Joined: Sun Nov 07, 2021 4:15 am

Re: [help]Netease files after extracted from mpk

Post by Jenny_1367 »

aluigi wrote:Are you sure that's the right link?
There are many folders.
What are the exact two files you mentioned?


ahh, I meant .2 as a format file, sorry I didn't explain it clearly! all the folders are just game files after decrypted from mpk
xiaoyao233
Posts: 1
Joined: Tue Apr 26, 2022 1:37 pm

Re: [help]Netease files after extracted from mpk

Post by xiaoyao233 »

Jenny_1367 wrote:Thank you! However, I used it as .bms and only got some zzz4.data, did I do something wrong? sorry for the inconvenience ><

Did you worked the ZZZ4.data files out?I got into the same problem . And I don't know how to deal with that.I tried the messiah BMS script with ZZZ4.data files but nothing happened.