Skip to main content
Topic: buses make turning (Read 13175 times) previous topic - next topic

Re: buses make turning

Reply #1
There is one curve less, since it must not turn around. There is a penality in the pathfinder for turning around. Just like real life.


Re: buses make turning

Reply #3
Usually a bus do not makes U-Turns at stops but tries to continue straight ahead.


Re: buses make turning

Reply #5
It is not a bug report, since this is the intended behaviour. You can make extension requests, but I do not considerer this a bug.

Re: buses make turning

Reply #6
on the picture it looks as if the bus has already done a u-turn in the station (because he is on the right side, as if he came along the green marked path).
This is not intend if I understand your explantion right. At the moment it drives around the block first and than makes a u-turn in the station, instead of following the green-marked path an p**** the station straight.
BTW I've recognized similar behaviour in some of my savegames too.

Re: buses make turning

Reply #7
If you want to force the green path: use a waypoint in between.

Jörg


Re: buses make turning

Reply #9
Short is defined as the fastest way, i.e. the way with lees tiles a turns. The red way is two tiles longer but had one turn less. Thus, it is shorter to drive.

Re: buses make turning

Reply #10
The red way is two tiles longer but had one turn less.
Am I silly? I count 2 turnes on each route.

@gauthier
could you please show/tell us where the next stop is? (in which direction)
=> whould the bus have to make a u-turn in the station if it drove along the green path?

Re: buses make turning

Reply #11
as prissi has already pointed out, the u-turn in the station counts as a turn.
it is intended behaviour and therefore imho no bug

Re: buses make turning

Reply #12
Hmm.. even if it is not a bug, feeling strange is understandable.

 

Re: buses make turning

Reply #13
Simutrans 100.1, 2092, pak128

I have many tram linies in my city, which crossed. I have read the replies in above this topic and - if I understand -, the bus goes still in its straight direction (not to rotate 180° in stations) and it tries to make least turns. As you can see on the pictures, the tram line stops in all three stations. In my opinion it should go via green marked tramlines, but it goes via red. I tried to change the curves on my track, but it still goes via red.

I dont understand why it goes through red, when:
  • it is more curved
  • it must turn 180° in the station

   

Re: buses make turning

Reply #14
the green line makes an S-turn. You can force the trams by using one-way signals (from the railway menu).
Parsley, sage, rosemary, and maggikraut.

Re: buses make turning

Reply #15
Quote
as prissi has already pointed out, the u-turn in the station counts as a turn.
it is intended behaviour and therefore imho no bug

It's not normal, and as there are less or more turns, there are mor tiles by U-turn.

Quote
could you please show/tell us where the next stop is? (in which direction)

The next stop is on the North.

Re: buses make turning

Reply #16
So the bus has to make a U-turn in the station currently.

That means that the current (red) route has the same number of curves (2) is longer than the green route PLUS forces a U-turn in station. This means it's not the best route, which means it's a bug IMHO.

(sorry if I sound rude that is not intended)

Re: buses make turning

Reply #17
I checked the code and I had removed the U turn penalty long ago. So I was wrong.

But the code has also another problem, which is not really solveable. It has diffrent values for 45° and 90° curves. Since you are starting on a tile directly before a curve, it will result in a 45° curve and a 90° curve. The other will have two 90° curves. There is little that can be done about it, since the curvature of the last and the first tile cannot be calculated properly and must be guessed. (Since you need the previous and preprevious tile to check whether 45° or 90° bowing; but the preprevouis one is not available on the first tile.)

So in this situation you are stucked with waypoints.

Re: buses make turning

Reply #18
In other words, one more tile and it would work?

That isn't too bad ;)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: buses make turning

Reply #19
Any stop directly in front of a turn has this problem. But it shows seldomly, thus people do not notice it. This is the price to pay for A* routing with the current metric.

Re: buses make turning

Reply #20
thanks for explaining :)