ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Jan 27, 2021 3:32 pm

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Mad Rat Dead (.dat/.fad)
PostPosted: Sun Dec 06, 2020 8:23 pm 

Joined: Sun May 31, 2015 2:23 am
Posts: 367
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


Top
   
PostPosted: Mon Dec 07, 2020 2:53 am 

Joined: Wed Oct 12, 2016 12:22 pm
Posts: 36
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


Top
   
PostPosted: Mon Dec 07, 2020 5:08 pm 

Joined: Sun May 31, 2015 2:23 am
Posts: 367
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...


Top
   
PostPosted: Mon Dec 07, 2020 8:16 pm 

Joined: Wed Oct 12, 2016 12:22 pm
Posts: 36
They are split correctly, it appears to be a modification on the format mentioned in these threads
https://zenhax.com/viewtopic.php?t=8503
https://forum.xentax.com/viewtopic.php?t=20754


Top
   
PostPosted: Tue Dec 08, 2020 1:34 am 

Joined: Sun May 31, 2015 2:23 am
Posts: 367
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.


Top
   
PostPosted: Mon Jan 11, 2021 6:16 pm 

Joined: Mon Jan 11, 2021 6:03 pm
Posts: 1
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited