[0.11.3][kovarex] getcircuitcondition function crash
Posted: Mon Nov 24, 2014 7:37 pm
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.
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.