-
Notifications
You must be signed in to change notification settings - Fork 7
Home
This wiki shows documentations of Gfx2 (.gtx) file format.
The file header consists of 32 bytes:
Offset: 0x00
Size: 4
Description: File identifier, always 0x47 0x66 0x78 0x32 (Gfx2)
Offset: 0x04
Size: 4
Description: Unknown, always 0x20 in NSMBU
Offset: 0x08
Size: 4
Description: Unknown, always 0x07 in NSMBU
Offset: 0x0C
Size: 4
Description: Unknown, always 0x01 in NSMBU
Offset: 0x10
Size: 4
Description: Unknown, always 0x02 in NSMBU
Offset: 0x14
Size: 4
Description: Unknown, always 0x01 in NSMBU
Offset: 0x18
Size: 8
Description: Padding, always 0x00 in NSMBU
The image header directly follows the file header, it consists of 32 bytes:
Offset: 0x00
Size: 4
Description: Image Header, always 0x42 0x4C 0x4B 0x7B (BLK{)
Offset: 0x04
Size: 4
Description: Unknown, always 0x20 in NSMBU
Offset: 0x08
Size: 4
Description: Unknown, always 0x01 in NSMBU
Offset: 0x0C
Size: 4
Description: Padding?, always 0x00 in NSMBU
Offset: 0x10
Size: 4
Description: Unknown, always 0x0B in NSMBU
Offset: 0x14
Size: 4
Description: Size of data (File size), always 0x9C in NSMBU
Offset: 0x18
Size: 8
Description: Padding, always 0x00 in NSMBU
The image data and info directly follows the image header:
Offset: 0x00
Type: u32
Description: Unknown
Offset: 0x04
Type: u32
Description: Width
Offset: 0x08
Type: u32
Description: Height
Offset: 0x0C
Type: u32
Description: Unknown
Offset: 0x10
Type: u32
Description: Unknown
Offset: 0x14
Type: u32
Description: Format
Offset: 0x18
Type: u32
Description: Unknown
Offset: 0x1C
Type: u32
Description: Unknown
Offset: 0x20
Type: u32
Description: Size of data (File size)
Offset: 0x24
Type: u32
Description: Unknown
Offset: 0x28
Type: u32
Description: Unknown
Offset: 0x2C
Type: u32
Description: Unknown
Offset: 0x30
Type: u32
Description: Unknown
Offset: 0x34
Type: u32
Description: Unknown
Offset: 0x38
Type: u32
Description: Unknown
Offset: 0x3C
Type: u32
Description: Unknown
Offset: 0x40
Type: u32
Description: Unknown
Offset: 0x44
Type: u32
Description: Unknown
Offset: 0x48
Type: u32
Description: Unknown
Offset: 0x4C
Type: u32
Description: Unknown
Offset: 0x50
Type: u32
Description: Unknown
Offset: 0x54
Type: u32
Description: Unknown
Offset: 0x58
Type: u32
Description: Unknown
Offset: 0x5C
Type: u32
Description: Unknown
Offset: 0x60
Type: u32
Description: Unknown
Offset: 0x64
Type: u32
Description: Unknown
Offset: 0x68
Type: u32
Description: Unknown
Offset: 0x6C
Type: u32
Description: Unknown
Offset: 0x70
Type: u32
Description: Unknown
Offset: 0x74
Type: u32
Description: Unknown
Offset: 0x78
Type: u32
Description: Unknown
Offset: 0x7C
Type: u32
Description: Unknown
Offset: 0x80
Type: u32
Description: Unknown
Offset: 0x84
Type: u32
Description: Unknown
Offset: 0x88
Type: u32
Description: Unknown
Offset: 0x8C
Type: u32
Description: Unknown
Offset: 0x90
Type: u32
Description: Unknown
Offset: 0x94
Type: u32
Description: Unknown
Offset: 0x98
Type: u32
Description: Unknown
©2016 AboodXD.