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))
(No difference)

Revision as of 09:17, 1 September 2022

BNTX (Binary Resource Texture) is a texture archive format used for storing textures.

BNTX File Specification

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