TBG File Format

Applies to:
BG1, BG1: TotS, BG2, BG2: ToB, PST, IWD, IWD:HoW, IWD:TotL, IWD2

General Description
This file format allows files to be transferred between IE installations, while keeping strrefs intact. TBG V1.0 only handles ITM files.

Detailed Description
Overall Structure:


Offset Size (datatype) Description
0x0000 4 (dword) File Offset
0x0004 4 (dword) File Length
0x0008 4 (dword) Unidentified Name Offset
0x000c 4 (dword) Unidentified Name Length
0x0010 4 (dword) Identified Name Offset
0x0014 4 (dword) Identified Name Length
0x0018 4 (dword) Unidentified Description Offset
0x001c 4 (dword) Unidentified Description Length
0x0020 4 (dword) Identified Description Offset
0x0024 4 (dword) Identified Description Length


This is the actual file that is to be transferred.


This is all the actual text that will be actually imported into the Infinity Engine game.