LuaCombinator 3 deprecated

by OwnlyMe

Like LuaCombinator2, but with full event support

Content
4 years ago
0.17 - 0.18
34
Circuit network

b Delay is not working

4 years ago
(updated 4 years ago)

Even with the sample code from LuaCombinator 2:

var["time"] = (var["time"] or 0 ) + 1
output["signal-A"] =var["time"]
delay=60

Edit: It does update on "ok" but never again.

4 years ago
(updated 4 years ago)

lua combinator 2 runs every tick, with this one you need to assign functions to event variables like in the screenshot of this mod

4 years ago

OK thats not immediately obvious since "delay" is actually at the very top of this mod as well...

4 years ago

note delay can be set in every event, but only affects the on_tick event

4 years ago
(updated 4 years ago)

How does delay actually work?

Taking the code of Ozbekov and changing it to count up once a second but delay doesnt actually.

var["time"] =0
on_nth_tick[60] = function (event)
   var["time"] = (var["time"] or 0 ) + 1
   output["signal-A"] =var["time"]
   delay=600
end

PS: ~ sorry for the wierd formatting but this was copied directly from the game. How does one copy without the formatting? ~ There is a checkbox for disabling formatting.

New response