-
Notifications
You must be signed in to change notification settings - Fork 0
Field Types Reference
This page documents the data types available for use in the fields section of YAML schemas.
| Name | Size | Description |
|---|---|---|
byte, char
|
1 | Unsigned 8-bit integer. |
word |
2 | Unsigned 16-bit integer (little-endian). |
dword |
4 | Unsigned 32-bit integer (little-endian). |
sbyte, schar
|
1 | Signed 8-bit integer. |
sword |
2 | Signed 16-bit integer. |
sdword |
4 | Signed 32-bit integer. |
A fixed-length string.
-
Attributes:
size(int) orsize_ref(name of a sibling field containing the size).
A raw binary blob.
-
Attributes:
size(int).
Maps bits to boolean flags.
-
Attributes:
flags(Dictionary ofhex_mask: flag_name). -
Note: Unmapped bits are preserved in a reserved
_unknownfield for fidelity.
Extracts multiple numeric values from a single integer.
-
Attributes:
bitfields(Dictionary ofname: {shift: X, mask: Y}).
Maps an integer to a string label.
-
Attributes:
values(List or Dictionary).
A collection of scalars.
-
Attributes:
count(fixed) orsize(total bytes to divide).
Used for high-performance flat lookup tables (e.g., in WED files).
-
Attributes:
count_field(resolves count from the parsing context).
A virtual field that calculates a value from its siblings using an arithmetic expression. It has size 0 and does not exist in the binary file.
-
Usage:
expr: "width * height"
Reads a string from a distant offset within the same section entry.
-
Attributes:
offset_ref,length_ref.
An 8-byte, null-padded resource reference. Automatically sanitized for display (strips trailing nulls).
A 4-byte integer pointing to a string in the TLK table. In-editor display resolves this to the actual text.
Specialized handlers for blocks of references, often used in spell/item slots.
A conditional field used in CRE files. It reads 216 bytes of additional data only if the eff_structure_version in the context is non-zero.
-
lookup: Used for fields that reference external tables (IDS files). -
display_value_map: Overrides the raw integer display in the UI with a string. -
display_empty_values: List of integers (like0or0xFFFFFFFF) that should be treated asnull/Nonein the editor. -
hidden: true: The field is parsed but not shown in the standard inspector.