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.

Dragon Quest Builders 2 (Nintendo Switch) - Custom LZW algorithm?

Featured Replies

Hello. I have trouble with finding out how to decompress chunk of data that can be found in some phyre files of Dragon Quest Builders 2 for Nintendo Switch. It seems like they are using LZW.

Header always starts with 3 bytes - 0x78, 0x2, 0x1

Dictionary always starts with range of 128 bytes from 0x0 to 0x7F, then it starts adding new entries to dictionary from with shorts like 0x180, 0x181, etc. After some point this scheme breaks.

I am guessing that this data uncompressed should contain pointers, sizes and formats of each texture inside that phyre file since they are nowhere else available.

In attachments I'm sending copied compressed data to separate file.

Also screenshot how this looks like. I think from 0x235 there is first data that is not appended to dictionary.

image.png.c4c2fabd47125f3aedb71badcfe94022.png

test.zip

  • ikskoks changed the title to Dragon Quest Builders 2 (Nintendo Switch) - Custom LZW algorithm?

Create an account or sign in to comment

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.