Moon Logic deprecated

by mk-fg

Adds Lua-programmable circuit network combinator. Based on Sandboxed LuaCombinator and LuaCombinator2 mods. Probably won't work in multiplayer games.

Content
2 years ago
1.0 - 1.1
4.97K
Circuit network

g [lua-qiz] Wire change detection

3 years ago

is there an easy way to detect a change on the input wires?
maybe something i could read out instead of iterating through the table each time?

3 years ago
(updated 3 years ago)

No, don't think there is.

If the goal is to avoid running combinator code checking for changes on every game tick, I'd suggest using irq stuff there somehow.
It's not made to detect any change in any signal either, but you can probably aggregate these via arithmetic/decider combinators to get some kind of wakeup signal easily.

Otherwise a couple trivial loops to compare values don't sound too complicated, especially if you plan to process all the signals in there somehow, as I imagine it'd be insignificant compared to the rest of the code there.

3 years ago

ok ty for the response

New response