Hi All, I'm new to rF2 - I did play rF1 years ago, but have only recently dug out the wheel and started again One of the things i've struggled with is being able to see my times per track and car to be able to see what's what. I was pointed towards the All Tracks & Cars.cch data file, but it's a bit of a nightmare to read ! So being a bit of a amateur coder, i've embarked on writing an app that will decode all the data and display it in a nice GUI. The issue I've hit is with the GT3 cars .. in the data file it shows the ClassRecord as just "GT3" I deleted the All Tracks & Cars.cch to start a fresh one, and just drove the Audi R8 GT3, so this was easy to see that the Audi was clearly the ClassRecord holder : [PLAYERTRACKSTAT] TrackName=DPARK_GP TrackFile=C:\Games\Steam_App\steamapps\common\rFactor 2\Installed\Locations\sm_Donington_Park_v1.53\1.53\DPARK_GP ClassRecord="*",31,92.2474,93.2814,92.2474 ClassRecord="GT3",31,92.2474,93.2814,92.2474 CRL="Audi R8 LMS GT3 #01","S8M (Medium)","S8M (Medium)",26109801,4194040572,1479114754 CRQ="Audi R8 LMS GT3 #01","S8M (Medium)","S8M (Medium)",26109786,4244503805,1596555266 CRR="Audi R8 LMS GT3 #01","S8M (Medium)","S8M (Medium)",26109801,4194040572,1479114754 AIParameters="Pace Car",-1.0000,-1.0000,-1.0000,0 AIParameters="GT3",-1.0000,-1.0000,-1.0000,0 So I then did the same track in the McLaren 650S GT3 : [PLAYERTRACKSTAT] TrackName=DPARK_GP TrackFile=C:\GAMES\STEAM_APP\STEAMAPPS\COMMON\RFACTOR 2\INSTALLED\LOCATIONS\SM_DONINGTON_PARK_V1.53\1.53\DPARK_GP ClassRecord="*",53,92.2474,92.9004,92.2474 ClassRecord="GT3",53,92.2474,92.9004,92.2474 CRL="Audi R8 LMS GT3 #01","S8M (Medium)","S8M (Medium)",26109801,4194040572,1478983682 CRQ="McLaren 650S GT3 #0","S8M (Medium)","S8M (Medium)",26109915,4160420859,1378451458 CRR="Audi R8 LMS GT3 #01","S8M (Medium)","S8M (Medium)",26109801,4194040572,1478983682 AIParameters="Pace Car",-1.0000,-1.0000,-1.0000,0 AIParameters="GT3",100.0000,0.1619,0.0762,0 I just want to confirm that my assumption is correct .. CRL = ClassRecord(fastest)Lap ? CRQ = fastest lap in Qualy ? CRR = fastest lap in Race ? AFAIK the ClassRecord="*" is LAPS, BEST, QUALIFYING, RACE I also assume that the only the time for the fastest car is recorded. Also does anyone know what the ,26109915,4160420859,1378451458 numbers represent ? Many thanks for any help. Damob9k
Ok, just taking a guess by the figures, I would say 26109915 is minutes since 12am 01/01/1970 (time/date the lap was set), the following two figures could be integer representations of the upgrades bitfields for the car but I'm not sure on that. I'm assuming ClassRecord="*" means the best overall lap (any session), qualifying lap, and race lap for any car, while the ClassRecord="xyz" shows those fastest laps for just that class - I haven't looked at these files before but I'm assuming there's one entry per track, so you end up with many different classes listed and the "*" is just a stored 'best of' value.
Thanks Lazza, I've just done some testing and yes you're right. ClassRecord="*" does indeed show the best time overall, best qualifying lap & best race time for any car driven. And the CRL , CRQ & CRR displays the actual car that these times were recorded in. Cool .. I can now write my code to show this, i'm only really interested in what was the fastest lap and in which car, so that should make life easier. Cheers
If you're using Python then @hoover wrote a program to parse these files, it would be a good starting point. I made some changes and put them on https://github.com/TonyWhitley/rFactor2-Rank
Hi Seven Smiles, I'm writing it in PowerShell with a .Net GUI as this is what i've used most for doing stuff at work. I've done a little C# too but find it a bit harder to grasp, once i've got this working I will see if I can convert it to C# so it can run standalone. Thanks for the link to Hoover's program, I'll take a look at this, but suspect it's possible more complex that what i'm trying to achieve. I've nearly done with the changes needed as per my above post, so will post up a screen shot of what i've made Cheers.
Well, it's done ! no bells or whistles but does what i wanted - shows all my lap times for each track - single player mode only