Difference between revisions of "Sacred RES"

From XentaxWiki
Jump to: navigation, search
(new Sacred RES page. New template used, should be ok)
(No difference)

Revision as of 15:28, 17 May 2006

Back to index | Edit this page

RES

{{GRAFPageMisc{{ subst:#if: Strings ressource | {{subst:!}}Strings ressource }}{{ subst:#if: Little Endian | {{subst:!}}Little Endian }}}}

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

None

Documentation

None

Games

None

Navigation

Jump to a listing by...
All Formats - Common Formats - Standard Formats - Malformed Pages
Platforms
Microsoft:
Xbox
Xbox 360
Nintendo:
GameCube
DS
Desktop:
PC
Sega:
Dreamcast
Sony:
PlayStation
PlayStation 2
PlayStation 3
PlayStation Portable
Type
Animation - Archive - Audio - Image - Mesh - Miscellaneous - Model - Video
Endianness
Little-endian - Big-endian
BMS Scripts
Pages Without a BMS Script

All Pages with Scripts:
Recently Added Scripts

Program Support
No Known Support

MultiEx Commander - Game Extractor

Format Specification Completion
Work in Progress - Almost Done - Completed
Compression and Encryption
No Compression or Encryption Used - Unknown Compression or Encryption Used

One or Both Used:
Compression Used - Both Compression and Encryption Used