Category: Nintendo DS
Description: Common texture format used in Nintendo DS games.
Author: lowlines
Filename: btx0.xml
Size: 5.76 KB
Date Modified: 07 November 2019
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x42545830 | Stamp (BTX0) "Basic Texture". | |
Constant | 0x0004 | 4 | 0x0001FEFF | ||
File Size | 0x0008 | 4 | |||
Header Size | 0x000C | 2 | 16 | ||
# Sections | 0x000E | 2 | 1 | ||
Section Offset | 0x0010 | 4 | Repeats * Number of Sections. |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
Magic Stamp | 0x0000 | 4 | 0x54455830 | Stamp (TEX0) "Texture". | |
Section Size | 0x0004 | 4 | |||
Padding | 0x0008 | 4 | 0x0 | ||
Texture Data Size | 0x000C | 2 | shift << 3 | ||
Texture Info Offset | 0x000E | 2 | 0x3C | ||
Padding | 0x0010 | 4 | 0x0 | ||
Texture Data Offset | 0x0014 | 4 | |||
Padding | 0x0018 | 4 | 0x0 | ||
Compressed Texture Data Size | 0x001C | 2 | shift << 3 | ||
Compressed Texture Info Offset | 0x001E | 2 | 0x3C | ||
Padding | 0x0020 | 4 | 0x0 | ||
Compressed Texture Data Offset | 0x0024 | 4 | |||
Compressed Texture Info Data Offset | 0x0028 | 4 | |||
Padding | 0x002C | 4 | 0x0 | ||
Palette Data Size | 0x0030 | 4 | shift << 3 | ||
Palette Info Offset | 0x0034 | 4 | |||
Palette Data Offset | 0x0038 | 4 |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
See 3D Info Structure | |||||
Texture Offset | 0x0000 | 2 | shift << 3, relative to start of Texture Data | ||
Parameters | 0x0002 | 2 | Format is (xxCFFFHHHWWWxxxx) C = Palette ID F = Format (0-7) H = Height (8 << Height) W = Width (8 << Width) To Calculate the Data Size of a Texture: Bit Depth = <0, 8, 2, 4, 8, 2, 8, 16> Width * Height * BitDepth | ||
Width | 0x0004 | 1 | Should match W << 3 | ||
Unknown | 0x0005 | 1 | 0x00 or 0x80 | ||
Height? | 0x0006 | 1 | 0, 1, 2, 4, 8 | ||
Unknown | 0x0007 | 1 | 0x80 |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
See 3D Info Structure | |||||
Palette Offset | 0x0000 | 2 | shift << 3, relative to start of Palette Data | ||
Unknown | 0x0002 | 2 | 0 or 1 |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
Dummy | 0x0000 | 1 | 0x0 | ||
# Objects | 0x0001 | 1 | |||
Section Size | 0x0002 | 2 |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
Header Size | 0x0000 | 2 | 0x8 | ||
Section Size | 0x0002 | 2 | |||
Constant | 0x0004 | 4 | 0x0000017F | ||
Data (Repeats * Number of Objects) | |||||
Unknown | 0x0000 | 2 | |||
Unknown | 0x0002 | 2 |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
Header Size | 0x0000 | 2 | 0x8 | ||
Data Size | 0x0002 | 2 | |||
Data (Repeats * Number of Objects) | |||||
Info Data | 0x0004 | - | See each section for details on the format. |
Type | Offset | Size | Value | Description | |
---|---|---|---|---|---|
Name | 0x0000 | 16 | Repeats * Number of Objects |