s_areaTable
global · terrain
- Address
0xc96318· 16384 bytes, up to0xc9a317- 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.
| header | data | area |
|---|---|---|
| +0x04 | chunk table (MCIN) | +0x680 |
| +0x08 | texture names (MTEX) | through 0x6c20e0 |
| +0x0c | model names (MMDX) | +0x698 |
| +0x10 | model name offsets (MMID) | +0x6a0 |
| +0x14 | object names (MWMO) | +0x69c |
| +0x18 | object name offsets (MWID) | +0x6a4 |
| +0x1c | doodad placements (MDDF) | +0x688, count +0x690 |
| +0x20 | object placements (MODF) | +0x68c, count +0x694 |
The derivation is in the doc.