Page 1 of 2

[0.9.8][slpwnd]Evil train pathfinding strikes again!

Posted: Wed Apr 23, 2014 4:36 am
by Narc
Given this setup:

Image

where the arrows mark one-directional track and there is exactly one more station at the end of the rails heading off the bottom-right corner, one would expect a train leaving from the Bryan Burr or Marc Jaisek stops to be capable of making its way to Paul 'Xanzibaarbarian' Cooper without much undue trouble -- it can just enter the one-directional section (the bottom of the two parallel horizontal tracks) and then branch off toward the north.

Unfortunately, what happens instead is the train ignores the branch and keeps going forward until realizing there's no path to its destination anymore. After that it stands there and shouts "No path!" at me like an idiot.

I've driven the path myself in the same train, so I'm certain it's valid (the switch is a switch, and once driven manually past it, the train is perfectly capable of reaching the Xanzibaarbarian station on its own), therefore I can only assume the track setup is too confusing for the poor thing.

The save, should you wish to poke at it, is available at http://dev.narc.ro/factorio/lousy-pathfind.zip. The train is stopped just after its recognition of its own mistake -- enter the leftmost locomotive, drive it forward a bit (towards the Bryan Burr/Marc Jaisek station complex), and then let it try again; it should make the same mistake every time. You may also verify for yourself that the Xanzibaarbarian station is perfectly reachable, though you'll have to navigate the train past the troublesome switch first.

Good luck!

Re: [0.9.8] Evil train pathfinding strikes again!

Posted: Wed Apr 23, 2014 5:50 am
by rk84
I have forgot to report this one. If you put wagon in front of locomotive it will reverse left and right -controls.
Seems like problem is in both manual and automatic driving. I tested with another curve to opposited side of switch and it tries to turn but in wrong way.
wrongway.png
wrongway.png (974.82 KiB) Viewed 7404 times

[0.9.8] Evil train pathfinding #2

Posted: Wed Apr 23, 2014 6:56 am
by ssilk
This is a split thread for rk84's post, cause I would say they are two different bugs.

Re: [0.9.8] Evil train pathfinding #2

Posted: Wed Apr 23, 2014 7:15 am
by Narc
It might not be a different bug after all -- the pathfinding may have gone perfectly correctly, but the locomotive was given the wrong order ("turn left", when it should've been "turn right").

I guess the passing siding I'd built before was only accidentally working correctly -- the way to enter it when the train was driving backwards was to go straight forward, thus no turn action required. I did notice the inverted controls when manually driving, but would never have imagined the automatic driver would be using the same logic.

Re: [0.9.8] Evil train pathfinding #2

Posted: Thu May 08, 2014 10:06 pm
by MF-
Ha, that could easily be it.
Wrong turn-order interpretation between the train AI and junction.

Sounds like a simple bug in causing a wide variety of unrelated-looking issues.

Re: [0.9.8][slpwnd]Evil train pathfinding strikes again!

Posted: Wed Jun 25, 2014 3:02 pm
by slpwnd
Thanks for the report. Took some time but it is now fixed for 0.10.2. The problem was not with the pathfinding, but with the path execution (moving the train to match the path). Because your train was moving "backwards".

Re: [0.9.8][slpwnd]Evil train pathfinding strikes again!

Posted: Wed Jun 25, 2014 3:26 pm
by Narc
slpwnd wrote:Thanks for the report. Took some time but it is now fixed for 0.10.2. The problem was not with the pathfinding, but with the path execution (moving the train to match the path). Because your train was moving "backwards".
Yay, thank you!

Sounds like /u/rk84 was right on the money when he initially replied (later split to https://forums.factorio.com/forum/vie ... f=7&t=3199). Would a mod be willing to re-merge that topic back into here, for forum cleanliness reasons?

Re: [0.9.8] Evil train pathfinding #2

Posted: Thu Jun 26, 2014 12:36 pm
by slpwnd
Merged the issues. This one has been solved for the 0.10.2.

Re: [0.9.8] Evil train pathfinding #2

Posted: Thu Jun 26, 2014 7:56 pm
by MF-
I am confused by the post reshuffling, the link to the duplicite bug is dead now.

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jun 27, 2014 6:57 am
by slpwnd
MF- wrote:I am confused by the post reshuffling, the link to the duplicite bug is dead now.
Yeah, I guess I will stay away from merging topics next time and just cross reference them.

Re: [0.9.8] Evil train pathfinding #2

Posted: Sat Jun 28, 2014 6:07 am
by MF-
Actually.. re-merge of a previously split topic seems fine to me.
Just EITHER merge OR link :P

Re: [0.9.8] Evil train pathfinding #2

Posted: Mon Jun 30, 2014 3:30 pm
by jakobeng1303
I still have that Bug in Mac Version 10.10.2

Re: [0.9.8] Evil train pathfinding #2

Posted: Tue Jul 01, 2014 10:00 am
by slpwnd
jakobeng1303 wrote:I still have that Bug in Mac Version 10.10.2
Can you give more details / save / etc. ?

Re: [0.9.8] Evil train pathfinding #2

Posted: Thu Jul 03, 2014 4:56 pm
by jakobeng1303
it is quiet a big train system with many stations and a lot of tracks. I use Signals and trains with two engines. During 9.0 I had no troubles with trains not finding their path, but since I updated nothing wanted to work anymore. The tracks can't be the problem! I can go around manually and there is no problem.

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jul 04, 2014 8:27 am
by ssilk
I think without save it isn't possible to debug this.

Please provide a save.

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jul 04, 2014 8:55 am
by jakobeng1303
the only problem is that I can't find my saves. I already looked in several web pages encluding the wiki but all the clues were wrong.

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jul 04, 2014 10:12 am
by ssilk
Windows? Installed it from ZIP or Install-package? Install package: go into the users folder and make a search on your save-name. :) Look into internet, how you can do a search on some documents you have lost in this windows-kuddelmuddel. :)

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jul 04, 2014 12:16 pm
by jakobeng1303
Nein. Ich verwende einen Mac und im angegeben Verzeichnis befindet sich kein Ordner der irgendwas mit Factorio zu tun hat. Selbst wenn ich den Inhalt von factorio seh find ich nirgendwo irgendwas wo meine Welt gespeichert sein könnte. Hab auch schon alles angeklickt usw..

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jul 04, 2014 2:27 pm
by slpwnd
ssilk is right, without the save there is not much I can do. But I would be quite interested in getting it :) So I will put this to pending and when you find it please post it.

Re: [0.9.8] Evil train pathfinding #2

Posted: Fri Jul 04, 2014 2:33 pm
by ssilk
Well, under MacOS it is exactly as described.
But you don't see the "Library"-folder by default.
There are some ways out of that. But the easiest is make the the Library folder visible. You can google for that. Example page: http://finerthings.in/featured/lion-lib ... r-visible/

If you have still problems, please PM me.