Use the new AoE4 TypeScript template instead
Very experimental project to allow writing TypeScript for Age of Empires 4 modding using TypeScriptToLua.
The type definitions are partially autogenerated from the scardocs contained in the AOE4 directory. The rest are either automatically obtained from this older template or added by hand.
It is likely you will need to change some of the definitions because they are not very accurate. Almost all functions also only have any
for return type since the scardocs don't tell the return type.
- Change the
outPath
indeploy.js
to your own project directory
npm run build
: Converts the scripts inscripts/
to a single Lua filenpm run dev
: Automatically converts the scripts inscripts/
to a single Lua file whenever any scripts changenpm run deploy <scar directory>
: Copies the Lua file to the project directory and does some necessary post-processing, scar directory is eg.C:\Users\username\Documents\projectname\assets\scar