The online racing simulator
#1 - VoiD
LFS World: Aston, faster than WR but not the WR-holder
Checked my stats today and found a bug.

Three times I´m faster as the wr in lfsworld, "/w wr" ingame it´s the same:

FXO/AS4: pb 2:56.710, WR-diff -0:00.680
RB4/AS5r: pb 3:32.400, WR-diff -0:00.620
FXO/AS5r: pb 3:23.990, WR-diff -0:00.900
The wr's are hotlap wr's, not online pb world records. Those will never exist.

The comparison PB vs WR is just for racers to see how well they're doing.
#3 - VoiD
:doh: Next time I´ll download these wr´s to see it´s a *.spr.

But´s that´s oranges and apples. IMO you can´t compare "unrealistic" hotlapped wr´s with wr´s done in the "real" world of racing. Quite confusing...
i made the mouse-over say 'Hotlap WR' now.

I like the comparison there though (and i think others too), to make it easy to see a if a pb is good or far from it or somewhere in between. Indeed they can never be compared 1:1, but it's better than nothing. There's nothing else to compare to.
#5 - VoiD
Thx for the replies and the new mouse-over-feature Victor.

Maybe another relative-time behind the current pb will do the job....

I couldn´t care less about hotlapping, but lfsworld is your baby, I´m just a poor user.
When someone is under the WR the comparison is bugged.

FO8 @ SO2 (Sprint 1) - WR 43.21

Hawku has done 42.22 online and LFS World says "WR-diff -0:00.". Evans has done 42.36 online and LFS World says "WR-diff -0:00.150".

FBM @ AS3 (National) - WR 1:55.55

MarcG has done 1:55.44 online and LFS World says "WR-diff -0:00.890".

If you add 1 second to the comparison times they are almost correct, although Hawku's time with FO8 @ SO2 is totally bugged. I don't know what happens when someone is 1 second or more below the WR time.

Edit: Hawku just did 42.06 which is 1.15 seconds below the WR time, LFS World now says "WR-diff -0:99.850".

All you should be doing to compare the times is:

1) Convert both times to milliseconds
2) Subtract the WR time from the PB time
3) Convert the new number to mm:ss.th format

It seems that your function is over-complicating things.
Quote from joshdifabio :
All you should be doing to compare the times is:

1) Convert both times to milliseconds
2) Subtract the WR time from the PB time
3) Convert the new number to mm:ss.th format

It seems that your function is over-complicating things.

Really?

Or it was something else. It's fixed now.
There's still a small bug I think. If a driver has an online PB which is equal to the WR, then the box which usually shows the difference to the WR is completely blank.

Examples

Hawku - FBM @ AS2
memph1s - XRR @ AS3

FGED GREDG RDFGDR GSFDG