[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. Reiche

    Reiche Registered

    Joined:
    Oct 15, 2015
    Messages:
    64
    Likes Received:
    217
    Just make sure to let us know when you change your mind.
     
    svictor and TJones like this.
  2. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    https://github.com/s-victor/TinyPedal/releases/tag/v1.12.1

    Here is a small update with deltabest interruption issue fixed (issue reported by @doublebidule ), and hides vehicles that are stored in garage stall during race (feature requested by @Lazaros Filippakos ).
    Also thanks to @Bernat for linux related updates.

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

    1.12.1 (2023-04-07)
    • Relative Widget
      • [New]Add "hide_vehicle_in_garage_for_race" option in JSON,
        which hides vehicles that are stored in garage stall during race (for example, DNF or DQ).
        This option is enabled by default, set to false to disable.
    • Hybrid Widget
      • Use plus/minus sign for regen/drain display.
    • Core
      • Remove always on top on main(preset) window. (by Bernat)
      • Fixed an issue where app would fail to run if the current working directory isn't the app directory. (by Bernat)
      • Fixed deltabest being interrupted by mid-joining in multiplayer session.
      • Add "Quit" to Config menu in preset window.
    • pyRfactor2SharedMemory library
      • Now always stores a separate copy of verified local-player-only data.
    • Misc
      • Update README with install instruction for Linux. (by Bernat)
      • Updated customization guide for Relative Widget.
     
    Manfredk2, datasting, Capeta and 6 others like this.
  3. boxer

    boxer Registered

    Joined:
    Aug 22, 2012
    Messages:
    516
    Likes Received:
    185
    Is it possible to keep the widget selection on a second screen. Right now it loses focus after each selection... and you need to to find the system tray and reload it ever time to make changes...
     
  4. boxer

    boxer Registered

    Joined:
    Aug 22, 2012
    Messages:
    516
    Likes Received:
    185
    Perhaps the options could be a check boxes in a Modal dialog instead of a menu item...
    Never mind I think using it through load presets does what I was looking for...
     
  5. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    hi, in the next v2.0 major update (which is currently the priority), there will be a widget control panel to handle all the widget toggle stuff.

    Although I wished to keep it as a surprise, here is an early look:
    upload_2023-4-8_10-10-36.png
     
  6. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,485
    Likes Received:
    4,399
    3 Widgets for average drivers, to tell them just how average they are.
    7 Widgets for short drivers that want to win all the gold.
    9 Widgets for really really REALLY bad drivers who will virtually die every time.
    1 Widget to find them & rule them all
    Be your screen be bright or dark,
    One Widget to rule them all, and only in the cockpit view Bind them.
     
  7. ebeninca

    ebeninca Registered

    Joined:
    Sep 7, 2016
    Messages:
    744
    Likes Received:
    541
    Plus:

    1 widget to teach dumb people how to drive
    1 widget to teach dumb people how to overtake and defend positions fairly
    1 widget to teach people how to drive properly on multiclass racing
    1 widget to teach stewards how to judge race incidents fairly.
     
    davehenrie likes this.
  8. ricardoferreira

    ricardoferreira Registered

    Joined:
    Nov 17, 2014
    Messages:
    33
    Likes Received:
    5
    Hope you can add pit status (if someone press the pit button)
    and the general positions.

    and a way to set the tyres names :D
     
  9. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    it is always possible to customize tyre compound names (abbreviation), see Customization Guide (tyre_compound_list):
    https://github.com/s-victor/TinyPedal/wiki/Customization-Guide#relative

    "pit status" was added a month ago. see below:
    [​IMG]
     
    atomed, Reiche, Corti and 2 others like this.
  10. ricardoferreira

    ricardoferreira Registered

    Joined:
    Nov 17, 2014
    Messages:
    33
    Likes Received:
    5
    Very cool stuff mate. so so thanks!! :D

    And it's possible to change relative to general ? top 10 for exemple?
     
    Rui Santos and Reiche like this.
  11. MarcoSaupe

    MarcoSaupe Registered

    Joined:
    Feb 11, 2012
    Messages:
    47
    Likes Received:
    22
    Is it possible that there is a bug with the low fuel in the flag widget?

    When I set
    "low_fuel_for_race_only": true,
    It's always active (during practise at least) even if the tank is full.
     
  12. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    thanks for reporting. it's indeed a bug, a fix will be coming along with v2.0 update, hopefully soon.
     
    MarcoSaupe, Corti, atomed and 2 others like this.
  13. doublebidule

    doublebidule Registered

    Joined:
    Apr 2, 2023
    Messages:
    20
    Likes Received:
    6
    Hi
    a quick question is it possible to detach the pc time from the session overlay?
    and in fact I'm still one ^^ do you plan for tiny2 an overlay which summarizes the config of the car as in gt3 or the tc/abs or the engine map is displayed? and many thanks for what you do for us
     
  14. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    Thanks for suggestions. System clock can be turned off, if you mean detach it into a separate widget, i could add it in future release. As for tc/abs/mixture map, they are not exposes by game API. However I know that sharedmemory plugin can read from game message box info to retrieve such info, though I'm not sure if it is a good approach.
     
  15. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    v2.0.0 Major update
    Edit, new hotfix: https://github.com/s-victor/TinyPedal/releases/tag/v2.0.1
    [​IMG]

    How to upgrade from TinyPedal v1.x to v2.x:
    Due to significant changes to GUI library, many old APP files from v1.x are no longer used.
    Extract & override will still work for upgrading from v1.x to v2.x, however it may leave a lot useless files.

    If you have used v1.x, and wish to keep things clean, follow those steps:
    1. Download & extract TinyPedal v2.x in a different place.
    2. Go to TinyPedal v1.x folder, copy deltabest & settings folders.
    3. Then paste two folders into TinyPedal v2.x root folder and override folders with same name.
    4. Done.
    Also due to various new features and changes to old widgets, some settings are reset or has outdated values, which may need further configuration if using old preset. This can be done in Config dialog from each widget. If a widget doesn't show or display things correctly, try use reset button Config dialog to reset setting to default.

    Customization guide: https://github.com/s-victor/TinyPedal/wiki

    V2.0 is finally here, it's been over two months of sleepless nights, time to racing!

    I'll post more info about some of the new features in later posts.
    And full (long) change log below.

    2.0.0 (2023-05-10)
    • Core
      • TinyPedal now uses Qt GUI for all UI & widget displaying.
      • All UI & widgets have been rewritten using Qt GUI
        and support more visual effects and better performance.
      • The APP can now be launched from any folder path name.
      • There are currently 34 overlay widgets available,
        includes 10 new widgets and many reworked widgets.
      • New application main window with more functionalities,
        includes the new Widget & Module control panels
        that provide easy access to enable & disable function.
      • Add new "Config dialog" for customizing Widget & Module directly in the APP.
      • All widgets color options now support alpha value adjustment,
        which each color's opacity can be changed.
        This can be easily edited by double-clicking on color entry box
        in "Config" dialog, then adjust alpha value.
      • The old preset panel has also been redesigned with additional
        file operation supports via Right-Click context menu,
        where user can duplicate, rename, or delete selected preset.
        And preset can be easily loaded by double-clicking.
      • Add new "Display Units" config dialog,
        which handles all units setting in one place for all widgets.
      • Add "show_at_startup" and "minimize_to_tray" options to "Config" menu in main window.
      • Add "Reload" option to "Overlay" menu in main window,
        which can reload current active preset.
      • Add new customizable "heatmap.json" preset file for displaying color
        that matches specific value range of telemetry data,
        such as brake and tyre temperature.
      • Moved all previously called "real-time" modules into separated Module section,
        with a new Module panel in main window for grouped Module control and config.
      • Reworked tray icon menu:
        Add "Reload" & "Config" options.
        Removed "Widgets" sub menu.
        Show currently loaded preset name.
      • Various fixes & improvements.
    • Delta Module
      • Add "IsValidLap" condition check output info,
        which is used for last lap time validation check in other timing widgets.
    • Fuel Module
      • Add "Capacity", "AmountFuelStart", "AmountFuelBeforePitstop",
        "DeltaFuelConsumption", "OneLessPitFuelConsumption" data output info.
      • Further improvements to fuel calculation and estimated refueling accuracy,
        now takes consideration of player's current on track position relative to
        amount race time left for estimating more accurate finishing position and remaining distance.
    • [New]Hybrid Module
      • The previous "Battery module" is now renamed to "Hybrid module" instead,
        and provide all necessary data calculation for battery and electric motor usage.
    • [New]Mapping Module
      • The new "Mapping module" is used for recording track map,
        and processing map data for used in track map widget.
      • Map files are stored as SVG vector format under "TinyPedal\trackmap" folder,
        which can also be view in web browser directly.
      • The SVG vector map file contains two coordinate paths:
        First is the global x,y position path, used for drawing track map.
        Second is the corresponding track distance & elevation path, which is recorded for future use.
      • Each sector position index is also stored in SVG file for finding sector coordinates.
    • Relative Module
      • Add new standings index list generator for used by standings widget.
      • Moved all vehicles info to the new "Standings module".
      • Radar widget no longer depends on Relative module.
    • [New]Standings Module
      • The new "Standings module" now handles and provides all players & vehicles info
        that is required by widgets such as relative, radar, standings, track map, etc.
    • [New]Battery Widget
      battemotor.png
      • The previous "Hybrid Widget" is now split into two separate widgets,
        which are "Battery Widget" & "Electric motor Widget".
      • Show percentage available battery charge with low charge warning.
      • Show percentage battery charge drained in current lap.
      • Show percentage battery charge regenerated in current lap.
      • Show electric boost motor activation timer.
    • [New]Brake bias Widget
      brake.png
      • Show percentage forward Brake bias.
      • Add "decimal_places" option, which sets amount decimal places to keep.
      • Add "show_front_and_rear" option, which shows both front and rear bias.
      • Add "show_percentage_sign" option, which shows percentage sign.
    • [New]Brake pressure Widget
      visualizedwidgets.png
      • Show visualized percentage brake pressure of each wheel.
    • Brake temperature Widget
      temperature.png
      • Add "heatmap_name" option, which user can assign a custom heatmap preset.
      • Renamed "color_swap" option to "swap_style",
        which swaps heatmap color between font & background color.
    • Deltabest Widget
      deltabest.png
      • Remove bar scale options, and replaced with "bar_length" & "bar_height" options,
        which sets delta bar length & height in pixels.
      • Add "show_animated_deltabest" option,
        which deltabest display follows delta bar progress.
    • [New]Electric motor Widget
      • Show boost motor temperature.
      • Show boost motor cooler water temperature.
      • Show boost motor RPM.
      • Show boost motor torque.
      • Show overheating warning.
    • Flag Widget
      flag.png
      • Add "P CLOSE" warning text on pit timer with customizable color,
        which shows when pit lane is closed while in pit.
      • Add distance display for yellow flag indicator,
        which shows nearest yellow flag vehicle distance to player in meters.
      • Add "yellow_flag_maximum_range" option,
        which only shows yellow flag indicator when there is yellow flag
        within the maximum range (track distance in meters).
        Default is 500 meters.
      • Fixed low fuel & flag indicators not hiding issue.
    • Fuel Widget
      [​IMG]
      • Add "save" fuel display, which shows minimum fuel consumption in order to
        achieve one less pit stops than current estimated number of pit stops.
      • Add new "Start" & "End" fuel display,
        which shows amount fuel at the start of stint,
        and estimated amount fuel left at the end of stint (just before pit stop).
      • Add "show_fuel_level_bar" option,
        which shows a visualized horizontal fuel level bar in the middle.
      • Add "show_starting_fuel_level_mark" option,
        which shows starting fuel level mark of current stint on fuel level bar.
    • Gear Widget
      [​IMG]
      • Add "show_speed" option, which shows speed display when enabled.
      • Add "show_battery_bar" option,
        which shows battery bar that is only visible if electric motor available.
      • Add "rpm_multiplier_critical" option,
        which sets critical RPM range for RPM color indicator.
      • Add "show_rpm_flickering_above_critical" option,
        which shows flickering effects when RPM is above critical range
        and gear is lower than max gear.
      • Add "column_index" options, which can be used to re-arrange layouts.
      • Removed old "layout" option.
    • Instrument Widget
      • Add "last_vehicle_info" option,
        which saves the last driven vehicle name for matching wheel radius.
      • Significantly improved average wheel radius calculation.
      • Average radius calculation now starts with a small amount samples
        and then gradually increases to highest number of samples.
        If "last_vehicle_info" matches current vehicle,
        then average radius calculation starts from highest number of samples.
    • [New]Lap time history Widget
      [​IMG]
      • Show current lap number, current estimated lap time,
        current estimated fuel consumption, current lap average tyre wear.
      • Show history lap number, history lap time,
        history lap fuel consumption, history lap average tyre wear.
      • The number of lap time history can be set with "lap_time_history_count" option.
      • Show invalid lap time indicate color (default red).
      • Add "show_empty_history" which shows empty lap time history.
        Default is False, which hides empty rows.
    • P2P Widget
      • Add "activation_threshold_throttle" option,
        which sets minimum throttle input percentage threshold for P2P ready indicator.
        Default is 0.6, which is 60% of throttle.
    • Pedal Widget
      [​IMG]
      • All pedal & FFB display can now be individually turned off or on.
      • Add "column_index" options, which can be used to re-arrange layouts.
    • Radar Widget
      [​IMG]
      • Now show all vehicles within the radar radius,
        removed "additional_vehicles_front" & "additional_vehicles_behind" options,
      • Now shows different customizable colors for
        player, leader, opponents on same lap or lapped,
        vehicles under yellow flag or in pit lane.
      • Now reads all vehicle info from Standings module.
      • Replaced "radar_scale" with new "global_scale" option,
        which sets global scale of radar display related to screen pixel.
        Default value is "6", which is 6 times of original size.
      • Changed "radar_radius" default value from 25 to 30.
      • Add "vehicle_border_radius" option,
        which sets vehicle visual round border radius.
      • Add "vehicle_outline_width" option,
        which sets vehicle visual outline width.
      • Add "show_overlap_indicator" option,
        which shows overlap indicator when there is nearby side by side vehicle.
      • Add "overlap_detection_range_multiplier" option,
        which sets overlap detection range multiplier that scales with vehicle width.
      • Add "indicator_size_multiplier" option,
        which sets indicator visual size multiplier that scales with vehicle width.
      • Changed "center_mark_radius" default value from 25 to 30.
      • Add "center_mark_width" option,
        which sets center mark line width in pixels.
      • Add "distance_circle_1_width", "distance_circle_2_width" options,
        which sets distance circle line width in pixels.
      • Add "center_mark_style" & "distance_circle_style" options.
    • [New]Rake angle Widget
      • Show rake angle in degrees.
    • Relative Widget
      • Now reads all vehicle info from Standings module.
      • Now all columns can be turned on or off, and every column color can be customized.
      • No longer show lap difference color in none race session.
      • Add "show_player_highlighted" option,
        which highlights player row with customizable specific color.
      • Add "show_lap_difference" option,
        which shows different font color based on lap difference between player and opponents.
      • Add "show_position", "show_driver_name", "show_time_gap" options,
        which can be turned on or off individually.
      • Add "driver_name_uppercase" option,
        which sets driver name to uppercase.
      • Add "show_random_color_for_unknown_class" option,
        which show random color for unknown class name that is not defined in classes.json.
    • [New]Ride height Widget
      • Show visualized ride height display.
      • Add "ride_height_max_range" option,
        which sets visualized maximum ride height range (millimeter).
    • [New]Standings Widget
      [​IMG]
      • Most options are inherited from relative widget, with some additions noted below.
      • Add "max_vehicles_combined_mode" option,
        which sets maximum amount vehicles to display,
        which takes effect when "enable_multi_class_split_mode" is not enabled.
        When total vehicle number is lower than this value,
        extra rows will auto-hide.
        When total vehicle number is above this value,
        the top 3 vehicles will always show,
        and rest of the vehicles will be selected from
        the nearest front and behind places related to player.
      • Add "max_vehicles_split_mode" option,
        which sets maximum amount vehicles to display,
        which takes effect when in multi-class session and
        "enable_multi_class_split_mode" is enabled.
        If total vehicle number is above this value,
        any extra vehicles will not be shown.
        Default value is "50", which is sufficient in most case.
      • Reworked "show_time_gap" option.
        For race session, this option shows time gap between leader and all other drivers.
        For other none race sessions, this option shows the time gap
        between session's best lap time and all other drivers.
      • Add "show_time_gap_from_class_best" option, which shows time gap
        from none race session's best lap time of the same vehicle class.
      • Add "time_gap_leader_text" option, which sets text indicator for race leader.
      • Add "time_gap_decimal_places" option, which sets amount decimal places to keep.
      • Add "show_time_interval" option,
        which shows time interval between each closest driver in order.
    • Sectors Widget
      • Removed "show_position_lapnumber" option.
    • Session Widget
      • Add "prefix_lap_number" & "prefix_position" options.
      • Improved lap number formatting.
      • Removed unnecessary zero padding and decimal places in session timer.
    • Steering Widget
      steering.png
      • Add "bar_width" & "bar_height" options,
        which sets steering bar width & height in pixels.
      • Add "show_steering_angle" option,
        which shows steering angle text in degree.
    • Stint history Widget
      • Separated tire compound display to its own column.
      • Adjusted default color theme.
      • Add "show_empty_history" which shows empty stint history.
        Default is False, which hides empty rows.
    • Timing Widget
      • Show invalid last lap time indicate color (default red).
    • [New]Track map Widget
      [​IMG]
      • Show current track map, which the map is recorded & read from Mapping module.
      • Shows different customizable colors for
        player, leader, opponents on same lap or lapped,
        vehicles under yellow flag or in pit lane.
      • Add "show_background" option, which shows track map background.
      • Add "area_size" option, which sets area display size.
      • Add "area_margin" option, which sets area margin size.
      • Add "map_width" option, which track map line width.
      • Add "map_outline_width" option, which sets track map outline width.
      • Add "show_start_line" option, which shows start line mark.
      • Add "show_sector_line" option, which shows sector line mark.
      • Add "show_vehicle_standings" option, which shows vehicle standings info on map.
    • [New]Tyre load Widget
      • Show visualized tyre load display.
      • Add "show_tyre_load_ratio" option,
        which shows percentage ratio of tyre load between each and total tyre load.
        Set "false" to show individual tyre load in Newtons.
    • Tyre pressure Widget
      • Renamed old "Pressure widget" to "Tyre pressure Widget"
    • Tyre temperature Widget
      • Add "heatmap_name" option, which user can assign a custom heatmap preset.
      • Renamed "color_swap" option to "swap_style",
        which swaps heatmap color between font & background color.
      • Renamed "ICO_mode" option to "show_inner_center_outer",
        which sets inner, center, outer temperature display mode.
    • Wheel alignment Widget
      • Renamed old "Wheel widget" to "Wheel alignment Widget".
    • Misc
      • Updated Customization guide.
      • Updated README.
      • Updated THIRDPARTYNOTICES and licenses.
      • Removed feature.md, feature info can be found in Customization guide.
      • Updated "icon_instrument.png" with slightly adjustments.
      • Moved icon.png & icon.ico file into "images" folder.
      • Updated executable building script.
     
    Last edited: May 10, 2023
  16. mesfigas

    mesfigas Registered

    Joined:
    Oct 15, 2015
    Messages:
    1,722
    Likes Received:
    830
    massive thanks
     
    rysim abd, Corti and svictor like this.
  17. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    Here is a quick look at the new config window.

    New widget control tab & config dialog:

    Here you can config everything about widget, no longer need to editing JSON files. Click Apply button will immediately update changes to widget. Click Reset button will reset all setting of this widget to default, though you still need to click either Apply or Save button to apply changes, or click Cancel to discard changes.
    widget_tab.png

    And new "color text entry box" let you preview color changes directly, where you can easily set a new color by double clicking on the color entry box to open color dialog. The new GUI also supports alpha channel for color: the lower the alpha value, the less opacity the color has, 0 alpha value will make color invisible.
    color_set.png

    New module control tab & config dialog:
    Here you can config all data modules which are important for providing data to widgets.
    module_tab.png

    New preset tab & file operation context menu:
    Here you can create, duplicate, rename, delete presets.
    preset_tab.png

    New global display units config dialog:
    Here you can change display units globally, and they will immediately take effect when you clicked save button.
    display_units.png
     
  18. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    936
    Likes Received:
    6,381
    v2.0.1 - Hotfix
    DL: https://github.com/s-victor/TinyPedal/releases/tag/v2.0.1

    While trying solve the data interruption issue (when players join and leave server), it reintroduced data freeze issue in v2.0.0.
    For this hotfix I have reverted code back to eariler version for now. Will try find a better solution later. Sorry for any inconvenience.
     
    Last edited: May 10, 2023
    datasting, yashiman, TJones and 5 others like this.
  19. Bernat

    Bernat Registered

    Joined:
    Jun 15, 2020
    Messages:
    757
    Likes Received:
    585
    Big update, impressive. And you have included Linux compatibility changes too. Thanks!

    That's a lot of work for one individual. Please, take care of yourself and sleep well. ;)
     
    Corti and svictor like this.
  20. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,485
    Likes Received:
    4,399
    Fighter Pilot with Tiny Pedal displayed on the HUD.
    [​IMG]

    Tiny Pedal Pilot ejecting after getting snookered by an enemy while READING ALL THE DATA available from Tiny Pedal.
    [​IMG]
    Holy Smokes! Quite the extensive rewrite. Thanks!
     
    svictor, ebeninca and Corti like this.

Share This Page