Page 1 of 1

[0.17.69] Train stop connected circuit delay

Posted: Sun Oct 13, 2019 4:24 pm
by RadioDoc
Version 0.17.69, no mods. I have a train stop set up with a circuit connected to two inserters. I'm trying to limit how many items this train is carrying, so the enable condition on both arms is set to [item]<200. The issue is that when the train shows up, both arms cycle once before being disabled by the Read Train Contents. So now my train has close to 2k items in it when it should only have 400 total. Am I doing something wrong or is there a legit bug in how the behavior is working here?

Re: [0.17.69] Train stop connected circuit delay

Posted: Sun Oct 13, 2019 4:34 pm
by Loewchen

Re: [0.17.69] Train stop connected circuit delay

Posted: Sun Oct 13, 2019 4:37 pm
by MasterBuilder
There's essentially, a one tick delay between the train arriving and the contents being read by other things on the network. (It's more a read/write order issue, but other threads have more.)

Here's another 'Not a Bug' thread about it: viewtopic.php?f=23&t=62249
It describes a train leaving too soon, but he reason is the same. The train contents are not available till the second tick.