LOD settings (.lod)
Implemented in CreationEngineFormats/Lod/. A lodsettings\<worldspace>.lod file describes the
terrain LOD grid generated for one worldspace: its origin, its stride and the levels that exist.
Spec: UESP LOD Settings File Format.
xEdit reads the same layout (TwbLodSettings.LoadFromData in Core/wbLOD.pas).
The file name is the worldspace EditorID in lowercase. A worldspace without this file has no terrain LOD of its own.
Layout
16 bytes, little-endian. The file is this struct alone.
| Offset | Type | Spec field | Meaning |
|---|---|---|---|
| 0 | int16 | left | Grid X of the grid’s south-west cell |
| 2 | int16 | bottom | Grid Y of the grid’s south-west cell |
| 4 | int32 | stride_pow2 | Side of the grid, in cells, a power of two |
| 8 | int32 | lowestsize_lod | Smallest tile size generated, in cells |
| 12 | int32 | highestsize_lod | Largest tile size generated, in cells |
A tile of level L sits at (x, y) = (left + i * L, bottom + j * L), the same alignment as
xEdit’s TwbLodSettings.BlockForCell. The south-west cell doesn’t have to be a multiple of the
level: Blackreach’s is (-23, -9), and its only level-32 tile is blackreach.32.-23.-9.dds.
LodSettingsReader throws InvalidDataException on a file that isn’t exactly 16 bytes, a stride
that isn’t a positive power of two, a min level of zero or less, or a max level below the min
level. The spec names the struct fields and nothing else; the checks follow from the field names
and xEdit’s size check.
Vanilla values
| File | South-west cell | Stride | Levels |
|---|---|---|---|
tamriel.lod | (-96, -96) | 256 | 4 to 32 |
dlc2solstheimworld.lod | (-64, -64) | 256 | 4 to 32 |
blackreach.lod | (-23, -9) | 32 | 4 to 32 |
japhetsfollyworld.lod | (-9, -6) | 16 | 4 to 16 |
The other eight vanilla files follow the same pattern. Every vanilla file is 16 bytes.