Page 1 of 1

[kovarex] [0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 8:31 pm
by Aidan647
What did you do? => you can see in video (hard to explain)
What happened? => Train wont go circle on autopilot
What did you expect to happen instead? => Ride a circle

log file => Not needed because not was printed in a log file


Video => https://youtu.be/HcL9uE5zpsQ

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 8:34 pm
by tehfreek
What does the actual track look like, including signals?

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 8:41 pm
by Aidan647
No, just two "circles"

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 8:48 pm
by CDarklock
Wow, that is hard to explain. However, I think this is exactly the way it's supposed to work, because the entire track is one block. As soon as you are traveling across the intersection once, that block is occupied, and you're not allowed to cross over it again because you're in that block. Signaling the track is the solution to this problem.

I am terrible at trains, so if I am wrong, someone who knows what they're talking about please correct me.

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 8:52 pm
by Aidan647
I think if train can go it would go
and i was just testing random things

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 8:57 pm
by CDarklock
Aidan647 wrote: Wed Feb 27, 2019 8:52 pm I think if train can go it would go
and i was just testing random things
But the train doesn't know it can go, because of how rail blocks work. This is why there are signals: to divide the track into multiple blocks. I am pretty sure that if you signal the track, it will work fine.

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 9:03 pm
by Aidan647
with signals it works but it cant still go to the same section

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Wed Feb 27, 2019 11:27 pm
by Syhn
A screenshot of the rails, or even better, the save where you can reproduce this would be great.

Re: [0.17.1][0.17.2] Train wont go circle on autopilot

Posted: Thu Feb 28, 2019 10:01 am
by Aidan647
Map

Re: [kovarex] [0.17.2] Train wont go circle on autopilot

Posted: Thu Feb 28, 2019 4:41 pm
by kovarex
The change based on this bugreport is:
- Changed train pathfinding in a way, that it can find path that ends in the same segment where it started.
This worked only for the trivial case of all path of one segment before.
I'm not 100% sure change that this change won't break something, so we shall see if we need to revert back on friday or not, but tests passed and few big train saves didn't explode.

So fixed for 0.17.3