Train pathfinding bug

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Train pathfinding bug

Post by DeletedUser21 »

Hey, I have recently downloaded 0.3.5 and it's okay and all, but there is someting weird with the pathfinding I think, look at this:
The train that wants to enter the station is lost, because it can not enter the station because a train is in the way, but why doesn't it go the the rail next to it??? I have no clue if this is mentioned earlier but I wasn't able to find this sort of problem. So please help me. :(
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

So far as i'm concerned it's a bug, but apparently that's supposed to happen, the reasoning being the following:

When you use a regular one-way signal, you are actually telling the train to "take the shortest route". So when you use that signal there, the train is trying to find the shortest route to the station, which is straight ahead, even though that platform is full.


IMHO, finding one-way signals shouldn't do find shortest route. they should just do what they are supposed to do.... one-way stuff. They (the devs) seem to have forgotten the KISS principle for this one.

The solution is to make those signals pre-signals and the problem will go away. Hardly ideal but feel free to argue with the devs. I did (and lost :( ).
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

hmmm... Okay, I'm not a big fan of the pre-signals, but ill give it a try!

Argue with the devs? Thats suicide! :P :wink:
mike[F]
Traffic Manager
Traffic Manager
Posts: 232
Joined: 26 Mar 2004 18:56

Post by mike[F] »

Moriarty wrote:So far as i'm concerned it's a bug, but apparently that's supposed to happen, the reasoning being the following:

When you use a regular one-way signal, you are actually telling the train to "take the shortest route". So when you use that signal there, the train is trying to find the shortest route to the station, which is straight ahead, even though that platform is full.


IMHO, finding one-way signals shouldn't do find shortest route. they should just do what they are supposed to do.... one-way stuff. They (the devs) seem to have forgotten the KISS principle for this one.

The solution is to make those signals pre-signals and the problem will go away. Hardly ideal but feel free to argue with the devs. I did (and lost :( ).
Hmm but if you look he is using 2 way signals on the station entrance. That should work fine, shouldn't it? Or has the behaviour been changed from original TTD? I use presignals all the time anyway, so I guess I wouldn't notice this.
-mike[F]
Caught in the rush of the crowd, lost in a wall of sound...
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

mike[f] - the one-way signal is at the startt of the junction. that's the important one. When a train gets to it, and it happens to be a junction the train believes it should look for the shortest route, and that route is straight ahead in this case. The other signals are irrelevent to this little problem.
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

so... what I could do is using presignals, or remove the one-way signal that is as close to the junction?
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

use pre-signals.
turn the one-way signal into a one-way pre-signal entrance, and turn the two two-way signals into pre-signal exits (still two-way).

Rather a long way to do something simple isn't it? Yep complain to the devs. :)
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Moriarty wrote:When you use a regular one-way signal, you are actually telling the train to "take the shortest route". So when you use that signal there, the train is trying to find the shortest route to the station, which is straight ahead, even though that platform is full.

IMHO, finding one-way signals shouldn't do find shortest route. they should just do what they are supposed to do.... one-way stuff. They (the devs) seem to have forgotten the KISS principle for this one.
You do realize there are two different route selection systems: "take 'best' route", and "take 'best' free route". How do you propose to indicate which route selection should be used?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Observer
Logo Creator
Posts: 2189
Joined: 19 Nov 2002 12:21
Location: Zoetermeer, The Netherlands
Contact:

Post by Observer »

As for pathfinding:

Why do my trucks keep going to a depot thats not even close to where they are when I press the goto-depot button..

There is at least one depot on the same road as where the truck is driving, but he stil wants to go to the depot 4 towns down the road. And its never even been there before :?
Never fear, I is here...
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

Dalestan - No i didn't realise that. And if the wiki was working (it's moving or something), chances are it's not in their either (thus most people don't realise it :) ).

Isn't that what pre-signals are for anyway?
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 14 guests