The International Simutrans Forum

 

Author Topic: Passengers picking wrong train when 2 trains are waiting  (Read 396 times)

0 Members and 1 Guest are viewing this topic.

Offline Jando

  • *
  • Posts: 454
Passengers picking wrong train when 2 trains are waiting
« on: March 22, 2019, 03:13:11 PM »
Experimenting a bit with a passenger-only map I noticed something odd: passengers seemingly boarding the wrong train. :)

Let me explain, screenshot here:


Two trains in the screenshot are waiting for their schedule at Hartcester St. James. The two trains serve different lines, but will both run to the same next two stations before the routes split. Thus one train serves Hartcester-A-B-C-D, the other one serves Hartcester-A-B-E-F. So far so good. What I would expect now is that passengers departing Hartcester for A or B will pick the first train that arrives at their destinations - instead that is not what they do, they board the train that arrives later.

Saved game here, link valid for 60 days: https://simutrans-germany.com/files/upload/AA_Wrongtrain.sve

How to observe: load above game, soon enough passengers for Holerham Broadway and Beltall (the next two stops for both waiting trains) will show up at the station. The passengers will not board the next train that leaves for these destinations but will board the other train that leaves 24 minutes later. Interesting observation: the train that leaves Hardcester 24 minutes later is the one that arrived at Hartcester earlier than the other train. I wonder if passengers pick the train that arrived first instead of the train that departs first. :)

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18422
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #1 on: March 22, 2019, 11:00:59 PM »
Thank you for your report. I believe that I have now fixed this; I should be grateful if you could re-check with the next nightly build.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2592
  • Languages: EN
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #2 on: March 23, 2019, 12:16:27 AM »
Quote
How to observe: load above game, soon enough passengers for Holerham Broadway and Beltall (the next two stops for both waiting trains) will show up at the station. The passengers will not board the next train that leaves for these destinations but will board the other train that leaves 24 minutes later. Interesting observation: the train that leaves Hardcester 24 minutes later is the one that arrived at Hartcester earlier than the other train. I wonder if passengers pick the train that arrived first instead of the train that departs first.
For best results they should be picking the train that gets them to their destination soonest from the current point in time, irrespective of if it is the next train or the one after that.

This is important because it is required for express services to work. Train A might get them to their destination slower than train B arriving at their current stop 30 minutes later because train B is an express train taking a shorter and faster route with less stops to their destination.

Offline Jando

  • *
  • Posts: 454
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #3 on: March 25, 2019, 01:40:45 PM »
Thank you for your report. I believe that I have now fixed this; I should be grateful if you could re-check with the next nightly build.

Awfully sorry, James. Still seeing this behaviour with the latest nightly.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18422
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #4 on: April 13, 2019, 09:43:16 PM »
I have had a report of a similar bug from another user which I believe that I have fixed. I should be grateful if you could test whether this issue has been fixed with to-morrow's (or a later) nightly build.

Offline Jando

  • *
  • Posts: 454
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #5 on: April 18, 2019, 10:49:13 AM »
I have had a report of a similar bug from another user which I believe that I have fixed. I should be grateful if you could test whether this issue has been fixed with to-morrow's (or a later) nightly build.

Awfully sorry, I'm still seeing passengers boarding the wrong train, i.e. the train that arrives at their destination later.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18422
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #6 on: April 18, 2019, 12:54:06 PM »
Awfully sorry, I'm still seeing passengers boarding the wrong train, i.e. the train that arrives at their destination later.

Is this still reproducible in the reproduction case in the opening post of this thread?

Offline Jando

  • *
  • Posts: 454
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #7 on: April 18, 2019, 03:19:33 PM »
Is this still reproducible in the reproduction case in the opening post of this thread?

Yep, James, I'm seeing the behaviour described in the original post with today's nightly.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18422
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #8 on: April 18, 2019, 03:37:09 PM »
Yep, James, I'm seeing the behaviour described in the original post with today's nightly.

Incidentally, one thing that I forgot to mention: the problem affects stored data. The fix does not erase the old stored data, but only corrects new data. Therefore, the fix will not operate immediately on loading an old saved game, but only after the data has had time to refresh.

Can I confirm that you have let the vehicles run a full cycle of their schedules and that you are able to reproduce this issue in a saved game whose vehicles have run a full cycle of their schedules after the application of the fix? If so, I should be grateful if you could upload such a saved game.

My apologies for having omitted this information previously.

Offline Jando

  • *
  • Posts: 454
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #9 on: April 18, 2019, 08:44:04 PM »
Thanks for the info, James, I re-test over the weekend.

Offline Jando

  • *
  • Posts: 454
Re: Passengers picking wrong train when 2 trains are waiting
« Reply #10 on: Yesterday at 03:26:54 PM »
Loaded the saved game from the original post with today's newest version, saved game was April 1867. Let it run on fast forward for several in-game day-months. Checked passenger routing again in September 1867. Still seeing passengers boarding the wrong train, i.e. the train that arrives at their destination later.

Saved game from September is here (link valid for 60 days): https://simutrans-germany.com/files/upload/AA_Wrongtrain3.sve

On loading this saved game you see vehicles #22 and #48 waiting for their schedule at Hartcester Monument. Both trains have Holerham Broadway and Beltall as their next destinations. Vehicle #22 will leave Hartcester and arrive at Holerham and Beltall first, vehicle #48 will leave and arrive 24 minutes later. After a few minutes passengers for these destinations will be generated and will board the train that arrives later.

Some detail in case it matters: both lines are scheduled to operate every 48 minutes, however, the line from vehicle #48 has a 24-minute shift in it's schedule, giving me an effective departure from Hartcester to Holerham and Beltall every 24 minutes.