benilla-re systems structs docs

s_tileSize

global · terrain

Address
0x80654c · 4 bytes, up to 0x80654f
Type
float
Meaning
Holds 533.33331 (0x44055555), a tile's side in yards
Confidence
verified, proof one
Finding
terrain/files#wdl

Finding: WDL in terrain: files

CMap::LoadWdl (0x6944a0) reads <dir>\<name>.wdl when it exists: a header, the version, a header and the 64×64 table of file offsets into 0xc9a350. For each nonzero offset it seeks there, skips a header, makes a CMapAreaLow kept in 0xc92078, and reads 545 signed 16-bit heights, stored as floats at +0x3c: 17×17 then 16×16, as the low-detail mesh reads them (lod). The tile's box runs from (X − 533.33331, Y − 533.33331, the lowest height) to (X, Y, the highest), with X = 17066.666 − 16·row·33.333332 and Y = 17066.666 − 16·column·33.333332, each one rounding; the centre is half the sum and the radius the distance to the box's top corner.

The derivation is in the doc.