Home › Lua API › WorldBuilderPlayerManager

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

WorldBuilderPlayerManager

25 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
AddPlayer WorldBuilderPlayerManager.AddPlayer() → number gameplay — 0x5f6a90 0x5f75e0
ClearPlayerStartingPosition WorldBuilderPlayerManager:ClearPlayerStartingPosition(ePlayer?: any[HksObject]) (or nothing)
args: ePlayer — Id of a player (the scripts name the argument playerID / owner). (inferred)
gameplay — 0x5f6b50 0x5f76a0
ClearStartingPosition WorldBuilderPlayerManager:ClearStartingPosition() (or nothing) gameplay — 0x5f6bc0 0x5f7710
GetMaxPlayers WorldBuilderPlayerManager.GetMaxPlayers() → number gameplay — 0x5f6c40 0x5f7790
GetPlayerConfig WorldBuilderPlayerManager.GetPlayerConfig(arg1?: any, arg2?: number) → number ⚠ gameplay — 0x5f6c70 0x5f77c0
GetSlotStatus WorldBuilderPlayerManager.GetSlotStatus(arg1?: any, arg2?: number) → number ⚠ gameplay — 0x5f7330 0x5f7e80
GetStartPositionInfo WorldBuilderPlayerManager.GetStartPositionInfo() → table/nil gameplay — 0x5f7400 0x5f7f50
GetStartPositionPlayer WorldBuilderPlayerManager.GetStartPositionPlayer() → number gameplay — 0x5f76a0 0x5f81f0
InitializePlayer WorldBuilderPlayerManager:InitializePlayer(ePlayer?: number) → boolean gameplay — 0x5f7780 0x5f82d0
IsPlayerInitialized WorldBuilderPlayerManager:IsPlayerInitialized(ePlayer?: any[HksObject]) → boolean gameplay — 0x5f7830 0x5f8380
PlayerHasCivic WorldBuilderPlayerManager.PlayerHasCivic(arg1?: any, arg2?: number, arg3: number) → boolean ⚠ gameplay — 0x5f78d0 0x5f8420
PlayerHasTech WorldBuilderPlayerManager.PlayerHasTech(arg1?: any, arg2?: number, arg3: number) → boolean ⚠ gameplay — 0x5f7a30 0x5f8580
SetCivilizationStartingPosition WorldBuilderPlayerManager:SetCivilizationStartingPosition(arg1?: any[HksObject]) (or nothing) gameplay — 0x5f7b90 0x5f86e0
SetLeaderStartingPosition WorldBuilderPlayerManager:SetLeaderStartingPosition(arg1?: any[HksObject]) (or nothing) gameplay — 0x5f7c50 0x5f87a0
SetPlayerEra WorldBuilderPlayerManager:SetPlayerEra(ePlayer?: any[HksObject], eEra: number/string[EraTypes]) (or nothing)
args: eEra — Index of a row of the Eras table (the value of GameInfo.Eras[...].Index).
gameplay — 0x5f7d10 0x5f8860
SetPlayerFaith WorldBuilderPlayerManager:SetPlayerFaith(arg1?: any[HksObject], arg2?: number) (or nothing) gameplay — 0x5f7d90 0x5f88e0
SetPlayerGold WorldBuilderPlayerManager:SetPlayerGold(arg1?: any[HksObject], arg2?: number) (or nothing) gameplay — 0x5f7e40 0x5f8990
SetPlayerHasCivic WorldBuilderPlayerManager:SetPlayerHasCivic(ePlayer?: any[HksObject], eCivic: number/string[CivicTypes], iProgress?: number) (or nothing)
args: eCivic — Index of a row of the Civics table (the value of GameInfo.Civics[...].Index).
gameplay — 0x5f7ef0 0x5f8a40
SetPlayerHasTech WorldBuilderPlayerManager:SetPlayerHasTech(ePlayer?: any[HksObject], eTech: number/string[TechTypes], iProgress?: number) (or nothing)
args: eTech — Index of a row of the Technologies table (the value of GameInfo.Technologies[...].Index).
gameplay — 0x5f7fb0 0x5f8b00
SetPlayerLeader WorldBuilderPlayerManager:SetPlayerLeader(ePlayer?: number, eLeader: number/string[LeaderTypes], eCivilization: number/string[CivilizationTypes], eCivLevel: number/string[CivilizationLevelTypes]) (or nothing)
args: eLeader — Index of a row of the Leaders table (the value of GameInfo.Leaders[...].Index).; eCivilization — Index of a row of the Civilizations table (the value of GameInfo.Civilizations[...].Index).; eCivLevel — Value of the CivilizationLevelTypes enum (a type index).
gameplay — 0x5f8070 0x5f8bc0
SetPlayerSlotStatus WorldBuilderPlayerManager:SetPlayerSlotStatus(arg1?: number, arg2?: number) → boolean gameplay — 0x5f8190 0x5f8ce0
SetPlayerStartingPosition WorldBuilderPlayerManager:SetPlayerStartingPosition(arg1?: any[HksObject]) (or nothing) gameplay — 0x5f8270 0x5f8dc0
SetRandomMajorStartingPosition WorldBuilderPlayerManager:SetRandomMajorStartingPosition() (or nothing) gameplay — 0x5f8330 0x5f8e80
SetRandomMinorStartingPosition WorldBuilderPlayerManager:SetRandomMinorStartingPosition() (or nothing) gameplay — 0x5f83b0 0x5f8f00
UninitializePlayer WorldBuilderPlayerManager:UninitializePlayer(ePlayer?: any[HksObject]) (or nothing) gameplay — 0x5f8430 0x5f8f80