SimHub icon indicating copy to clipboard operation
SimHub copied to clipboard

Broken Leaderboard Functions (AMS2 related?)

Open FullPace opened this issue 11 months ago • 1 comments

Hi!

I get really weird data from some leaderboard / driverfunctions.

I'm trying to show gaps in a multiclass race showing only cars in my class. I'm in a GT3, the cars in ahead and behind are also GT3s

driverclassposition([position]) = 20 (works) driverclassposition([position]+1) = 6 driverclassposition([position]-1) = 4

these cars are in another class (GT1).

The behaviour is the same for the other driver functions drivershortname(driverclassposition([position-1]) also shows the name of the 4th place, not the 19th.

I also tried this: driverrelativedistancetoplayer(driverclassposition(repeatindex([Position]-1) which made no difference, it returned the result of another class 1.2km away, for the car that was right in front of me.

On my leaderboard driverclassposition(repeatindex([Position]-1) shows also position 4 of the other class not position 19.

Here's a AMS2 replay for you to test: https://drive.google.com/file/d/1iS_WraiwzB_st6XVp1qATLm1wLw8Oj2x/view?usp=sharing

TIA

Cheers ✌

FullPace avatar Jan 19 '25 20:01 FullPace

Do you have a clue yet what's going on? Single class races work all fine but multiclass is still very messy

FullPace avatar Feb 14 '25 21:02 FullPace