Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Need help to unpack .npk file from MOBA-Onmyoji

Featured Replies

  • Author
  • Localization

mafumafu, posted Tue Jan 09, 2018 11:23 pm (31443)


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:
- 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
  • Author
  • Localization

milk, posted Sat Jan 13, 2018 7:27 pm (31515)


????unity
  • Author
  • Localization

mafumafu, posted Tue Jan 16, 2018 2:12 pm (31611)


milk wrote:
????unity


?????????????????,??????????_(:3_/_)_

[del]????????????_(:3_/_)_[/del]
  • Author
  • Localization

mafumafu, posted Tue Jan 23, 2018 10:13 am (31831)


could anyone give me some info or ideas or suggestions...?
  • Author
  • Localization

net2cn, posted Tue Jan 23, 2018 3:16 pm (31843)


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).
  • Author
  • Localization

lixingdeyongyuan, posted Tue Jun 26, 2018 5:28 am (36213)


hi,mafumafu!Has this problem been solved?
  • Author
  • Localization

angelxy, posted Tue Aug 07, 2018 8:15 pm (37290)


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

.hi my fr can you show me how did you do that
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.