Skip to content

BFST (Bullfrog String)

Alex edited this page Dec 7, 2020 · 1 revision

What is BFST?

The BFST (Bullfrog String) file format is used in order to specify strings for each piece of in-game text. This aids with localization and translation. BFST files don't have their own character encoding; instead, they use the two BFST files within the BFST's directory in order to specify each character.

File Format

Header

  • 4 bytes: Magic number - "BFST"
  • 4 bytes: Unknown
  • 4 bytes: String count

For each string

  • 4 bytes - String offset (from the end of the string count)

For each string (at offset)

  • 1 byte - Unknown, always 0x01
  • 3 bytes - String length
  • n bytes - Each character, specified with an offset in a BFMU file.
  • 4 bytes - Padding (may be longer?)