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

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

  1. Emyr27

    Emyr27 Registered

    Joined:
    Jul 2, 2022
    Messages:
    19
    Likes Received:
    4
    Thanks for your reply !

    Too bad for the custom images not being exported :( Let's hope you can find a way at some point !

    For the points sum in bold :
    I use the points sum column on the left side (sorry, I did not mention it), so the code you provided actually makes the last result of the season show in bold. Having different number of races from one season to another, I cannot use a code counting from right, as the figure will change. How can I write it counting from left ?
     
  2. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    "nth-last-child" - for right to left,
    "nth-child" - for left to right.

    Try:
    Code:
    .driver_standings td:nth-child(3) {
        font-weight: 700;
    }
    
    .team_standings td:nth-child(3) {
        font-weight: 700;
    }
     
  3. Emyr27

    Emyr27 Registered

    Joined:
    Jul 2, 2022
    Messages:
    19
    Likes Received:
    4
    That did the trick using number 4 instead of 3.
    The custom images column seems to count, even in team standings where I do not use the images.

    Thanks !
     
    Nibo likes this.
  4. SirJumbo

    SirJumbo Registered

    Joined:
    Jul 30, 2024
    Messages:
    4
    Likes Received:
    0
    I have tried running the bat file with the changes like you suggested. This time the same error appears, but only after I open 127.0.0.1:8000 in my browser. I can't think of anything unusual in my PC setup since I'm using English as Win11 language. Bummer. View attachment upload_2024-7-30_18-45-36.png
     
  5. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    SirJumbo, I've added a print statement right before error. Let's see what value causes this error, maybe it will lead to something.
    Download this file https://www.mediafire.com/file/1tp3wpq03w0o2bx/main.zip/file
    Unzip and overwrite this file in your r2la folder rF2 Log Analyzer ver. 2.2.000-x64\web2py\lib\gluon\main.py
    Start web2py and look in cmd window for line that starts with "fqdn:". Copy it here for me.
     
    buzz hornet likes this.
  6. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Re-uploaded r2la archive to latest link with minor changes:
    • on "championship manage teams/classes" page teams and classes are now sorted in pop-up modal window.
    • added versioning to app.css file.
     
    buzz hornet and yashiman like this.
  7. SirJumbo

    SirJumbo Registered

    Joined:
    Jul 30, 2024
    Messages:
    4
    Likes Received:
    0
    Command prompt window showed this line:
    Code:
    fqdn: (PECET..home)
    "PECET" is the name I've set for my computer so I'm guessing it's something to do with it
     
  8. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Its the two dots .. that are the problem. Unless you added one or more dots to your Computer Name yourself, here they say that it's ISP provider that can add that to computer name, check this thread - https://forum.djangoproject.com/t/e...error-label-empty-or-too-long/20568/21?page=2

    I did not find how to correct this at the moment and I know little on the topic of network configs. Check your computer name or contact your ISP or somebody who knows your network configuration or why pythons socket.getfqdn() function returns this value. There should not be more than 1 consecutive dot in that value as far as I understand. This value on my PC does not have anything else, just my computer name.

    I guess you had not this error on previous version of r2la, because it used Python2 and now in latest version with Python3 getfqdn() function changed somehow.
     
  9. SirJumbo

    SirJumbo Registered

    Joined:
    Jul 30, 2024
    Messages:
    4
    Likes Received:
    0
    Yep, you're right, it's something with my network.

    I've tested the program without any connection, ethernet to router, wifi to router and via USB tethering with my phone. It only worked without any connection and with my phone's internet. Though I find it weird why it works on the phone and not on my router's internet. They're both from the same ISP and should work in relatively the same way (I live in the countryside, so the router uses a sim card to access mobile internet just like my phone).

    I only use r2la locally on my PC so perhaps there's a way to block internet connection to web2py?
     
    Last edited: Jul 31, 2024
  10. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Sent you a PM.
     
  11. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    1,436
    Likes Received:
    978
    Hi Nibo, hope you are doing well, since the last update(2.2.000) it's been noted that there is a difference to how the hotlap comps are displaying, especially after being archived. Previously archived ones still showed laps, now they don't.

    Currently the archived screen looks like this; (note the 0 results for top 3, all after update)

    [​IMG]

    Clicking the top one gives;
    [​IMG]

    Click one of the others that are prior to the update gives;
    [​IMG]

    OR~Kris, FYI
     
  12. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Updated to rF2 Log Analyzer ver. 2.2.001-x64
    • Fixed archived Competitions not showing results.
    • On "Championship manage teams/classes" page teams and classes are now sorted in pop-up modal window.
    • Added versioning to app.css file.

    If you already have archived competitions that do not show results, then after update try un-archiving them temporarily, they must pick up results then.
     
  13. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    1,436
    Likes Received:
    978
    Thanks Nibo, you da man, for me I didn’t have to do the un-archiving/archiving step, it picked up results straight off the bat.
     
    DJCruicky likes this.
  14. Vitor Paulino

    Vitor Paulino Registered

    Joined:
    Aug 23, 2024
    Messages:
    2
    Likes Received:
    0
  15. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Vitor Paulino, check if there are any errors in rF2 Log Analyzer ver. x\web2py\r2la_live_timing.log file or in r2la cmd window when you are launching r2la Live Timing and copy them here. Are you using rF1 or rF2?

    If server names are displayed (although duplicated for some reason), that means that rFactorSharedMemoryMapDedi.dll plugin is working and r2la found its data stream in shared memory. But why there is no data for cars I don't know... Try different track/cars combinations, preferably not mods, but default in-game content.

    Re-check your r2la Live Timing setup using build-in r2la Help page (http://127.0.0.1:8000/help) - Live Timing and Live Timing troubleshooting articles.

    Maybe try rF2 Log Analyzer ver. 2.058.45 (Last Python2 version)
     
    Vitor Paulino likes this.
  16. Vitor Paulino

    Vitor Paulino Registered

    Joined:
    Aug 23, 2024
    Messages:
    2
    Likes Received:
    0
    It worked, based on version 2.058.45 that you recommended! I was using version 2.1.014. Thanks.
     
  17. Tobi Ogunsanwo

    Tobi Ogunsanwo Registered

    Joined:
    Aug 30, 2024
    Messages:
    1
    Likes Received:
    0
    View attachment upload_2024-8-30_0-21-29.png
    Is this function necessary (name.split)? The error seems to come from comparing the edited value to the original name in the dictionary (finish_positions) which still has the full name and number.

    P.S. I fixed it after reading some older debug conversations. Went into the Xml file and removed the "#1667" attached to the name and it worked.
     
    Last edited: Aug 30, 2024
  18. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    That's necessary. I used "#" for delimiter in a dictionary key that contains driver name. I made an assumption that "#" symbol would never be in driver name. Error appears because driver name had that symbol.
    I changed delimiter to "##" now. So you can use "#" in driver names (but not "##"). Re-uploaded latest version archive with this change - rF2 Log Analyzer ver. 2.2.001-x64
     
    Tobi Ogunsanwo likes this.
  19. Justifier

    Justifier Registered

    Joined:
    Apr 23, 2018
    Messages:
    46
    Likes Received:
    22
    Hi @Nibo, thanks for all your great work. I have a strange one for you. R2la seems to lose driver names and times during practice sessions if the drivers leave and the remaining driver votes to 'restart weekend'. All the drivers who have left don't have any times recorded at all even though if I look at the XML file it looks like all the names and info is in there. It is like the XML loses critical info or something if there is a 'restart weekend'. Have you seen this before? Basically we had about 5 drivers attend a practice session and 4 left and then the last driver voted to restart the weekend which then saw r2la only record his laps. This is bad as these practice sessions transfer into our fastest laps competitions that I set up for each week. Any ideas on how to fix? Cloning the XML and editing only brings up the one driver too. Bit of a strange one....
     
  20. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,311
    Likes Received:
    1,041
    Justifier, that is a known old bug/feature of rFactor. Not r2la problem. r2la needs all <driver> tag data to be present in xml for all drivers and in that situation rFactor does not put that data in xml file. You can re-check this, if <driver> data with <lap> time data is present for all drivers, but not visible in r2la, send that log(s) to me.
    I know that is inconvenient, but can not do anything. Probably the solution is to not use "restart weekend" and to allow for session to end it self.
     
    Justifier likes this.

Share This Page