[0.11.3][kovarex] getcircuitcondition function crash

This subforum contains all the issues which we already resolved.
Kikkers
Fast Inserter
Fast Inserter
Posts: 109
Joined: Sun Jun 22, 2014 8:45 pm
Contact:

[0.11.3][kovarex] getcircuitcondition function crash

Post 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.
Kikkers
Fast Inserter
Fast Inserter
Posts: 109
Joined: Sun Jun 22, 2014 8:45 pm
Contact:

Re: [0.11.3] getcircuitcondition function crash

Post 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.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.3][kovarex] getcircuitcondition function crash

Post by kovarex »

Hello, thank you for the report, the problem is fixed for 0.11.4 now.
Post Reply

Return to “Resolved Problems and Bugs”