Home › Lua API › PlayerConfiguration

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

PlayerConfiguration

16 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
GetCivilizationDescription PlayerConfiguration:GetCivilizationDescription() → nil/string gameplay — 0x6ef3e0 0x6efb20
GetCivilizationLevelTypeID PlayerConfiguration:GetCivilizationLevelTypeID() → number (CivilizationLevelTypes)
returns: Value of the CivilizationLevelTypes enum (a type index).
gameplay — 0x6ef440 0x6efb80
GetCivilizationLevelTypeName ★ PlayerConfiguration:GetCivilizationLevelTypeName() → nil/string gameplay — 0x6ef490 0x6efbd0
GetCivilizationShortDescription PlayerConfiguration:GetCivilizationShortDescription() → nil/string gameplay — 0x6ef4f0 0x6efc30
GetCivilizationTypeID PlayerConfiguration:GetCivilizationTypeID() → number (CivilizationTypes)
returns: Index of a row of the Civilizations table (the value of GameInfo.Civilizations[...].Index).
gameplay — 0x6ef550 0x6efc90
GetCivilizationTypeName PlayerConfiguration:GetCivilizationTypeName(bReturnUnresolvedTypes: boolean) → nil/string gameplay — 0x6ef5a0 0x6efce0
GetColor PlayerConfiguration:GetColor() → number (PlayerColorTypes)
returns: Value of the PlayerColorTypes enum (a type index).
gameplay — 0x6ef630 0x6efd70
GetHandicapTypeID PlayerConfiguration:GetHandicapTypeID() → number (HandicapTypes)
returns: Value of the HandicapTypes enum (a type index).
gameplay — 0x6ef680 0x6efdc0
GetLeaderName PlayerConfiguration:GetLeaderName() → nil/string gameplay — 0x6ef6d0 0x6efe10
GetLeaderTypeID PlayerConfiguration:GetLeaderTypeID() → number (LeaderTypes)
returns: Index of a row of the Leaders table (the value of GameInfo.Leaders[...].Index).
gameplay — 0x6ef730 0x6efe70
GetLeaderTypeName PlayerConfiguration:GetLeaderTypeName(bReturnUnresolvedTypes: boolean) → nil/string gameplay — 0x6ef780 0x6efec0
GetNickName PlayerConfiguration:GetNickName() → nil/string gameplay — 0x6ef810 0x6eff50
GetPlayerName PlayerConfiguration:GetPlayerName() → nil/string gameplay — 0x6ef870 0x6effb0
GetSlotName PlayerConfiguration:GetSlotName() → nil/string gameplay — 0x6ef8d0 0x6f0010
GetSlotStatus PlayerConfiguration:GetSlotStatus() → number (SlotStatus) gameplay — 0x6ef930 0x6f0070
GetStartingPosition PlayerConfiguration:GetStartingPosition() → table gameplay — 0x6ef980 0x6f00c0

Notes (★)

GetCivilizationLevelTypeName

Returns the civilization level type name of a player slot, or nil.