VitaSmith / gust_tools

A set of utilities for dealing with Gust (Koei Tecmo) PC games files
Other
206 stars 23 forks source link

FabStyle (3DS) .g1t files #7

Closed RocketRobz closed 4 years ago

RocketRobz commented 4 years ago

I'm working on a translation of FabStyle for Nintendo 3DS. It seems the graphics are stored in .g1t files, but when trying to extract them, I get this:

ERROR: Unsupported texture type (0x45)

Any chance of adding support for that texture type?

Here's a zip containing 3 .g1t files. Title.zip

UPDATE: There are more unsupported formats: 0x3C, 0x3D, 0x45, 0x47, 0x48

The tool supports 0x09, but gives these errors:

Extracting 'BrandLogo.g1t'...
OFFSET   SIZE     NAME              DIMENSIONS MIPMAPS
0000008c 00080008 BrandLogo\000.dds 256x512    1
ERROR: Can't create file 'BrandLogo\000.dds'
00080094 00080008 BrandLogo\001.dds 256x512    1
ERROR: Can't create file 'BrandLogo\001.dds'
0010009c 00080008 BrandLogo\002.dds 256x512    1
ERROR: Can't create file 'BrandLogo\002.dds'
001800a4 00080008 BrandLogo\003.dds 256x512    1
ERROR: Can't create file 'BrandLogo\003.dds'
002000ac 00080008 BrandLogo\004.dds 256x512    1
ERROR: Can't create file 'BrandLogo\004.dds'
002800b4 00080008 BrandLogo\005.dds 256x512    1
ERROR: Can't create file 'BrandLogo\005.dds'
003000bc 00080008 BrandLogo\006.dds 256x512    1
ERROR: Can't create file 'BrandLogo\006.dds'
003800c4 00080008 BrandLogo\007.dds 256x512    1
ERROR: Can't create file 'BrandLogo\007.dds'
004000cc 00080008 BrandLogo\008.dds 256x512    1
ERROR: Can't create file 'BrandLogo\008.dds'
004800d4 00080008 BrandLogo\009.dds 256x512    1
ERROR: Can't create file 'BrandLogo\009.dds'
005000dc 00080008 BrandLogo\010.dds 256x512    1
ERROR: Can't create file 'BrandLogo\010.dds'
005800e4 00080008 BrandLogo\011.dds 256x512    1
ERROR: Can't create file 'BrandLogo\011.dds'
006000ec 00080008 BrandLogo\012.dds 256x512    1
ERROR: Can't create file 'BrandLogo\012.dds'
006800f4 0008005c BrandLogo\013.dds 256x512    1
ERROR: Can't create file 'BrandLogo\013.dds'
VitaSmith commented 4 years ago

Type 0x45 is relatively easy (it's 24-bit tiled RGB), so I've added it to the latest version of the application:

000

001

002

000

001

Note that, because the DS images are flipped, you will need to use the new -f flag (flip) with gust_g1t when unpacking or repacking the textures, otherwise they will appear upside down:

000-flipped

For instance, you will need to use:

gust_g1t -f Logo.g1t

For the other types however, I'm not planning to add support for them myself, sorry. I just don't have the time for that. I tried to see what I could do to support types 0x3C and 0x3D but it would just take way too much time to do it and there is only so long I can devote to a side project like gust_tools when I have plenty of other work to do.