Getting Started
This guide installs CONTROL, creates a Lua module and assigns it to a player.
Installation
Download the latest release from the GitHub Releases page and extract AoE2Control.exe.
(extraction password: control)
- Start Age of Empires II: Definitive Edition. Keep the game window open and not minimized.
- Run
AoE2Control.exe. The launcher shows Ready to Start. - Click START. When CONTROL runs in the game, the launcher shows Ready.
The launcher shows Ready - Partially outdated or Ready - Requires update when CONTROL runs but some of its functions do not work on this game version. Check for a newer CONTROL release. Headless Mode lists every status.
When CONTROL starts, the CONTROL menu opens in the game.
| Key | Action |
|---|---|
| Shift | Show or hide the CONTROL menu. |
| Delete | Unload CONTROL from the game. |
Change these keys in the KEYBINDS submenu.
First Run
CONTROL creates its config folder when it starts:
%appdata%\CONTROL\AoE2Control\
It holds settings.ini, menu.ini, the modules\ folder for your modules and the diagnostics\ folder. See Config Location.
First Module
Create this file in the config folder:
modules\my_first_module\my_first_module.main.lua
Starter file:
function Load(playerId)
Settings.AddBool("Say Hello", true)
Log("Loaded for player " .. tostring(playerId))
end
function Init()
if Settings.GetBool("Say Hello", true) then
Log("Match ready for player " .. tostring(GetAssignedPlayerId()))
end
end
function Update()
end
function Render()
end
function End(hasWon)
end
function Unload()
end
Every callback is optional. Lifecycle explains when each one runs.
Log() writes to the CONTROL log window. Open it with Show Log in the DEBUG submenu.
Attach The Module
- Press Shift if the CONTROL menu is hidden.
- Open the MODULES submenu.
- Expand the player the module should control, for example Player 1.
- Choose
my_first_modulein the Module dropdown. - Leave Enabled on.
- Start or load a single-player match, or a multiplayer match with cheats enabled.