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 V2.0 handles ITM and SPL 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
0x0028 12 (char array) Filename with Extension of file
0x0034 1 (byte) 1 (Byte) Infinity Engine ID
  • value 0x01- Baldur's Gate
  • value 0x02- Planescape: Torment
  • value 0x03- Icewind Dale
  • value 0x04- Baldur's Gate II: Shadows of Amn


This is the actual file itself that is to be transferred.


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