Page 1 of 1

[0.11.3][kovarex] getcircuitcondition function crash

Posted: Mon Nov 24, 2014 7:37 pm
by Kikkers
The getcircuitcondition scripting function seems to crash the game in a specific case I've managed to isolate:

1. A smart inserter is connected to a pole using red wire
2. The inserter circuit condition is set to some value (like belt = 1)
3. The smart inserter is polled each tick using getcircuitcondition(0)
4. The pole is removed (mined) -> crashes the game once getcircuitcondition(0) is called on the same (or possibly following) tick.

Same crash using green wire and getcircuitcondition(1), maybe even logistic condition but I haven't tested that.

It doesn't seem to matter whether the condition is fulfilled or not.


I encountered this in my mod, where i use hidden smart inserters to control other behavior.

Re: [0.11.3] getcircuitcondition function crash

Posted: Mon Nov 24, 2014 9:54 pm
by Kikkers
Just checked and verified that the call to getcircuitcondition doesn't need to happen in the same tick to trigger a crash.
A crash also consistenly occurs when the function is called at any time after the pole has been mined.

Re: [0.11.3][kovarex] getcircuitcondition function crash

Posted: Tue Nov 25, 2014 1:28 pm
by kovarex
Hello, thank you for the report, the problem is fixed for 0.11.4 now.