s-victor / TinyPedal

Free and Open Source telemetry overlay application for racing simulation
GNU General Public License v3.0
75 stars 8 forks source link

Radar Improvement #40

Closed helloimhana123 closed 9 months ago

helloimhana123 commented 9 months ago

Hello. Thank you for making this program it's very nice.

A problem I have with the radar is that it shows other ppl position when in solo qualifying. Is there any chance of making it so they don't show up?

s-victor commented 9 months ago

Hi, there is an option in radar widget that auto hide radar when there is no nearby vehicle in radar range (this option is enabled by default). If it doesn't hide, double check or reset radar setting. Also, make sure spectate mode (spectate tab in main window) is not enabled.

Note, there is another widget called Navigation Widget, which is very similar to Radar that shows both cars & zoomed track map. Those are two different widget and not to be confused:

map

helloimhana123 commented 9 months ago

Hello, sorry for the late response.

Yes I definitely mean the radar widget. I will explain better what I mean.

If you select "Private Qualifying" in settings, like this:

2023_12_09_ 21 53 07

This means other drivers won't be visible to you when qualifying. However, the radar will still be active.

2023_12_09_ 21 57 42

It looks like this. As you can see, the radar shows that there's a car in front of you, even though there isn't. That's why I'm suggesting that TinyPedal radar should not have cars showing up when "Private Qualifying" is enabled.

s-victor commented 9 months ago

Hi, thanks for the explain. I understand this situation, this issue was actually mentioned a few times before.

The problem is that, private qualify is a special case where the game only hides opponent vehicles (and no collision) from the player who is driving. It does not remove or hide any data from API output(overlay info is fully based on API's output), and game API does not provide any data that determines whether it is private qualify session or not. So there is no native or "normal method" to automatically detect private qualify.

I know there is one possible but "hacky" method to get such info from other source, but it will not be reliable and there are other issues with it. So currently there is no viable way to improve it. However if I find new way to get around I'll let you know.

helloimhana123 commented 9 months ago

Aww that is too bad. Hope RF2 adds it at some point!! 😁

s-victor commented 3 months ago

hi, just want to inform you that auto-hide Radar in private qualifying was now implemented in https://github.com/s-victor/TinyPedal/commit/ff3b63ccf5ec77743c96146e04dd5ce6e8833bf4 by accessing game's Rest API data.

helloimhana123 commented 3 months ago

Very nice!! Haven't driven rfactor/LMU in a bit but hope to get back to it soon. Then I'll give it a try 😎