[REL] rFactor2 Log Analyzer ver. 2. With offline and league Championship Manager

I don't understand why it's not working... Maybe try adding "!important" to that selector:
Code:
{background-color: #f08c00 !important}
Try selecting by class name .uk-badge-class-Div_I-II
Nibo, I have done both and have also changed the colour code in the default classes - nothing is changing anywhere in any of the championships after I did that. Is it possible that rf2la is referencing another file somewhere?
 
OK, now thoroughly confused. It shows properly now when logging in as a user, but on the server machine it is still showing incorrectly. Connected to the sessions perhaps or the browser cache? In any event, I won't attempt to break what is now fixed.
 
Most of the time, to pick up app.css changes I have to press CTRL+F5 on a r2la page in browser to reload all dependencies. Otherwise browser uses old cached version of a file. Maybe that's the reason for you too.
 
Hi @Nibo,
I have a question regarding the "Records" page in rf2la - How are you storing the data displayed in Records page for each track?
Is it a simple sql table? It seems like you are not using "CATEGORY" field from xml results as key field when storing the lap records.

From what i can tell, it looks like currently it only stores fastest lap using distinct combination of following key/unique fields:
  • Track name
  • Driver name
  • Car class
That causes a problem if different mods use the same "Car Class" name.
I believe you need to also include "CAR CATEGORY" field into the unique combination of records to store.
Here is an example of what is happening:

See below screenshot of some dummy laps i created in excel.
  • Row 2-8 = 7 sample laps from 3 different mods (see "Category" field) - but all 3 mods are all using the same displayed "Car Class" in their .veh files (this is because the in game car class would be same even though they are different mods)
  • Row 13 shows what the current records table in rf2la is storing/showing. It only shows one row for "Hypercar" car class incorrectly
  • Row 18-20 are what it SHOULD show in records page if "CATEGORY" field is included in your unique identifier. Just because these 3 mods are using the same value for "CAR CLASS" does not mean they are same cars from physics/mod perspective. So the lap records for each track/driver/mod need to be stored separately in this records table, even if they use the same "CAR CLASS" value.
  • Then if the user wants to see only the records for a specific mod "CATEGORY" they can use the filters to narrow it down. But the default "show all records" filter should be showing what you see in rows 18-20
View attachment upload_2024-5-23_9-24-23.png


Right now, because you are not including "CAR CATEGORY", when we try to filter the track records by Mod name, it does not show all the records correctly. Because you are not storing all the laps that we ran for each different mod that uses the same "Hypercar" car class.
View attachment upload_2024-5-23_9-13-14.png
 
Last edited:
Nice analyse. There is already an issue on records linked to the skin used.
Only one skin is stored in sessions. If you run multiple cars in one session, only one car is saved.

I think the "key" of sets in records should be expanded, to not only use name of drivers, but also Category and Description of skin for example.
We already disccussed on that point.

Only @Nibo can really answer your question,
but it looks like there is a complexity to change that "key" identifying sets/records to a more complex one.
At least that is what i understood.
 
Morbo, track records are saved for every unique car_identifier which is set for every unique Category+CarType found in logs (which can be called pre-identifier). car_identifier is a string concatenation of Category, CarType, CarClass and TeamName tag values with option to set any combination of them. By default only CarType is used for every new Category+CarType pre-identifier string r2la encounters. For some combinations of pre-identifiers (Category+CarType) I hardcoded car_identifier parameters. Here is how it looks partially:
Code:
if player['Category'] in ["ASR Formula OWC 90", "ASR Formula OWC 91", "ASR Formula OWC 92", "ASR Formula OWC 93", "ASR Formula OWC 94", "ASR Formula OWC 95", "ASR Formula OWC 96", "F1RFT 2013", 'Trackday Multiplayer', 'Trackday', 'Hillclimb', 'Custom']:
    CategoryBool = False
    CarTypeBool = True
    CarClassBool = False
    TeamNameBool = True
elif player['Category'] == "Chevrolet":
    if player['CarType'] == "Corvette ALMS GT2 2009":
        CategoryBool = True
        CarTypeBool = False
        CarClassBool = True
        TeamNameBool = False
    elif player['CarType'] == "Corvette C6":
        CategoryBool = True
        CarTypeBool = False
        CarClassBool = False
        TeamNameBool = True

So, combination of values for car_identifier can be set dynamically. For Category="Chevrolet" and CarType="Corvette C6" it will be Category+TeamName.

You can also change this combination for every pre-identifier yourself on http://127.0.0.1:8000/cars page. Or on Track Records page, hoover over Car name and press drop down menu item "Change identifier ..".

In your case, I think you should select Category and CarType as identifiers for your cars.
 

Attachments

Last edited:
Ah I see, we can set the true/false field combos ourselves for the defined variable car_identifier in the rf2la cars page.
Okay, i'll get in touch with our rf2la admin and we'll try and set the definitions and see if that works.

Thanks
 
hello,
in first @Nibo very good job for this tool :)

i don't know if it's normal or issue but i have add 2 directories (1st -> LMU, 2nd -> Rf2) :
In "Results viewer" page, i see all data for both directory.
But in "Records" page, i see only LMU directory information.

and other point, LMU events in Results viewer, i see Offline every time, even if some event has been done online.

thanks.
 
Last edited:
If you are using non-Dedi version of r2la and your in-game name is different in LMU and rF2, then you'll see only records from first one. Player name in-game must be the same (check for trailing white space).

If you are using Dedi version of r2la and see no records from log files from additional directory, but seeing session reports in Results Viewer, then I don't know... See if there is any error message in cmd window right now or at the moment when you are adding additional directory with log files on Options page. If there are no errors, try to start new separate instance of r2la, maybe add games in reverse order (main - rF2, additional LMU).

Server name will be "Offline" if ServerName tag in xml file is empty. Looks like for some reason ServerName tag in your LMU online logs is empty.
 
There's an issue in qualification table when driver gain a position after race countdown.

Here's an example :

5 LMP2|6 Marco Moisan 1:32.125
6 LMP2|5 JF Champagne 1:32.065

Sorting not working but in vehicle tag the position has been swapped.
 
Not sure if I can do something if it is rFactor that is putting wrong order in xml. But you can send this xml file to me, I will look.
 
Do you mean an option for rFactor to not put tags in <Stream> in xml? I'm not aware of such option.
r2la does not log all stream tags (<Score>, <Sector> and some others are ignored) and has limit to log no more then 100 contacts with Immovable per driver for <Incident> tags, because log files can sometimes have thousands of them.
 
Hi Nibo!
How is it going?

I detected one issue in the Qual Results inside Champioship Manager.
A driver made the second best lap in qualy, but did only 2 laps. It is shown correctly in the Results, but in the Qual Results inside Championship Manager, it shows him in 12th position. It seems that the number of laps are being considered. All drivers with 3 laps are above him even with worse laptime.
Here's an image of what I found.
View attachment upload_2024-6-11_16-5-34.png

Thanks!
 
rFactor sets <Position> for this driver at 12 in xml. I don't know a reason and if its a bug or a feature. But I must trust <position> tag for Qual Session included in Race Report, or else other "corner cases" will display wrong.

For future update I changed ordering of that Qual Results table to lap time. You will see correct order in that table. But that is a half-measure. Internally for r2la that driver will still count at position 12. If he's position was really 1st, for example, he would not receive bonus points for Pole Position from championship points system. To fix this correctly I would need to re-think and re-write a lot of other stuff, and I don't know if I will do that. And I don't really know if I should fix this further, maybe rF2 has reasons to set position like that...
 
Back
Top