LuaCombinator 2 deprecated

by OwnlyMe

Running lua commands on your combinator! Check out LuaCombinator3

Content
4 years ago
0.16 - 0.18
8
Circuit network

b Crash report

5 years ago

Factorio 0.17.24
LC2 v0.17.9

The mod LuaCombinator 2 caused a non-recoverable error.
Please report this error to the mod author.

Error while running event LuaCombinator2::on_tick (ID 0)
Value outside of range in property tree at ROOT[1].count
stack traceback:
LuaCombinator2/control.lua:175: in function <LuaCombinator2/control.lua:96>
stack traceback:
[C]: in function 'newindex'
__LuaCombinator2
/control.lua:175: in function <LuaCombinator2/control.lua:96>

5 years ago
(updated 5 years ago)

not quite sure what's the issue here... Do you have more than 50 output signals? Or is a signal value too huge?

5 years ago

Not more than 50 outputs.
I could possibly have done some self-feeding value loop that exploded the values.
Here's the code https://www21.zippyshare.com/v/jHxc3yR9/file.html

5 years ago
(updated 5 years ago)

the maximum signal value is 2147483647, higher values will cause this crash
I added a few safety checks and increased the maximum amount of signals to 100

5 years ago

Yeah I see the error in my code that caused the crash in LuaCombinator. m is accidentally multiplied by M twice (on the row it is set and next row when it is used.
Does your fix mean that I get an error message in the bottom of the LC window when an output is set to 2^31 instead of a crash?

5 years ago
(updated 5 years ago)

yes, and you'll get an alert at the bottom of the screen where the usual alerts appear.
only the specific signal will not be put out but the rest will keep working normally.

New response