Home › Lua API › MapStartPositioner

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

MapStartPositioner

13 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
DivideMapIntoMajorRegions MapStartPositioner.DivideMapIntoMajorRegions(iNumMajorCivs: integer, uiMinMajorCivFertility: integer, uiMinMinorCivFertility: integer, bStartLargestLandmassOnly?: boolean) (or nothing) gameplay — 0x20690 0x20b80
DivideMapIntoMinorRegions MapStartPositioner.DivideMapIntoMinorRegions(iNumMinorCivs: integer) (or nothing) gameplay — 0x20740 0x20c30
GetMajorCivStartInfo MapStartPositioner.GetMajorCivStartInfo(arg1?: number) → table{ContinentType: number, LandmassID: number, Fertility: number, TotalPlots: number, WestEdge: number, EastEdge: number, …} (or nothing) gameplay — 0x20780 0x20c70
GetMajorCivStartPlots MapStartPositioner.GetMajorCivStartPlots(arg1?: number) → number[] (or nothing) gameplay — 0x20b30 0x21020
GetMinorCivStartInfo MapStartPositioner.GetMinorCivStartInfo(arg1?: number) → table{ContinentType: number, LandmassID: number, Fertility: number, TotalPlots: number, WestEdge: number, EastEdge: number, …} (or nothing) gameplay — 0x20d00 0x211f0
GetMinorCivStartPlots MapStartPositioner.GetMinorCivStartPlots(arg1?: number) → number[] (or nothing) gameplay — 0x210b0 0x215a0
GetNumMajorCivStarts MapStartPositioner.GetNumMajorCivStarts() → number gameplay — 0x21280 0x21770
GetNumMinorCivStarts MapStartPositioner.GetNumMinorCivStarts() → number gameplay — 0x212f0 0x217e0
GetOceanStartTile MapStartPositioner.GetOceanStartTile(iIndex: integer) → number
returns: Plot index: the scripts pass the result to Map.GetPlotByIndex. (inferred)
gameplay — 0x21360 0x21850
GetPlotFertility MapStartPositioner.GetPlotFertility(arg1?: number, iMajorIndex: integer, arg3?: boolean) → number
args: arg1 — Plot index (plot:GetIndex()).; iMajorIndex — A number.
gameplay — 0x213c0 0x218b0
GetTotalOceanStartCandidates MapStartPositioner.GetTotalOceanStartCandidates(bWaterMap?: boolean) → number gameplay — 0x214c0 0x219b0
MarkMajorRegionUsed MapStartPositioner.MarkMajorRegionUsed(iIndex: integer) (or nothing) gameplay — 0x21550 0x21a40
PlaceOceanStartCivs MapStartPositioner.PlaceOceanStartCivs(bWaterMap?: any, iNumOceanCivs: integer, aLandStartIndices?: any[HksObject]) ⚠ gameplay — 0x21590 0x21a80