TBX Archives (*.tbx) - Anonym271/7scarlet-tools GitHub Wiki

TBX Image Archives

Many images can be bundled into one TBX file. It just contains a collection of TBG images without dedicated names (which probably means that the order of these image files should not be changed - otherwise the game will not be able to get the one it needs).

Header

Offset Type Name Description
0x00 int32 magic Magic number (always "tbx\0")
0x04 uint32 data_offset Offset of the data segment
0x08 uint32 file_count Number of images in the archive
0x0C table_offset Offset of the file table

File Table

The file table consists of Header.file_count entries of this structure:

Offset Type Name Description
0x00 uint32 offset Absolute offset of the file's data
0x04 uint32 length Length of the image file

After this the data segment starts.