The online racing simulator
LFS stats!
(465 posts, closed, started )
#51 - GerG
Quote from smith :The problem is that lfs sends is_res finish packet for the player only when his race position is finalised...

Thanx for the explanation Man, i will tell everyone not to spectate Thank you!
very great tool, thank you very much

just a little question, the event field, do you have to edit that manually
or is there some command to write in it?

TIA
You have to edit html manually, it's not automated at the moment. I'd put the server name there, if only I could retrieve it via insim.
With the new 1.277 the average laptime isn't working anymore.
D'oh! Darned typo... Download it again.
Thanks.
How about user-specified image size when creating the graphs?
You want to have them bigger?

edit: now you can.
Thank you
What about driver's change? What does it do?
It should be ok, but I have to mention it wasn't tested or supported in code.
I've got a problem with the program. It doesnt output any files, nothing.

Program version is 1.277 with LFS S2 P2.

Connecting goes well, I see the split and laps times from every player, replay ends, program exits, but nothring else.
I tried this with a few races, same result.
Nothing is written only when there is no at least one _finished_ racer - check if this condition triggers...
I get this error while trying to replay a MPR. When I execute stats.exe, LFS says:

InSim: Admin password does not match
InSim: Packet Received before ISI packet

And then closes.

I can´t remember setting any password in LFS...
Click multiplayer/start new game and delete admin password in according field.
Hello smith.

I tried to obtain the stats with your program's latest version , but I had a strange result:

- The fastest lap is wrong.
- The "laps led" and related stuff are wrong.
- The graphs of positions/laps are wrong.

You can have a look at http://www.mapachitos.com/ftp/misc/race_sas-21-09-2005.mpr

Thanks for a great tool!!!!
First, thanks for your friendly feedback.
Now, let's get to the answers.
1. This program won't work for demo mpr replays like your one
2. When (or if) you'll have the opportunity to use it for S2 replays, make yourself acquainted with the FAQ:

Q: Some of the players are marked as DNF in results table, although they
completed the whole race. What's wrong?
A: Replay has ended until every single player finished their final laps, so
no correct results information is available.
A: Some players disconnected or entered spectate mode before their final position
in ingame race results table was decided, thus, no race result packet was
sent for them by LFS, and they will be marked as DNF.

Very good ! Nice work :up:
Thank you smith!!
Bug in Lap Times Stability?
Thanks for the great prog, Smith!

I have one question though... is there a bug in the lap time stability calculations or have I misunderstood something? We drove two races on the same track with the following lap times

Edit:
No need for times anymore as the program was fixed
Nothing fancy is done with the number. Check your calculations again and make sure you are excluding first lap beforehand.
I checked and recheked my calculations but still I get the same numbers. Even without calculating anything you can clearly see that in race one there is much more deviation on the times than in race two, and still it says that deviation for race one is lower...

Edit: See attached txt-file for some calculations.
Edit: Removed attachment
Ok, I checked your xls file, but when calculating deviation, why are you using formula =SQRT(B18/(4-1)) when the number of laps was 5 and the first one was already excluded? But thats not the problem, those numbers are still quite wrong.

------

Edit:
Here's an easier example. From the stats you posted we see that

16.[NRG]Mark Novys (Mark Novys) 2.45 +2.22 5

now, if we input his laptimes to xls file you provided

935500
828700
793900
887500
975800

we get

Deviation= 79557,29068 0 7,96

----
ps. Do you have some variables overflowing in your code, as it seems that the numbers are off if the (Avg-LapTime)^2 is large?
Quote from Neuron :Ok, I checked your xls file, but when calculating deviation, why are you using formula =SQRT(B18/(4-1)) when the number of laps was 5 and the first one was already excluded?

Because this is what the formula requires, we must divide by n-1.

Quote from Neuron :Do you have some variables overflowing in your code, as it seems that the numbers are off if the (Avg-LapTime)^2 is large?

Hmm.. you're right. Value was overflowing at one of the calculation steps. Thanks for pointing that out, it should work now.
This thread is closed

LFS stats!
(465 posts, closed, started )
FGED GREDG RDFGDR GSFDG