Home › Lua API › FreeCities

Available out of the box. Usable from Lua in the unmodified game.

FreeCities

6 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
GetIndex FreeCities:GetIndex() → number gameplay — 0x712c80 0x7134f0
GetLocation FreeCities:GetLocation() → 1 values ⚠ gameplay — 0x712cd0 0x713540
GetPlot FreeCities:GetPlot() → MapPlot (or nothing) gameplay — 0x712d00 0x713570
GetUrbanDefenses FreeCities:GetUrbanDefenses() → number gameplay — 0x712d60 0x7135d0
GetX FreeCities:GetX() → number gameplay — 0x712db0 0x713620
GetY FreeCities:GetY() → number gameplay — 0x712e00 0x713670