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-lodprints each expected tile and the archive it resolves to, orloosefor a loose file.debug:export:archive:terrain-lodextracts the tiles as.ddsfiles.
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
- Read every plugin’s
WRLDandCELLrecords and the cells holding aLAND(Datasets/Worldspaces/WorldspaceMapQuery.cs), merged over the load order, and keep the exterior cells with aLANDunder<worldspace>, matched by EditorID. A DLC adding cells to a vanilla worldspace counts. ALAND’s own subrecords are never read. - Read
lodsettings\<worldspace>.lod, see LOD settings. Without it, or when it doesn’t generate--level, the command stops with an error. - Group the cells into tiles at
--level(Game/Assets/TerrainLod/TerrainLodGrid.ToTileCoordinates), stepping from the settings’ south-west cell. - Build each tile’s path,
textures\terrain\<worldspace>\<worldspace>.<level>.<x>.<y>.dds, and unless--no-normal-mapsits_n.dds, and resolve it in the archive file system (Pipelines/Debug/TerrainLodTileFinder.cs). - Print or extract each tile. A tile no archive provides is printed
MISSINGby 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.