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

Top work. I sincerely recommend to support Nibo's work. His software is polished and works flawlessly. In addition, the support is immediate.

Thanks again!
 
Just updated to latest version but getting this error when trying to launch for the first time.

8Amyha1.jpg


Something went wrong...

Code:
Traceback (most recent call last):
  File "D:/web2py_2.14.6/applications/r2la\compiled\controllers.default.index.py", line 249, in index
  File "D:\web2py_2.14.6/applications/r2la/modules\la_core.py", line 240, in import_logs
  File "C:\Log_AnalyzerV2.058.24\web2py\gluon\packages\dal\pydal\base.py", line 920, in __getattr__
    return self.lazy_define_table(tablename, *fields, **args)
  File "C:\Log_AnalyzerV2.058.24\web2py\gluon\packages\dal\pydal\base.py", line 873, in lazy_define_table
    polymodel=polymodel)
  File "C:\Log_AnalyzerV2.058.24\web2py\gluon\packages\dal\pydal\adapters\base.py", line 482, in create_table
    self.create_sequence_and_triggers(query, table)
  File "C:\Log_AnalyzerV2.058.24\web2py\gluon\packages\dal\pydal\adapters\base.py", line 1369, in create_sequence_and_triggers
    self.execute(query)
  File "C:\Log_AnalyzerV2.058.24\web2py\gluon\packages\dal\pydal\adapters\base.py", line 1388, in execute
    return self.log_execute(*a, **b)
  File "C:\Log_AnalyzerV2.058.24\web2py\gluon\packages\dal\pydal\adapters\base.py", line 1382, in log_execute
    ret = self.get_cursor().execute(command, *a[1:], **b)
OperationalError: database is locked
 
I confirm Toca's error. I have followed the steps:

Upgrading to newer version of r2la
You can not just rewrite old r2la files with new ones because every new version can have different database structure. You need to start new version "from scratch". You can import your championships/DEDI competitions from older version into new one.

How to start using new version of r2la:
1. Good rule is - do not remove your old version of r2la until your are sure
that you imported your data to new version and its running correctly.
2. For DEDI mode - go to Options page in your old version and export your
competitions database (if you run competitions). Press "Export hotlap competitions" button,
it will create r2la_competitions.json file in r2la folder.
3. Download new version of r2la.
4. Unzip new version "rF2 Log Analyzer ver. 2.x" folder somewhere on your PC or dedicated server.
5. Copy r2la_settings.json (and r2la_competitions.json for DEDI) from old version folder to a new version folder you just unzipped.
6. Run new version of r2la and make sure it found rFactor2 and started OK.
7. Go to Options page and press "Import track associations and championships" (and
"Import hotlap competitions" for DEDI mode).

But I'm having the following issue:

2019-10-06-15-49-49-Window.png
 
Ok, lets be very specific to find out what its going on.
TOCA2FREAK, please tell me at what point exactly do you have this error? Is it when you select some log in Results Viewer? Is it the same if you select any other logs? If it is one log, sent it to me.
Also try launching r2la differently. If you used r2la.bat, now try starting by rF2 Log Analyzer ver. 2.058.24\web2py\web2py.exe and vice versa.
I hope you didn't delete your 2.058.23 version and can use that for now. Here is the link to 2.058.23 if needed.
UPD. Reading your error message, it looks like its was during r2la first time import of log files after first form submission? If yes, that's strange, I didn't change anything there... Maybe you have some really big log files, like the ones near a GB that were created with some rFactor2 builds weeks ago (but then it was fixed by S397).

ECAR_Tracks, error in the screen you posted is not the same as TOCA posted. Do you have this error with all logs or only that one log? It looks to me like a problem with some driver name in xml (driver with empty name). If its just one or several logs from sessions with similar mod, send that logs to me, I will look at them.
 
Last edited:
Good morning,

Great piece of software, adds enormously to the game!

Quick question. Is there any way of outputting (capturing) the max speed of each car as shown in the live timing screen? Where is this stored in the logs (if anywhere?) or is it a live element of the timing? Would like to capture max speed per lap or max speed per session, if possible, of all the cars to highlight any speed deficits.

Thank you for any help.
Steve.
 
intweb, unfortunately, no (except maybe taking a screenshot of LiveTiming page). XML reports do not contain max speed info. Live shared memory stream from plugin that I use for LIveTiming contains speed data, but it is in no way connected to xml report files. Therefore LiveTiming in r2la is separate module that can only display info live.
 
Ok, lets be very specific to find out what its going on.
TOCA2FREAK, please tell me at what point exactly do you have this error? Is it when you select some log in Results Viewer? Is it the same if you select any other logs? If it is one log, sent it to me.
Also try launching r2la differently. If you used r2la.bat, now try starting by rF2 Log Analyzer ver. 2.058.24\web2py\web2py.exe and vice versa.
I hope you didn't delete your 2.058.23 version and can use that for now. Here is the link to 2.058.23 if needed.
UPD. Reading your error message, it looks like its was during r2la first time import of log files after first form submission? If yes, that's strange, I didn't change anything there... Maybe you have some really big log files, like the ones near a GB that were created with some rFactor2 builds weeks ago (but then it was fixed by S397).

ECAR_Tracks, error in the screen you posted is not the same as TOCA posted. Do you have this error with all logs or only that one log? It looks to me like a problem with some driver name in xml (driver with empty name). If its just one or several logs from sessions with similar mod, send that logs to me, I will look at them.
Okay I have fixed my issue. It was due to the very large result files that rFactor 2 was creating a few weeks back so all is good now thanks. ;)
 
ECAR_Tracks, error in the screen you posted is not the same as TOCA posted. Do you have this error with all logs or only that one log? It looks to me like a problem with some driver name in xml (driver with empty name). If its just one or several logs from sessions with similar mod, send that logs to me, I will look at them.

Actually the error appears instantly when I open the http://127.0.0.1:8000/default in my browser.
I'm investigating here.
 
ECAR_Tracks, if that's the one that is on your screenshot, then, yes, it would appear on /default, because automatically the top log in the list it Results Viewer is opened, there is a driver with no name in it and it shows error. Now try clicking all other logs one by one, they should not show an error.
 
Yes Nibo, I can confirm it's something happening with the first result file (and few more) it looks like I've used some bugged car in those practises which has no name or something like that. Create other logs last night and apparently worked fine.

Thanks for support! It's working.
 
intweb, unfortunately, no (except maybe taking a screenshot of LiveTiming page). XML reports do not contain max speed info. Live shared memory stream from plugin that I use for LIveTiming contains speed data, but it is in no way connected to xml report files. Therefore LiveTiming in r2la is separate module that can only display info live.

Understood, thanks Nibo.
 
This may have already been covered, so a link to a reply would be great. Does rF2LA even have to run on the PC hosting the race, or can it run on a client PC? If it does need to run on the host, what files need to be transferred between non-DEDI PC's in case someone is unable to host a race in a championship so that the scoring remains accurate? Just the race and quali XML files? Thanks in advance.
 
Yes, you can run r2la on one PC and copy some race and qual xml logs from other PC to your logs directory on 1st PC. Then press "refresh" in r2la.
r2la does not need to run on PC hosting a race necessarily, its just more convenient.
 
Yes, you can run r2la on one PC and copy some race and qual xml logs from other PC to your logs directory on 1st PC. Then press "refresh" in r2la.
r2la does not need to run on PC hosting a race necessarily, its just more convenient.
Excellent! Thank you, Nibo!
 
it keeps telling me my pathway is wrong when trying to start program ive been over it a hundred times and it still tells me does not exist.
pathway.jpg
 
Last edited:
ok I shut everything down and started over and now it works was getting incorrect pathway or does not exist before this time it started right up.
 
Back
Top