Math Combinator


A new combinator for math instructions like maximum, minimum, random, median and set theory like intersection and difference.

Utilities
2 years ago
0.14 - 1.1
1.46K

g [Fix 1.1.4] Non-recoverable error

Hi, my game has crashed a couple times with this message related to your mod: https://i.imgur.com/a6gbnEb.png

The mod Math combinator (1.1.0) caused a non-recoverable error. Please report this error to the mod author.

Error while running event MathCoProcessor::on_tick (ID 0)
Index out of bounds: 21
stack traceback:
[C]: in function 'newindex'
__MathCoProcessor
/control.lua:282: in function
<MathCoProcessor/control.lua:261>

2 years ago

The index in the return value is assigned incorrectly in
function intersection(circuits)

just add this in the end of the function, before the return statement:
for i, v in ipairs(r) do
v.index = i
end

That at least fixed it for me

2 years ago

played a hundred of hours without that issue.
but maybe a problem. I already had inserted into the "difference" function :)

update in 1.1.4.

New response