Tes2Mod: Land creation notes

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search
To meet our site's higher standard of quality, this article or section may require cleanup. It currently falls under the jurisdiction of the Daggerfall Redesign Project, but anyone is welcome to improve upon the quality of this page.
To leave a message about the cleanup for this article, please add it to this article's talk page.

Steps to create a map 'block' or pixel[edit]

The entire DF map is composed of 1000x500 land pixels, each of which is further divided into 5x5 subpixels as per the WOODS.WLD data. Each pixel can contain only one town or dungeon and has a given terrain type, texture, and roughness.

All Pixels[edit]

  1. Generate land pixel from WOODS.WLD.
  2. Smooth edges with adjacent pixels.
  3. Add flats to landscape (trees, bushes, rocks, etc.).
  4. Check for a location within the pixel. Currently, the only known way to do this is to check all the locations within the current region. It may be indicated by the first two bytes in a pixel record in WOODS.WLD, but this is not yet confirmed.
    1. Load just the maptable for the region, if not loaded.
    2. Check all locations or a pixel-coordinate match.
    3. Stop search on first match.

Location Only Pixels[edit]

  1. Load entire location from MAPS.BSA.
  2. Smooth appropriate land for location. How to get width/height for location or just smooth entire pixel? Smoothing should not be absolute, there should still be some random 'ripple'. If the entire pixel is to be smoothed, this could be done in All Pixels Step 1.
  3. Parse through the object list in the map record (post records).
    1. Load appropriate BLOCKS.BSA record.
    2. Parse BLOCKS.BSA record, create block D3D frame.
      1. Load ARCH3D.BSA object.
      2. Add object to frame at required position.
    3. Add block frame to land pixel frame at required position.