LuaCombinator 3 deprecated

by OwnlyMe

Like LuaCombinator2, but with full event support

Content
4 years ago
0.17 - 0.18
34
Circuit network

b A non-recoverable error

4 years ago
(updated 4 years ago)

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

4 years ago

should be fixed now :)

New response