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

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

  1. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Tip for table images: add shadow in app.css to .table_img
    Code:
    .table_img {
        height: 20px;
        filter: drop-shadow(2px 2px 2px #444);
    }
     
  2. sepi

    sepi Registered

    Joined:
    Jun 29, 2024
    Messages:
    9
    Likes Received:
    5
    No, I start it normally, but it doesn't appear in the new version. Any setting I need to do?
     

    Attached Files:

  3. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Is this happening when you select any log file in selector or just this one? Is there an error message in cmd window after you select log file in Results Viewer?

    Other possible reason for this - r2la did not find you driver name in selected log file. In other words, your driver name in log file is not the same as a driver name r2la found in rF2 files on first start.

    When I look at your screenshot of v.2.2.000, I see by html elements styling, that it uses old app.css file. I don't quite understand how it is possible. You did not just put new version files over old ones? That is not how you should update r2la. You only can unzip new version to new separate folder and start it from scratch. Read included help files in archive for more on this.
    Or if you did this correctly, press CTRL+F5 in browser, to reload css files in browser cache.

    You can look yourself or send me your rF2 Log Analyzer ver. 2.2.000-x64\web2py\r2la_start_form.log file by PM. It will be more clear what player name r2la is searching for.
     
    Last edited: Jul 13, 2024
    sepi likes this.
  4. Matthew Overton

    Matthew Overton Registered

    Joined:
    May 6, 2017
    Messages:
    48
    Likes Received:
    18
    @Nibo - that is a major update. Look forward to getting it onto our server and play with the new functionality
     
  5. Matthew Overton

    Matthew Overton Registered

    Joined:
    May 6, 2017
    Messages:
    48
    Likes Received:
    18
    @Nibo, this is great. Question: are the finishing positions in the championship aggregated stats by class or overall race order?
     
    ebeninca likes this.
  6. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Matthew Overton, by overall race order. I would potentially need to make even bigger update to make championship classes proper separate entities for stuff like this (I mean, they are separate right now for class championship tables. But stuff like class stats, class best laps, etc, will require rewriting a lot of core code from scratch). Don't know if I ever do that.
     
    Last edited: Jul 14, 2024
  7. Nick9320

    Nick9320 Registered

    Joined:
    Feb 8, 2012
    Messages:
    497
    Likes Received:
    3,075
    That's a great update of the best tool for rF2 league hosts! Many thanks for your contribution @Nibo!
     
    Mauro likes this.
  8. Chris M

    Chris M Registered

    Joined:
    Aug 25, 2021
    Messages:
    27
    Likes Received:
    11
    I've managed to get SSL working with my installation- I was wondering what steps others may have taken to force https? or redirect port 80 to 443 ?

    Edit: Instead of force https redirect- to keep myself going I've configured to have both 80 and 443 interfaces open with the following command in the livetiming.bat

    Code:
    start web2py.exe -a '' --interfaces "x.x.x.x:80;x.x.x.x:443:privkey.key:cert.crt"

    obviously replacing x.x.x.x with your r2la server ip address and privkey.key and cert.crt with the filename of your private key and certificate file you upload into your web2py folder.
     
    Last edited: Jul 19, 2024
    Nibo likes this.
  9. Matthew Overton

    Matthew Overton Registered

    Joined:
    May 6, 2017
    Messages:
    48
    Likes Received:
    18
    Got it, thanks.

    We have a series for which drivers are not always in one car with 'swaps', but can also be in races with each in their own car. Right now the drivers are not each receiving points in a 'swap' race, which is obviously affecting the standings. Can this capability be added to the app?
     
  10. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Practically no. This is the hardest part to do, theoretically might be possible after total rewrite of core r2la parts. For champs with swaps team tables work fine, but drivers only take last driver name that drove that car for points in championship table. You can use manual points correction to add some missing points for drivers like this.
     
  11. Matthew Overton

    Matthew Overton Registered

    Joined:
    May 6, 2017
    Messages:
    48
    Likes Received:
    18
    Thanks for the quick reply Nibo.
     
  12. gangstorm

    gangstorm Registered

    Joined:
    Mar 21, 2019
    Messages:
    51
    Likes Received:
    49
    Hello Nibo, thanks for the help. Can you please specify how can we add the points to the drivers with manual override while they aren't listed for that round? Previously, we got around that because drivers that were in the session but didn't finish the race were listed as "DNS". So we could apply points to these entries. But right now with everything being listed as one entry under only 1 driver (the one who finished) points of those drivers have disappeared - even though they were manually overwritten. Again only the last driver got the points, the rest got a blank box:

    View attachment upload_2024-7-21_17-2-45.png

    Thanks for any help or suggestions you may have.
     
  13. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    gangstorm, ufff... I did not think of that when I removed them, I thought it was not looking right and removed them. Still, that is only drivers that were driving in Qualy and not finishing stint in the race. There are also drivers that are not driving in Qualy and not driving last stint - they were not in the tables before and not in the tables now.

    I would not want to roll back to including Qualy drivers as DNS, honestly. I think for now your option is to manually add "fake" <driver> blocks with that driver names to the end of Race xml files. Probably best to do this to "cloned" files, to not mess up the original.
    Insert <driver> block(s) like this at the end of the file, after last </driver> tag and before </Race> tag:
    Code:
    <Driver>
    <Name>New Driver Name</Name>
    <Connected>1</Connected>
    <VehName>copy value from team car here</VehName>
    <Category>copy value from team car here</Category>
    <CarType>copy value from team car here</CarType>
    <CarClass>copy value from team car here</CarClass>
    <CarNumber>copy value from team car here</CarNumber>
    <TeamName>copy value from team car here</TeamName>
    <isPlayer>0</isPlayer>
    <ServerScored>1</ServerScored>
    <GridPos>number of drivers in log file +1 (this new one)</GridPos>
    <Position>number of drivers in log file +1 (this new one)</Position>
    <Laps>0</Laps>
    <Pitstops>0</Pitstops>
    <FinishStatus>DNF</FinishStatus>
    <DNFReason>DNF</DNFReason>
    </Driver>
    Copy values from driver's team car where I marked. GridPos and Position must be integer, number of drivers in log +1, i.e. if you have 17 drivers and adding this one, then his GridPos and Position must be 18.

    I will look if I can implement adding new drivers to cloned log files in r2la's editor. But I can not promise.
     
  14. gangstorm

    gangstorm Registered

    Joined:
    Mar 21, 2019
    Messages:
    51
    Likes Received:
    49
    Thank you VERY much Nibo! That worked.. a bit of PITA to do, but at least it's a workaround for this season! Thanks again!!
     
    Corti and Nibo like this.
  15. Ezemsn

    Ezemsn Registered

    Joined:
    May 8, 2017
    Messages:
    1
    Likes Received:
    0
    Is it possible to also activate the sector times on the records screen, as happens in live timing?
    Thank you very much for your work Nibo
     
  16. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    There is no option for that. I would need to save sector times to db for every record and I thought before that would be not optimal for performance. Maybe I'll add it in the future, but can not promise.
     
    Nick9320 likes this.
  17. SirJumbo

    SirJumbo Registered

    Joined:
    Jul 30, 2024
    Messages:
    4
    Likes Received:
    0
    Hi @Nibo , I've got a new PC today and tried using the newest version of Log Analyzer since the new update came out. However the program closes immediately with command prompt flashing up for a split second (screenshot below, was tough to get ). The version from my old PC (2.058.39) works fine. Maybe you have an idea on what's going on?
    And thank you for the work!
     

    Attached Files:

  18. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    That's web2py framework error. Looks like it happens when it scans for available IPs before showing UI setup window. Maybe something is unusual in your PC or network config. Maybe some non standard characters somewhere, on one forum somebody wrote about characters in PC name, but I don't know.

    You can try to bypass that setup window. Open your r2la.bat file in text editor and make it look like this:
    Code:
    cd web2py
    start web2py.exe -a password -i 127.0.0.1 -p 8000
    Save and run r2la.bat.

    All web2py command line options are listed here - http://web2py.com/books/default/chapter/29/04/the-core?search=command+line#Command-line-options
     
  19. Emyr27

    Emyr27 Registered

    Joined:
    Jul 2, 2022
    Messages:
    19
    Likes Received:
    4
    Hi Nibo !
    Great update, thanks again for your work ! :)

    2 little questions :
    - Custom images : great addition ! I use it to insert flags for the drivers, it looks good ! However, custom images do not show in exported html standings. I use "export championship tables only".

    - How can I make the total points scored by drivers/teams (overall and in classes) show in bold characters ? I would like this figure to stand out from other columns.
     
  20. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Unfortunately I found no way (no technical solution) to embed custom images to exported html file reports.

    Add this lines to rF2 Log Analyzer ver. 2.2.000-x64\web2py\applications\r2la\static\css\app.css file:
    Code:
    .driver_standings td:nth-last-child(1) {
        font-weight: 700;
    }
    
    .team_standings td:nth-last-child(1) {
        font-weight: 700;
    }
    
    Where number in "nth-last-child(1)" is index of column that you want to apply to, counting from right to left. So for last column its 1, for second to last its 2, etc.
    Press CTRL+F5 in browser after that to pick up new app.css file.

    UPD. Corrected code part. Now should work.
     
    Last edited: Jul 30, 2024

Share This Page