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.

Decompressing and recompressing files in Tales of Rebirth PsP

Featured Replies

  • Author
  • Localization

Haken, posted Fri Jul 16, 2021 2:59 am (65218)


This game uses LZSS compression(i think) for some files, i have managed to make a simple decompressor in c#, but i'm struggling with compresssing it back. Tried to see if i could do it with quickbms but the decompressed result was different from the decompressed by the game, maybe probably because the window must be initialized with a pattern of data. Is it possible do decompress/compress these files with quickbms?




  • Author
  • Localization

aluigi, posted Thu Sep 09, 2021 3:27 pm (66221)


It's just the normal lzss with the window initialized using a NUL byte rather than the usual space (0x20).

Decompress script:
Code:
comtype lzss0
get ZIP byte    # 1
get ZSIZE long
get SIZE long
savepos OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE


Compress script:
Code:
comtype lzss0_compress
get SIZE asize
log MEMORY_FILE 0 0
put 1 byte MEMORY_FILE
put 0 long MEMORY_FILE
put SIZE long MEMORY_FILE
savepos OFFSET MEMORY_FILE
append
clog MEMORY_FILE 0 SIZE SIZE
append
get ZSIZE asize MEMORY_FILE
math ZSIZE - OFFSET
goto 1 MEMORY_FILE
put ZSIZE long MEMORY_FILE
get SIZE asize MEMORY_FILE
get NAME basename
log NAME 0 SIZE MEMORY_FILE
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.