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.

Game resource unpack

Featured Replies

  • Author
  • Localization

Panzerdroid, posted Sun Aug 30, 2015 1:00 pm (7020)


Hello,
I'm trying to unpack one small Chinese game resource. The stucture seems very simple.

PKG header for each entry, then 16 bytes for plain-text chunk-size, then the chunk itself. No names I've found so far.

BMS Scanner showed LZO1X compression on chunks I've xtracted manually, ripping them with HEX-edit.

My knowledge of QBMS is so low, I can't write a script for it (with re-import function).

Help would be much appreciated.

Thanks in advance!

small sample file
http://www73.zippyshare.com/v/oDpkh2Wp/file.html
  • Author
  • Localization

Panzerdroid, posted Sun Aug 30, 2015 6:33 pm (7034)


Oh my God! It works! Luigi, thank you very much! It strange, though, that reimporting is'n working. I get this message:

- 0 files reimported in 0 seconds
coverage file 0 0% 189 57327

I don't see MEMORY_FILES, so can't understand why it doesn't import files back :(

I see the simple structure & wonder that I could really modify the game. But it has so many small files in packages and mass reimporting could be very slow due to file system overhead. And I have an idea. Is it possible with modifying this script to make a packer that will deal not with small files, but with a premade pseudo-archive with concatenated files and a list of files with as a separate file?

In example I create a big uncompressed pseudo-archive with DOS "copy" command & make a list of files with sizes. Maybe in CSV-like format. And then is it possible with BMS to make a compressed copy of this pseudo archive with these PKG compressed size chunks?

Example:

pseudo archive = chunk1 chunk2 ...
pseudo filelist:
chunkfilename1
chunkfilename2
...
I'm not a programmer & can't even understand your script or I think I could possibly make it myself :(


---------


EDIT: quickbms_4gb_files.exe seems to reimport just fine, while quickbms.exe doesn't. Strange...
  • Author
  • Localization

aluigi, posted Sun Aug 30, 2015 6:58 pm (7036)


I have checked and the reimporting works correctly.
I did a simple extraction, editing of one file and reimporting and all the 9 files have been found and reinjected.
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.