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.

Rage Software .XFS Archive - Reimport error: unsupported compression

Featured Replies

  • Author
  • Localization

Josip_2P2, posted Fri Dec 31, 2021 2:20 pm (68570)


I'm new at this BMS scripting and I have no any experience about that.
I'm currently trying to make some changes in Rage software .XFS archives.
I got some error in reimporting proccess.

First, in exporting proccess after I choose output folder I got this:
Code:
  offset   filesize   filename
--------------------------------------
  00000058 172        81111ec4.dat

- the script needs to load a pre-compiled function from the dll or code
  MEMORY_FILE10
  do you want to continue with this and any other requested dll/code (y/N)?


Ofc, I choose "y" and the files are exported.
I wanted to change only 1 file. Also I was experimenting with reimporting without changing anything, trying with -e option and with various .xfs archives. Everytime same results:
Code:
  offset   filesize   filename
--------------------------------------

Error: unsupported compression 284 in reimport mode
       you can try the -e option for disabling compression (experimenta

Last script line before the error or that produced the error:
  226 clog NAME OFFSET SIZE XSIZE

- OFFSET       0x00000058
- ZSIZE        0x000000ce
- SIZE         0x000000ac
  coverage file 0     0%   1240       1285174    . offset 00000058
  coverage file -10   0%   0          3975       . offset 00000000


So, I was trying to follow the steps from this link:
viewtopic.php?t=23
, hoping that I will manage something, but I hardly understand anything here.

What is the cause of problem ? What I need to do that everything works fine ?

Thanks.
  • Author
  • Localization

aluigi, posted Sun Jan 02, 2022 11:19 pm (68620)


Currently there is no recompressor for that algorithm.

In reimport mode the -e option works only with reimport2.bat, please retry and let me know.
In the next version of quickbms I will edit the message for specifying that -e works in reimport2 only.
  • Author
  • Localization

Josip_2P2, posted Mon Jan 03, 2022 12:27 am (68623)


Thanks for quick response.
I tried with reimport2 with -e option already before, exactly the same results.
  • Author
  • Localization

aluigi, posted Mon Jan 03, 2022 11:03 am (68632)


It seems strange.
I don't have an XFS archive so I created a test archive similar to XFS and -e did the job by replacing the ZIP field with a zero and setting OFFSET and XSIZE accordingly.

Maybe the real archive is not compatible at all, being reimport and -e completely automatic there is not much I can do.
  • Author
  • Localization

Josip_2P2, posted Mon Jan 03, 2022 11:42 am (68633)


Like I said before, I am beginner with all that BMS stuff, so I can't clearly understand your last reply, sorry :lol: .
I will attach some .XFS file for you.
Please, can you in other words or with some images explain me step by step what you did, especially reimport process?

Before reimport, with in exported XFS archive, try to swap two .dds files (images), their names.
These are:
2614c89d.dds & cd7f5563.dds .

Thanks.
  • Author
  • Localization

aluigi, posted Mon Jan 03, 2022 5:10 pm (68648)


Regarding how to use -e:
copy reimport2.bat as reimport2e.bat.
Open it with notepad and add -e, for example: quickbms.exe -G -w -r -r -e
Save it and click on it.
Now select the same script, xfs file and folder you selected during extraction.

Now regarding this specific case, -e works perfectly and the file is successfully reimported.
BUT the format becomes a mess with reimport2 because it's just a list of OFFSETs with SIZE calculated from the difference of each offset... technical stuff, long story short it's not possible to use reimport2 with it.
Since -e can only work with reimport2 (reimport.bat only changes the original data of the archived file) there are no other solutions.

Maybe check if the game still loads the extracted files when they are outside the XFS archive or if the archive is deleted.
Just experiment.
  • Author
  • Localization

Josip_2P2, posted Mon Jan 03, 2022 6:29 pm (68651)


Reimport worked fine ! I used -e option in wrong way before...
But, as you said, the format becomes a mess. Looks like the game can't read the files from archive.
Other suggestions that you mentioned, I tried them before, it didn't work.

Anyway, thanks for your help and time, appreciate it :!: :)
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.