The images are compressed with ykcmp and when extracted gives you a raw headerless image (DDS???)
The other image files the game had, I've manage to rip the textures on the .fad files which is also compressed with ykcmp and most of them are just normal dds image with 256 color + alpha, but on this files I cant seem to rip them properly since most raw texture viewer seems not to handle images with palettes so I can't even use Rawtex or TextureFinder or Kukkii raw image viewer.
I've tried to modify the ykcmp code to decompress the image and make a dds header but i still need to uswizzle these nintendo switch image.
Code: Select all
comtype ykcmp
goto 0x18
get Width long
get Height long
goto 0x80
idstring "YKCMP_V1"
get DUMMY long # 4
get ZSIZE long
get SIZE long
savepos OFFSET
math ZSIZE - 20
xmath dataSize "Width * Height"
set MEMORY_FILE binary "\x44\x44\x53\x20\x7C\x00\x00\x00\x07\x10\x08\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
putVarChr MEMORY_FILE 0xC Width short
putVarChr MEMORY_FILE 0x10 Height short
putVarChr MEMORY_FILE 0x14 dataSize long
putVarChr MEMORY_FILE 0x4C 0x20 long
putVarChr MEMORY_FILE 0x50 0x20 long
putVarChr MEMORY_FILE 0x58 0x8 long
putVarChr MEMORY_FILE 0x6c 0x1000 long
get NAME basename
string NAME p "%s_decompress.dds" NAME
log NAME 0 0x80 MEMORY_FILE
append
clog NAME OFFSET ZSIZE SIZE
append
sample files https://drive.google.com/open?id=1F3JQM ... Pp-8_sFBCr