Category: Nintendo DS
Description: Common color format used in Nintendo DS games.
Author: lowlines
Filename: nclr.xml
Size: 2.81 KB
Date Modified: 07 November 2019
Type | Name | Offset | Size | Value | Description |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x524C434E | Stamp (RLCN) "Nitro CoLor Resource". | |
u32 | Constant | 0x0004 | 4 | 0x0100FEFF | |
u32 | File Size | 0x0008 | 4 | ||
u16 | Header Size | 0x000C | 2 | 0x10 | |
u16 | # Sections | 0x000E | 2 | 1 or 2 |
Type | Name | Offset | Size | Value | Description |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x54544C50 | Stamp (TTLP) "PaLeTTe". | |
u32 | Section Size | 0x0004 | 4 | ||
u16 | Bit Depth | 0x0008 | 2 | 3 = 4-Bits 4 = 8-Bits | |
u16 | Unknown | 0x000A | 2 | I've seen 0x00 and 0x0A. | |
u32 | Unknown | 0x000C | 4 | I've seen 0x00 and 0x01. | |
u32 | Memory Size? | 0x0010 | 4 | Does not always match size of data in file. This variable might represent the size in memory. If so palettes might have to be repeated to fill the space in memory. | |
u32 | Data Offset | 0x0014 | 4 | 0x10 | Relative to start of Section + 0x8. |
Type | Name | Offset | Size | Value | Description |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x504D4350 | Stamp (PMCP) "Palette Color MaP". | |
u32 | Section Size | 0x0004 | 4 | ||
u16 | # Palettes | 0x0008 | 2 | ||
u16 | Constant | 0x000A | 2 | 0xBEEF | |
u32 | Constant | 0x000C | 4 | 0x8 | |
Palette Info (times # Palettes) | |||||
u16 | Palette Index | 0x0000 | 2 |