Sacred RES

From XentaxWiki
Jump to: navigation, search


  • Format Type : Text Strings
  • Endian Order : Little Endian
  • Date Posted : 02:30, 18 May 2006 (EDT)

Format Specifications

uint32 {4} - Number of Strings

// for each string
uint32 {4} - String ID
uint32 {4} - Offset
uint32 {4} - Unknown
uint32 {4} - Length

// for each string
byte {X} - Unicode String

Notes and Comments

  • The *.res files can be find in Sacred\scripts\<2-letters language code>\global.res

  • The Offset does not count the first 4 bytes of the file. It skip the Number of Strings data. So if you get for instance an offset = 295216, it means in fact that the string begin at File offset 295216 + 4 = 295220.

  • The Unknown data is almost always set to zero. In Sacred Underworld, there are only 4 strings that have this data set to 1, 3 or 5, out of the 23123 strings available. It is somewhat related to the fact that the only strings that are using it have at least a '%' character (and all strings that use a '%' have this Unknown data different than zero).

  • The Length data is the length of the string in number of bytes, NOT in number of characters. Each character is coded into 2 bytes, in 16-bit Unicode format. There is NO zero terminal at the end of the strings, so you have to use this Length data to know where stop the string.

MultiEx BMS Script

Not written yet

Supported by Programs