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.

[PSV] Uppers lzs

Featured Replies

  • Author
  • Localization

happydance, posted Sat Oct 22, 2016 9:17 pm (18259)


started learning bms scripting more than a month ago. I kinda get the basics and can make script for simple zlib and some uncompressed game files, but I can't figure this out, the file extension said lzs, but it got no magic header and some of the data are visible in the hex editor. comp scanner end up with nothing or i'm not inputting the correct file size

need a little guidance

Image

sample is attached below
  • Author
  • Localization

aluigi, posted Sat Oct 22, 2016 9:28 pm (18261)


It seems just the normal LZSS with the initializer character set to 0x00 instead of the usual 0x20:
Code:
comtype lzss0
get SIZE long
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE
  • Author
  • Localization

happydance, posted Sat Oct 22, 2016 9:37 pm (18265)


thank you very much, I'll take note of this script.
I feel so stupid, it was that simple hehe.. guess I still need a lot to learn
  • Author
  • Localization

aluigi, posted Sat Oct 22, 2016 10:43 pm (18267)


Don't worry it's not that simple :)
Often it's just luck and experience, in this case I tried lzss and I got a readable good result but there were many 0x20 that didn't sound correct so it was the lzss0 compression (shortcut of lzss0 with 0x00 init).
Usually lzss can be recognized by the presence of readable text strings with 0xff bytes (that sort of 'y' you see with text/hex editor) at their beginning and in the middle.
That's valid also for other algorithm (lzo1x, lz4 and so on) but lzss is very diffused.
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.