Home › Engine Lua tables › Automation

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.

Automation

Static table with 24 methods. registered by exe interface App::Automation::Lua::IManager; game scripts call 23 of 24 methods. Registering function 0x29c720.

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

Method Returns In game scripts Example Status
Automation.ClearParameterSet(arg1: string) — 1 calls, 1 files Automation.ClearParameterSet("CurrentTest") inferred
Automation.GenerateSaveName([arg1], …) — 2 calls, 2 files saveGame.Name = Automation.GenerateSaveName() inferred
Automation.GetLastGeneratedSaveName(…) -> 1 value 1 value 2 calls, 2 files loadGame.Name = Automation.GetLastGeneratedSaveName() inferred
Automation.GetLocalParameter(arg1: string, arg2: number, …) — 5 calls, 1 files if (Automation.GetLocalParameter("QuitApp", false) inferred
Automation.GetParameterSet(arg1: string, …) -> 1 value 1 value 1 calls, 1 files local all_parameters = Automation.GetParameterSet("CurrentTest") inferred
Automation.GetRandomNumber(arg1: integer) -> number number 4 calls, 1 files local iValue = Automation.GetRandomNumber(4) inferred
Automation.GetSetParameter(arg1: string, arg2: string, [arg3: number], …) — 68 calls, 6 files handicap = Automation.GetSetParameter("CurrentTest", "Difficulty") inferred
Automation.GetStartupParameter(arg1: string, …) -> number, number number, number 2 calls, 1 files local aTests = Automation.GetStartupParameter("RunTests") inferred
Automation.GetTime() -> number number 13 calls, 1 files if ((Automation.GetTime() inferred
Automation.IsActive() -> boolean boolean 9 calls, 7 files if Automation.IsActive() inferred
Automation.IsAutoStartEnabled() -> boolean boolean 1 calls, 1 files if (Automation.IsAutoStartEnabled() inferred
Automation.IsPaused() -> boolean boolean 2 calls, 2 files if (not Automation.IsPaused() inferred
Automation.Log(arg1: string) — 19 calls, 4 files Automation.Log("Players:") inferred
Automation.LogDateAndTime() — not called — inferred
Automation.LogDivider() — 1 calls, 1 files Automation.LogDivider() inferred
Automation.Pause(arg1: boolean) — 4 calls, 2 files Automation.Pause(true) inferred
Automation.RemoveInputHandler(arg1) — 1 calls, 1 files Automation.RemoveInputHandler( OnInputHandler ) inferred
Automation.SendTestComplete([arg1]) — 18 calls, 3 files Automation.SendTestComplete() inferred
Automation.SetActive(arg1: boolean) — 2 calls, 1 files Automation.SetActive(false) inferred
Automation.SetAutoStartEnabled(arg1: boolean) -> 1 value 1 value 1 calls, 1 files Automation.SetAutoStartEnabled( true ) inferred
Automation.SetInputHandler(arg1) — 1 calls, 1 files Automation.SetInputHandler( OnInputHandler ) inferred
Automation.SetLocalParameter(arg1: string, arg2: boolean) — 3 calls, 1 files Automation.SetLocalParameter("QuitApp", true) inferred
Automation.SetParameterSet(arg1: string, arg2, …) — 1 calls, 1 files Automation.SetParameterSet("CurrentTest", testName) inferred
Automation.SetSetParameter(arg1: string, arg2: string, arg3: number, …) — 5 calls, 3 files Automation.SetSetParameter("CurrentTest", "HasLaunched", 1) inferred