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.

Guardians of Middle-Earth

Featured Replies

  • Author
  • Localization

Doctor Loboto, posted Tue Oct 20, 2015 1:16 am (8660)


Sorry, I seem to have posted that link before the upload was complete. It should be up now.
  • Author
  • Localization

aluigi, posted Tue Oct 20, 2015 4:04 pm (8676)


I have no problems with that file.
I used shadow_of_mordor.bms 0.3.1 and quickbms 0.6.7a
  • Author
  • Localization

Doctor Loboto, posted Tue Oct 20, 2015 5:32 pm (8685)


Oh, awesome! Thank you very much for clearing this up for me.
  • Author
  • Localization

AlphaTwentyThree, posted Sun Jan 09, 2022 7:01 am (68885)


Really sorry to necro-post!
The fear script produces a compression error when trying to extract files from the PS3 version of GoME: https://1fichier.com/?erqcyey395sa3wfbq4u0
Could this be updated?
Thanks!
  • Author
  • Localization

aluigi, posted Sun Jan 09, 2022 10:05 am (68893)


I just checked it and in my opinion the script is "almost" correct.
The only problem is that the size of the file on disk is 3 bytes bigger than the real one and it causes the OFFSET < LIMIT check to fail (0x05caea7d vs 0x05caea80).
I just updated the script for checking the aligned OFFSET instead of OFFSET
  • Author
  • Localization

AlphaTwentyThree, posted Sun Jan 09, 2022 12:48 pm (68901)


Ha, maybe even an oversight of the developers. Anyway, thanks a lot, Luigi! I'd have done it myself but you know how hard it is to read someone else's scripts. ;)
  • Author
  • Localization

aluigi, posted Sun Jan 09, 2022 6:16 pm (68920)


I only have a partial answer for that.
The first thing to change in ZIP_DUMP is keeping only the Clog instruction activated if 'SIGN == "HBEK"' because there are no chunks in the file you provided.
The other thing is the compression algorithm that I think it's xmemdecompress but it crashes.
I have no solution at the moment.
  • Author
  • Localization

AlphaTwentyThree, posted Mon Jan 10, 2022 4:05 am (68952)


Alright, I will fiddle around with this when I have the time. Thanks.
  • Author
  • Localization

AlphaTwentyThree, posted Sun Jan 23, 2022 11:56 am (69300)


Ok, it's actually XMEMLZX from offset 4. I dumped the compressed data and tested with a file I know the contents of.

However, if I adjust the script to your guideline (incl. adjusted OFFSET/ZSIZE) and try it on another file than the one uploaded, the script:
- truncates every file at 64KB
- correctly extracts files - still gives a compression error at a certain point

This is the adjustment I made
Code:
startfunction ZIP_DUMP
   comtype xmemlzx
   math OFFSET = 4
   math ZSIZE -= 4
   clog FNAME OFFSET ZSIZE SIZE
endfuncition


For the uploaded archive, the script actually crashes quickbms - never seen that happen actually.
Here's the archive I'm trying this on at the moment (sorry to post such a large file): https://1fichier.com/?orzszk3tvqs8tf0d6jx4

Any further help would be highly appreciated! :)
  • Author
  • Localization

AlphaTwentyThree, posted Sun Jan 23, 2022 12:07 pm (69301)


Oh and here's a sample file, one time the dumped compressed one plus the truncated decompressed one.
  • Author
  • Localization

AlphaTwentyThree, posted Thu Jan 27, 2022 5:49 am (69377)


any ideas, Luigi?
  • Author
  • Localization

aluigi, posted Fri Jan 28, 2022 11:07 am (69401)


It's a chunked format identical/similar to the one implemented for LTAR/LTAX.

Decompressor example for the sample you provided:
Code:
comtype xmemdecompress
endian big
math CHUNK_SIZE = 0x10000
get ZSIZE asize
get NAME basename
log NAME 0 0
append
for OFFSET = 0 != ZSIZE
    goto OFFSET
    get CHUNK_ZSIZE long
    savepos OFFSET
    clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE
    math OFFSET CHUNK_ZSIZE
    math OFFSET x 4
next
append
  • Author
  • Localization

aluigi, posted Fri Jan 28, 2022 11:15 am (69402)


This is the patch for the script to work with these archives:
Old:
Code:
elif SIGN == "RATL"
    set SIGN string "LTAR"
New:
Code:
elif SIGN == "RATL"
    comtype xmemdecompress
    set SIGN string "LTAX"


P.S.: yeah, both PSN and XBLA samples are the same RATL but they are handled in two different ways. I have no idea how to recognize what's the format for each one. The only difference is DUMMY2 which is 0xe for the former and 0xd for the latter (on some PC samples i'ts 0xb), I don't know if it's related. ZIP is 9 for both.
  • Author
  • Localization

AlphaTwentyThree, posted Sat Jan 29, 2022 8:27 am (69428)


Alright, works now. :D
I've attached the script so people can quickly get it. ;)

fear_gome_xbla.bms

  • Author
  • Localization

aluigi, posted Sat Jan 29, 2022 12:23 pm (69431)


I also updated the fear script checking that DUMMY2 field together with LTAR, hopefully that 0xd is used on xbox archives only.
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.