benilla-re systems structs docs

s_nextObjectUniqueId

global · terrain

Address
0xc9a320 · 4 bytes, up to 0xc9a323
Type
int32_t
Meaning
Holds the unique id the next one-object map's placement takes, counting down
Confidence
verified, proof one
Finding
terrain/files#wdt

Finding: WDT in terrain: files

CMap::LoadWdt (0x694760) reads the WDT in fixed pieces: an 8-byte header, the 4-byte version into 0xc96314, a header, the 32-byte map header into 0xc9e35c, a header, and the 32,768-byte tile table into 0xc89f50, 64×64 entries of two dwords, index row·64 + column. Bit 0 of an entry's first dword means the tile has an ADT. When the map header's first dword has bit 0 set, the map is one object: the reader takes a header, the object's name of the size that header gives, a header and one 64-byte placement, and places it with the unique id taken from a counter that counts down.

The derivation is in the doc.