[2.0.14] Delay of reading contents from Train

Things that has been reported already before.
scherzeking
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sat May 07, 2016 10:00 am
Contact:

[2.0.14] Delay of reading contents from Train

Post by scherzeking »

I have set up a train station that reads the contents of the train. It's connected to an inserter to only put something in when it's below a certain value:
grafik.png
grafik.png (296.25 KiB) Viewed 297 times
However, I see a small delay when the train arrives. The inserter will always insert the first stack, even though the train already has enough content. This means that the train will slowly fill up if it never unloads the content.

As a workaround, I now also read the train ID in the combinator before sending it to an inserter. But this shouldn't be necessary.
grafik.png
grafik.png (136.55 KiB) Viewed 297 times
This happens always. I think no matter what content. I'm on the experimental branch.
mmmPI
Smart Inserter
Smart Inserter
Posts: 4072
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: [2.0.14] Delay of reading contents from Train

Post by mmmPI »

scherzeking wrote: Sat Nov 02, 2024 7:58 am However, I see a small delay when the train arrives. The inserter will always insert the first stack, even though the train already has enough content. This means that the train will slowly fill up if it never unloads the content.

As a workaround, I now also read the train ID in the combinator before sending it to an inserter. But this shouldn't be necessary.
There is a 1 tick delay needed for circuits network to update value. When the train arrive at the station, the next tick it emit signals, and the tick after those signals are processed by say the inserter, or a combinator.

What you did is necessary, you need to "allow" the inserter with a 1 tick delay, because if you "restrict" with 1 tick delay, it's too late, the inserter already has grabbed something, the tick before it receives signals from the train arrived telling it not to.
Post Reply

Return to “Duplicates”