TOT file format

Applies to:
BG2, BG2: ToB, IWD, IWD:HoW, IWD:TotL

General Description
This file format serves a similar purpose (and has a similar structure to) TLK files. The files can be used to override text from dialog.tlk, and consist of string entries that are referenced from TOH files by the offset number. The files are contained in the SAV files in the savegame folders.

IWD: TOT files are used to edit the character biographies during the game (when the characters are not exported).

BG2: TOT files are used to store all custom players comments inside game e.g. custom waypoints on the area map, custom notes in the journal and character biographies

Detailed Description

TOT files have a fixed length of string sections, each 20Ch byes long.

Offset Size (data type) Description
0x0000 4 (dword) Offset to next free region
0x0004 4 (dword) Offset of preceeding entry
0x0008 512 (char array) String data
0x0208 4 (dword) Offset of following entry

Where offset 0x0000 of given section is referenced from TOH file.