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

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

  1. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +378 / 0 / -0
    videos is not my thing, but I will add a "server" section to the ui, so that you can add files to a database with a classic file dialog. Making the software easier/comfortable to use is the kind of work I am not exactly after in freetime projects ;)
     
  2. Squanchy

    Squanchy Well-Known Member

    Joined:
    Nov 21, 2016
    Ratings:
    +66 / 0 / -0
    I'm sorry to bother you, pixeljetstream, but I can't get the app to append results. Even though its the same class and field size, with the same drivers (I checked) it always creates separate result files. I tried the command line to force-append it but it threw an exception (Is this the right commnd- -addrace dataBaseFile raceresultsFile?)

    ---------------------------
    Uncaught lua script exception
    ---------------------------
    r3e-open-championship.luar3e-open-championship.lua:1187: assertion failed!
    stack traceback:
    [string "Initializer"]:1: in function <[string "Initializer"]:1>
    [C]: in function 'assert'
    r3e-open-championship.lua:1187: in function 'ParseResults'
    r3e-open-championship.lua:1232: in function 'UpdateHistory'
    r3e-open-championship.lua:1264: in main chunk
    [string "Initializer"]:1: in function <[string "Initializer"]:1>
    [C]: in function 'xpcall'
    [string "Initializer"]:1: in main chunk
    ---------------------------
    OK
    ---------------------------

    Your help would be greatly appreciated.
     
  3. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +378 / 0 / -0
    Can you attach the files here or via pm?

    The database + race you want to add
     
    Last edited: Mar 25, 2017
  4. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +378 / 0 / -0
    @Stonehard didn't get to make the ui version, but there is no a simpler batch file that you can use:

    If you do not want to setup the commandline yourself, simply use the myleague.bat:

    myleague.bat 201602031038.json

    • Pass the json or xml file that the server generates onto it, for example drag drop the result file (json or xml) onto the batch file.
    • This will append the results to a database called myleague and the result html is generated and then shown in your default browser.
    • By renaming the batch file, for example GTR3 Summer Season.bat you will also rename the database being used. So simply copy the batch file, rename it to the league it shall represent, and pass the result files onto it.
    • Every time you pass a result file onto the batch, it will get appended to the database of that filename, so races only need to be added once.
     
  5. NL-Jos

    NL-Jos Well-Known Member

    Joined:
    Jun 5, 2015
    Ratings:
    +162 / 0 / -0
    I used your program a lot, but since the possibility to run races with reverse grid i don't use it anymore.
    Sorry, but the results of the firt 2 races (if you run 3) al lost in the raceresult.txt
    What you're writing above could be something but i don't realy understand what you mean with

    "Pass the json or xml file that the server generates onto it, for example drag drop the result file (json or xml) onto the batch file"

    The json file i can found in the dedicated server, for so far i understand but the Batch file you're talking about i don't.
    Sorry.
     
  6. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +378 / 0 / -0
    There is a "myleague.bat" file that is now part of the project, the latest version on GitHub.
    It allows to combine result files generated by a server. That way no race should get lost.

    It is possible to run the tool from commandline to handle files like that for a while. A batch file simply stores the commandline parameters.
     
    • Like Like x 1
    Last edited: Mar 25, 2017
  7. NL-Jos

    NL-Jos Well-Known Member

    Joined:
    Jun 5, 2015
    Ratings:
    +162 / 0 / -0
    And how should i use the myleague.bat file?
    (i told you before i'm not an computer nerd. :p:D:eek:)
     
  8. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +378 / 0 / -0
    Just drag drop the json or XML files that the server generates for the races onto it.
     
  9. NL-Jos

    NL-Jos Well-Known Member

    Joined:
    Jun 5, 2015
    Ratings:
    +162 / 0 / -0
    Do i open the batch with wordpad or something because when i double click on it some kind of ms-dos screen opens.
     
  10. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +378 / 0 / -0
    You pass the json or XML file onto it via drag drop in file explorer.
     
  11. Squanchy

    Squanchy Well-Known Member

    Joined:
    Nov 21, 2016
    Ratings:
    +66 / 0 / -0
    Yes, it seems that raceresults.txt is not built right. If you do a double-race instead of one, at the end of the second race they just append the second race results twice. There's no way to get the first results it seems.
     
  12. Roman TRT

    Roman TRT Well-Known Member

    Joined:
    Jun 3, 2015
    Ratings:
    +67 / 0 / -0
    At me the given application does not find result files, how to change a way to files?
    Not results: Documents\My Games\SimBin\RaceRoom Racing Experience\UserData\Log\Results

    and there is the same application, only with more complete statistics, both on sites simresults?
     
  13. Nicklas Petersson

    Nicklas Petersson New Member

    Joined:
    Jan 1, 2016
    Ratings:
    +4 / 0 / -0
    Is it possible to get additional points included in raceresult, for example best qual or most lap lead, in this version?