Home › Engine Lua tables › MapConfiguration

Engine executable. Settings and tools of the game program (CivilizationVI.exe), usable without a mod. Mostly undocumented debug and configuration functionality; descriptions come from analysis of the executable and have not all been tried in the running game.

MapConfiguration

Static table with 18 methods. registered by exe interface GameCore::App::Configuration::Lua::IMap; game scripts call 15 of 18 methods. Registering function 0x10d6a0.

Methods are called with a dot (MapConfiguration.Method(...)).

Method Returns In game scripts Example Status
MapConfiguration.GetImportFilename(…) -> 1 value 1 value not called — inferred
MapConfiguration.GetMapSize() -> number number 2 calls, 2 files local mapSize = MapConfiguration.GetMapSize() inferred
MapConfiguration.GetMapWrap() -> boolean boolean not called — inferred
MapConfiguration.GetMaxMajorPlayers() -> number number 11 calls, 6 files elseif(MapConfiguration.GetMaxMajorPlayers() inferred
MapConfiguration.GetMaxMinorPlayers() -> number number 2 calls, 1 files elseif(MapConfiguration.GetMaxMinorPlayers() inferred
MapConfiguration.GetMinMajorPlayers() -> number number 6 calls, 4 files if(MapConfiguration.GetMinMajorPlayers() inferred
MapConfiguration.GetMinMinorPlayers() -> number number 2 calls, 1 files elseif(MapConfiguration.GetMinMinorPlayers() inferred
MapConfiguration.GetScript(…) -> 1 value 1 value 2 calls, 2 files if (MapConfiguration.GetScript() inferred
MapConfiguration.GetValue(arg1: number\|string, …) -> 1 value 1 value 192 calls, 28 files local startConfig = MapConfiguration.GetValue("start") inferred
MapConfiguration.SetImportFilename(arg1: string) — 1 calls, 1 files MapConfiguration.SetImportFilename(m_thisLoadFile.Path) inferred
MapConfiguration.SetMapSize(arg1, …) — 2 calls, 2 files MapConfiguration.SetMapSize(mapSize) inferred
MapConfiguration.SetMapWrap([arg1: boolean]) — not called — inferred
MapConfiguration.SetMaxMajorPlayers(arg1: number) — 4 calls, 4 files MapConfiguration.SetMaxMajorPlayers(2) inferred
MapConfiguration.SetMaxMinorPlayers(arg1) — 1 calls, 1 files MapConfiguration.SetMaxMinorPlayers(maxCityStates) inferred
MapConfiguration.SetMinMajorPlayers(arg1) — 1 calls, 1 files MapConfiguration.SetMinMajorPlayers(minPlayers) inferred
MapConfiguration.SetMinMinorPlayers(arg1) — 1 calls, 1 files MapConfiguration.SetMinMinorPlayers(minCityStates) inferred
MapConfiguration.SetScript(arg1: string) — 5 calls, 4 files MapConfiguration.SetScript(mapScript) inferred
MapConfiguration.SetValue(arg1: number\|string, arg2: boolean) — 4 calls, 3 files MapConfiguration.SetValue(id, value) inferred