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.

Mad Rat Dead (.dat/.fad)

Featured Replies

  • Author
  • Localization

Doctor Loboto, posted Sun Dec 06, 2020 8:23 pm (60943)


I've been searching for a way to get the textures/sprites out of these files for a bit, and since it's a Nippon Ichi Software game, I tried many of the existing tools for prior titles. Unfortunately none have gotten the job done. I managed to extract the 'fad' files from the bigger 'dat' archives, but haven't gotten past that point. Was hoping someone here could help me out.

https://www.dropbox.com/s/smrxg0fxtc9c6 ... N.zip?dl=0
  • Author
  • Localization

aaa801, posted Mon Dec 07, 2020 2:53 am (60950)


Well.. this is interesting

It looks like YKCMP but possibly a newer version, the existing tools don't seem to like it, and it seems to have an additional header at the start

This should get you started,

Code:
goto 0x24
get STRING_END long
goto 0x30
get STRING_START long

xmath STRING_LENGTH "STRING_END - STRING_START"
log "stringtable" STRING_START STRING_LENGTH

# workaround for getting entry count
goto 0x50
get FIRST_OFFSET long

set ENTRY_COUNT 0
xmath ENTRY_COUNT "FIRST_OFFSET - 0x40"
xmath ENTRY_COUNT "FIRST_OFFSET / 0x20"


goto 0x40


for i = 0 < ENTRY_COUNT
   getdstring NAME 8 # not always populated
   get LENGTH long
   get UNK1 long # Not populated if WIDTH and HEIGHT are populated
   get OFFSET long
   get UNK2 long # seems to be in the header of the subfiles, at 0x10, in case of NMPLTEX1 files
   get WIDTH long # image width, 0x58 in subfile
   get HEIGHT long # image height, 0x5c in subfile

   if UNK2 != 0
      # image file

      string NAME OFFSET
      string NAME "_"
      string NAME WIDTH
      string NAME "x"
      string NAME HEIGHT
      string NAME ".nplmtex"
      
      print "name: %NAME% offset: %OFFSET% length: %LENGTH% unk1: %UNK1% unk2: %UNK2% width: %WIDTH% height: %HEIGHT%"
      log OFFSET OFFSET LENGTH
         
   else
      # general files
      print "name: %NAME% offset: %OFFSET% length: %LENGTH% unk1: %UNK1% unk2: %UNK2% width: %WIDTH% height: %HEIGHT%"
      log OFFSET OFFSET LENGTH
   endif


next i
  • Author
  • Localization

Doctor Loboto, posted Mon Dec 07, 2020 5:08 pm (60966)


The script certainly results in files...not sure what to do with any of said files once I have them though. It looks like it just segmented the original file sort of randomly...
  • Author
  • Localization

Doctor Loboto, posted Tue Dec 08, 2020 1:34 am (60972)


At least we're getting somewhere. Unfortunately I have no clue on any of this sort of thing, so I wouldn't know what to do next even with them split like this.
  • Author
  • Localization

Yamahearted, posted Mon Jan 11, 2021 6:16 pm (61606)


I've got dds files from those files using old version of fadEx utility from Liar Princess thread but all files look like pseudo-random mess. I have no idea what it means but I can guess it has something to do with swizzling? So I'll attach an example of those files and image of how it looks in case it helps anyhow
Image
https://my.namejeff.com/p0XEtKtf.7z
  • Author
  • Localization

Casical, posted Mon May 02, 2022 5:38 am (71373)


Yamahearted wrote:
I've got dds files from those files using old version of fadEx utility from Liar Princess thread but all files look like pseudo-random mess. I have no idea what it means but I can guess it has something to do with swizzling? So I'll attach an example of those files and image of how it looks in case it helps anyhow
Image
https://my.namejeff.com/p0XEtKtf.7z


This is about as far as I've gotten as well, and nothing I've been able to find anywhere has led me to a reliable unswizzling method for the DDS files. If anyone has any ideas on this, I'd be more than willing to hear them at this point :(
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.