The International Simutrans Forum

 

Author Topic: [BUG] waiting time based on set schedules instead of actual departures  (Read 200 times)

0 Members and 1 Guest are viewing this topic.

Offline Freahk

  • Devotee
  • *
  • Posts: 1074
  • Languages: DE, EN
Hey there,

What happened?
I was just wondering why my bus stops waiting time (5:20) was roughly 1/3 of my lines frequency (~14:58), where only exactly one line is serving that stop.
I had scheduled my line to a frequency of 10:40 but it missed roughly every third schedule for many months already.

For testing purposes I just increased the frequency to 5:20 without adding any vehicles to the line. The bus stops waiting time was immediately invalidated and when it was recalculated it was 3:48.
Later on some raised to 3:54 whilst others raised to 4:00, which is even weirder.


What would I expect?
I would expect the waiting time to be 1/2 of lines actual frequency, which is displayed in the line window, no matter what frequency I set in the schedule. In this case it would have been ~7:30
« Last Edit: January 20, 2020, 09:49:28 PM by Freahk »

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 19824
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [BUG] waiting time based on set schedules instead of actual departures
« Reply #1 on: January 16, 2020, 11:11:36 PM »
Waiting times are principally based on data about passengers' actual waiting times; however, there is a heuristic estimation algorithm used to guess the likely waiting times where no actual data have been accumulated yet. There is a method for calculating service frequency - I cannot recall exactly how it works now, but you should find it, I think, in simline.cc.

Offline Freahk

  • Devotee
  • *
  • Posts: 1074
  • Languages: DE, EN
Re: [BUG] waiting time based on set schedules instead of actual departures
« Reply #2 on: January 17, 2020, 01:05:21 AM »
Waiting times are principally based on data about passengers' actual waiting times
Well that one doesn't seem to work properly.
The line is actually runing at ~13 minutes frequency on average for months now whilst set to schedule every 5:20 where the stop still states quite odd waiting times, currently 3:48.I should seek this in the code, it really seems like some guess is quite broken.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 19824
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [BUG] waiting time based on set schedules instead of actual departures
« Reply #3 on: January 18, 2020, 09:33:58 PM »
Well that one doesn't seem to work properly.
The line is actually runing at ~13 minutes frequency on average for months now whilst set to schedule every 5:20 where the stop still states quite odd waiting times, currently 3:48.I should seek this in the code, it really seems like some guess is quite broken.

It will be interesting to see what you are able to find - sometimes, it is hard to spot one's own errors, and a fresh pair of eyes can be quite helpful.