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

Assumptions

The reference is silent, incomplete or unclear, so the code picks an answer. Basis values are defined in Spec deviations.

Group type 10

Reference: UESP Mod File Format. Layout in Plugin file format.

ReferenceCodeWhyBasis
The group type table stops at 9Type 10 (cell visible distant children) is walked like types 8 and 9Records under it would otherwise be missedTooling (xEdit)

Tests: PluginWalkerTests.

Record types in cell children

Reference: UESP Mod File Format, record type table. The CELL page only says a cell’s children group holds its “references”.

QuestionCodeWhyBasis
Which record types can a cell’s children group (types 8, 9 and 10) hold?REFR, ACHR, LAND, NAVM, PGRE, PHZD, the types the table places in cell subgroups. PluginWalker enters cell children only when a query asks for one of themSkipping cell children saves most of a worldspace walkVanilla data: the five vanilla masters and the two Creation Club masters of the Special Edition hold no other type there

If a plugin carries another type in cell children, add it to RecordTypeSet’s cell child list.

Tests: PluginWalkerTests.

WRLD unnamed flags

Reference: UESP WRLD.

ReferenceCodeWhyBasis
DATA flag 0x04 unnamedKept as WorldspaceFlags.Unknown04Printed rather than droppedDesign
PNAM flag 0x10 unknownKept as WorldspaceParentUseFlags.Unknown10SameDesign

Tests: WorldspaceReaderTests.

XTEL across overrides

Reference: How Skyrim Loads Forms. The rest of the merge rules are in Rule of One merge.

QuestionCodeWhyBasis
Does an override without XTEL clear the teleport?HasTeleport is or-ed across overridesThe article doesn’t cover XTEL, so an earlier plugin’s value is keptUnverified

If a door loses its teleport in game after an override, switch HasTeleport to latest-wins.

Tests: LocationMergerRuleOfOneTests.

String table encoding

Reference: UESP String Table File Format. Pipeline in Localization.

QuestionCodeWhyBasis
Polish and Czech secondary encoding is “Custom”No secondary encodingUndocumentedVanilla data
Japanese and Chinese aren’t in the tableNo secondary encodingNothing to implement againstVanilla data
Behavior when both encodings failLenient UTF-8 decode, countedKeeps the text, flags the problemDesign

Every string table of the five vanilla masters, in all nine languages, decodes as pure UTF-8 with no fallback, so the missing secondary encodings don’t affect vanilla data. How the fallback is reported is in Reported data problems.

Tests: SkyrimStringTableTests.

Inline string encoding

Reference: UESP File Format Conventions, UESP String Table File Format, xEdit What’s New, 4.0.0. Pipeline in Localization.

The two UESP pages disagree. File Format Conventions says every string is Windows-1252. String Table File Format says the game tries UTF-8 first, then the language’s secondary encoding.

StringsCodeWhyBasis
General: EDID, paths, TES4 author, description and mastersWindows-1252Follows File Format Conventions; the player never sees themTooling (xEdit)
An lstring of a non-localized plugin (FULL, DESC, CNAM)Kept as raw bytes, decoded per export language with the string table ruleThe player sees them; Vominheim.esm stores them as UTF-8Design

xEdit splits plugin strings the same way: “general strings” in Windows-1252, “translatable strings” in the language’s code page. For translatable strings, xEdit uses one code page per language (Windows-1252 for English, UTF-8 for most other languages in Special Edition). The code tries UTF-8 first for every language instead, as String Table File Format describes. The title of Vominheim.esm’s BOOK 63774C stores ô as the UTF-8 bytes C3 B4: read as Windows-1252, it becomes “Blanchecôte”.

Windows-1252 text with accents is almost never valid UTF-8, so a plugin written in Windows-1252 still decodes through the fallback. A language with no secondary encoding decodes invalid bytes leniently, see Reported data problems. The vanilla masters are localized, so they don’t exercise this path. If the guess is wrong, Windows-1252 text that happens to be valid UTF-8, such as é, shows as é.

Tests: BufferDecodeTests, GameTextDecoderTests, LStringResolverTests, BookLocalizationResolverTests.

Localized string id 0

The reference doesn’t say what id 0 means.

QuestionCodeWhyBasis
A BOOK FULL or DESC with id 0Left unresolved, not counted as missing, no warningId 0 is in no vanilla table; it reads as “no string”Vanilla data

Vanilla has 7 such fields in Skyrim.esm and 1 in Dragonborn.esm. Any other missing id is a real problem, see Reported data problems.

Tests: BookLocalizationResolverTests.

BOOK CNAM table

The reference says .dlstrings holds “Journal/Book entries” and .strings the “general strings”, but doesn’t list fields. See Localization.

QuestionCodeWhyBasis
Which table holds a BOOK CNAM id.dlstringsEvery non-zero vanilla id resolves there; 71 miss in .stringsVanilla data

Tests: BookLocalizationResolverTests.

Book teaches

Reference: UESP BOOK, DATA, and UESP Actor Value Indices.

QuestionCodeWhyBasis
Flags 0x01 and 0x04 both setRead as a spellNo vanilla book sets both; a spell FormId is the more specific readingUnverified
Where the skill’s AVIF livesSkyrim.esm, FormId from the reference’s tablePlugin data has no index to AVIF mappingVanilla data
Teaches without either flagIgnoredThe reference only defines it under those flagsDesign

Vanilla has 90 skill books (18 skills, 5 each) and 116 spell tomes. Each skill book’s AVIF has the expected EditorId (AVSmithing, and AVMysticism for Illusion). If a book with both flags teaches its skill in game, swap the order in BookMerger.ResolveTeaches.

Tests: BookMergerBookDataTests, ActorValuesTests.

Keyword count

Reference: UESP BOOK, KSIZ and KWDA.

QuestionCodeWhyBasis
KSIZ disagrees with KWDA’s lengthKWDA’s length wins; KSIZ isn’t readThe array is what’s actually thereTooling (xEdit)
KWDA length not a multiple of 4Trailing bytes ignoredA partial FormId can’t be resolvedDesign

Tests: BookReaderTests.

BSA duplicate paths

Nothing documents how several archives resolve a shared path. See BSA archive format.

QuestionCodeWhyBasis
A path in several archivesThe last archive in the order winsMirrors the plugin load orderDesign

Vanilla archives overlap in a few places. The paths in both Skyrim - Animations.bsa and Skyrim - Meshes0.bsa resolve to Meshes0, and those in both Textures3 and Textures8 resolve to Textures8, the later archive each time. Each installed voices archive holds the same paths, so the last installed one wins; the exporter reads no voice file. The book export and terrain LOD output don’t depend on which copy wins, so vanilla data can’t confirm the rule.

Tests: ArchiveFileSystemTests, LocalizationSourceTests, FontSourceTests.

Loose files

UESP’s archive page doesn’t say how loose files and archives combine. Mod manager communities state that a loose file always wins, see the STEP forum thread on BSA extraction.

QuestionCodeWhyBasis
A path both loose and in an archiveThe loose file wins, whatever the archive orderThe engine checks loose files firstArticle
Case of a loose pathIgnoredWindows file systems ignore itArticle
Two loose files differing only by case (Linux)The first in ordinal order wins, the other is reportedThe game on Windows sees one fileDesign
A file at the root of DataNot a resourceResource paths always start with a folderDesign

With a Special Edition Data and a red Textures\Landscape\TundraRocks01.DDS, the raster-records map of Tamriel shows the Whiterun tundra in red, and a broken loose copy of a book’s menu art NIF is reported unreadable by export:books.

Tests: ArchiveFileSystemTests, LocalizationSourceTests, GameSessionTests.

File name block padding

The spec gives totalFileNameLength as the total length of all file names, with their \0. Vanilla MarketplaceTextures.bsa counts 9 more \0 bytes after its last name.

QuestionCodeWhyBasis
\0 bytes after the last name, inside totalFileNameLengthSkipped as paddingA Bethesda archive has them, and the folder record offsets count themVanilla data
Any other byte there, or fewer names than filesThe archive is rejectedThe names and the file records no longer line upDesign

The block is read in one call of totalFileNameLength bytes, so this length has to be right.

Tests: BsaListingReaderTests.

Plugin archives

The engine loads the archives named after each plugin along with it. The name rule is stated by forum posts, not by UESP: see the Steam discussion and Auto BSA.

QuestionCodeWhyBasis
Which archives a plugin loads<plugin>.bsa and <plugin> - Textures.bsaBoth names are in SkyrimSE.exeArticle
Their order<plugin>.bsa firstNo source states itUnverified
Their place among archivesAfter the vanilla archives, in plugin orderThe ini archives load firstArticle
Vanilla mastersNo plugin archiveThey ship in the shared Skyrim - *.bsa archivesVanilla data

If a mod ships a file in both archives and the wrong copy shows up, swap the order in Game/Vanilla/Archives.PluginArchiveFileNames.

Tests: LoadOrderTests, CustomLoadOrderTests, GameSourceTests.

Book markup conventions

Book markup and fontconfig*.txt have no published spec. The parsers follow what vanilla data contains. See Book markup assets and Font export.

QuestionCodeWhyBasis
fontconfig*.txt syntaxParsed as the vanilla files write itNo published formatVanilla data
A texture spelled with different casingThe file uses the archive entry’s casingKeeps names independent of processing orderDesign
Unit of <font size> and <img width height>Flash stage pixels of the book text fieldbook.swf’s page field writes its 22 px font height as size="22"; a 296×278 image fills its 296 px text widthVanilla data
Size of an <img> without width and heightA 64 × 64 px box, aspect ratio ignoredTwo unsized QA book images of different sizes both measure about 64 × 62 in-gameUnverified: measured on one 1080p screenshot. If wrong, unsized drop caps look larger or smaller than in-game

Both are applied by the generator, see Book page geometry. Faces and assets the data points at but doesn’t ship are in Reported data problems.

Tests: FontConfigParserTests, MenuArtTextureConverterTests, BookContentSanitizerTests.

Terrain LOD tiles

The lodsettings\<worldspace>.lod layout follows its UESP page, see LOD settings. The <worldspace>.<level>.<x>.<y>.dds names under textures\terrain\<worldspace>\ are an archive path convention, not record data: no UESP page covers them, and the code follows the DynDOLOD terrain LOD page and xEdit. See debug:*:archive:terrain-lod.

QuestionCodeWhyBasis
Tile namingLevel, then the tile’s south-west cell X and YStated by DynDOLOD; matches every tile in the vanilla texture archivesVanilla data
Grid originThe lodsettings left/bottom cell, not zeroxEdit’s BlockForCell aligns on it; Blackreach (-23, -9) and Sovngarde (-24, -32) tiles only line up this wayVanilla data
Cell to tileTiles step by the level from the originSame formula as xEdit’s BlockForCell; every expected tile of the 12 worldspaces with LOD exists at every level they generateVanilla data
.lod stride_pow2The grid side in cells, itself a power of two, not an exponentThe spec gives only the field name; xEdit reads it as a stride; the 12 vanilla files hold 16 to 256, all powers of twoVanilla data
.lod file sizeExactly 16 bytes, anything else rejectedThe spec’s struct is the whole file; xEdit rejects any other size; every vanilla file is 16 bytesVanilla data
Tile orientationGrid Y grows north, a DDS’s first row is its north edgeStitched Tamriel is seamless and north-upVanilla data
X8R8G8B8 tilesThe fourth byte is padding, drawn opaqueSolstheim tiles have DDPF_RGB without DDPF_ALPHAPIXELS and a zero padding byteVanilla data
_n.dds normal encodingWorld space: red east, green up, blue north, each byte mapped to -1..1See belowVanilla data
Cells without LANDNot part of the worldspace, cleared by --crop-to-playableVanilla tiles are black there (MarkarthWorld)Vanilla data
Playable areaOverlap of the NAVM cell bounds and the non-persistent REFR/ACHR cell bounds, plus one cellEither box alone keeps filler or scenery, see belowDesign
Persistent referencesNot counted toward a cellVanilla stores them in the worldspace’s persistent cell, a CELL with flag 0x400 and XCLC 0, 0 (Tamriel, MarkarthWorld, Blackreach, Sovngarde)Vanilla data
Water surfaceA cell with DATA “Has Water” has water at its XCLW, or at the WRLD DNAM default water height when XCLW is absent or means no waterThe spec defines each field, not how they combine; the result draws Tamriel’s sea, rivers and lakes and Solstheim’s sea where they are in gameVanilla data
Child worldspace cell coordinatesA child worldspace’s cells sit at the same grid coordinates as its WNAM parent’s, so --parent-lod draws them with the parent’s tiles (lod) or fills their holes with its LAND (raster-records)The spec only says PNAM “Use LOD Data” inherits the parent’s LOD; in game, that LOD is what shows in the holes. ONAM places a child’s map markers on its parent’s map; the five vanilla worldspaces drawn with --parent-lod set it to scale 1 and offsets 0, and line up with their place on Tamriel’s mapVanilla data
Water across cellsEach cell’s water is a flat plane at its own heightMatches the data; neighbouring cells with different XCLW show a straight edge (Blackreach)Vanilla data
LAND without VHGTFlat at the worldspace’s DNAM default land height (its parent’s with “Use Land Data”); left out of the water when no DNAM appliesThe spec doesn’t say how such a cell is drawn. In 12 of the 14 vanilla worldspaces with one, and in the Vominheim mod (945 of 2096 cells), every neighbouring vertex sits at that heightVanilla data, two exceptions below

Two vanilla worldspaces don’t fit the LAND without VHGT rule. MarkarthWorld’s cell (-46, -2) has neighbours near 11000 and a default of -27000: drawn flat, it is a deep pit under the sea’s water height, outside the playable crop. FallowstoneCaveWorldStart’s cells (-1, -3) and (-2, -3) have neighbours at 2000 and a default of 100, above their water at 0, so they show no water either way.

Rounding each cell down to a multiple of the level only matches worldspaces whose origin is itself a multiple of 32 (Tamriel, Solstheim), and finds none of Blackreach’s tiles.

No published source documents the terrain LOD normal maps. The flat areas of the vanilla tiles (sea, cells without LAND) are (128, 255, 128), so green is up. Two checks on the level-32 tiles of Tamriel and Solstheim fix the other axes:

  • A slope field has no curl only with the right axes. Reading red as east and blue as north (or both negated) gives the lowest total curl; swapping the channels or negating one of them gives 1.6 to 2.6 times more.
  • Integrating the slopes of Solstheim from the sea inward gives land above sea level with red east and blue north, and below it with both negated. That holds along rows and along columns.

No field marks the playable part of a worldspace. WRLD MNAM only exists on Tamriel and Solstheim, and NAM0/NAM9 span every LAND cell. Two signals were compared on the 12 vanilla worldspaces with LOD:

  • The bounds of the cells with a navmesh match the walkable area of Tamriel (-48..52, -34..45 against -57..61, -43..46 for LAND) and Solstheim. Sovngarde has single-cell columns of navmesh across its filler terrain, which stretch the bounds over it.
  • The bounds of the cells with placed references match Sovngarde’s valley (0..30, 0..31), but include Tamriel’s border mountains and a few isolated cells (Blackreach -18).

Their overlap keeps the valley of Sovngarde and the walkable area of Tamriel. A worldspace built mostly from objects comes out small: MarkarthWorld’s navmeshes cover 2x3 of its 140 LAND cells.

Tests: TerrainLodGridTests, WorldspaceCellsTests, LodSettingsReaderTests, TerrainLodSettingsLoaderTests, LodRasterTests, DdsDecoderTests, TerrainLodNormalsTests, MapCropTests, TerrainLodTileSourceTests, WorldspaceTerrainTests, WaterLayerTests, LodTileTests, MapProjectionTests, WorldspaceLodSourceTests, MapPlannerTests.

LAND texture layers

Reference: UESP LAND, UESP LTEX, UESP TXST. The Skyrim LAND page lists VTXT as “a variable length list of 8 byte records” without a layout; the Oblivion LAND page gives one. Layout in Plugin file format.

QuestionCodeWhyBasis
VTXT layoutuint16 position, 2 unknown bytes, float32 opacityThe Oblivion page’s layout; the Skyrim page gives the same 8-byte sizeVanilla data: every position is 0 to 288 and every opacity 0 to 1
VTXT positionRow by row from the quadrant’s south-west point, 17 points per rowStated by the Oblivion pageVanilla data: textures line up with the rivers the water layer draws from VHGT
Quadrant points on the cell gridA quadrant’s 17x17 points are vertices of the 33x33 VHGT grid; neighbouring quadrants share their middle row or column17 + 16 = 33: the only way two quadrants fill the cell’s verticesVanilla data: blended this way, two cells agree on their shared edge 10 times better than with the grid transposed, flipped or its quadrants swapped (Tamriel, and the Vominheim mod)
Shared vertexEach layer is blended in layer order over every quadrant; the base texture of the later quadrant wins on a shared row or columnThe pages don’t say which quadrant owns itDesign
VCLR gridRows south to north, columns west to east, like VHGTThe Skyrim page says only “the same as Oblivion”; the Oblivion page gives no orderVanilla data: on Tamriel, neighbouring cells agree on their shared edge colors (mean difference 0.05 per vertex out of 765), against 35 to 71 with the grid flipped or transposed
TX00 pathRelative to textures\The TXST page gives no root; vanilla paths start with Landscape\Vanilla data: 90 of 91 LTEX color maps found this way, the last has no TNAM
Default texturetextures\landscape\dirt02.ddsThe BTXT row names only dirt02.ddsVanilla data: the file exists there
Quadrant without BTXTThe default texture, as for a zero LTEXThe page gives the default only for a zero formidDesign
Several VTXT after one ATXTTheir points are appended to that layerThe pages describe one VTXT per ATXTDesign

Tests: LandscapeReaderTests, WorldspaceLandscapesTests, LandscapeRasterizerTests, LandscapePaletteTests.

LAND texture tiling

Reference: UESP LAND, UESP LTEX, UESP TXST. None of them says how often a landscape texture repeats: the scale is an engine setting, not a field.

QuestionCodeWhyBasis
Repeats per cell24, 12 per quadrantfLandTextureTilingMult defaults to 3, applied as 3 / 4 per vertex step: 32 x 3 / 4Mudcrab PR 91, from a static inspection of SkyrimSE.exe
OriginRepeats line up with cell edges, no mirroring24 is whole, so every cell starts a repeatSame source
OrientationThe color map’s first row is the north edge of a repeatNot statedDesign: the pattern is too small on a map to tell

An .ini that changes fLandTextureTilingMult changes the game, not the map.

Tests: LandscapeRasterizerTests.

Landscape normal maps

Reference: UESP TXST. TX01 is a “normal map (tangent- or model-space)” and DNAM 0x04 marks a model-space one. The page doesn’t say how a tangent-space map lies on the ground.

QuestionCodeWhyBasis
Tangent frame on a landscape textureRed along the color map’s columns, east; green down its rows, south (the DirectX convention)A tangent-space normal map is the gradient of a surface: read in the right frame, its curl is close to 0Article: Beyond Skyrim, Baking, “Skyrim uses DirectX”. Vanilla data: on 10 textures\landscape\*_n.dds, the curl read this way is 1.2 to 4.9 times smaller than with green toward the north, on every one
Up componentBlue, or rebuilt from red and green where that is higherDXT5 compression leaves vectors off unit length: red and green alone would lay a tilted texel flat. A BC5 map stores no blueVanilla data: the 50 textures\landscape\*_n.dds are DXT5; on 4 of them, 0.1 to 3.5% of texels have red and green squared summing over 1, with blue still 0.24 to 0.48 up
Scale and placementThose of the color map, see LAND texture tilingOne TXST maps both on the same coordinatesDesign
Model-space map (DNAM 0x04)Not readIts normals are in the model’s frame, not the texture’sVanilla data: none of the 90 landscape TXST with a TX01 sets it

Tests: LandscapeBackgroundTests, LandscapeTextureReaderTests.

Object normal maps

References: nif.xml BSShaderTextureSet names slot 1 ‘Normal/Gloss’ and BSVertexDataSSE stores a tangent and a bitangent per vertex, without saying how a texel lies along them. Community Shaders’ Lighting.hlsl builds the frame its pixel shader multiplies the texel by from the bitangent (its first row), the tangent, then the normal.

QuestionCodeWhyBasis
Tangent frame of a texelRed along the vertex bitangent, green along the tangent, blue along the normal, each axis blended over the face and brought to unit length firstThe shader does so: its frame’s rows are the bitangent read from the position’s W, the normal’s and the tangent’s fourth bytes, then the tangent, then the normalTooling: Community Shaders Lighting.hlsl. Vanilla data: on every shape of Tamriel’s placed models with a normal map, weighted by area and placements, the bitangent runs along +u and the tangent along +v (down the texture’s rows); the green therefore runs down the rows, the DirectX convention of Landscape normal maps. The curl test there, on the 200 most placed object normal maps, is lower read so on 190 of them (median ratio 1.45); the others are atlases whose islands are turned or mirrored, which the vertex frame follows
Texel to direction2 b / 255 - 1 on red, green and blue, then the sum brought to unit lengthThe shader reads the texel as 0 to 1 and computes 2 c - 1, without rebuilding blueTooling: Community Shaders Lighting.hlsl TransformNormal
StrengthHalf the texel’s tilt, a style choice of Map shadingThe shader takes the whole tilt, under its own lightDesign
Model-space map (Model_Space_Normals)Not laid, see not implementedIts normals are in the model’s frame, not the vertices’Vanilla data: none of the 8,981 shapes with a normal map placed on Tamriel sets it

Tests: NifSceneReaderTests.LightingShader_GivesSlotOneAsItsNormalMap, ObjectRasterizerTests.NormalMapTexel_TiltsTheSurface, ObjectsLayerTests.NormalMapInTheArchives_BendsTheTexturedSquare.

Emissive shapes

References: nif.xml gives Emissive Color, Emissive Multiple and slot 2 of the texture set, not what the engine does with them. Community Shaders’s Lighting.hlsl gives the pixel shader. Nothing here was compared with a capture in game.

ReferenceCodeWhyBasis
diffuseColor += emitColor, then diffuseColor times the base color, then the vertex colorsThe emission is a term on the pixel’s color, added once the map’s light is applied (FaceShader.Emitted)The map’s light is no sum of lights: a term added after it reads the sameLighting.hlsl
emitColor takes the glow map on the Glowmap technique aloneSlot 2 weighs the emission on shader type 2 (Glow) onlyVanilla Default shapes, candles and plants, hold a texture in slot 2 and still emit whole: on Tamriel, the Glow type and the Glow_Map flag go together on every shapeLighting.hlsl, vanilla scan
Without Linear Lighting, LinearToSrgb(SrgbToLinear(emit) × SrgbToLinear(glow))A plain product emit × glow of the bytesA power law is multiplicative: both agree but for sRGB’s linear toe, on near-black texelsLighting.hlsl
Own_Emit (flag 1 bit 22) “provides its own emittance color”Not readSet on every placed lighting shape of Tamriel: it tells nothing apartVanilla scan
A Glow shape without a slot 2Emits nothingWhat the engine binds there isn’t known; one placed reference of Tamriel, and lighting it whole risks a bright shapeDesign
A glow map missing from the archivesEmits nothing, loggedAs aboveDesign

Tests: EmissiveLayerTests, NifSceneReaderTests.LightingShader_GivesItsEmission.

Projected materials

References: UESP STAT and MATO give the fields, not what the engine does with them. xEdit gives their layout by form version. Community Shaders’s Lighting.hlsl gives the pixel shader. How a record’s fields reach the shader’s constants comes from third-party plugins that hook the engine, cited below. Nothing here was compared with a capture in game.

The pixel’s weight and how much of the material it shows:

threshold = cos(Max Angle) + (1 - cos(Max Angle)) × (Falloff Bias + Falloff Scale × noise)
weight = dot(normal, up) × vertex alpha - threshold
mix = smoothstep(0, 1, 5 × (0.1 + weight))
QuestionCodeWhyBasis
MATO DATA size28, 32, 48 or 52 bytes tell the fields present; under 28 is droppedUESP lists 48 bytes and “a small number of 32/28”. xEdit adds Is Snow, form 43 in SSEVanilla data: 28, 32, 48 and 52 occur; xEdit
STAT DNAM size8 or 12 bytes, Considered Snow read from the ninthUESP gives 8 bytes, xEdit adds Considered Snow and 3 unused in SSEVanilla data: 11 914 of 8 bytes, 384 of 12
Which MATO the map drawsThose with Single Pass setThe other path builds a second geometry from the record’s DNAM propertiesTooling: XPMF MaterialMatcher.hpp
Which records take oneSTAT onlyThe engine applies it from the static’s data when it clones its modelTooling: XPMF, CommonLibSSE TESObjectSTAT
Field to constant(1 - cos) × Falloff Scale scales the noise, (1 - cos) × Falloff Bias + cos is the threshold, 1 / Noise UV Scale tiles the noise, the color is Single Pass ColorThe shader names only ProjectedUVParams; PapyrusExtender and Seasons of Skyrim write (scale, bias, 1 / noise, cos(angle)), XPMF describes what the engine makes of itTooling: Lighting.hlsl, PapyrusExtenderSSE ApplyMaterialShader, XPMF
DirectionStraight up in the world. Projection Vector isn’t readThe single pass path doesn’t read it (XPMF). Read as a direction, 13 459 of Tamriel’s rocks, at (0, 0, -1), would hold their snow underneath, beside SnowMaterialMountain1P at (0, 0, 1)Tooling: XPMF. Vanilla data, as a check
The record’s modelNot read: four textures under textures\effects\The engine loads them from fixed paths; ShaderTests\ShaderBox.nif, the model of most MATO, isn’t in the archivesTooling: XPMF, strings of SkyrimSE.exe. Vanilla data: the four are in Skyrim - Textures5.bsa
Vertex alphaThe vertex color’s alpha, whatever Vertex_Alpha saysThe shader reads the vertex’s color. Of 2 667 shapes on Tamriel’s single pass models, 566 set the flag and 433 paint an alpha under 250Tooling: Lighting.hlsl. Vanilla data, for how often it matters
A blended shape’s vertex alphaVertex_Alpha only, as its opacity reads itOne value per vertex carries bothDesign
ColorProjectedDiffuse × Single Pass Color, toned as a textureThe shader multiplies them. Toned, SnowMaterialObject1P gives (140, 147, 155), LSnow01 of the ground (134, 142, 151)Tooling: Lighting.hlsl. Vanilla data, for the match
Texture coordinatesWorld east and north over the tile, a plane seen from aboveCommunity Shaders samples three planes by the normal; vanilla computes them from TextureProj, not documented. Seen straight down, a plane never stretchesDesign
TilingNoise Noise UV Scale units per tile, diffuse and normal 5 times that, detail normal 1.25 timesfProjectedUVDiffuseNormalTilingScale 0.2 and fProjectedUVNormalDetailTilingScale 0.8 of a generated SkyrimPrefs.ini; the Creation Kit’s are 0.5 and 1.2Vanilla data, for the INI
NormalNormal and detail normal combined as the shader does, in a frame built on the unbent vertex normal, then blended by mix, at half tiltThe shader blends in the shape’s tangent space, so a slope stays a slope. A noise has no direction a frame’s turn could show. The strength is the object normal maps’ styleTooling: Lighting.hlsl
Mip levelFrom the map’s scaleThe noise tiles finer than a pixel at a low scale, where its mean is what showsDesign
Considered Snow, Is SnowRead, not usedNeither enters the color or the weight of a map’s pixelTooling: Lighting.hlsl

Tests: ProjectedMaterialTests, DirectionalMaterialReaderTests, ModeledObjectReaderTests, DirectionalMaterialsTests, ObjectsLayerTests.ProjectedMaterials_CoverTheStatic.

Grass density and slope

Reference: UESP GRAS, UESP LTEX. The GRAS page gives DATA Density, Min Slope and Max Slope as uint8 without a unit or a range; the LTEX page says only “Possible Grass” for GNAM.

QuestionCodeWhyBasis
DensityA percentage, 0 to 100No vanilla value goes past 100Vanilla data: the 31 GRAS after Update.esm range from 10 to 90. Unverified as a scale: if the engine reads it otherwise, the map’s coverage is off by that factor
Min Slope and Max SlopeDegrees from horizontal, both inclusiveA slope in degrees fits a uint8Vanilla data: Min Slope is 0 on every GRAS, Max Slope 10 to 90, most 33 to 50, which matches grass leaving cliffs. Unverified as a unit: if wrong, grass would show on cliffs or miss gentle slopes
Several GNAMEvery one grows, in any orderThe page doesn’t say whether GNAM repeats or in which orderDesign
The same GRAS in two GNAMCounts onceA second entry adds no new grassDesign

Tests: GrassReaderTests, GrassCoverTests.

Grass water distance

Reference: UESP GRAS. The page gives DATA “Distance from water” as a uint16 and the modes that apply it, without a unit or a meaning for each mode. The numbering of the modes is a deviation.

QuestionCodeWhyBasis
Distance from waterWorld units between the ground and its cell’s water heightThe ground height and the water height are in world unitsVanilla data: kelp 274 units tall needs 390 under water, coral 155, underwater rocks 105. Unverified
Above, BelowThe ground stands over, or under, the water heightThe namesDesign
At Least, At MostThe ground is that far from the water or farther, or that close or closer, both inclusiveThe namesDesign
Either - At Most Above, Either - At Most BelowAny ground on the other side of the water, or ground on that side at most that farThe namesDesign
A cell without water (XCLW absent or a no-water value, no worldspace DNAM)All its ground is above the water, infinitely farNothing to stand underDesign
A mode past 7No water ruleNo mode to applyDesign: no vanilla GRAS has one
Water from placed objects (WATR references)Not countedThe cell’s water height is the only one the background readsDesign: a grass may grow in a placed pond

Tests: GrassCoverTests, GrassTuftsTests.

Reference: UESP NVNM. The page calls the triangle’s third uint16 field “Cover marker?”, “usually 0x0008 or 0x0408”, and names none of its bits. Layout in Plugin file format.

QuestionCodeWhyBasis
Which bit marks a road or a trail0x0040, “Preferred” (NavmeshTriangleFlags.Preferred)xEdit’s name for the bitTooling, and vanilla data: Tamriel’s 52,367 such triangles draw its road network, and the STAT road pieces fall on them
An NVNM with a bad count or vertex indexThe whole navmesh is dropped, with a warningA partial read could draw triangles from shifted bytesDesign: no vanilla NAVM has one
What a vertex’s X, Y and Z areWorld units, Z the height, in the frame of the worldspace or interior cellThe page names the three floats without a unit or frameVanilla data: the road triangles fall on the STAT road pieces placed in world units, and a cut 160 units above the navmesh heights shows the floors of Blackreach and of the vanilla interiors
Where an actor can walkOn every triangle of a NAVM, whatever its flags: the map levels take each one, with its heights, as walkable floor (WorldspaceMapReads.Navmeshes)The navmesh is what the AI walks on; the spec names no flag that marks a triangle as not walkableDesign

On a mod, the bit can cover only part of the roads: Vominheim marks 3,776 triangles. The roads layer also draws the road pieces, see export heuristics.

Tests: NavmeshReaderTests, WorldspacePathsTests, WorldspaceNavmeshesTests.

Reference header flags

Reference: UESP Mod File Format, record flags, and UESP REFR. The format page gives a REFR two “Hidden from local map” bits, 0x40 (“Needs Confirmation”) and 0x200, and also calls 0x200 “MotionBlurCastsShadows”. The REFR page lists only 0x200.

QuestionCodeWhyBasis
Which bit hides a reference from the local map0x200 when the base is an ACTI, STAT or TREE, 0x40 when it is a DOOR, none for other bases (ReferenceFlags.IsHiddenFromLocalMap)xEdit names a REFR’s flags by its base’s type: 0x200 is “Cast Shadows” on a LIGH, “Motion Blur” on an MSTTTooling, and vanilla data
What the maps keep of a REFR’s flagsAll of them, as read (Placement.HeaderFlags)The base’s type is known only after the mergeDesign

On the five vanilla masters and two mods, 619 enabled exterior references carry 0x200: 534 STAT, 80 TREE, 1 ACTI, 3 LIGH and 1 MSTT. Most are cave ceiling rocks and ship beams and decks in underground worldspaces (MossMotherCavernWorld, KatariahWorld), which would hide the floor seen from above. Of the 39 that carry 0x40, 3 are doors; the others are bases where xEdit gives the bit no meaning.

Tests: ReferenceFlagsTests, WorldspaceMapQueryPathsAndPlacementsTests.

Reference footprint

Reference: UESP REFR (DATA: position, then rotation in radians; XSCL: “setScale”) and UESP OBND. The pages don’t say how the rotation applies to the bounds or the model.

QuestionCodeWhyBasis
Direction of the Z rotationClockwise seen from above (PlacementRotation.TurnZ)The pages give no directionVanilla data: the road pieces’ boxes fall on the preferred navmesh triangles of Tamriel
X and Y rotations of a model (--objects)Clockwise seen from the positive end of their axis, like Z; Z turns the point first, then Y, then X (RotationConvention.Default)The pages give no direction nor orderVanilla data: the convention that lays the road pieces on the terrain, see below
X and Y rotations of a box (--roads)Ignored: the box is drawn flat, turned by Z onlyRoad pieces lie almost flat, a small tilt barely moves their footprintDesign
XSCL absentScale 1The page gives no defaultVanilla data: road pieces without XSCL fall on the preferred triangles at scale 1
OBND originThe reference’s position, before scalingThe bounds are in the object’s own spaceVanilla data: same check as the rotation

If the Z direction were wrong, turned road pieces would cross the navmesh roads at an angle instead of following them.

Road pieces follow the slope they are laid on: of the 5,500 on Tamriel, 4,910 have an X or Y rotation. Each vertex of their models was moved into the world under each candidate convention and compared with the LAND height under it, bilinear between the vertices:

ConventionMedian distance to the terrain
Clockwise X and Y, Z first (kept)12.6 units
The six other directions and orders25.6 to 48.1 units
X and Y ignored28.6 units
Rz·Ry·Rx, counterclockwise34.6 units

Tests: PlacementRotationTests, RoadsLayerTests, ReferenceReaderTests, ModeledObjectReaderTests.

Light radius

Reference: UESP REFR gives XRDS as a float, “~1.25. Controls the radii on objects like lights”; UESP LIGH gives DATA Radius as a uint32. The page doesn’t say how XRDS combines with the base’s radius.

QuestionCodeWhyBasis
What a light’s XRDS holdsAn offset added to its LIGH radius (LightsLayer)The “~1.25” reads as a scale, but the vanilla values don’t fit one: negative values are common, and none brings the radius to 0 or below once addedVanilla data: 1,489 of the 1,680 lights placed in worldspaces carry one, from -665 to 6,919 (one outlier at 456,444, see data problems); 298 are negative; radius plus XRDS is never 0 or less. Unverified as semantics: if it scaled the radius, the map’s glows would be far larger than the game’s lights
A radius plus XRDS of 0 or lessNo glowA light with no reach lights nothingDesign: no vanilla light has one

Tests: ReferenceReaderTests, LightsLayerTests.

Armor ground model

Reference: UESP ARMO. The page lists MODL twice: once as a model, near the top, and once as the FormID of an ARMA armature, repeated. MOD2 is the male model and MOD4 the female one.

QuestionCodeWhyBasis
Which MODL an ARMO holdsEvery MODL of an ARMO is an ARMA FormID, never read as a pathRead as a path, the FormID gives 3 bytes of noiseVanilla data: the 137 ARMO bases placed in a worldspace have only 4-byte MODL
The model of an ARMO placed in the worldMOD2, else MOD4 (ModeledObjectReader)A placed armor lies on the ground with its male modelVanilla data: all 137 have a MOD2 found in the archives

If the armature MODL were ever a path, a placed armor would be missing from --objects, and its MOD2 would show instead.

Tests: ModeledObjectReaderTests.

NIF and Havok shapes

Reference: niftools’ nif.xml. Layout in NIF / Havok format.

QuestionCodeWhyBasis
Which column of bhkConvexTransformShape’s matrix holds the translationThe last columnNo source states itUnverified
hkPackedNiTriStripsData vertices “may not be standard half-precision”IEEE 754 half floatsWhat other tooling usesTooling
bhkCompressedMeshShapeData chunk vertex composition orderChunk translation, then the chunk transformMost chunks use an identity transformUnverified
Havok scale and Euler order69.9915 and Rz·Ry·RxTooling conventions, not derived hereTooling
NiAVObject rotation: nif.xml calls Matrix33 column-major but doesn’t say how a point is multipliedThe nine floats read as rows, applied to column vectorsVisual meshes then line up with their collision, see belowVanilla data
BSVertexDesc offset unit, which nif.xml doesn’t state4 bytes, like the vertex sizeEvery UV offset is then 16 bytes, right after the position and its fourth float; the color offsets read gray to white colors on rocks and blue-green ones on waterfall bodiesVanilla data
Editor-only geometry, which nif.xml doesn’t markA node or BSTriShape named EditorMarker is left out with its subtreeThe name is a convention of the Creation Kit and NIF toolingTooling
NiAVObject Flags bits, which nif.xml doesn’t define for BS version 100: only NiBillboardNode’s description names bit 0 “hidden”Bit 0 hides the block and its subtreeEvery vanilla shape that sets it is a helper the game doesn’t show: particle emitter meshes, forge markers, spare weapon partsVanilla data: 4,444 placed shapes on vanilla worldspaces
The order of BSLightingShaderProperty UV Scale and UV Offset, which nif.xml doesn’t stateuv × UV Scale + UV OffsetNifSkope’s Skyrim shaders do the sameTooling
The direction of v in a HalfTexCoordv = 0 is the texture’s first row, v grows down the rowsDirect3D’s convention, which the game renders withDesign
How a skinned vertex is posed, which nif.xml doesn’t stateThe sum of its weighted bones, each bone’s skin transform then its node’s transform to the model’s space; the overall skin transform and the shape’s own transform left outNifSkope poses a BS version 100 shape so. Bones not saved in their bind pose give a different shape than the raw positions: the OBND of TreePineForest04 matches the raw positions, 1,100 units of its trunk under the ground, and the posed trunk stands on itTooling, NifSceneReaderTests.SkinnedShape_TakesItsGeometryFromItsPartitionPosedByItsBones
The order of NiSkinData rotations, which nif.xml calls Matrix33 like NiAVObject’sRead as NiAVObject’sWith it, 766 of the 916 skinned models outside armor and clothes pose as their raw positions; transposed, every vertex of TreePineForest04, TreeAspen01 and TreeAspen02 moves, by up to 1,400 to 2,900 unitsVanilla data
Whose bones a vertex’s Bone Indices point at, which nif.xml doesn’t stateThe skin instance’s bonesIn the vanilla trees, every weighted influence of a partition, through its own bone list, names the same instance bone as the vertex data: 85,733 influencesVanilla data
Which triangles of a SkinPartition to readTriangles Copy, the SSE field, which indexes the shared vertex dataTriangles holds the same values in all 6,585 partitions of the vanilla skinned modelsVanilla data
A skinned vertex whose weights add up to 0Placed by the shape’s own transformBlended by no bone it would fall to the originDesign, NifSceneReaderTests.SkinnedVertexWithoutWeight_KeepsTheShapePlacement
How a normbyte maps to -1 to 1: nif.xml says only “[0, 255] to [-1, 1]”byte × 2 / 255 − 1, linearCommunity Shaders’ Lighting.hlsl vertex shader computes -1 + 2 × value from the bytes read as 0 to 1. Decoded so, vertex normals lie a median 0.3° to 4° from their faces’Tooling and vanilla data: rocks, trees, Windhelm, Riften and imperial dungeons, NifSceneReaderTests.Shape_ReadsNormalsTangentsAndBitangents
How a skinned vertex’s normal is posed, which nif.xml doesn’t stateEach weighted bone’s rotation, blended by the weights, back to unit length; the shape’s own rotation for a vertex without weightAs its position; the scale of a bone doesn’t turn a direction. Posed so, the normals of the vanilla trees lie a median 3.4° from their posed facesVanilla data, NifSceneReaderTests.SkinnedShape_TurnsItsNormalsByItsBones
Which child of a NiSwitchNode to draw: nif.xml says one “active child” is drawn, and the game can change it at run timeThe child at its stored Index; none when Index is past its childrenA map shows the state the model is saved in, without knowing what each child means. Harvestable plants store their unharvested state at index 0Vanilla data: the 80 meshes\plants\ models with a switch node all have two children and index 0, covered by NifSceneReaderTests.SwitchNode_DrawsOnlyItsActiveChild
The opacity a blended shape outputs, which nif.xml describes only as the lighting shader’s Alpha being “the material opacity”Texel alpha × vertex alpha (with Vertex_Alpha) × material Alpha, clamped to 0 to 1An Alpha above 1 then keeps a face opaque longer as its vertex alpha falls, as nif.xml saysUnverified: if wrong, Markarth’s waterfall bodies (Alpha 0.9, vertex alpha about 120) show the rock under them more or less than in game, ObjectRasterizerTests.Draw_BlendedShape_MixesWithWhatLiesUnder
The blend equation, which nif.xml names only by its AlphaFunction factorscolor × source factor + pixel × destination factor, clamped to 0 to 1 after each face; the destination alpha counts as 1The Direct3D blend the game renders with; the map is opaqueDesign, ObjectRasterizerTests.Draw_BlendedShape_MixesWithWhatLiesUnder
An AlphaFunction value past 10, which nif.xml doesn’t defineCounts as ONENo vanilla shape uses one: they use 6/7, 6/0 and 1/2Vanilla data
The order the game draws blended shapes inOver each pixel, from the lowest face up; at one height, in the order of the references, then of the trianglesThe game sorts them back to front from the camera, here straight aboveDesign, ObjectRasterizerTests.Draw_BlendedShapes_MixFromTheLowestUp
How an effect shader computes its color and alpha, which nif.xml doesn’t stateAs NifSkope’s sk_effectshader.frag: texture × vertex colors × base color × scale, or a palette lookup; alpha × falloff × base alpha squaredThe only renderer of these fields at handTooling, ObjectRasterizerTests.Draw_EffectShape_*
Equal falloff start and stop angles, where GLSL’s smoothstep is undefinedA step: the stop opacity below the angle, the start opacity from itNifSkope notes the case without settling itDesign
Whether the map’s light shades an effect shapeNot shadedNifSkope’s effect shader reads no light; the effects glow or show their own colorsTooling, ObjectRasterizerTests.Draw_EffectShape_IsNotShadedByTheMapLight
The texture coordinate a palette lookup readsThe texture’s green as the DDS stores it, the map’s tone left outThe tone would move it along the paletteDesign, ObjectsLayerTests.Texture_EffectLooksItsColorUpInItsPaletteByTheUntonedGreen

If wrong, the footprints HavokShapeReader returns are off:

  • Shapes behind a bhkConvexTransformShape look offset: try the last row.
  • Rotated compressed mesh chunks look displaced: apply the transform before the translation.

The NiAVObject convention was checked on every NIF of the Anniversary Edition archives and two mods. For the 241 models with an identity root, a rotated node or shape below it and a root collision, the bounding box of the visual mesh was compared with the collision’s under both readings. 148 fit better as read, 21 transposed (animated and effect meshes, whose collision doesn’t follow the visual mesh), 72 tie. With the wrong reading, rotated parts of a model would turn the wrong way on the map.

hkPackedNiTriStripsData is almost absent from vanilla interiors, so the half-float reading has little effect either way. Shapes the code doesn’t read are in Not implemented.

Tests: HavokShapeReaderTests, NifReaderTests, NifBlockReaderTests, NifSceneReaderTests, ObjectRasterizerTests.

Face winding

Reference: nif.xml, StencilDrawMode: DRAW_CCW draws “only the triangles whose vertices are ordered CCW with respect to the viewer”, the standard behavior. The NIF pages say nothing of the winding of a shape without an NiStencilProperty, the case of every Skyrim shape with a BSLightingShaderProperty.

QuestionCodeWhyBasis
Which side of a face is its frontThe side its vertices wind counterclockwise from; seen from above, a face whose vertices wind counterclockwise faces up (ObjectHeightSampler)The standard draw mode culls the other sideTooling, and vanilla data: Blackreach, DLC1DarkfallPassageWorld, LabyrinthianWorld03 and BlindCliffCaveWorld cut every cell, SolitudeWorld and MarkarthWorld none, see map levels. The other winding would cut the roofs and leave the caves
A shape flagged Double_SidedCounted by its winding, like the othersThe flag isn’t read, see map levelsDesign: a double-sided vault ceiling counts as a roof, so its cell isn’t cut

Tests: ObjectHeightSamplerTests, VaultMapTests.

Effect shader soft falloff

Reference: nif.xml names Soft_Effect (flag 1 bit 30) and Soft Falloff Depth without describing them; NifSkope leaves the depth unused. Community Shaders’ Effect.hlsl fades the opacity by saturate(scene distance / k - face distance / k), with k a material constant.

QuestionCodeWhyBasis
The fadeOpacity × clamp(gap / Soft Falloff Depth, 0, 1) (EffectShading.Soft)k read as the soft falloff depthArticle; k inferred from the field’s name
The gap, seen from aboveHeight above the highest opaque surface under the pixel, terrain or objectA vertical view’s distance is a heightDesign
WaterNot counted: the gap reaches the ground under itThe shader doesn’t show itUnverified: if wrong, effects over water are fainter in game
A shape without alpha blendingNot fadedOnly blending reads the opacityDesign
A depth of 0 or less, or NaNNo fadeNo vanilla shader has oneDesign

Most vanilla effects fade over 64 units or less; see also map objects for the depths a map leaves out.

Tests: NifSceneReaderTests.EffectShader_GivesItsSoftFalloffDepthWhenSoftEffectIsSet, ObjectRasterizerTests.Draw_SoftEffectShape_FadesNearWhatLiesUnderIt.

Map markers

Reference: UESP REFR lists FULL (lstring), FNAM (uint8 marker flags) and TNAM (uint16 marker type, an enum from 1) without the subrecord that starts them.

QuestionCodeWhyBasis
What marks a reference as a map markerXMRK, an empty subrecord; FNAM, FULL and TNAM count only after itEvery vanilla marker reads XMRK (0 bytes), FNAM (1), FULL (4), TNAM (2), and no other reference carries those threeVanilla data: the 472 markers of the five masters
TNAM 0, not in the enumKept, typeName left outVanilla gives it only to interior markers, on no worldspace mapVanilla data: 35 markers of Skyrim.esm
The enum’s numberingAs listed, 1 is CityRiverwood is 2 (Town), the caves 4 (Cave), the cities their castle or capitolVanilla data

Tests: ReferenceReaderTests, WorldspaceMarkersTests.

Child worldspace map offset

Reference: UESP WRLD gives ONAM as float[4], World Map Scale (-1 hides the map markers) and Cell X, Y, Z offsets, “where map markers will appear in relation to the parent”. It doesn’t say how they combine. See Child worldspaces.

QuestionCodeWhyBasis
How scale and offset combinechild * scale + offset, in game unitsAlftandWorld (scale 0.001, offset 79872, 77824) lands on Tamriel’s Alftand marker (78347, 77408); a KarthspireRedoubtWorld door plus its offset lands within 1,000 units of the Tamriel door it leads to. Dividing would throw Alftand off the mapVanilla data
Negative scaleHidden, like -1The spec names -1 only; Sovngarde is the only negative oneDesign
Scale 0Every marker on the offset pointFollows the formula; DLC01SoulCairn is the only oneDesign
No ONAMThe child isn’t placedxEdit marks ONAM required; every vanilla WRLD has oneTooling
A grandchildEach offset applied on the way upFollows from the field’s meaning; vanilla has no grandchild: every parent is Tamriel or DLC2SolstheimWorld, neither of which has a parentDesign

The formula fits the worldspaces built in place or moved as a block. Blackreach (scale 2.5) isn’t built to scale: its three lifts to Tamriel are in a different order than their Tamriel doors, so no scale and offset map one onto the other. FallowstoneCaveWorldEnd is built in Tamriel’s own coordinates, yet its ONAM (scale 0.0001, offset 22528, -8192) gathers it near Whiterun, far from Fallowstone Cave. The code follows ONAM in both cases. If the game shows Giant’s Grove near Fallowstone Cave on its world map, ONAM isn’t what places a child’s markers there.

Tests: WorldspaceReaderTests, MapMarkerCatalogTests.

A worldspace’s CELL records

Reference: UESP WRLD puts a single CELL directly in the World Children group, then the exterior cell blocks. UESP Mod File Format, Form IDs, gives a FormId’s owner by its master index. Neither says which plugins “make” a worldspace. The map’s plugin chain lists every plugin carrying the worldspace’s WRLD or one of its CELL records.

QuestionCodeWhyBasis
Is the persistent cell one of the worldspace’s cells?Yes, counted like a block cellA mod placing a persistent reference in the worldspace carries only that cellDesign
A plugin carries the same CELL twiceCounted once for that pluginThe chain counts cells, not recordsDesign
New or changed cellNew when the resolved FormId’s owner is the plugin itself, changed otherwiseFollows the FormId’s master indexDesign
A CELL or WRLD whose FormId doesn’t resolveLeft out of the chainThe worldspace datasets already drop and report itDesign

Tests: WorldspaceCellsTests, WorldspaceMapQueryTests.

Texture paths

A texture path in a NIF texture set or in book markup is relative to the Data folder, under textures\. Neither nif.xml nor UESP says how the engine reads a path that doesn’t fit.

QuestionCodeWhyBasis
A path without the textures\ prefixRead under textures\Book markup and some NIFs omit the prefixVanilla data
A path holding a data\textures\ folder, such as skyrimhd\build\pc\data\textures\plants\thistle01.ddsEverything before textures\ is droppedThe front is the author’s build tree; the rest names an archive entryVanilla data: 45 of the 1,408 diffuse paths of placed models, all found once cut

Tests: TextureColorsTests, MenuArtTextureConverterTests.

SWF DefineFont3

Reference: SWF19. Detail in SWF font parsing.

QuestionCodeWhyBasis
DefineFont3 EM square20480 units, not DefineFont2’s 1024Ascent, descent and advances only fit 20480Vanilla data
Glyph Y direction versus TrueType glyfFlipped: SWF points downA glyph’s path extent matches [-ascent, +descent]Vanilla data
FontBoundsTableIgnored; bounds come from the contour pointsAlways [0,0]×[0,0] in real fontsVanilla data

All three were checked on the vanilla interface SWFs.