next up previous contents
Next: UO Constants Tables Up: UO File Format Previous: unifont.mul   Contents

Language files (cliloc)

This is the format for all of the language files (*.enu etc). The cliloc files are set up as a hierarchy of objects. There are two types of objects, containers and nodes. Nodes contain data, and containers contain objects. All objects have the following header:
char[]  objectString
dword   objectSize
The length of objectString varies. Here are all known objects: "FORM" Container Main container object "DATAFORM" Container All the data for the form "LANGINFO" Node Text settings "TEXT" Node The actual text Here's an example of the heirarchy of a typical form:
[FORM]
        [DATAFORM]
                [LANGINFO]
                       text setting data
                [/LANGINFO]
                [TEXT]
                       text data
                [/TEXT]
        [/DATAFORM]
[/FORM]
TEXT data is simply a list of NULL terminated strings. LANGINFO's data is as follows:
char[*] Language (NULL terminated)
dword   Character size
dword   Unknown
char[*] Class (NULL terminated)
dword   Unknown
word    Number of strings in TEXT data
word    Unknown


Thiago A Correa 2001-06-09