[2.0.23] Reading train contents behavior with leaving train

Bugs that are actually features.
basvelden13
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Jun 19, 2021 12:42 pm
Contact:

[2.0.23] Reading train contents behavior with leaving train

Post by basvelden13 »

I have noticed something i don't quite understand. When i read the contents of a train via the circuit network, it sometimes seems to not output an item that was loaded on the train just as it leaves a station. I would expect that an item can only loaded on to a train if the train is stopped and that i can read the added contents via the circuit network (even if only for 1 tick).

Am i missing something or what is going on here?

To be clear: this happens very rarely, but i think that this should never happen.
See following blueprint, i expect it to output all items that leave the station:

0eNrFVktu2zAQvYrBZUEHEiVKooEuvU0/cYAAQSDQEmMTsSmBopwagQ7QW/RsPUmHlCzXiRLITYtuBHKG82bmPXPoJ7Tc1KLUUhk0e0IyK1SFZrdPqJIrxTfWpvhWoBnSXG5Qg5FUufiGZn5zh5FQRhop2gi32aeq3i6FhgP4EGkgVE0rU5QIo7KoIKRQFhlgaIDRHg6TGKBzqUXWOn2CEdRidLFJl2LNd7LQNiSTOqulScGX9zj3UlcmPVZs9qXNu5Pa1GDpC2lPTLO1yB5sK7ZZw23nvt1sS665sXnQR+vWgufpvS62qesAzYyuRWe23ZQiP/W4Te8aXc8CNZANKmn7QZfzm+uryXQyv/k8+XQ5+Tr/cj2/WiBb4qZlAT7eRcQSL2AkCKIkpAGLWciIn8QUo5VzW6dPGSEBpRH1E0rDyLmX1h36LPLiJIwZYZ7nJTTsw7lVt8EvFCV94VxLs94KI7Mp0LaUytH2UtzoIO4FPZU3HFb3iHsUuPoDhRdWvkpYjPRE5KIU+kDzBwgralPW5wE3Q9QEZ1OT/CdqBM/Wg+xM/wI9LfggQ2F/NheZzIV+k57Iu6AdQVEzTEgH84yN33e355OzE3pv1lKt2vFwMhHwCVqqhHks9IPLqkWOZvd8U8EQWGkhuongeHhXCW9nbKdOl9Cl76sWaZeHqxzZUd1K+Xy2n1XMmPzN3aD69Ez1z7wc/+S30F2Uk1/Bz+8/3sFmezuGGYqOp+0zslqbqXtxX38x2TNqBkDj0aB0PGgyGjQeD8pGg7LxoL43FjXyX0MFsR9hb6W+9THBASZ32K2IWxEcgi2EFXwxdbYQ+7AK3Io4G6BII7ZQyPHvFkZwuyqXhkYEXm9G4QlOotBrml/U0zh/
robot256
Smart Inserter
Smart Inserter
Posts: 1063
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.23] Reading train contents behavior with leaving train

Post by robot256 »

If the train's schedule tells it to leave as soon as "Full Cargo" is met, then this behavior does not surprise me. More than one thing can happen in a tick before the circuit network updates.

Inserter loads last item on train --> Train changes state to leaving --> Station sees no train present and clears its circuit output.

Your system will work just fine if you AND "Inactivity 1s" with "Full cargo". That way you know the train will never leave in the same tick that items are inserted to the wagon.
Loewchen
Global Moderator
Global Moderator
Posts: 9733
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.23] Reading train contents behavior with leaving train

Post by Loewchen »

Seems to be the normal circuit delay.
Warpspeed
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Dec 21, 2024 5:31 pm
Contact:

Re: [2.0.23] Reading train contents behavior with leaving train

Post by Warpspeed »

Should it be normal though?
robot256
Smart Inserter
Smart Inserter
Posts: 1063
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.23] Reading train contents behavior with leaving train

Post by robot256 »

You're welcome to make a suggestion thread spelling our exactly what you think should happen. It will be more compelling if you can think of a use case that isn't solved by adding "inactivity 1s" to the schedule. You're the first person I've seen to notice this behavior at all so it's not a common scenario.
Post Reply

Return to “Not a bug”