Need help to unpack .npk file from MOBA-Onmyoji

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
mafumafu
Posts: 3
Joined: Tue Jan 09, 2018 10:55 pm

Need help to unpack .npk file from MOBA-Onmyoji

Post by mafumafu »

hi there. I' trying to unpack the .npk files from a new Chinese game 'MOBA-Onmyoji', which is made by Netease, like 'Demon Seals' or other games.

I've tried the following script that take effect on 'Demon Seals'

http://aluigi.org/papers/bms/others/nxpk.bms

but it failed and logs here:

Code: Select all

- signature of 4 bytes at offset 0x00000000 doesn't match the one
  expected by the script:

  this one: "EXPK"
  45 58 50 4b                                       EXPK

  expected: "NXPK"
  4e 58 50 4b                                       NXPK


I've also tried to change the file' header to 'NXPK', but it still doesnt work.

could anyone give me the right .bms file, or confirm that it cannot be unpacked by QuickBMS? Thanks a lot!


example .npk file: https://drive.google.com/open?id=1Xg7B3 ... 8OSUfEFURs

game' official site: http://moba.163.com/index.html

game download: https://g78.gdl.netease.com/jzpaj101.apk
milk
Posts: 13
Joined: Sun Dec 31, 2017 6:52 pm

Re: Need help to unpack .npk file from MOBA-Onmyoji

Post by milk »

你会不会unity
mafumafu
Posts: 3
Joined: Tue Jan 09, 2018 10:55 pm

Re: Need help to unpack .npk file from MOBA-Onmyoji

Post by mafumafu »

milk wrote:你会不会unity


会一点。。。大佬可以稍微说说方案么,具体细节我自己回去查_(:3_/_)_

[del]在这里中文交流感觉好奇怪_(:3_/_)_[/del]
mafumafu
Posts: 3
Joined: Tue Jan 09, 2018 10:55 pm

Re: Need help to unpack .npk file from MOBA-Onmyoji

Post by mafumafu »

could anyone give me some info or ideas or suggestions...?
net2cn
Posts: 4
Joined: Fri Jun 02, 2017 9:17 am

Re: Need help to unpack .npk file from MOBA-Onmyoji

Post by net2cn »

Well this game is not made by Unity, it is made by an self-developed engine called "NeoX" I guess. Meanwhile, since the signature has changed from "NXPK" to "EXPK", it is possible that netease has changed their packing method (slightly maybe?), making the unpack script not working any more. Also, changing the first four bytes won't make the script working again.

-Edit: A possible approach:
You could try to reverse "libclient.so" in the game's apk and see if you can find a Python bytecode called "redirect.pyc" which is used to "redirect"(?) the game resources. Here's one from Onmyoji on GitHub: https://github.com/YJBeetle/unnpk/commit/6bcfbdc2d97a3e0a774b8f00caa8638e8e0d7282 (Not tested).
lixingdeyongyuan
Posts: 1
Joined: Tue Jun 26, 2018 5:24 am

Re: Need help to unpack .npk file from MOBA-Onmyoji

Post by lixingdeyongyuan »

hi,mafumafu!Has this problem been solved?
angelxy
Posts: 1
Joined: Tue Aug 07, 2018 8:12 pm

Re: Need help to unpack .npk file from MOBA-Onmyoji

Post by angelxy »

lixingdeyongyuan wrote:hi,mafumafu!Has this problem been solved?

.hi my fr can you show me how did you do that