Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

OffsetTypeSpec fieldMeaning
0int16leftGrid X of the grid’s south-west cell
2int16bottomGrid Y of the grid’s south-west cell
4int32stride_pow2Side of the grid, in cells, a power of two
8int32lowestsize_lodSmallest tile size generated, in cells
12int32highestsize_lodLargest 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

FileSouth-west cellStrideLevels
tamriel.lod(-96, -96)2564 to 32
dlc2solstheimworld.lod(-64, -64)2564 to 32
blackreach.lod(-23, -9)324 to 32
japhetsfollyworld.lod(-9, -6)164 to 16

The other eight vanilla files follow the same pattern. Every vanilla file is 16 bytes.