The International Simutrans Forum

 

Author Topic: acceleration info in convoy details  (Read 2956 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3714
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: acceleration info in convoy details
« Reply #35 on: June 02, 2020, 11:40:31 PM »
There may be some bug with that. The curve friction for tram is not shown in details. Slope friction is shown, as well as base base friction fro roads, and curve friction for ships. But not for trams... I don't think it is a bug in display. Maybe in loading the curve_friction_factors_tram ? I tried even a fresh game, but nothing shows

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20720
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: acceleration info in convoy details
« Reply #36 on: June 03, 2020, 10:39:35 AM »
There may be some bug with that. The curve friction for tram is not shown in details. Slope friction is shown, as well as base base friction fro roads, and curve friction for ships. But not for trams... I don't think it is a bug in display. Maybe in loading the curve_friction_factors_tram ? I tried even a fresh game, but nothing shows

If you believe that there is a bug, I will need a bug report thread to be able to manage and plan the work in relation to investigating this.

Offline Vladki

  • Devotee
  • *
  • Posts: 3714
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: acceleration info in convoy details
« Reply #37 on: October 25, 2020, 03:37:07 PM »
I have digged a little bit into this, and found that: get_curve_friction_factor(tram_wt) may return the correct value.
The problem is that get_waytype() for trams returns track_wt, because trams are still instances of class rail_vehicle_t.
So this would have to be modified to check the current track on which the rail_vehicle actually is, instead of simply returning a constant value.