[0.11.12]CPU-managed trains bunch up behind manual train

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
UntouchedWagons
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Thu Jan 01, 2015 6:16 pm
Contact:

[0.11.12]CPU-managed trains bunch up behind manual train

Post by UntouchedWagons »

http://i.imgur.com/HPH1s3L.jpg

In this picture, two trains are shown (there are more but I didn't make the screenshot params large enough). The one on the right is my copper ore train but it is stopped since all my storage chests are full of copper plates. Even though there is an available path around the train, the train on the left has stopped behind the copper ore train and subsequently blocks other trains from using the junction.

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [0.11.12]CPU-managed trains bunch up behind manual train

Post by MF- »

Good catch.

Sounds like a bug in the new "A rail is penalized by the amount of time the train will wait in the station".
Because the train is in the manual mode, the "amount of time the train will wait" is probably zero,
so the rail segment is actually not penalized at all?

But even if automatic trains are "blind" to the train in manual mode,
they shouldn't be blind to each other and try to route around.

Is the alternative route noticeably longer?
Can you provide a picture of the exact layout?

sillyfly
Smart Inserter
Smart Inserter
Posts: 1099
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: [0.11.12]CPU-managed trains bunch up behind manual train

Post by sillyfly »

He has linked a picture of the layout. The alternative is very slightly longer.
I think the pathfinding should penalize stations regardless of their vacancy - it is probably a bad idea for a train to enter a segment with a station it is not supposed to stop in, even if it does technically shorten the route.

kovarex
Factorio Staff
Factorio Staff
Posts: 8079
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.12]CPU-managed trains bunch up behind manual train

Post by kovarex »

The penalisation of the block itself should be enough. The problem is, that in the moment the train was there, there might be other train on the other track as well.

So yes, there might be another (quite high) penalisation for stopped train in manual mode.

kovarex
Factorio Staff
Factorio Staff
Posts: 8079
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.12]CPU-managed trains bunch up behind manual train

Post by kovarex »

Added penalty of 200 tiles to the block with the stopped train in manual mode.

So it is fixed for 0.11.13 I guess.

Post Reply

Return to “Resolved Problems and Bugs”