BNTX: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
(Create BNTX page and document header offsets. (Credit to KillzXGaming and Syroot for the values))
 
(Add some more header data offsets)
Line 1: Line 1:
'''BNTX''' (Binary Resource Texture) is a texture archive format used for storing textures.
{{Expand section}}
==BNTX File Specification==
{{Expand section}}
==Header==
==Header==


Line 86: Line 78:
|Int64
|Int64
|Texture Array Offset
|Texture Array Offset
|-
|<code>0x30</code>
|8
|Int64
|Texture Data Length
|-
|<code>0x38</code>
|8
|Int64
|Texture Resource Offset
|-
|-
|}
|}

Revision as of 18:42, 1 September 2022

Header

Header Specification
Offset Size Data Type Description
0x00 4 Bytes BNTX File Signature (magic) 42 4E 54 58
0x04 4 UInt32 4 bytes of padding
0x08 4 Bytes 4 byte version where each byte is a version increment. (00 40 00 FF - 0.4.0.0
0x0C 2 Bytes Endianess. FFFE (LE) : FEFF (BE)
0x0E 1 Byte Alignment
0x0F 1 Byte Target Address Size
0x10 4 UInt32 File Name Offset
0x14 2 UInt16 Flag
0x16 2 UInt16 Block Offset
0x18 4 UInt32 Relocation Table Offset
0x1C 4 UInt32 File Size
0x20 4 Bytes Target platform. (NX )
0x24 4 Int32 Texture Count
0x28 8 Int64 Texture Array Offset
0x30 8 Int64 Texture Data Length
0x38 8 Int64 Texture Resource Offset