buses make turning November 11, 2008, 06:31:23 pm Simutrans pak128 (I can't remember the version of pak), 100.1 r2086 SDLNormally, 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. Quote Selected
Re: buses make turning Reply #1 – November 11, 2008, 09:14:56 pm 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. Quote Selected
Re: buses make turning Reply #2 – November 11, 2008, 10:08:36 pm QuoteJust like real life. Quote Selected
Re: buses make turning Reply #3 – November 11, 2008, 10:25:55 pm Usually a bus do not makes U-Turns at stops but tries to continue straight ahead. Quote Selected
Re: buses make turning Reply #4 – November 12, 2008, 02:53:40 pm 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 :'( Quote Selected
Re: buses make turning Reply #5 – November 12, 2008, 03:25:10 pm 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. Quote Selected
Re: buses make turning Reply #6 – November 12, 2008, 05:31:52 pm 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. Quote Selected
Re: buses make turning Reply #7 – November 12, 2008, 05:35:27 pm If you want to force the green path: use a waypoint in between.Jörg Quote Selected
Re: buses make turning Reply #8 – November 12, 2008, 06:06:32 pm 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. Quote Selected
Re: buses make turning Reply #9 – November 12, 2008, 08:46:03 pm 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. Quote Selected
Re: buses make turning Reply #10 – November 12, 2008, 09:39:50 pm Quote from: prissi – on November 12, 2008, 08:46:03 pmThe red way is two tiles longer but had one turn less.Am I silly? I count 2 turnes on each route.@gauthiercould 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? Quote Selected
Re: buses make turning Reply #11 – November 13, 2008, 12:08:19 am 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 Quote Selected
Re: buses make turning Reply #12 – November 13, 2008, 06:51:42 am Hmm.. even if it is not a bug, feeling strange is understandable. Quote Selected
Re: buses make turning Reply #13 – November 13, 2008, 01:51:54 pm Simutrans 100.1, 2092, pak128I 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 curvedit must turn 180° in the station Quote Selected
Re: buses make turning Reply #14 – November 13, 2008, 03:45:15 pm the green line makes an S-turn. You can force the trams by using one-way signals (from the railway menu). Quote Selected
Re: buses make turning Reply #15 – November 13, 2008, 06:21:34 pm Quoteas prissi has already pointed out, the u-turn in the station counts as a turn.it is intended behaviour and therefore imho no bugIt'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. Quote Selected
Re: buses make turning Reply #16 – November 13, 2008, 09:46:52 pm Quote from: gauthier – on November 13, 2008, 06:21:34 pmThe 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) Quote Selected
Re: buses make turning Reply #17 – November 13, 2008, 10:23:00 pm 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. Quote Selected
Re: buses make turning Reply #18 – November 13, 2008, 10:43:28 pm In other words, one more tile and it would work?That isn't too bad Quote Selected
Re: buses make turning Reply #19 – November 13, 2008, 10:45:57 pm 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. Quote Selected
Re: buses make turning Reply #20 – November 13, 2008, 11:01:55 pm thanks for explaining Quote Selected