[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
    rF2 Log Analyzer ver. 2

    Manage your rF2 (or rF1, Automobilista) xml log files. Detailed exportable session reports. Track records collection. Hotlap competitions.
    DEDI mode to host r2la on your server for your community.

    Now with Live Timing.

    Includes Championship Manager to manage offline championships with AI or online league championships.
    Championship manager features:
    • manage your online league championships or offline championships with AI
    • support for teams and classes
    • teams can be automatically selected from CarType, CarClass, TeamName, VehName tags or created and assigned manually
    • classes can be automatically selected from CarType, CarClass, TeamName tags or created and assigned manually
    • support for drivers moving between teams and classes at different races during championship
    • customizable points system for 50 places, points-for-all option, plus bonuses for pole position, fastest lap, one lap led and max laps led
    • points presets for all major racing series included
    • driver statistics for championship
    • car statistics selectable by CarType, CarClass, TeamName, VehName tags
    • customizable minimum distance for classification, number of team cars that awarded points, number of worst driver results in championship that won`t be counted
    • support for manual race points override, in case of penalties, disqualifications, custom bonuses, etc.
    • export of championship tables to html
    • transfer your championships between r2la versions by importing r2la_settings file
    • if racing with AI, you have to ensure by yourself consistent driver names and performances at every race during championship
    • do not delete .xml logs that you assigned as results for races in championship, they are accessed every time you browse championship
    How to use:
    1. Download rF2 Log Analyzer ver. 2.058.22
    2. Unzip "rF2 Log Analyzer ver. 2.x" folder somewhere.
    3. Run r2la.bat. Small cmd window will pop-up, local web server will start.
    4. Open address http://127.0.0.1:8000/ in your favorite browser (IE is not supported).
    5. When running app for the first time, enter a full path to your rfactor2 folder in the form provided.
    6. When you finished working with r2la, you can close local web server window.
    Note: Some actions, like importing log files for the first time or deleting log files may take about 30 seconds. Please, wait.

    Look for DEDI readme.txt file in archive for DEDI mode instructions.
    Look for How to update.txt file in archive for instructions on how to move to newer version of r2la.

    Steam Guide for rFactor2 Log Analyzer

    Changelog:
    2.058.22:
    • Added an option "Points per position gained over starting spot" to championship points system. Works for both Overall and Classes tables.
    • Comments added to points will now always be visible in pop-up area in standings tables. Previously comments were only visible if manual points override was on.
    2.058.21:
    • Added championship option to automatically subtract penalty points from driver points sum in standings table. Look for "Subtract penalty points from driver points sum" option on "Create/Edit Championship" page (default "Off"). Team standings are unaffected by this. If you need to subtract penalty points also from team standings, leave new option on Off and subtract points from driver results with manual correction.
    2.058.20:
    • Added filtering to Results Viewer. Press "Filter" button and choose your filtering options. You can filter by one or multiple options: session, track, your car class (leader car class for DEDI), logs older than date, logs newer than date. When filter is active, "Filter" button will be highlited in blue. Clicking on "Results Viewer" in top menu will always show logs without filtering. Filter is working for every client(request) individually through query string. You can save link with filter query and bookmark it or share it with others. In DEDI mode by default filter button is invisible for non-admin users, admin can turn it on for them at "Options" page. There will be no filtering in pop-up log selector when you assign race result in Championship.
    • You can now use SHIFT key to select multiple consecutive log files when clicking on log file row (not on selection checkbox) when "Select multiple" button is activated.
    • "Reload" button for finished DEDI Competitions should now work
    • Added option to export championship tables to json. Press "Export standings" on championship page, then "Export championship tables to json". Json will be opened in browser, you can save it with browser menu "Save as". You might use any json beautifier to make it more readable.
    • Added jsonp call at championships/export_standings_jsonp?cid=*championship id* to get Championship Standings and Stats tables data with cross-domain ajax request from your other server. cid should be defined as championship ID. You can find championship ID in a query string when you open championship page.
    2.058.19:
    • Added an option "Minimum classification position to receive bonus for fastest lap" to championship points system. It allows to implement F1 2019 rules (set it to 10). When set to 0 - option is "Off" (Default).
    • Fixed error with exported DEDI Competitions results with "#" symbol in competition name. "#" will be filtered from created xml file name now.
    2.058.18:
    • Added export of DEDI Competitions results to "fake" xml file. You can then assign this reports as results in your championships. Press "Export to XML" button for some competition, this will create "Practice" xml report with competition results in your default .../Results directory and import it in r2la. You will see it in Results Viewer with the same name as competition plus "_". Report will be dated by competition end date.
    • Allowed zero fuel and tire wear for DEDI competitions
    • Added "server_name" to get_server_data_jsonp output. Added "mServerName" to get_full_server_data_jsonp output, in "mScoringInfo" section.
    • Fixed names column in place when scrolling horizontally on Manage Teams and Manage Classes championship pages.
    2.058.17:
    • Added all new words from top menu to internationalization. Read "Help" -> "Internationalization" for details.
    • Added possibility to clone championships. Press "Clone" button for some championship in the list on "Championships" page. You will have 2 options: "Clone with race results assignments preserved" and "Clone without results assignment". Cloned championship will have "cloned" added to its name, you can change name later with "Edit championship".
    • Allowed negative manual override points.
    • Fixed override comments not showing with 0 points.
    2.058.16:
    • Added ability to assign penalty points to drivers per race (like F1 driver penalty points for causing incidents) and add comments for manual override reason. Press "More..." button in race report table "Manual" column header to add/remove penalty points and comments.
      Penalty points are visible in driver standings table (lower right corner in a cell). Comments are visible in pop-up when you click on driver points cell.
    2.058.15:
    • Live Timing now shows server name in server selection buttons (for rF2 only).
    • Added started laps number to "Laps" column on Records page.
    • Sortable column headers are now marked with blue color on mouse hoover instead of arrow symbols.
    • Added sorting to "Driver stats", "All time stats" and "Car stats" tables.
    • Cell background for DNF in championship tables now is always purple, no matter if driver received points or not.
    2.058.14:
    • Added Championship options to hide driver/team/stats overall and class tables.
    • Added "Clone to edit"/"Edit" buttons to Championship Race page. They have the same function as in Results Viewer. They are in "Export/Utils" dropdown menu. You can automatically assign cloned file as race result when clicking "Clone to edit" at this page. Cloned files now have "Clone" badge in session results header, visible for admin only.
    • "No-qualification" race option on "assign race result" pop-up now correctly shows value that is set in race options.
    • Race country flag will not be overwritten when you assign race results if no flag is assigned to track before.
    • Fixed manual Championship Classes and Teams names being removed from Championship when "Save changes" is pressed on Edit Championship page (without changing Class or Team options).
    • Fixed an error in visibility filter for fuel/tire info.
    • Added "Help" drop-down button in top menu for logged admin in DEDI mode.
    2.058.13:
    • Added sorting options to Pit Stops Summary table (sort by position in table, driver name, lap or pit stop number).
    • Added some more flags.
    • Added another jsonp call at live/get_full_server_data_jsonp to get Live Timing server/driver data with cross-domain ajax request. This one outputs all data available to LiveTiming.
    2.058.12:
    • Added possibility to edit TeamName and CarClass in results editor.
    • Added championship option "Team with this name will receive no points".
    • Fixed error message on Track Records page if track has logs but there is no lap time in that logs.
    2.058.11:
    • Bonus points for completing some percent of leader distance now work correctly for classes.
    • Separated "DNS" from "All drivers (even DNF) receive no less then this points" option into checkbox, default value is "On" as before.
    • Added checkbox for "Driver must finish the race (not DNF) to recieve bonus for completing percent of leaders distance", default is "Off".
    • Added checkbox for "Driver must finish the race (not DNF) to recieve classification points", default is "Off" as before.
    • Driver list in Class Team Standings tables now shows only team drivers for this class (for cases when team has cars in multiple classes).


    1.jpg 2.jpg
     
    Last edited: Jun 12, 2019
    yashiman, Dumedo, avenger82 and 12 others like this.
  2. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    1
    Nice one. I love the tool and these screens look fantastic. I'll have to dive in and explore in the morning. Cheers Nibo

    Sent from my Nexus 4 using Tapatalk
     
  3. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    Wait...what? This seems like what I have been dreaming of my entire life! Detail analysis PLUS HISTORY!!! Man, how nice it would be to use a single tool instead of multiple tools. Yes! I'm going to be all over this tonight!

    Thanks, Nibo!!!!!!!!!!!!!!!!!!!!
     
  4. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    Walked straight in the door and right past my wife and kids as if they weren't there and straight to the man cave and BAM! Yes! LOVE it! I will now live in your SW. So nice to have history and stats together. Thanks again :D:D:D:D:D:D
     
  5. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    I`m glad that its useful :)
     
  6. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    1
    I'm not sure a lot of people know about it... Or this section of the forum.

    Sent from my Nexus 4 using Tapatalk
     
  7. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    1
    Well, after having a good play with it, I must thank you greatly. It's nothing less than fantastic across the board.
    I love statistics so any expansion in that area would be most welcome, but aesthetically and functionally, it's perfect. :D

    Do I need to concern myself with the backing up the database, maybe an import/export function on that?
     
  8. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    App itself offers only representation of your rFactor2\UserData\Log\Results folder. So, to not loose anything you can make backup of this folder regularly.
     
  9. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    Just in case you are looking for possible enhancements it would be great if possible to highlight my name wherever it appears of course you would have to ask for and store my real name and alias in order to identify me in the data. Any cross-session views for a combo would be great too. For example, I'd like to compare the number of drivers, MY GridPos (again would require you to know who I am) my Pos, my BestLapTime, my total race time (without having to do gap math), the SessionBestLapTime for the session I just completed to prior sessions with the same combo. Combining all this with personal best result and personal best time and lap record into a view like the Session Summary described here...

    http://professionalsimracing.com/20...-summary-with-simresults-net-filter-by-combo/

    ... with ability to drill/link to session detail would be epic.
     
  10. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    I already know users real name and nick name from player.json file. So, you should see your name highlighted in bold in results tables.
    I will think about special view to compare all sessions with similar car/track. Can not promise when or if I`ll succeed to do this.
     
  11. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    Ah Ok sorry not sure how I missed name highlighting. Thanks.
     
  12. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    I don't have the tool with me right now but is there a way to see my personal best lap time and personal best race result and whether I set a new personal best?
     
  13. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    Not explicitly. But if you set your personal lap record today, then in "track records" this track will be at the top of the list and you will see red label "today" near this lap record, making it easy to see new lap records.
    May be I`ll add label "new lap record" in results viewer somewhere...
     
  14. Lgel

    Lgel Registered

    Joined:
    Jun 24, 2014
    Messages:
    1,210
    Likes Received:
    286
    Thanks for your tool, works fine and a very convenient way of storing and perusing lap times.
     
  15. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    Ah sorry I assumed lap record could be someone else's time so if is my PB then perfect.
     
  16. DJCruicky

    DJCruicky Registered

    Joined:
    Jan 25, 2012
    Messages:
    1,169
    Likes Received:
    237
    Thanks Nibo for your tool, it seems do and show everything possible. cheers
     
  17. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    1
    So it builds an array each time it loads?

    Sent from my Nexus 4 using Tapatalk
     
  18. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    rFactor2 Log Analyzer ver. 2

    Sounds like it stores data but nothing extra so if you back up your xml files you are good. b/c it can reload them anytime like it does the first time if there is an issue and files are corrupted or lost. So the refresh only brings in new xml files but you probably delete the database or something in the event of an issue and it will load everything again or something like that.
     
  19. Nibo

    Nibo Member

    Joined:
    Oct 12, 2010
    Messages:
    1,702
    Likes Received:
    511
    I`ve decided basic principle for app to be mirroring/representing users UserData\Log\Results folder. Because else, it may become a mess and mismatch between what you see in analyzer list (and lap records) and what you have in your folder.
    But for optimization I parse all .xml files when you first start the program and store them already parsed in db. Then on every call to "Results viewer" page I show list of already parsed .xml files.

    Short answer is yes, it works like a real time representation, but with some caching for speed. But you still have to press "refresh" button to load new .xml files and to check if any of them were deleted to provide synchronization (this is also for speed, so that on every page call it didn`t traverse log folder).
     
  20. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,795
    Likes Received:
    1
    Sweet design :D
     

Share This Page