benilla-re systems structs docs

s_areaTable

global · terrain

Address
0xc96318 · 16384 bytes, up to 0xc9a317
Type
void *[4096]
Meaning
Holds the loaded area of each tile, index row·64 + column
Confidence
verified, proof one
Finding
terrain/files#tile-file-header

Finding: Tile file header in terrain: files

0x6c2010 reads the ADT from the buffer. The header's data starts after the version record, at buffer + 16 + the version's size, and holds offsets from that start, each to a record whose data is 8 bytes on: +0x04 the chunk table, +0x08 the texture names, +0x0c and +0x10 the model names and their offsets, +0x14 and +0x18 the object names and offsets, +0x1c the doodad placements and +0x20 the object placements. It counts the placements as size/36 and size/64, files the area in the global table 0xc96318, and clears the pending read.

headerdataarea
+0x04chunk table (MCIN)+0x680
+0x08texture names (MTEX)through 0x6c20e0
+0x0cmodel names (MMDX)+0x698
+0x10model name offsets (MMID)+0x6a0
+0x14object names (MWMO)+0x69c
+0x18object name offsets (MWID)+0x6a4
+0x1cdoodad placements (MDDF)+0x688, count +0x690
+0x20object placements (MODF)+0x68c, count +0x694

The derivation is in the doc.