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.

Decompression and recompression (Gzip)

Featured Replies

  • Author
  • Localization

lastdreamer, posted Tue Feb 23, 2021 11:37 pm (62461)


Hello everyone,

I have a small problem with this file. I know it's a gzip file (normally) which contains the DDS file. (I had to rename the file, the extension ".gz" was not present in the original file, but the forum doesn't accept .dds extension...)

My problem is to recreate the compressed file. Even using the decompressed file, I can't get to the same original archive... So I must not have the right compression algorithm... So, when I reimport into the game, it crashes...

Can someone help me to find out how to recompress the file to the same original format?

Thanks a lot!
  • Author
  • Localization

aluigi, posted Wed Feb 24, 2021 2:02 pm (62470)


Automatic decompression and recompression:
Code:
get NAME filename
string NAME ".new"

goto 4
get SIGN long
goto 0
if SIGN == 0x00088b1f
    comtype gzip
    get SIZE long
    savepos OFFSET
    get ZSIZE asize
    math ZSIZE - OFFSET
    clog NAME OFFSET ZSIZE SIZE
else
    comtype gzip_compress
    get SIZE asize
    log MEMORY_FILE 0 0
    put SIZE long MEMORY_FILE
    append
    clog MEMORY_FILE 0 SIZE SIZE
    append
    get SIZE asize MEMORY_FILE
    log NAME 0 SIZE MEMORY_FILE
endif
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.