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.

Crash bandicoot n trilogy .pak unpack/repack [IGA marvel_ultimate_alliance_2.bms]

Featured Replies

  • Author
  • Localization

aluigi, posted Mon Jul 02, 2018 4:05 am (36349)


Regarding the script, the reason why I can't use the direct file writing instead of the memory files (a temporary buffer) is that the format uses some zeroes not available in the input (they are created in the output file), and also because files without names may be used.

I think that the script "may" work without memory files too but currently I can't test it and I don't want to ruin a working script.

If I'm not in error the reimporting of memory files work correctly most of the time, have you tried it?
  • Author
  • Localization

ISKA, posted Mon Jul 02, 2018 10:20 am (36362)


aluigi wrote:
Regarding the script, the reason why I can't use the direct file writing instead of the memory files (a temporary buffer) is that the format uses some zeroes not available in the input (they are created in the output file), and also because files without names may be used.

I think that the script "may" work without memory files too but currently I can't test it and I don't want to ruin a working script.

If I'm not in error the reimporting of memory files work correctly most of the time, have you tried it?


Can you show me ?
I don't understand
  • Author
  • Localization

aluigi, posted Mon Jul 02, 2018 9:59 pm (36376)


reimport.bat
If it works works, if it doesn't work... doesn't work :D
  • Author
  • Localization

ISKA, posted Tue Jul 03, 2018 3:13 pm (36394)


Code:
Error: script invalid for reimporting, it uses MEMORY_FILEs
       You can use the -. option or quickbmsver "-." if this script is meant
       to act as a header/data builder (for example if it adds a RIFF header
       to raw PCM data embedded in the file, and so on), the MEMORY_FILE data
       will be skipped automatically allowing to reimport the real file data

Last script line before the error or that produced the error:
  118 log NAME 0 SIZE MEMORY_FILE


Im trying only folders import message:

Code:
 offset   filesize   filename
--------------------------------------
/
- 0 files reimported in 0 seconds
- 114 files or logs left original, not available in the folder
  coverage file 0    79%   682506     856986     . offset 000cd9c8
  coverage file -1    0%   0          22501      . offset 000057e5
  • Author
  • Localization

aluigi, posted Tue Jul 03, 2018 10:20 pm (36410)


Based on the comment in the script I guess I can do nothing about them.
  • Author
  • Localization

pashok6798, posted Wed Jul 04, 2018 4:30 am (36440)


Could it be that some blocks are compressed and encrypted? Because I found some lzma blocks and it decompress sucessful but there is some blocks that don't have some familiar compression format and it looks like some block random bytes.
  • Author
  • Localization

ISKA, posted Thu Jul 05, 2018 1:02 pm (36507)


up someone help or write unpack repack tool?
  • Author
  • Localization

aluigi, posted Mon Jul 09, 2018 5:41 am (36606)


I have updated the script to version 0.4.

Long story short: the format MUST have a table somewhere that says if a chunk is compressed or not, that's why the script had problems with some chunks and reported the UNSUPPORTED error.
There is a table indeed but it doesn't match the files, doesn't matter how you use it since it's wrong.
The only solution was using a lame work-around that checks if a chunk is compressed or not by reading the content of the chunk itself... very lame but it works well with lzma.
I'm not going to waste other time with this crappy format...
  • Author
  • Localization

LolHacksRule, posted Wed Sep 23, 2020 4:51 pm (58832)


Minor bug with the script but this PAK file (from Windows ver) errors after extracting the last file.
  • Author
  • Localization

aluigi, posted Fri Oct 09, 2020 9:46 am (59132)


I have headache just thinking to go back working on that script :D
Apparently the problem is "math CHUNK_ZSIZE = CHUNK_SIZE" because CHUNK_SIZE is 0x00800000 while I suppose the size is about 0x27719... but it's a mess, so I prefer to stay far away from it.
  • Author
  • Localization

LolHacksRule, posted Fri Oct 09, 2020 3:53 pm (59162)


Dang, good on you for trying then
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.