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.

Offzip Compression problem [prototype 2 rz]

Featured Replies

  • Author
  • Localization

gokhan935, posted Fri Dec 14, 2018 2:50 pm (41386)


I try to translate protoype 2, I found everything to translate. Altough main translation file can be extracted with offzip without problem, my problem is how to recompress this file. How can i do it?
I uploaded the files, please i need your help.
  • Author
  • Localization

aluigi, posted Sat Dec 15, 2018 6:04 pm (41420)


Script for automatic decompression and recompression (no need of reimporting):
Code:
# Prototype 2 RZ
get EXT extension
if EXT == "RZ"  # conflict with idstring/putdstring
    idstring "RZ"
    getdstring ZERO 6
    get SIZE longlong
    savepos OFFSET
    get ZSIZE asize
    math ZSIZE - OFFSET
    get NAME basename
    clog NAME OFFSET ZSIZE SIZE
else
    comtype zlib_compress
    log MEMORY_FILE 0 0
    putdstring "RZ" 2 MEMORY_FILE
    for x = 0 < 6
        put 0 byte MEMORY_FILE
    next x
    get SIZE asize
    put SIZE longlong MEMORY_FILE
    get NAME filename
    string NAME ".rz"
    log NAME 0 16 MEMORY_FILE
    append
    clog NAME 0 SIZE SIZE
    append
endif
  • Author
  • Localization

sinnerclown380, posted Fri Dec 03, 2021 8:16 am (67815)


Hi aluigi how can i compress the file with this script?
  • Author
  • Localization

aluigi, posted Fri Dec 03, 2021 12:18 pm (67833)


Just use the same script on the decompressed file and it will generate the new rz one.
  • Author
  • Localization

sinnerclown380, posted Sat Dec 04, 2021 8:07 am (67880)


I used this compression code for prototype 2 but it was smaller than the original file and there was no change in the game.Does anyone have an idea?
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.