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

Discussion in 'Other' started by Nibo, Apr 15, 2015.

  1. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    Here is your problem:
    nocartype.png
    r2la is built on assumption that every car has CarType, and that car in your custom mod does not have CarType. You can either correct mod files for the future or add some value for empty CarType tag in existing xml files in some text editor, save changes and "refresh" r2la.
     
  2. redcic

    redcic Registered

    Joined:
    Feb 13, 2017
    Messages:
    3
    Likes Received:
    0
    Great, it works fine now. Thanks a lot Nibo!
     
  3. Miguel Cardoso

    Miguel Cardoso Registered

    Joined:
    Aug 3, 2013
    Messages:
    5
    Likes Received:
    0
    I install the new version, but when i chose records apears this "
    Traceback (most recent call last):
    File "D:/web2py_2.14.6/applications/r2la\compiled\controllers.tracks.index.py", line 22, in index
    AttributeError: 'NoneType' object has no attribute 'id'"
     
  4. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    That might be when you have no log files with times at all. Do you have log files with lap times on Results Viewer page? Did "Records" page work before? Are you updating from old r2la version?
     
  5. Miguel Cardoso

    Miguel Cardoso Registered

    Joined:
    Aug 3, 2013
    Messages:
    5
    Likes Received:
    0
    Yes for three questions.
     
  6. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
  7. Miguel Cardoso

    Miguel Cardoso Registered

    Joined:
    Aug 3, 2013
    Messages:
    5
    Likes Received:
    0
    I didnt enter by dedi mode in the begining. How can i export the championship now?
     
  8. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    I'm not sure if I understand a question correctly. Exporting championship to static html or json is the same for non-DEDI and DEDI versions. Just press an "Export standings" button on championship page.

    If you mean, that you did not setup r2la in DEDI mode at first, created a championship and now want to host it, then you can do the same as when you updating r2la - import your championship in new instance of r2la. Unzip new instance of r2la, copy r2la_settings.json from non-DEDI r2la to new r2la folder, setup DEDI mode in first form, then at options page press "Import track associations and championships".
    Here you can read step-by-step instructions - https://steamcommunity.com/sharedfiles/filedetails/?id=553607744 - "Upgrading to newer version of r2la".
     
  9. durielk

    durielk Registered

    Joined:
    Dec 19, 2016
    Messages:
    15
    Likes Received:
    1
    Just installed base program rF2 Log Analyzer ver. 2.058.21 and opened with chrome and get "This site can’t provide a secure connection".
    I'm not a programmer but can you tell me how to get running. The window cmd opened and a bunch of stuff loads into it when I try and access https://127.0.0.1:8000/
     
  10. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
  11. durielk

    durielk Registered

    Joined:
    Dec 19, 2016
    Messages:
    15
    Likes Received:
    1
    You da man, I can look at my stats now. Great!
     
  12. Nobkins

    Nobkins Registered

    Joined:
    Jan 23, 2019
    Messages:
    22
    Likes Received:
    0
    Is it possible for people not logged into to access the JSON championship export? I have written a little app to work out ballast allocation for races based on previous race results. I want it to get the JSON, parse it and do the calculations.

    Ideally if I could access it with a URL without being logged in that would be perfect.
     
  13. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    Do you need to access it from other machine over net? If its the same machine, you could access /championships/export_standings_json.json?cid=1 without logging-in, if you use non-DEDI version.You can also access that link without login even from other machine if you host non-DEDI version.

    Maybe jsonp at championships/export_standings_jsonp?cid=*championship id* will work for you? It does not require logging-in. But if you really need I can remove admin block from championships/export_standings_json.json even on DEDI version (its not ideal, but I can do it).
     
  14. Nobkins

    Nobkins Registered

    Joined:
    Jan 23, 2019
    Messages:
    22
    Likes Received:
    0
    I am using dedi verison but yes it is on same machine.

    However neither method works. I get diverted to a logon page for both.
     
  15. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    Nobkins, I re-uploaded updated archive to last version link. Login removed from championships/export_standings_json. You can just substitute one file - rF2 Log Analyzer ver. 2.058.21\web2py\applications\r2la\compiled\controllers.championships.export_standings_json.pyc and restart r2la.
     
  16. Felipe Granado

    Felipe Granado Registered

    Joined:
    Aug 29, 2013
    Messages:
    26
    Likes Received:
    4
    @Nibo I have a little problem when I load a result in a Championship

    Internal Error / Invalid Function (admin/default).

    I edited this result applying 40s in a driver. Some driver names have a training space (space after lastname).

    You have an idea?
     
    Last edited: May 18, 2019
  17. Nobkins

    Nobkins Registered

    Joined:
    Jan 23, 2019
    Messages:
    22
    Likes Received:
    0
    Works perfectly the json export without admin login. Automatic ballast allocation based on a Championship from the log analyser is working :D

    Thank you!
     
  18. Bernardo

    Bernardo Registered

    Joined:
    May 17, 2017
    Messages:
    43
    Likes Received:
    66
    @Nibo I have the same problem as @Miguel Cardoso. When I try to see the records it shows me the following:

    Traceback (most recent call last):
    File "D: /web2py_2.14.6/applications/r2la \ compiled \ controllers.tracks.index.py", line 22, in index
    AttributeError: 'NoneType' object has no attribute 'id'

    It also does not show me the best times in: "results viewer / race results".
     

    Attached Files:

  19. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    Felipe Granado, send me both edited and original non-edited xml files, and your r2la_settings.json file.

    Bernardo, I have the same explanation: this happens when you don't have any human-set lap times in your log files. How many log files do you have in your Results Viewer? How many of them have player lap times in them? Did Records page ever worked for you before or you are using r2la for the first time? What sim are you using, Automobilista? Send me some logs that have player lap times that are visible in Results Viewer, but not on Records page.
     
  20. Bernardo

    Bernardo Registered

    Joined:
    May 17, 2017
    Messages:
    43
    Likes Received:
    66
    Thanks for the quick reply. I use rFactor 2. And I have been using log analyzer a couple of months ago. I have 180 files in "results viewer". Several of them with human lap times. I think the record page worked for me before the last update. I already tried installing the previous version (2.058.20) and it did not work. I also tried a clean installation and it did not work either. Sending screenshots of the result viewer page. I tried to upload the xml files, but the forum does not allow. How can I send them to you? And, again, thanks.
     

    Attached Files:

    • rf2.png
      rf2.png
      File size:
      794 KB
      Views:
      29

Share This Page