[REL] TinyPedal - open source overlay APP for rF2 (Radar,Pedal,FFB,Deltabest,Relative,Fuel calculator)

Discussion in 'Other' started by svictor, Mar 14, 2022.

Tags:
  1. Rui Santos

    Rui Santos Registered

    Joined:
    Jan 8, 2012
    Messages:
    1,083
    Likes Received:
    1,210
    Perfect, thanks!
     
    svictor likes this.
  2. ben willis

    ben willis Registered

    Joined:
    Dec 11, 2014
    Messages:
    26
    Likes Received:
    9
    Thanks for your amazing work on this! Find it really useful. Out of interest, is it possible to show the BTCC hybrid data at all in a widget, or some kind of P2P widget maybe? I believe the values are in the rfactor 2 physcis api but not sure if the shared memory apis you use have access to that yet. Would be a great addition i feel :)
     
    svictor and carrot1401 like this.
  3. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    Currently can't find any official document about the new P2P and other new data exposed in API (although it is mentioned in Q1 release notes, I had asked a few friends and they also can't find). And there isn't any update with sharedmemory plugin either, so atm there is no way to add this.
     
    ben willis likes this.
  4. ben willis

    ben willis Registered

    Joined:
    Dec 11, 2014
    Messages:
    26
    Likes Received:
    9
    No worries, thanks anyway and keep up the great work!
     
    svictor and carrot1401 like this.
  5. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    A very good news:

    With the help from my team mate, we have finally found the cause of the year-long issue with overlay data freeze.

    The reason that overlay data freezes when someone joining server is due to player index desynchronized between rF2Telemetry & rF2Scoring data. When the data freeze happened, rF2Scoring will be updated with new player index; however, rF2Telemetry will still hold the old player index under certain condition. So when using the new player index from rF2Scoring to retrieve data from rF2Telemetry, it will result data freezing due to wrong data from mismatched index.

    Currently I'm working on a new fix update, shouldn't take too long.
     
  6. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    723
    Likes Received:
    222
    Good news, very annoying bug.
     
    svictor likes this.
  7. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    v1.11.5 - Fixed overlay data freeze issue
    https://github.com/s-victor/TinyPedal/releases/tag/v1.11.5

    It's finally fixed, thanks to my teammate Rnzi for helping, and thanks to everyone who has followed or helped on this issue.

    1.11.5 (2023-03-08)
    • pyRfactor2SharedMemory library
      • Fixed a data freeze issue that caused by mismatched player's index between rF2Scoring & rF2Telemetry.
      • Now keeps two separate player's index values of the same local player, one for rF2Scoring, one for rF2Telemetry.
      • Add new mID matching method that uses rF2Scoring player's index
        to match the same mID and retrieves correct player's index in rF2Telemetry,
        which can also be used to match remote player's index in rF2Telemetry.
    • Core
      • Updated relative module to use the new mID matching method.
     
  8. Capeta

    Capeta Registered

    Joined:
    May 31, 2012
    Messages:
    268
    Likes Received:
    48
    Thank you very much!
     
    svictor likes this.
  9. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    v1.11.6 - Auto-hide Radar when no nearby vehicles
    https://github.com/s-victor/TinyPedal/releases/tag/v1.11.6

    Here is another frequently requested feature that auto hides Radar when no cars near. Note, auto-hide will only trigger when player is not parked in garage.

    Besides auto-hide, many new customizable options are added to Radar widget, including global radar size & scale, new distance reference circles, etc.

    See customization:
    https://github.com/s-victor/TinyPedal/wiki/Customization-Guide#radar

    1.11.6 (2023-03-10)
    • Radar Widget
      upload_2023-3-10_18-57-18.png
      • Add "auto_hide" option in JSON (default ON),
        which auto hides radar display when no nearby vehicles.
      • Add "auto_hide_time_threshold" option,
        which sets amount time(unit second) before triggering auto hide.
      • Add "minimum_auto_hide_distance" option,
        which sets minimum straight line distance(unit meter) before triggering auto hide.
        Set -1 value to auto scale with "radar_radius" value. Default value is -1.
      • Replaced "vehicle_scale" with new "radar_scale",
        which sets global scale of radar display.
      • Replaced "area_scale" with new "radar_radius",
        which sets radar display area by radius(unit meter).
      • Add "center_mark_radius" option,
        which sets center mark size by radius(unit meter).
      • Add "show_distance_circle" option,
        which shows 2 distance circles for distance reference.
      • Add "distance_circle_1_radius" & "distance_circle_2_radius" option,
        which sets distance circle size by radius(unit meter).
        Distance circle will not be displayed if radius is bigger than "radar_radius".
    • Misc
      • Updated customization guide with new configurable options for Radar Widget.
     
    Last edited: Mar 10, 2023
  10. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    723
    Likes Received:
    222
    Another great improvement. Thanks.
     
    svictor likes this.
  11. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    https://github.com/s-victor/TinyPedal/releases/tag/v1.11.7
    A small update with bug fix and improvement.

    Note, there is also a major update for TinyPedal that I have been working on for a few weeks now. The update will utilize a new GUI library that supports full alpha transparency, GPU acceleration, and more features & possibilities. It is still in early development so it will be a while before anything new arrives.

    1.11.7 (2023-03-22)
    • Gear Widget
      • Add "neutral_warning_time_threshold" additional condition check option in JSON,
        which activates color warning when both speed & time-in-neutral is higher than threshold.
        This helps avoid displaying color warning during normal shifting.
        Default value is 0.3 seconds.
    • Core
      • Fixed an index out of range error that related to mSector data,
        which could cause Sector & Flag Widget to freeze.
    • Misc
      • Updated customization guide for Gear Widget.
     
  12. PaZill

    PaZill Registered

    Joined:
    Feb 9, 2021
    Messages:
    18
    Likes Received:
    6
    Is it possible to show the "Out" for leaving the pits for the whole lap?
     
  13. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
  14. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    v1.12.0 - Hybrid & P2P Widget
    https://github.com/s-victor/TinyPedal/releases/tag/v1.12.0

    upload_2023-4-5_1-59-56.png

    Known limitation:
    1. The current P2P mechanism is that if player has pressed P2P activation button during P2P cool-down duration(5s for BTCC), the cool-down duration will be extended.
    However the current game API does not output player's P2P activation button state, and when P2P enters cool-down duration, the available data from API can not tell whether player has pressed P2P activation button again, thus "P2P ready" color indicator would not match the actual P2P status in game under this situation.

    2. After battery completely drained (0%), P2P can still be activated in game (and onboard dash screen will continue to count P2P activation time). However, when activate P2P at 0% battery, the game API data(motor state value) would always return "inactive" state, thus it is not possible for the widget to continue count P2P activation time.

    Note:
    The current P2P widget activation condition check options are set for BTCC, which are
    15s max duration per lap, 5s cool down, minimum 3rd gear with over 120kph and positive throttle for activation. Those condition options can be customized in JSON file.

    Customization:
    https://github.com/s-victor/TinyPedal/wiki/Customization-Guide#hybrid
    https://github.com/s-victor/TinyPedal/wiki/Customization-Guide#p2p


    1.12.0 (2023-04-05)
    • [New]Hybrid Widget
      • Show percentage available battery charge.
      • Show percentage battery charge drained in current lap.
      • Show percentage battery charge regenerated in current lap.
      • Show boost motor temperature with customizable unit & overheating indicator.
      • Show boost motor cooler water temperature with customizable unit & overheating indicator.
      • Show boost motor RPM.
      • Show boost motor torque.
      • Show boost motor activation timer.
    • [New]P2P Widget
      • Show percentage available battery charge.
      • Show battery drain & regen color indicator.
      • Show P2P (boost motor) activation timer.
      • Customizable P2P activation threshold options.
    • Sector Widget
      • Fixed a typo that caused wrong sector index reading.
    • Core
      • [New]Add installer script for Linux (by Bernat).
      • [New]Add battery module for calculating battery charge usage.
    • pyRfactor2SharedMemory library
      • Add hybrid related entries.
      • Fixed ctypes data types for linux (by Bernat).
    • Misc
      • Updated customization guide for Hybrid & P2P Widget.
      • Updated feature.md.
     
    Last edited: Apr 4, 2023
  15. doublebidule

    doublebidule Registered

    Joined:
    Apr 2, 2023
    Messages:
    20
    Likes Received:
    6
    hi,
    too good you are awesome.
    is it possible that in the future we have a map (the layout) with the competitors on it to know where he is? we still have the delta bar that does all kinds of crap when some people with ponde letters log in. thanks again
     
  16. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    Hi, Trackmap will be there along with many new things in the next major update (v2.0) that I mentioned in a few posts earlier, however no estimate when the new version will be arrived, as there are still a lot of work ahead.

    As for deltabest interrupt issue during player joining, it will likely be fixed in the next minor update hopefully.
     
    Last edited: Apr 5, 2023
    yashiman, Corti, DanRZ and 4 others like this.
  17. Lazaros Filippakos

    Lazaros Filippakos Registered

    Joined:
    Apr 15, 2016
    Messages:
    11
    Likes Received:
    6
    How easy would it be for the relative to show players that are on track only and not show the ones that are in the garage. Its a liittle difficult during a race where people escape out to see what the car behind you is doing.
     
  18. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    thanks for the suggestion, it should be possible, and probably only be activated for race only (optional), will see.
     
  19. Ravioli

    Ravioli Registered

    Joined:
    Jul 7, 2020
    Messages:
    22
    Likes Received:
    8
    Dear Victor,

    I'm unsure whether this question has been asked before in the thread. Do you have a way for me, or us, to make a donation for this great piece of work you have delivered for us? I made a conscious switch from a paid SimHub license to TinyPedal simply because of the accessibility, ease of use, and stability as well which I feel like is way better with TinyPedal than running rFactor together with SimHub. So next to complimenting you and expressing gratitude for the work you delivered, I think you really deserve the donations you would be getting for this and if this hasn't been kicked off yet I would very much like to do so.

    Please let me know!
     
  20. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,344
    hi, currently I don't take donations, but thank you for the kind support & comments.
     

Share This Page