Swords of Glass fortune format

From ModdingWiki
Jump to: navigation, search
Swords of Glass fortune format
Format typeText
Text purposeControl
Line endingsUnknown
Character setUnknown

Statues in Swords of Glass can give you a fortune, which is little more than what you would read on a fortune cookie, and just as useless. The fortunes are stored in the Fortunes.dat file. Each fortune is two lines long even if only one if shown. In the data file, a line is 21 bytes long, even if not all of the bytes are used. The first byte of each line is the length of bytes to read from the line. The file is fixed-width and stores 35 two-lined fortunes.

Data type Description
UINT8 Message length The number of characters to read from the message line.
char[20] Name The message line.
2 lines per fortune.
20 fortunes in the file.


This format was reverse engineered by TheAlmightyGuru. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)