Page 1 of 1

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

Posted: Sun Jan 18, 2015 11:08 pm
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.

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

Posted: Mon Jan 19, 2015 6:56 am
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?

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

Posted: Mon Jan 19, 2015 7:00 am
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.

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

Posted: Mon Jan 19, 2015 8:44 am
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.

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

Posted: Mon Jan 19, 2015 8:54 am
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.