Page 1 of 1

[boskid][0.18.0] train pathfinding error with stacker stations

Posted: Tue Jan 21, 2020 7:34 pm
by Blacky007
the new pathfinding system is a bit broken.
I have 5 stacker stations that gives a signal to the trains - after reaching the stacker station they went out do 2 rounds on track and the go back through stacker on stack with no station???
pathfinding error_018.PNG
pathfinding error_018.PNG (175.5 KiB) Viewed 5038 times
this never happend in 0.17.79 - its the first time they do this shit

this is how the stacker is build - after that only chainsignals to the final station
pathfinding error_018-.PNG
pathfinding error_018-.PNG (3.03 MiB) Viewed 5038 times

Re: [0.18.0] train pathfinding error with stacker stations

Posted: Tue Jan 21, 2020 7:37 pm
by Loewchen
Post the save please.

Re: [0.18.0] train pathfinding error with stacker stations

Posted: Tue Jan 21, 2020 7:41 pm
by boskid
Well, looking at your image, this is behavior i was worried a little after all my pathfinder penalty system fixes :)

Train quits and goes around only to avoid going through 1 train stop. Path going straight through train stop has higher cost and so train properly chooses path with lower cost.
FactorioBot wrote:
Tue Jan 21, 2020 1:43 pm
Bugfixes
  • Fixed that train pathfinder was counting penalty of whole starting segment instead of only part in front of locomotive. (79951)
Technically previously this stacker was working fine because train was all inside segment with train stop and so going both direction gave same penalty of train stop and train choosed exit as you expected. If you would place rail chain signals in between this behavior would change even in 0.17.79 because one train end would not see this train stop penalty. This is why i will be marking this as Not a bug.

-- edit:

Reproduction in 0.17.79 with rail signals in between of locomotives:
80268-issue.zip
(359.83 KiB) Downloaded 103 times
80268-diff-because-of-starting-segment-split.png
80268-diff-because-of-starting-segment-split.png (311.59 KiB) Viewed 5030 times

Re: [0.18.0] train pathfinding error with stacker stations

Posted: Tue Jan 21, 2020 8:00 pm
by Blacky007
the train was going to its stacker station - fine - then after it get its signal it was going to next station getting its cargo - why is the station a penalty in this case when the train is in the station????

this is the save - some days old but in that area was no redesign

https://www.dropbox.com/s/f7w76f4ubb0dq ... 5.zip?dl=0

Re: [0.18.0] train pathfinding error with stacker stations

Posted: Tue Jan 21, 2020 8:08 pm
by boskid
I will consider fixing this since intention for train stop penalty is to avoid blocking train stops for other trains but since this train stop is already occupied, adding this penalty makes little sense

Re: [boskid][0.18.0] train pathfinding error with stacker stations

Posted: Tue Jan 21, 2020 10:49 pm
by boskid
This behavior will be changed in 0.18.1.
Changes:
- Train stop at train's starting segment exit is no longer counted into penalty. (80268)
Thanks for report.