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

So changes were done to core uikit css. Then it has to be a lot of work and I don't think it can be easily adopted for personalization by others. Other then just copying files and same design/colors with them. As I said earlier, to make such changes to design you have to know css very well and make changes to uikit. I don't have much css experience, I just use uikit elements and customize where I can.
 
Keith Carter, every element there needs an explanation:
1. Site background texture. You can change it by replacing r2la/static/images/nasty_fabric.png file. Keep the name, change png to something different.
2. Top navbar is a complex uikit element. I can tell you how to change its background color, but I can not change all other elements properties, i.e. hoover/press colors, drop-down elements colors, css is to complex for me there. You can change its background color by adding this line to app.css (set your own color value):
Code:
.uk-navbar {background-color: #F0D1FF;}
3. Custom banner div background. You can change it by adding this line to app.css:
Code:
#custom_site_banner > div {background-color: #F0D1FF;}
4. Blue line highlight color in Results Viewer can be changed by finding and changing this existing lines in app.css:
Code:
.log_panel:hover {background-color:#ccf1ff}
.log_panel {cursor:default}
.log_panel_active {background-color:#ccf1ff}
5. Race/qual/practice badges. I added .uk-badge-race .uk-badge-qual .uk-badge-practice classes to app.css just now and re-uploaded r2la archive without version change. Re-download it, install, find and change that values.
6. Session report background. Its pretty complex panel. If you change its background it looks really bad, all tabs and tables there were created around default background color. If you really want, you can change it by adding this line to app.css:
Code:
#report_wrapper .uk-panel {background-color: #F0D1FF;}
There are other report_wrapper ids in code on other pages, so it can break something else. Really I don't recommend changing this and can not make it changeable, because I would need to make all reports design elements to work with other bg colors, that's too much work.

Thanks so much, Nibo!!! That gives me enough customization I was looking for!
 
5. Race/qual/practice badges. I added .uk-badge-race .uk-badge-qual .uk-badge-practice classes to app.css just now and re-uploaded r2la archive without version change. Re-download it, install, find and change that values.

I just went to do this, but I'm getting an error that a "Path is too long" when unzipping it.
 

Attachments

  • err.JPG
    err.JPG
    35.5 KB · Views: 220
I did not change anything in new version about that file. Google says that error can happen when using windows in-build zip to open archives. Try using 7zip to unzip it, it can handle long paths. Or try using other unzip target location with minimal folders in path, like c:/temp.
 
I did not change anything in new version about that file. Google says that error can happen when using windows in-build zip to open archives. Try using 7zip to unzip it, it can handle long paths. Or try using other unzip target location with minimal folders in path, like c:/temp.

Thanks for the suggestion! Got it unzipped and working now. Awesome!
 
Thank you for all your hard work over the years, this is a blessing. I just have one question. Within the live timing section, it is possible the drivers can be highlighted in different colous to represent their class?

Edit: I was also wondering it it is possible to have a live indicator of the current fuel for all ai cars within this section. Is that possible at all?
 
Not possible to change class colors on telemetry page, since live timing module is independent of r2la championships and its classes. It can only show car class name that exists in live game data stream in shared memory, which is not the same.

I think can add fuel column to live timing table, it will be number in percent and will be optional. But I will need to see if this value really exists in data stream for all cars.
 
Not possible to change class colors on telemetry page, since live timing module is independent of r2la championships and its classes. It can only show car class name that exists in live game data stream in shared memory, which is not the same.

I think can add fuel column to live timing table, it will be number in percent and will be optional. But I will need to see if this value really exists in data stream for all cars.

No worries. I have the cars labelled in-game so that I can differentiate easily enough. Regarding the live fuel though, this would genuinely be one of the greatest features if you can add it in! :)
 
As soon as server is running you should see LiveTiming working. No drivers needed. Something is not working for you. Make sure you put plugin dll in correct folder and tuned it on in rF2: check that your rFactor 2\UserData\player\CustomPluginVariables.JSON file has this lines:
Code:
 "rFactor2SharedMemoryMapPlugin64.dll":{
    " Enabled":1,
    "DebugISIInternals":0,
    "DebugOutputLevel":2,
    "DedicatedServerMapGlobally":0,
    "EnableStockCarRulesPlugin":0
  }

Make sure that you start r2la with r2la_live_timing.bat

I do not support telemetry for DEDI version. You can still host your non-DEDI version (start it by rF2 Log Analyzer ver. 2.058.13\web2py\web2py.exe like you do for DEDI) if you really want to show your telemetry to friend.

Hey Nibo,
didnt work for me.. some other tips?
i had copied the "rFactor2SharedMemoryMapPlugin64.dll" to plugin folder and paste the code in the CustomPluginVariables.JSON of every player%.json file for every server instance. restart servers, but the is no livetiming :-(
 
Knut Mattheisen, try this step by step (not all at once).
1. Make sure you (re)installed Runtimes from rFactor 2\Support\Runtimes on your server.
2. After you run r2la_live_timing.bat, you can check rF2 Log Analyzer ver. 2.058.31\web2py\r2la_live_timing.log file, if there is some error there.
3. Make sure DebugOutputLevel variable in rFactor2SharedMemoryMapPlugin64 section in CustomPluginVariables.JSON is set to 2. Start your dedi server, add 1-2 AI, close dedi server. Go to rFactor 2\UserData\Log folder and find RF2SMMP_DebugOutput.txt file. If there is no such file - then rFactor2SharedMemoryMapPlugin64.dll plugin did not even start in rF2 for some reason (one reason can be - Runtimes are not installed, other reason - "Enabled" variable set to 0, or something else preventing plugin from work). If there is a file, open it, there should be no errors and a message like "...Files mapped successfully" in some line.
4. Try to use global memory:
- Turn off r2la and rF2 server.
- Set "DedicatedServerMapGlobally" value to 1 in rFactor 2\UserData\player\CustomPluginVariables.JSON file.
- Set "read_global_memory" value to 1 in rF2 Log Analyzer ver. 2.058.x\web2py\applications\r2la\live_timing_settings.json file.
- Restart r2la and rF2
- If still not working, try to start both r2la_live_timing.bat and rF2 Dedi "as an administrator" (with admin privileges) in windows
- Set both back to 0 if it will not work.
5. If LiveTiming is not working on your server, you at least can try to make it work on you local PC in single player mode, to see if you can make it work at all. Install r2la and rFactor2SharedMemoryMapPlugin64.dll on your PC, set variables in CustomPluginVariables.JSON, as you would on dedi server, but start single player race with some AI and look at LiveTiming page. Make sure that you start r2la with r2la_live_timing.bat file.
 
Hey @Nibo , many thanks for your fast help. LT is working now. What i have done:
+ reinstall runtimes (both)
+ stop & restart rF2 server to check whether the entry is set in CustomPluginVariables.JSON for rFactor2SharedMemoryMapPlugin64 (enabled = 1)
- first time no entry
- second time there was an entry, but with enabled = 0
- after a new restart, entry was set and enabled = 1
+ LiveTiming successfully running :D

So many thanks for this great tool and your quick help!
 
Updated to 2.058.32
  • Added optional AI fuel column to LiveTiming (in liters). Default option is Off. To turn it On, change "show_ai_fuel_data" parameter from 0 to 1 in rF2 Log Analyzer ver. 2.058.x\web2py\applications\r2la\live_timing_settings.json file. Works only for AI cars.
  • Fixed a bug with color of fastest lap time in LiveTiming in race mode.
  • Added "Live Timing troubleshooting" section to Help page.

Fuel is shown in liters and works only for AI cars. Dedicated server does not provide this value for human players in data stream.
 
Updated to 2.058.32
  • Added optional AI fuel column to LiveTiming (in liters). Default option is Off. To turn it On, change "show_ai_fuel_data" parameter from 0 to 1 in rF2 Log Analyzer ver. 2.058.x\web2py\applications\r2la\live_timing_settings.json file. Works only for AI cars.
  • Fixed a bug with color of fastest lap time in LiveTiming in race mode.
  • Added "Live Timing troubleshooting" section to Help page.

Fuel is shown in liters and works only for AI cars. Dedicated server does not provide this value for human players in data stream.

Nibo, thank you so much for putting this together so swiftly, it really is appreciated.
 
Nibo, the live timing feature has been incredibly useful. It is a great 'race control' feature so to speak and I was just wondering, what other information is potentially available to be displayed? For example - is live tyre wear a possiblity, and is there anything else that could also be useful?

I appreciate not everyone will want this but even if it is amendable in the config (similar to the steps outlined for live fuel) it would be a welcomed addition :)
 
I think all parameters that I have on telemetry page should be available for AI in dedicated server stream, but I need to check. But there is no place in live timing table for more columns, I can add tire wear probably, if I will be able to put 4 numbers in one cell. If you need more live AI data I will have to make separate page and table for that (it will probably run from its own .bat file). I don't quite understand for what are you using this? Are you debugging mod AI? What parameters from telemetry do you need for AI?
 
I think all parameters that I have on telemetry page should be available for AI in dedicated server stream, but I need to check. But there is no place in live timing table for more columns, I can add tire wear probably, if I will be able to put 4 numbers in one cell. If you need more live AI data I will have to make separate page and table for that (it will probably run from its own .bat file). I don't quite understand for what are you using this? Are you debugging mod AI? What parameters from telemetry do you need for AI?

Yes, that is correct. I am primarily using your toolsets for debugging purposes, however, I have also been running an offline championship too and being able to see all of the live timing data on my secondary display as sort of a 'race control' feature is really quite something :)

The current 'live timing' section is perfect now with the addition of the live fuel but having the ability to also read live tyre wear on the same column would've been the cherry on the top :) If this tyre wear data cannot be displayed within the same column, is their a possiblity it can be put lower down at all on the same page or would it not look very nice?

As for additional telemetry, I did like the idea of seeing the live average speed and tire temp as well, but I imagine the same restrictions will apply regarding the column.

Thanks again for your all swift responses and incredible hard work!
 
Last edited:
hi, there is a way to recover the times recorded online on my server, but during the session the vote was called to restart and r2la did not save the times on the page.

question number two, even after activating the rFactor2SharedMemoryMapPlugin64 plugin from the json file, after put the .dll file in correct Bin64/Plugins folder, the "live" page keeps giving me No live sessions found.
Bye
 
Back
Top