I am trying to run example code, and getting an error on clicking 'ok'
Error while running event LuaCombinator3::on_gui_click (ID 1)
LuaCombinator3/control.lua:358: attempt to index local 'event' (a nil value)
stack traceback:
LuaCombinator3/control.lua:358: in function 'combinator_process'
LuaCombinator3/control.lua:1755: in function 'load_code983'
LuaCombinator3/control.lua:1598: in function <LuaCombinator3/control.lua:1593>
Code:
var["time"] = (var["time"] or 0 ) + 1
output["signal-A"] =var["time"]
delay=60
There is no error without last line ("delay=60"), but looks like code executes once every click on "ok" button (output signal value increments).
Edit: oh, ok, looks like executing code once is right, but error still isn't