benilla-re systems structs docs

s_tileFirstIndices

global · minimap

Address
0xceaa74 · 8 bytes, up to 0xceaa7b
Type
int32_t[2]
Meaning
Holds the row and column of the first tile of the cached outdoor block
Confidence
verified, proof one
Finding
minimap/coordinates#screen-scale

Finding: Screen scale in minimap: coordinates

WorldToScreenScale(map, player, offset, scale, records) prepares the outdoor tile block and the scale that places it. It stores the player position and the map, runs the blip pass, and finds the tiles of the player moved half a tile each way; an axis where both land in one tile takes the next tile (the previous at the grid edge), so the block is 2 by 2. It reloads the tiles when mask 0x1 of the dirty word is set or a cached block index differs, and returns 1. offset[0] is the first tile's world y less the player's, over 1066.667; offset[1] the world x less the player's, over 1066.667; scale is half the outdoor chunk count times 33.3333, over 1066.667.

The derivation is in the doc.