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

Yes, its only for non-DEDI version. DEDI version should not show AI records. Where are you seeing them and how do they look like?
 
Most probably the field <isPlayer> (that is used by r2la to determine if car is human or AI) for that drivers is 1. Usually for AI cars its 0, when you race offline with AI for example. I see they have an AI assist visible, but that is not reliable way to determine if its human or AI, because human players can use AI assist too.
Quickest way for you to remove that records is to edit xml file in code editor and set <isPlayer> field to 0 for all that AI drivers, save file changes, then refresh r2la.
 
Thank you. That took care of it.

I allow our league members to add AI if they want to practice with traffic. I wonder if the AI that are added by non-admins always get tagged as the "AI assist" instead of actual AI.
 
Pit number column already exists for race session. Number of laps in current stint or current stint number would need to be tracked for every car by some calculations, since such values do not exist in rF2 data stream. Unfortunately, I'm in no position right now to try to implement this (and not to break Live Timing code) as it looks not very straight forward, maybe in some better times...
 
Hi,
I made a clone from a race result to edit some things, then made a second clone of the same race result to do some testing.
But after doing the second clone, the app was not available anymore. Now I just receive "Internal error" with a ticket link.
In the web2py command line, I see no errors, only on browser.

Is this recoverable?

Thanks!
 
It suddenly booted up, the first clone copy disappeared, and now there's only the second one.
Not a major problem.

I guess it is naming the second clone with the same name as the first one. Maybe the clones should be numbered so that we can have more than one clone of a race.
 
I guess it is naming the second clone with the same name as the first one.

Yes, that's what's happening. I never thought about multiple clones... For now, before creating 2nd clone, you can change the file name of 1st clone manually in windows (maybe adding some number before last "E" symbol, "E" must be last for all clones), so that it will not be overwritten. Refresh r2la and create new clone.
Not sure if I will implement numerating clones automatically.
 
Yes, that's what's happening. I never thought about multiple clones... For now, before creating 2nd clone, you can change the file name of 1st clone manually in windows (maybe adding some number before last "E" symbol, "E" must be last for all clones), so that it will not be overwritten. Refresh r2la and create new clone.
Not sure if I will implement numerating clones automatically.

That's okay since we have a workaround if needed. I just needed this to test some things, and I hope I won't need it again.
That's why I came across the issue and shared my findings to help others.

Thank you, Nibo.
 
In another topic, are you planning to migrate to py4web anytime soon?

Yet in another topic, what do you think about publishing the source code so we can contribute to the project with PRs?
 
Last edited:
I was thinking about moving to py4web before, but now I just have no ability to do this. Life changed, I can not dedicate time to r2la anymore. Also py4web does not have some features that web2py has, LiveTiming and some other stuff will be hard or impossible to do in one package like it is now.

I might upload source, but I have no decision on that for now.
 
Hi Nibo,
I'm trying to get live timing to work but I'm struggling to figure why it's pointing to the wrong drive.
I have it up and running on our server, it werks fine except for the live timing, I've gone thru troubleshooting and found this...
So it's installed on C:\
"LiveTiming process started...
Traceback (most recent call last):
File "D:\web2py_2.14.6/applications/r2la/private\live_timing.py", line 109, in <module>
WindowsError: [Error 5] Access is denied"

So how to make it point to C drive

SS
 
Drive letter in error most probably has nothing to do with your machine. That's the path that was on my PC at the time of compiling that version of r2la. It looks like you are using some older version of r2la. Code in that line (109) is accessing shared memory. So windows is denying access or r2la process to shared memory. You can try to start r2la as administrator (right click "Run as administrator"), maybe that will help.
 
Hmm so right click, run as admin give me
"Windows cannot find 'web2py.exe make sure you typed the name", blah blah.
In the dos window the command is
"C:\Windows\system32.start web2py.exe -S r2la -M -R applications/r2la/private/live_timing.pyc"
The system cannot find the file web2py.exe

So I have it installed at C:\Server\rf2 Log Analyzer ver.2.058.35
Should it be installed on the root of C:\ ?

SS
 
Back
Top