Code: Select all
local estimate = 0 / 0
log("estimate: ".. estimate)
local out = {}
table.insert(out, { signal = red_network.signals[1].signal, count = estimate, index = #out + 1 })
struct.internal.get_control_behavior().parameters = out
Trying to set a circuit signal to inf results in, at least, a useful ingame error. However when one accidentally ends up with 0 / 0, the resulting nan crashes the game to desktop.