Getting Started
This guide walks through installing CONTROL, creating a Lua module, and attaching it to a player slot.
Installation
Download the latest packaged build from the GitHub Releases page.
- Start Age of Empires II: Definitive Edition.
- Run the AoE2Control Launcher.
- Press START to attach CONTROL to the game.
Once attached, the overlay appears and the config folder is created.
First Run
CONTROL creates its config folder at:
%appdata%\CONTROL\AoE2Control\
Important contents:
settings.iniimgui.inimodules/
First Module
Create:
modules\my_first_module\my_first_module.main.lua
Starter file:
function Load(playerId)
Settings.AddBool("Enabled", true)
Log("Loading for player " .. tostring(playerId))
end
function Init()
Log("Match ready for player " .. tostring(GetAssignedPlayerId()))
end
function Update()
end
function Render()
end
function End(hasWon)
end
function Unload()
end
All callbacks are optional.
Attach The Module
- Open the CONTROL overlay.
- Expand the player section you want to configure, for example Player 1.
- Choose your module in the Module dropdown.
- Leave Enabled on.
- Start or load a single-player match.