News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

buses make turning

Started by gauthier, November 11, 2008, 06:31:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gauthier

Simutrans pak128 (I can't remember the version of pak), 100.1 r2086 SDL

Normally, the bus must take the green shedule and it takes the red one.

The bus you see on the arrival has arrived by the red shedule but it's leaving.

prissi

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.


prissi

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

gauthier

QuoteUsually a bus do not makes U-Turns at stops but tries to continue straight ahead.

It's what I told you. It's a problem because I lose money ! It's not really easy to make profit  :'(

prissi

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.

robofish

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 pass the station straight.
BTW I've recognized similar behaviour in some of my savegames too.

jbode

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

Jörg

gauthier

All vehicles have to drive on the shorter path, so I consider it as a bug.

QuoteIf you want to force the green path: use a waypoint in between.

I haven't to do this normally.

prissi

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.

robofish

Quote from: prissi on November 12, 2008, 08:46:03 PM
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?

joecz

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

z9999

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

ML

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

   

Dwachs

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.

gauthier

Quoteas 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.

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

The next stop is on the North.

robofish

Quote from: gauthier on November 13, 2008, 06:21:34 PM
The next stop is on the North.
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)

prissi

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.

VS

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!

prissi

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.

robofish