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.
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.
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.
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.
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.
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...
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...
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.
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.
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