CAUTION: this information refers to an earlier version of the file format (version 1.2).
The structures table (STRUCTS) consists of a number of contiguous definitions (STRUCTs), each of which contains all the information about a specific user-defined structure: there are no default data types in this table.
The location (relative to the file) and the number of elements in the table are specified by the HEADER.STRUCTSOFF and HEADER.STRUCTSSIZE fields, respectively.
Structure definition
A structure (STRUCT) consists of the following information:
Name |
Offset |
Type |
Description |
---|---|---|---|
TYPEID |
+0 |
U32 |
Structure type ID Note: only values 0x00010000-0xFFFFFE; values 0 and 0xFFFFFF are special meaning IDs. |
STATUS |
+4 |
U16 |
(reserved, runtime use) |
FLAGS |
+6 |
U16 |
Structure settings: 0x0001 Uncompressed TEXT field (NCF0). |
NAME |
+8 |
U32 |
Offset structure name (relative to strings). |
TEXT |
+12 |
U32 |
Offset structure description (relative to compressed strings, or strings if NCF0). |
VARSOFF |
+16 |
U32 |
Variable table offset (relative to file) (#1) |
VARSCNT |
+20 |
U32 |
Variable table size |
SIZE |
+24 |
U32 |
Structure size [bytes] |
EXTRA |
+28 |
U32 |
Offset extra information (0=none) (relative to file) |
(#1) The structure definition uses a normal variable definition table to define its elements. In this case, variable IDs are meaningless and should always be 0.