TES4 is the header record for the mod file. It contains info like author, description, file type, and masters list.
- Flags indicate whether a file is a master (Flags & 1) or plugin, regardless of what the file extension says.
- Flags also indicate whether a file has localized string tables (Flags & 128). If this flag is not set, lstrings are treated as zstrings.
C | SubRecord | Name | Type/Size | Info |
---|---|---|---|---|
+ | HEDR | header | struct | |
version | float | 0.94 in most files; 1.7 in recent versions of Update.esm. | ||
numRecords | int32 | Number of records and groups (not including TES4 record itself). | ||
nextObjectId | ulong | Next available object ID. | ||
- | CNAM | author | zstring |
|
- | SNAM | description | zstring |
|
* | MAST | master | zstring | Master filename.
|
DATA | fileSize | uint64 |
|
|
- | ONAM | overrides | formid[] | Overridden forms
|
+ | INTV | unknown | uint32 | Unknown. Possibly "internal version"?
|
- | INCC | unknown | uint32 | Unknown.
|