Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 2.21 KB

README.md

File metadata and controls

42 lines (33 loc) · 2.21 KB

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.

Installation

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!

Your first script

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!

Credits