Add luacontroller, a microcontroller that you can code in lua.
It still misses some functionality such as a persistent memory and a
timer, but that is subject to change. The code runs in a sandbox.
Speaking long term this will hopefully replace the old controller.
Implement a memory for the controller (accesible via mem.) and cleanup code
Based on PilzAdam's code.
Implement interrupt(time, iid): The whole code is called again after a
certain amount of time.
Whenever it is called, an event is set.
Possible events are: program, interrupt, on and off
It also contains additional information (on/off -> event.in; interrupt ->
event.iid)
iid must be an integer or string value, otherwise the interrupt is not active
Bugfixes and improved stability of the luacontroller
Texture the LuaController formspec
Remove unused variable
Add support in luacontroller for a not yet released mod called 'digilines'
Fix Bug: Wrong usage of action_on/action_off instead of action_change
Lots of bugfixes concerning the luacontroller
- Bug when using NOT-Gates
- Moved error label a little downwards
- On digiline event, msg and channel are now in event.*, not in
event.iid.*
Bugfix for the luacontroller that occured when two events occur at the
same time (output connected to input).
The behaviour of the controller can now be described this way:
The luacontroller sets port A, then B, then C, then D; if it is
interrupted by another event during that time it stops and let the
second event do the job.
Add tostring, tonumber, string to luacontroller, prohibit 'function'
LuaController: Queue setting the ports (wait for pending operations)
Merge branch 'master' into luacontroller
Fix odd behaviour when using interrupts in the luacontroller
Fix a dumb bug that conflicted with different things in the luacontroller
Merge branch 'luacontroller'