Custom Championship tool (SP & MP races) (creates HTML reports)

Discussion in 'Community Workshop' started by pixeljetstream, Jan 29, 2015.

  1. SkywalkerTh

    SkywalkerTh New Member

    Joined:
    Sep 28, 2021
    Ratings:
    +0 / 0 / -0
    Thank you for the effort. Unfortunately I get now further or other error messages displayed.

    ... -addrace ...
    luajit.exe: r3e-open-championship.lua:901: attempt to index local 'sess' (a nil value)
    stack traceback:
    r3e-open-championship.lua:901: in function 'procRace'
    r3e-open-championship.lua:929: in function 'ParseResults'
    r3e-open-championship.lua:1308: in function 'UpdateHistory'
    r3e-open-championship.lua:1349: in main chunk
    [C]: at 0x004020e0
     

    Attached Files:

  2. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +416 / 0 / -0
    • Like Like x 1
  3. SkywalkerTh

    SkywalkerTh New Member

    Joined:
    Sep 28, 2021
    Ratings:
    +0 / 0 / -0
    Thank you for the effort. Unfortunately I get now further or other error messages displayed.

    ... -addrace ...
    race parsed 134 Judd V8 4138430169d4aab47449f133524ce839 2021/9/30 15:29:40
    luajit.exe: r3e-open-championship.lua:1290: attempt to index local 'f' (a nil value)
    stack traceback:
    r3e-open-championship.lua:1290: in function 'AppendStats'
    r3e-open-championship.lua:1319: in function 'UpdateHistory'
    r3e-open-championship.lua:1350: in main chunk
    [C]: at 0x004020e0
     
  4. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +416 / 0 / -0
    gna sorry left the debug cmdline in. try once more...
     
  5. SkywalkerTh

    SkywalkerTh New Member

    Joined:
    Sep 28, 2021
    Ratings:
    +0 / 0 / -0
    You are the best, thank you so much for this. It looks very good now and seems to work as well. Thanks again for your support and especially for your quick response time.
     
  6. Christopher John Pace

    Christopher John Pace New Member

    Joined:
    May 4, 2021
    Ratings:
    +0 / 0 / -0
    It doesn’t work for me. The race results are flipped. Last is first, first is last and so on. It only gets what I do right and fastest laps and who got them. Even the race time is wrong.
     
  7. ShortyBuzzGER

    ShortyBuzzGER Well-Known Member Beta tester

    Joined:
    Sep 4, 2020
    Ratings:
    +54 / 0 / -0
    Good evening together.
    I tried to use the little program today and it seems it is not really working (maybe it is simple user error).
    I did a 15 minutes race while the programm was running. After the race i clicked "check now" and the command line told me that "race file not openable".
    Also, when i click "open result directory" the program opens its own results folder. I don't know if that should happen.
    But yeah, the program seems to be unable to read the file. For whatever reason.
    Maybe pixeljetstream or another one knows what is going on.
    Thanks in advance.
     
  8. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +416 / 0 / -0
    @Christopher John Pace

    the reverse sorting ideally should be fixed now, that was a regression introduced around October.
    R3E has different ways of logging the results, the results.txt files do not have a position field, whilst xml/json do, and when taking those into account I screwed up the other logic when position is missing. There is also a setting in the config.lua file that has the old logic.
     
    Last edited: Nov 21, 2021
  9. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +416 / 0 / -0
    the "open result directory" is expected to be a subdirectory of the app itself, where the html files normally are stored.

    If the filename printed in the UI is correct and the file exists and can be opened by say a text editor, yet the app brings an error message, then there is not much I can do. The program literally uses operating system functions to open the content of that file. could be an access rights issue or something that prevents this. Don't know.

    You could attempt copying the file somewhere else and see if it can be loaded from there (setting the new location path manually in the config.lua file). Or use the commandline option to invoke the html generator from commandline. See the readme for that.
     
  10. Christopher John Pace

    Christopher John Pace New Member

    Joined:
    May 4, 2021
    Ratings:
    +0 / 0 / -0
    Thank you kind sir. Question... How do I delete old race results from ever showing up again?...And, where should I place this file? In the R3E install folder?
     
  11. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +416 / 0 / -0
    I don't quite understand your question. What file do you refer to? The results sorting problem was only on html generation. The actual result database files are still fine, so no changes required (other than regenerate the html)
     
  12. Christopher John Pace

    Christopher John Pace New Member

    Joined:
    May 4, 2021
    Ratings:
    +0 / 0 / -0
    Like where is the best place to put the tool and it’s files? I put it in…. Documents-MyGames-SimBin. Is that okay?
    And my other question was how do I delete a past race from the standings? Just delete the last results and do a race then click rebuild html?
     
  13. Frank Alexandre da Silva

    Frank Alexandre da Silva New Member

    Joined:
    Dec 8, 2015
    Ratings:
    +2 / 0 / -0
    How can i get the html with only the last race results? I am using the bat file because json is from dedicated server.
     
  14. Cato Larsen

    Cato Larsen New Member

    Joined:
    Jun 23, 2015
    Ratings:
    +0 / 0 / -0
    upload_2022-2-22_9-27-14.png
    When running this on my dedicated server machine, this is what I get when "passing" the json file over myleague.bat.
    I can not get this to work at all on the dedi box as it is only running the Dedicated server, not the game.
    However, it seems to work fine if you use it on the machine where your game is installed.
     
  15. usteck29

    usteck29 New Member

    Joined:
    Feb 12, 2022
    Ratings:
    +0 / 0 / -0
    The file "myleague.bat" is executed in the wrong path. You can change this, if you edit the path in the file "myleague.bat" with the „cd“ command.
     
  16. Cato Larsen

    Cato Larsen New Member

    Joined:
    Jun 23, 2015
    Ratings:
    +0 / 0 / -0
    Ok. I will look.
     
  17. Stecki

    Stecki New Member

    Joined:
    Feb 3, 2021
    Ratings:
    +0 / 0 / -0
    for example:
    cd \Downloads\RaceRoom\r3e-open-championship-master
    luajit.exe r3e-open-championship.lua -addrace ./results/%~n0.lua %1 -makehtml ./results/%~n0.lua ./results/%~n0.html
    start "" ./results/%~n0.html
     
  18. Cato Larsen

    Cato Larsen New Member

    Joined:
    Jun 23, 2015
    Ratings:
    +0 / 0 / -0
    Rgr that. Thanks. I will do that.
     
  19. Stecki

    Stecki New Member

    Joined:
    Feb 3, 2021
    Ratings:
    +0 / 0 / -0
    Hello pixeljetstream,
    this is a great tool.
    Unfortunately I have a problem with non starter.
    As soon as a new racer joins us, he is listed first in all races where he did not start.
    How can I prevent this error?

    thanks in advance
     

    Attached Files:

  20. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +416 / 0 / -0
    @Stecki maybe send me the appropriate database lua file / attach it here and I can have a look on the weekend