Category: Nintendo DS
Description: Common graphic format used in Nintendo DS games.
Author: lowlines
Filename: ncgr.xml
Size: 3.09 KB
Date Modified: 07 November 2019
Type | Name | Offset | Size | Value | Description |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x5247434E | Stamp (RGCN) "Nitro Character GRaphic". | |
u32 | Constant | 0x0004 | 4 | 0x0001FEFF | |
u32 | File Size | 0x0008 | 4 | ||
u16 | Header Size | 0x000C | 2 | 16 | |
u16 | # Sections | 0x000E | 2 | 1 or 2 |
Type | Name | Offset | Size | Value | Description |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x52414843 | Stamp (RAHC) "CHARacter". | |
u32 | Section Size | 0x0004 | 4 | ||
u16 | Height (Tiled) | 0x0008 | 2 | Height unless 0xFFFF. | |
u16 | Width (Tiled) | 0x000A | 2 | Width unless 0xFFFF. | |
u32 | Bit Depth | 0x000C | 4 | 3 = 4-Bit 4 = 8-Bit | |
u16 | Unknown Height | 0x0010 | 2 | Set when Height is 0xFFFF. | |
u16 | Unknown Width | 0x0012 | 2 | Set when Width is 0xFFFF. | |
u8 | Tiled Flag | 0x0014 | 1 | If not set, image is tiled. | |
u8 | Partitioned Flag | 0x0015 | 1 | If set, image is partitioned. | |
u16 | Unknown | 0x0016 | 2 | I've only seen 0x0 here. | |
u32 | Data Size | 0x0018 | 4 | ||
u32 | Data Offset | 0x001C | 4 | 0x18 | Relative to start of Section + 0x8. |
Type | Name | Offset | Size | Value | Description |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | Stamp (SOPC) "??". | ||
u32 | Section Size | 0x0004 | 4 | ||
u32 | Constant | 0x0008 | 4 | 0x00 | |
u16 | Char Size | 0x000C | 2 | ?? | |
u16 | Char Count | 0x000E | 2 | ?? |