The online racing simulator
Searching in All forums
(136 results)
smith
S2 licensed
Ahh, I think I understand where my problem is - I equated all racers which got any type of penalty to disqualified ones. It's not good for sure, and will be corrected.
Last edited by smith, .
smith
S2 licensed
Quote from Pinto_PT :Smith, a bug report, look at this output:

AS Club Stats

The last driver did not finish at 19th position, in game it shows 13th place as it's on lfs world

LFS World Result

That 30s penalty there is making the diference for lfs stats i think.

Yep, he was penalised for something, thus he is moved down the grid. Looks like penalty info for the player was received in race finish packet, but of course it can be some bug too.

Can you watch the replay and tell me if he's got any penalty throughout the race progress and whether he completed this penalty?
smith
S2 licensed
Quote from flyby3d :Any chance to make Stats! compatible also with qualify and practice replays?
It should basically log all laps completed by anyone that connects and than output the stats regarding "best lap", "best splits", "best possible lap" and "average lap"... in a format similar to the one already used for races

Probably it's possible, but I don't consider it as some useful feauture. Main program's aim is to analyse multiplayer (more than one player) races to compare racers perfomance, and there is not much of interest in hotlap or single player actions for me in terms of extracted statistical data...
Quote from flyby3d :
Another interesting feature would be the possibility to add some custom fields to the output of the report without having to add them manually.
It might be very useful for uses in leagues to make automated reports and add info like points gained and other league-specific infos

Uhm, yeah, some kind of templating definitely would be cool in theory, although I doubt anyone except a couple of people (including you) really needs it
smith
S2 licensed
Oh, I just remembered I have something you might need - http://lfsclub.mediagate.ru/temp/quali.rar
Basically that's a skeleton of insim program (with tiny bit of its own logic, which can be easily removed). All you need is to add your own packet handling blocks to UdpInSim.cpp / ReadUDPSocket() function. You just need to make sure not to remove sending of verification packets.
smith
S2 licensed
t1ger,
my program has nothing fancy within its insim interaction section. In fact, it's based on Scawen's insim demo, mentioned by you above, and practically nothing was changed in insim interaction part. Frankly speaking, LFSControl is a quite good basis to start from.

I wrote stats using C, but today I have a feeling I should've started with C#

Also, there are a couple of insim libraries by messiah and sdether which make insim programming way more convinient, maybe you should check them in LFS Programmers subsection of this forum.

If you still have any difficulties in any of the above possibilities, make a thread in LFS Programmers, you won't be left without the answer.
smith
S2 licensed
Wrong graphs in Krutch's replay should look properly now with new graph version.
smith
S2 licensed
Quote from finnerss :I get some strange "packet error".

I'd like to see what "packet error" message is looking like exactly. Meanwhile, try this startup parameters:
stats.exe 127.0.0.1 64999 65000 "" dedi
replace 127.0.0.1 with your ip address, of course.

I tested this right now, and it works. One interesting thing is that even if you have a password set in your server, you don't have to specify it in stats command parameters, but this is unrelated to your problem

P.S. You are using last stats version, right?
smith
S2 licensed
I seriously doubt dedigui/dedictrl is some kind of official dedicated server control program.
Dump any frontends and configure server by yourself by editing default configuration file, setup.cfg.
smith
S2 licensed
It will be ok with demo replays/demo servers as long as there are no joins of players during race progress. In case of one or more joins stats are going to be screwed.
smith
S2 licensed
Very strange situation, because in lap times data file Nauta's race time is smaller than Kok's, what is correct.
Only racers positions are wrong, and I can think of only one situation when it can happen - Nauta's lap time packet arrived later than his rival's one.
Anyhow I plan to get rid of positions data file and I'm going to rewrite positions graph so it shows position changes at every split instead of every lap.
Last edited by smith, .
smith
S2 licensed
Quote from Krutch :Smith, a bug report, look at this output:
NL.LFS BL1 Server 2.
As you can see André Nauta finished 2nd, but at the lap by lap chart, he is given 3rd.
Also, why am I not getting an anverage lap (also on other outputs)?

Regarding avg lap, there was some early 1.277 version with such bug.
About missed position, I just don't know. I need more input info (*.tsv files at least). Who actually finished 2nd? Looks like we have photo finish there
Last edited by smith, .
smith
S2 licensed
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.
smith
S2 licensed
Sorry, I don't have time to find where your error is. It's faster for me to make example from the scratch. Here is the deviation calculation for CeRT| Jet.
stats result: http://lfsclub.mediagate.ru/te ... 09.05_200032_results.html
mpr replay: http://lfsclub.mediagate.ru/te ... /liga_3_1_1_52_sprint.mpr

my calculations attached in excel format file, and they repeat stats data.
smith
S2 licensed
Nothing fancy is done with the number. Check your calculations again and make sure you are excluding first lap beforehand.
smith
S2 licensed
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.

smith
S2 licensed
Click multiplayer/start new game and delete admin password in according field.
smith
S2 licensed
Nothing is written only when there is no at least one _finished_ racer - check if this condition triggers...
smith
S2 licensed
It should be ok, but I have to mention it wasn't tested or supported in code.
smith
S2 licensed
You want to have them bigger?

edit: now you can.
Last edited by smith, .
smith
S2 licensed
Don't worry about next cups, they are not planned at the moment.
smith
S2 licensed
If you read champ starting notes, you'll probably notice that this one was going fun and experimental cup from the very start. Main reason to launch it was to help to fight boredom and gather club veterans again... You should re-look at it from that point of view.
You probably noticed that I tried to make each champ different from previous, more or less, as something new is always welcomed and helps to sustain interest. That was a motto of a-spec racing club.
smith
S2 licensed
D'oh! Darned typo... Download it again.
smith
S2 licensed
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.
smith
S2 licensed
Sure thing, let's hope everybody will make it to the finish line.
smith
S2 licensed
nice pics!
regarding server issue, lets kick DevilEST, we're using his server exclusively
FGED GREDG RDFGDR GSFDG