Sharp Empire SDK & Docs
Complete manual for Sharp Empire features, managed SCAR/Lua scripting, ImGui & WebUI drawing, AI MCP automation, and the Age of Empires IV SCAR API.
Sharp Empire is an internal tactical suite and scripting platform for Age of Empires IV. It pairs a DirectX 12 in-game ImGui overlay with a synchronized External WebUI, a managed SCAR/Lua runtime with dual-engine drawing (Empire & EmpireDraw), and a built-in Model Context Protocol (MCP) server so AI assistants can build, load, and debug scripts directly inside your live match.
Browse all 2,864 SCAR functions and 55 enums (895 constants) extracted directly from Age of Empires IV in the interactive Game SCAR SDK Browser.
Find what you need
| Goal | Guide | Reference |
|---|---|---|
| Learn every tab and feature in Sharp Empire | Features Overview | Option Keys (set_feature) |
| Remove Fog of War, draw Vision Contours, unlock Camera Zoom & Atmosphere | World & Camera | World & Camera Keys |
| Configure Entity Cards, 2D Radar, Attack Ranges, Observer HUD & 3D Map | Radar & ESP | Radar, Cards, Ranges & Vision |
| Automate matches with Auto-Play Loop, Relic AI Director, Auto-Win & Kick Guard | AI Bot & Automation | AI & Automation Keys |
| Use Live Match controls (Civ Changer, Resources, Spawner, Stealth Tech, Unlock All) | Live Match Controls | Live Match Keys |
| Connect Cursor, Claude, Windsurf, or Codex to Sharp Empire via MCP | Build Scripts with AI & MCP | MCP Server Reference |
Write a managed .scar script with clean Pause/Resume/Reload/Unload | Developing SCAR Scripts | Empire Runtime API |
| Draw 2D HUD panels, 3D world circles, minimap markers, and WebUI widgets | IPC & Dual-Engine Drawing | Drawing API (Empire.Draw) |
| Look up Age of Empires IV SCAR functions, parameters, and enums | SCAR Essentials Cheat-Sheet | Game SCAR SDK Browser |
| Share or install community & premium scripts on Script Hangar | Script Store Guide | Store, Configs & WebUI |
Start here
New to scripting or want an AI assistant to write scripts for you? Follow Build scripts with AI & MCP — step by step to connect Cursor, Claude Code, Windsurf, VS Code, or Codex to http://127.0.0.1:38475/mcp in under two minutes.
- Follow the Quickstart to open the menu (
Insert), launch the External WebUI, and run your first script. - Explore How Sharp Empire Works for a full walkthrough of every tab.
- Understand SCAR vs GLUA engines and the managed script lifecycle.
- Copy and adapt patterns from Working Examples.
- Search all 2,864 extracted game functions in the Game SCAR SDK Browser.
- Check Updates for customer-facing additions and API changes.