The online racing simulator
Searching in All forums
(136 results)
smith
S2 licensed
Quote from donzeze :When do you think you have finished changing the output file so i can add split times?

Uh, sorry, but can you explain what did you really mean by this?
smith
S2 licensed
They're not documented, if you want you can make one...
All available words are used in supplied template files.
smith
S2 licensed
I'm not sure what's wrong. It could be a custom tsv files naming you maybe did.
I modified the program to give more detailed error information, also graph sources are included in distro file, so you can dig the reason by yourself.
smith
S2 licensed
yeah, sorry, my bad. had no time to check and re-check things before posting. archive updated.
smith
S2 licensed
Sigh. whats the SprDemoCheck value in stats.xml?
smith
S2 licensed
bluejudas,
I made some changes to templating system, which I believe allow to satisfy your needs. However this new version is more like testing and experimental one, it may be broken in some unexpected cases.

Regarding car names info, stats doesn't change anything in car names received from lfs, there is no such table inside.
I guess you can find names by yourself by running a couple races with AI on different cars.
smith
S2 licensed
Quote from bluejudas :What is the name of the "loopvariable" that gives me split times for every single lap for each driver(eg BestPossibleLap, FirstLap , and so on).

it's not possible to output tsv via template at the moment, but I might make it possible in future sometime. Until then, it's not a big deal for you to pick desired info from two files, come on, it's nothing more than just another ten lines of source code.
smith
S2 licensed
Quote from bluejudas :Is it possible for LFS Stats to combine the csv and tsv file into one file.

I checked that forum thread and I didnt find a good reason or any proposal of combining all generated files into a single one.

Remember that you can edit the template file to get whatever output you need. Templating is very basic, but it does its job for exporting of tabular information.

Regarding pit info request, its not possible to retrieve at the moment.

One last thing, I do not recommend using relay server mode, its still broken.
smith
S2 licensed
tsv is what you need.
first line is a number of splits, other lines are each split times of every racer.

function of time conversion:

MSHT *int_MSHT(int &t)
{
MSHT *time = new MSHT;
time->Thousandths=0;
time->Hundredths=(t/100 - (t/100/100)*100);
time->Minutes=(t/10000)/60;
time->Seconds=(t/10000) % 60;

return time;
}

smith
S2 licensed
donzeze, I plan to rewrite output generating code to make it more flexible, and your request will be possible then.

Regarding version number, d'oh! Its been to much hassle lately...
smith
S2 licensed
aaaaaaaargh.
fixed
smith
S2 licensed
You probably need something like this (rename to *.tpl and replace default file)
smith
S2 licensed
It was a really stupid typo, a couple of commas missing literally. Fixed.
smith
S2 licensed
Which car/track combo causes the error? does race lap count influence it?
smith
S2 licensed
GrandlHuber, in short: no it is not possible.
smith
S2 licensed
Oliv76000, There are no means of getting a server name from replay file via insim, so you have to fill it by yourself.
If server or event names are somewhat constant, you can predefine them by editing a stock template file.
smith
S2 licensed
Damnit
re-uploaded with the same file name.
smith
S2 licensed
Krutch, germanpio - try the updated version.
smith
S2 licensed
really weird. I did a quick check on some new patch replay, and it seemed to work ok.
I need replay of your race to dig into the problem.
smith
S2 licensed
paXton, have you tried defining relay server as ip address, not host name?
change RelayServerHostName from isrelay.liveforspeed.net to 213.40.196.93.
I've got a faint suspicion there's something wrong with hostname resolving...
smith
S2 licensed
Nevertheless, the most correct answer is given by JogDive.
smith
S2 licensed
sweeney, I'm not completely understood your problem, but maybe setting DedicatedMode to true in stats.xml can help to avoid restarting stats.exe after race restart...
smith
S2 licensed
anibarro, I just checked that replay, and it works ok on my system. I think the problem is in your not very fast pc. lfs heavily calculates something on mpr replay start, and if that time is big enough (cant say exact numbers), like in your case with 20 players, insim connection is lost.
Solution? Ask someone with high spec cpu to make stats.
smith
S2 licensed
Quote from Dygear :Have you, or do you plan to, give out the source for this tool?
I would love to see how you did all of this. And I would like to learn how to decode all of the packets that LFS sends me.
BTW, awsome work on this, I use the CSV files that this program spews on in LFS : F1 stats. Thank you very much.

Thanks for your good words!
I'm not going to publish complete stats source since it's way too ugly. But, considering you weren't first person asking for some insim programming code, I decided to post something like typical insim barebone app (based on old Scawen's example, but adopted to S2 with relay server support). To add your flavour, all you have to do is just add your logic to main program loop.
This one is a C/C++ source with MSVS.Net 2005 project file, and I hope it doesnt need any more explaining itself.
smith
S2 licensed
GerG, it should be fixed now (binary operators in one function were messed up), give me a sign if it is still screwed.

Bad thing is that finish position changes due to disqualification don't affect other tables and graphs, I know it's not accurate, but we'll have to live with it
FGED GREDG RDFGDR GSFDG