The International Simutrans Forum

Development => Bug Reports => Topic started by: Lord Vetinari on November 01, 2009, 05:04:47 PM

Title: Weird passenger behaviour
Post by: Lord Vetinari on November 01, 2009, 05:04:47 PM
Simutrans map:

(http://img246.imageshack.us/img246/6003/mapj.png)

And, since the screenshot is a little bit messy, lines scheme (I made this for fun on another forum):

(http://img2.imageshack.us/img2/5246/mappalineecopia.png)

There are passengers in A that want to go to C or D.
What I expected them to do is to go to B and change on either the dark green line or the second branch of the light green line for C, and to E and change on the yellow line (that has both CW and CCW services) to D.
What they actually do is go to F and there change for C, and go all the way to G and then change on the yellow line for D.

To make it brief, it seems that when there is more than one transfer option between two lines, the passengers always choose the longest trip available.
I experienced the same behaviour in most lines of this game (F, for example, is a major hub and there are thousands of passengers waiting to be picked up even if they could choose a more convenient transfer outside the big city. I won't list all the examples of this behaviour as they are all the same story).

I started this particular map with the latest nightly (Windows version) and pak 128.britain, but, as I said, I already saw the same bug before, with different versions and paks.

(EDIT: I'm not dead, I'll release that birdge for the pack soon)
Title: Re: Weird passenger behaviour
Post by: jamespetts on November 01, 2009, 05:41:02 PM
In Simutrans-Standard, routing for passengers and goods always chooses the route with the fewest transfers; or rather, it always chooses a route with the fewest transfers. If there is more than one route with the same number of transfers, which it chooses is completely random.

In Simutrans-Experimental, routing is based on the lowest overall journey time, so this problem should not occur.
Title: Re: Weird passenger behaviour
Post by: Lord Vetinari on November 01, 2009, 05:48:40 PM
I remember reading a lot of time ago that the numbers of stops was taken in account.
Thanks anyway.
Maybe I'm very unlucky with random mechanisms, but I've never seen passengers choosing a transfer different than the farthest one.

By the way, can I load the savegame on Experimental or a new game is required for the changes to take place?
Title: Re: Weird passenger behaviour
Post by: prissi on November 01, 2009, 08:31:44 PM
The problem is, that the number of intermediate stops is not (yet) taken into account in standard. Tahat is a project, which will come someday, hopefully.
Title: Re: Weird passenger behaviour
Post by: Spike on November 01, 2009, 09:53:21 PM
Quote from: jamespetts on November 01, 2009, 05:41:02 PM
...  it always chooses a route with the fewest transfers. If there is more than one route with the same number of transfers, which it chooses is completely random.

Not random. It chooses the first which is found (this depends on the internal sort order of data and is not really predictable to the player, but it's not random. Unless the sort order changes, it will always be the same route).
Title: Re: Weird passenger behaviour
Post by: colonyan on November 01, 2009, 11:42:03 PM
Quote from: prissi on November 01, 2009, 08:31:44 PM
The problem is, that the number of intermediate stops is not (yet) taken into account in standard. Tahat is a project, which will come someday, hopefully.
Even if it is future project, it is good to hear. I shall wait.
Title: Re: Weird passenger behaviour
Post by: prissi on November 10, 2009, 09:25:58 PM
It should work as expected in the latest nightlies.
Title: Re: Weird passenger behaviour
Post by: Lord Vetinari on November 16, 2009, 01:36:06 PM
Great, thanks! ;D  I'm downloading it.

Just one question, to understand how things work: the number of stops is considered for every route or only for trasfers?
I mean, is it worthy to build both directions of a cirlce line before it is connected to the rest of the network, for example?
If I set an express line will passengers choose it instead of the local one?
Title: Re: Weird passenger behaviour
Post by: prissi on November 16, 2009, 02:13:14 PM
In the curretn system, the first possible transfer point is considered which results in the lowest toal number of transfers. Intermediate stops are still pending, since this would imply changes to the loading routines of vehicles.
Title: Re: Weird passenger behaviour
Post by: iranair787 on December 10, 2009, 09:24:18 AM
Just to sidetrack, how did you make that map underneath your maiin image?
Title: Re: Weird passenger behaviour
Post by: Lord Vetinari on December 11, 2009, 10:37:05 AM
With Photoshop, pencil or line tool, size 8 pixel.
Then the circle selection tool to make stations and curves. I looked at the London Tube Map for curves radii, proportions between line and stations, etc.

I make a full set of pieces (straight, curves, diagonals, stations) before I work on the actual map, then I just paste together copies of the pieces where needed. I put the screenshot on the base level of the picture as reference.