Exec is an application which basically executes lua scripts but can be expanded duo the plugin system.
It supports 32 and 64 bit operation systems (Windows 7 or later) and has LuaJIT as interpreter for lua.
The installation is quite simple. Download the latest release from the release page and extract it.
Download the necessary dependencies and move the lua51.dll
into exec/x86/x64
(depends which executable you want to use). Run the executable once to generate the plugin and script directories or create manually two folders called plugins
and scripts
. That's all!
Writing scripts in lua is very easy. Checkout the references first if you're not familiar with lua!
References:
In order that the script file can be successfully executed you need to declare the function onScriptTick
.
function onScriptTick()
-- your code here
end
If you have custom data and/or resources which needs to be initialized once and before the actual script then you should declare also the function onScriptInitialize
.
function onScriptInitialize()
-- your code here
end
function onScriptTick()
-- your code here
end
Keep in mind that both function have no parameters or return value!
- The whole team from Lua
- Mike Pall for his LuaJIT interpreter
- Niels Lohmann for his beautiful JSON header for modern C++
- frk for his runtime string encryption using XOR
- Chris Foster for his minimal, type safe printf replacement library for C++
- Craig Mason-Jones for his JSON encoding / decoding module for Lua