benilla-re systems structs docs

s_fieldCountIndexTable

global · objectlayer

Address
0x465b2c · 129 bytes, up to 0x465bac
Type
uint8_t[129]
Meaning
Maps a type mask minus 1 to its case in 0x465b08
Confidence
verified, proof one
Finding
objectlayer/update#values-block

Finding: Values block in objectlayer: update

A values block is a u8 count n, n u32 mask words, then one u32 for each set mask bit, in increasing field index. Bit i is word i >> 5, bit i & 31. Only indices below the object's field count are visited: 6 for an object, 48 item, 122 container, 188 unit, 1282 for the active player and 486 for another player, 26 game object, 16 dynamic object, 38 corpse. Words past n count as zero up to 41; a bit set at or above the field count is never read, and its value stays in the packet, out of step with the reader.

The derivation is in the doc.