Changes

Morrowind Mod:Mod File Format

658 bytes added, 13:02, 3 June 2020
Organize more like Skyrim page; move record info into Records section; note some diffs between mods and saved games
{{Trail|Modding}}
{{TOCright}}'''Mod files''' for the TES3 Construction Set are essentially collections of [[#Records|records,]] which are further divided into [[#Fields|fields]]. Records generally correspond to objects in the construction set (e.g., a creature, a game setting, a dialogue entry), with the fine details of the object (e.g., health of a creature, a dialog entry test) being handled by the fields of the record.
 
A plugin file usses the following format:
* A single [[Tes3Mod:Mod File Format/TES3|TES3 record]] (plugin information).
* A collection of records of varying types, as detailed below.
 
Note that the information on these pages is intended for mod files and may or may not apply to saved game files, which use a slightly different structure. In particular, saved game files include record types not documented here (e.g., CNTC, CREC, and NPCC, which record changes to containers, creatures, and NPCs). Also, saved games sometimes emit fields in a different order or include fields not present in plugins at all.
 
{{NewRight}}
== Record Types ==
{| class="vtop" style="width:100%; margin:0; padding:0;"
| style="width:33%" |
|}
|}
----
__TOC__
==Overview==
Mod files for the TES3 Construction Set are essentially collections of records, which are further divided into fields. Records generally correspond to objects in the construction set (e.g., a creature, a game setting, a dialogue entry), with the fine details of the object (e.g., health of a creature, a dialog entry test) being handled by the fields of the record.
 
==Records==
Internally, the readers in both the game and the Construction Set take the approach of looping through all fields and then taking action based on the field name found. This means that fields can appear in almost any order, and unrecognized fields will be ignored. The Construction Set writes files in a specific order, though, which is described below and in the individual record pages. If your application is writing a mod file, it is suggested that you follow this preferred format if possible.
 
In addition to the fields listed on each record's page, all records support a <code>DELE</code> tag, indicating that a mod is deleting a record from one of its master files. This is always a uint with a 0 value.
 
==Records==
{| class="wikitable" width="100%"
! width="15%" | [[Tes3Mod:File Format Conventions|Type/Size]]