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

debug:*:archive:terrain-lod

debug:dump:archive:terrain-lod   <data-directory> <worldspace> [--level <4|8|16|32>] [--no-normal-maps] [--missing-only] [--load-order se|ae|custom [--load-order-plugins <names|file>] [--load-order-archives <names|file>]]
debug:export:archive:terrain-lod <data-directory> <worldspace> --output-directory <dir> [--clean] [--level <4|8|16|32>] [--no-normal-maps] [--load-order se|ae|custom [--load-order-plugins <names|file>] [--load-order-archives <names|file>]]

Lists or extracts the terrain LOD tiles of one worldspace, the raw tiles that export:worldspace-maps:lod stitches.

  • debug:dump:archive:terrain-lod prints each expected tile and the archive it resolves to, or loose for a loose file.
  • debug:export:archive:terrain-lod extracts the tiles as .dds files.

Unlike the other archive commands, these don’t glob the archives. They derive the tiles a worldspace needs from its records and its LOD settings, then look each one up. They always read a load order, se by default.

Pipeline

  1. Read every plugin’s WRLD and CELL records and the cells holding a LAND (Datasets/Worldspaces/WorldspaceMapQuery.cs), merged over the load order, and keep the exterior cells with a LAND under <worldspace>, matched by EditorID. A DLC adding cells to a vanilla worldspace counts. A LAND’s own subrecords are never read.
  2. Read lodsettings\<worldspace>.lod, see LOD settings. Without it, or when it doesn’t generate --level, the command stops with an error.
  3. Group the cells into tiles at --level (Game/Assets/TerrainLod/TerrainLodGrid.ToTileCoordinates), stepping from the settings’ south-west cell.
  4. Build each tile’s path, textures\terrain\<worldspace>\<worldspace>.<level>.<x>.<y>.dds, and unless --no-normal-maps its _n.dds, and resolve it in the archive file system (Pipelines/Debug/TerrainLodTileFinder.cs).
  5. Print or extract each tile. A tile no archive provides is printed MISSING by the dump and logged as a warning by the export, not an error: a mod’s landscape needn’t ship every tile.

The naming convention and the grid origin are not in the UESP spec, see assumptions.

Output

       133  Skyrim - Textures7.bsa        textures\terrain\tamriel\tamriel.32.-64.-64.dds
     79071  Skyrim - Textures7.bsa        textures\terrain\tamriel\tamriel.32.-64.-32.dds

Both commands first log the landscape cell count, the tile count and the expected file count.