File Hosting Not logged in.
Login Register Emblem CTGP-Nitro
204 users
User list
 
Online users
 
 
Shoutbox
 

NSBTX (File Format)



The NSBTX file format contains an archive of textures that can be referenced by an NSBMD.

Structure


An NSBTX file begins with a generic Nitro header, with the magic bytes set to "BTX0". The structure of the file is almost identical to an NSBMD, except that it does not contain an MDL0 section.

File header
OffsetTypeDescription
0x00char[4]"BTX0"
0x04uint16_tEndianness. Set to 0xFEFF in the endianness of the file.
0x06uint16_tFormat version
0x08uint32_tFile size
0x0Cuint16_tSize of header, excluding block offsets
0x0Euint16_tNumber of blocks n
0x10uint32_t[n]Block offsets


The only blocks in an NSBTX file should be TEX0 blocks.

TEX0 Header
OffsetTypeDescription
0x00char[4]"TEX0"
0x04uint32_tSection size
0x08uint32_tVRAM Key
0x0Cuint16_tSize of texture data, shifted right 3 bits
0x0Euint16_tDictionary offset
0x10uint16_tFlags
0x12uint16_tPadding
0x14uint32_tTexture offset
0x18uint32_t4x4 textures VRAM key
0x1Cuint16_tSize of texture data, shifted right 3 bits
0x1Euint16_tFlags
0x20uint16_tDictionary offset
0x22uint16_tPadding
0x24uint32_tTexture offset
0x28uint32_tPIDX offset
0x2Cuint32_tPalette VRAM key
0x30uint16_tSize of palette data, shifted right 3 bits
0x32uint16_tFlags
0x34uint16_tDictionary offset
0x36uint16_tPadding
0x38uint32_tPalette offset



Last edit by Garhoogin on Sat Jul 25 11:02:35 CDT 2020