Jump to content


Photo

[BGEE] New TOH format variant

bgee bg2ee

2 replies to this topic

#1 argent77

argent77
  • Modders
  • 733 posts
  • Gender:Male

Posted 24 November 2013 - 06:17 AM

Talk override files are used for storing user-specific text (e.g. journal entries, map markers) and can be usually found only in SAV files. BG2EE uses a slightly different variant of the TOH file format. It combines both TOH and TOT files that are present in SAV files of old IE games into a single TOH file.

Main header:
Offset    Size    Description
0x0000    4       Signature ('TLK ')
0x0004    4       unknown (always 0x02)
0x0008    4       unknown
0x000C    4       Number of strref entries
0x0010    4       Start offset of strref entries

Strref entry:
Offset    Size    Description
0x0000    4       The STRREF to override or new unique STRREF (if >= 3,000,000)
0x0004    4       Start offset of the override string (relative to the start of the Strref entries section!)

Override string:
A simple null-terminated string of arbitrary size.

Edited by argent77, 24 November 2013 - 08:42 AM.


#2 Avenger

Avenger
  • Modders
  • 3731 posts
  • Gender:Male
  • Location:Hungary

Posted 27 November 2013 - 10:18 AM

0x0004 is the version number.

#3 igi

igi

    IESDP Guardian

  • Gibberlings
  • 1220 posts
  • Gender:Male

Posted 06 September 2017 - 07:33 AM

This is now integrated.





Reply to this topic



  



Also tagged with one or more of these keywords: bgee, bg2ee

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users