From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:BNTX" |
|---|
| claim | "BNTX starts with an 8-byte magic BNTX\0\0\0\0, u32 version at 8, BOM at 0xC (FF FE little endian), file name offset at 0x10, relocation table offset at 0x18, file size at 0x1C; the NX header at 0x20 holds texture count, info pointer array, data block and dictionary offsets." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BNTX" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "BntxHeader" |
|---|
| size | 64 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 8 |
|---|
| type | "char[8]" |
|---|
| name | "magic" |
|---|
| notes | "BNTX" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "version" |
|---|
|
| offset | "0x0C" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "bom" |
|---|
| notes | "FF FE little endian" |
|---|
|
| offset | "0x0E" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "revision" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "file_name_offset" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "reloc_table_offset" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "file_size" |
|---|
|
| offset | "0x20" |
|---|
| size | 4 |
|---|
| type | "char[4]" |
|---|
| name | "nx_magic" |
|---|
| notes | "NX with two spaces" |
|---|
|
| offset | "0x24" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "texture_count" |
|---|
|
| offset | "0x28" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "info_ptr_array_offset" |
|---|
|
| offset | "0x30" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "data_block_offset" |
|---|
|
| offset | "0x38" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "dict_offset" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "BNTXHeader and NXHeader struct formats and readBNTX; offsets derived from the struct format strings by hand" |
|---|
| repo | "https://github.com/KillzXGaming/BNTX-Extractor" |
|---|
| commit | "2c08e8e55fcc666ba6568a102f36dabd6c584e25" |
|---|
| path | "bntx_extract.py" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "BNTX and NX header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:57:30.404Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T20:34:03.413Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read KillzXGaming/BNTX-Extractor bntx_extract.py at 2c08e8e5, classes BNTXHeader (struct format '<8si2Hi2xh2i') and NXHeader ('4sI3qI') and readBNTX. Hand-computed offsets: magic 0, version 8, BOM 0xC (FF FE selects little endian, FE FF big endian), revision 0xE, file name 0x10, pad 2 bytes, str addr 0x16 (2 bytes), reloc 0x18, file size 0x1C (BNTX header 0x20 bytes); NX at 0x20: magic 4, count 0x24, info ptr array 0x28, data block 0x30, dict 0x38 (u64 each), str dict size u32 at 0x40." |
|---|
| notes | "The data block lists size 64 for fields up to 0x40; the extra u32 strDictSize at 0x40 and the 16-bit field at 0x16 are not listed. Real BNTX files not checked." |
|---|
|
|
|---|