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.
Zero Tolerance for Disrespect

《liar princess and blind prince》Resource decompression help

Featured Replies

I don't know why the Android version of the same game can't use the method of this tool for parsing. Could any expert help take a look? Thank you very much!fad_Tools.zip

  • Supporter

Not being an expert myself - just some hex viewing required. The formats are different somehow, surprise.

You could try to fake the header for android fad, here's one from switch fad:

switch fad.png

The harder part is to fake the offset the program needs. The offset value 0x778B0 is fetched from 0x980 here.

More sensible than faking the headers is  patching the source you provided but therefore the "width,height, format" sequence has to be found in android fads.

Swizzle type is needed, too.

edit: extracted from Android 300.fad, 0_8_3_0.dds. size 40x64 was wild guessing:

0_8_3_0.dds.png

Edited by shak-otay

  • Author

What I don't know is that in the fad of Android, there is an additional NMPLTEX1 segment above each YKCMP_V1 compared to the Switch version. I don't know what this means, nor do I know how to modify the source code

Android

image.png.5792715eaa76c6194040ad78e37feb81.png

Switch

image.png.366434634bde8063e5482125d1bc0728.png

  • Supporter

0x2B and 0x780 (after 65000000) are width and height values, I guess. (Maybe another swizzle type than 1..3 is used for Android textures?)

More extractions from android 300.fad (pic 2 and 3 are from the 2nd texture in the fad), 0_8_3 means "format 8, swizzle type 3":

0_8_3_0-64x128.dds 0_8_1_0-2nd.dds 0_8_3_0-2nd.dds

1.png

Edited by shak-otay

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.