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.

uncompressed data error

Featured Replies

  • Author
  • Localization

toadbirb, posted Mon Sep 13, 2021 7:13 am (66319)


(I'm not sure if this is where I should ask this, if its not please tell me!)

I'm trying to extract game assets from a new game and I keep getting this error every time I try to run it through quickbms

The files are .npk and I'm using the .nxpk script so I'm not sure what I'm doing wrong

Code:
Info:  algorithm   249
       offset      00000000
       input size  0x0003797a 227706
       output size 0x00037606 226822
       result      0xfffffffc -4

Error: uncompressed data (-4) bigger than allocated buffer (227578)
       It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
  206 clog NAME OFFSET ZSIZE SIZE FILENUM

- OFFSET       0x00000000
- ZSIZE        0x0003797a
- SIZE         0x00037606
  coverage file 0     0%   227758     895053788  . offset 3555a918
  coverage file -1  100%   227706     227706     . offset 0003797a
  • Author
  • Localization

aluigi, posted Mon Sep 13, 2021 8:44 am (66322)


nxpk uses 4 different compression algorithms.
Please provide that npk file and also the name of the game.
If the file is very big (let's say over 500Mb) we have to find another solution.
  • Author
  • Localization

toadbirb, posted Mon Sep 13, 2021 9:43 am (66325)


aluigi wrote:
nxpk uses 4 different compression algorithms.
Please provide that npk file and also the name of the game.
If the file is very big (let's say over 500Mb) we have to find another solution.


the game is "Harry Potter: Magic Awakens"

one of the two files i tried to extract is too big so ill send the smaller one (they both produced the same error code so)
edit: i tried to include the file and it said it doesnt support npk, and a .rar was too big? (26.6 MB)

https://www.dropbox.com/s/4k43u1xpdvvvdeo/ui.npk?dl=0
  • Author
  • Localization

aluigi, posted Mon Sep 13, 2021 12:29 pm (66329)


It's related to the key used for obfuscating the first 128 bytes.

Open the script with a text editor and replace the "2" at line 117 with "250":
Code:
    xmath TMP "x - 250"


:D
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.