[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,942
    Likes Received:
    673
    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.37
    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
    Using r2la in Linux with WINE (thanks to user FuNK! for posting)

    Warning: Automobilista can remove old log files from its Results directory automatically. There is "Number Race Results" option in PLR file. Set it to bigger value if you want to keep all your log files.

    Changelog:
    2.058.37:
    • Fixed error on Records page if there is no tire compound info in xml (rF1, Automobilista).
    2.058.36:
    2.058.35:
    • Added tire compound info to Track Records tables.
    2.058.34:
    • Added "Server Name", "Assigned To Championship", "Not Assigned To Championship" and "Championship Name" filter options to Results Viewer filter.
    • Added "Select all" button to Results Viewer to quickly select checkboxes for all logs in Viewer. It will be visible when "Select multiple" is pressed.
    • Added "Remove logs not assigned to championships" button to "Utils" drop-down menu in Results Viewer.
    • Added "Rules" tab to Championship page with some championship parameters and points system visible for non-admin users.
    2.058.33:
    • Fixed "Subtract penalty points from driver points" championship option. Now it works for all (driver/team/class) standings tables.
    • Added LiveTiming option to show speed in mph by default. Default option is Off. To turn it On, change "show_mph" parameter from 0 to 1 in rF2 Log Analyzer ver. 2.058.33\web2py\applications\r2la\live_timing_settings.json file.
    2.058.32:
    • Added optional AI Fuel and AI Tire Wear columns to LiveTiming (in liters). Default option is Off. To turn it On, change "show_ai_fuel_data" and "show_ai_tire_wear" parameters from 0 to 1 in rF2 Log Analyzer ver. 2.058.31\web2py\applications\r2la\live_timing_settings.json file. Works only for AI cars.
    • Added optional Average Lap Speed column to LiveTiming. Default option is Off. To turn it On, change "show_avg_lap_speed" parameter from 0 to 1 in rF2 Log Analyzer ver. 2.058.31\web2py\applications\r2la\live_timing_settings.json file.
    • Fixed a bug with color of fastest lap time in LiveTiming in race mode.
    • Added "Live Timing troubleshooting" section to Help page.
    • Added "Reverse championship order" admin button to championship page (top left).
    • Fixed a problem when changing championship list type by admin was not visible for regular users.
    2.058.31:
    • Added "Finished" checkbox option to championships. Championships marked "finished" are moved to "Finished championships" list below "Active championships" list on Championship Manager page.
    • Added option to display "Active championships" as grid of panels (similar to "Dedi competitions" page). Admin can select list or grid option clicking on icon in top left corner on Championship Manager page.
    • Added "Image link" option to championships. This image will be displayed in championship "card" on Championship Manager page in "grid" mode. "Image link" must be a string link to image on this server (you can put images into rF2 Log Analyzer ver. x/web2py/applications/r2la/static/images/ folder) or some other server, example http://*this server IP*/r2la/static/images/my_image.png or http://i.imgur.com/xxxxxxx.jpg
    • Fixed championship tables even row transparent background when table overflows main div area.
    • Empty CarType tags in xml (because of bugs in some mods), now will be displayed as "EmptyCarType" in r2la.
    • You can customize race/qual/practice badge colors by finding and changing css classes .uk-badge-race .uk-badge-qual .uk-badge-practice in rF2 Log Analyzer ver. 2.058.31\web2py\applications\r2la\static\css\app.css file.
    2.058.30:
    • Added championship option "Show points gap to leader column in standings tables". Default "Off".
    • Added championship option "Show points gap to next driver column in standings tables". Default "Off".
    • Added "Toggle Race Navbar" button to championship page to hide race navbar/list from page (button with "Up"/"Down" chevron icon near "Check for new logs" button). Useful if your championship has very large amount of races.
    • Added championship option "Hide race navbar by default". Default "Off". If turned "On", race navbar/list on championship page will be hidden by default for all users. Users can still open it clicking on "Toggle Race Navbar" button.
    • Short race name in championship standings tables headers is now hyperlink to race report on championship page.
    • "Race results" title text on championship race report page is now hyperlink to that same report page. Can be copied and shared.
    • Added latest released track names for automatic flag assignment.
    2.058.29:
    • Added championship option "Show points sum column on the left side of standings tables". Default "Off".
    • Added championship option "Reverse race order display in standings tables". Default "Off".
    2.058.28:
    • Fixed Track Records refresh on car identifier change.
    • Added "Hide/Show AI times" button to "Track Records" pages (works when "Show AI record times" option is On).
    • Added unique (per championship) css classes for car class badges on championship race results page. You can change class badge color by adding values at the end of app.css file. It should look like this: .uk-badge-class0-championship_name {background-color: #your_color}. Where "championship_name" is the name of the championship for which you need to change class badge color, replace "spaces" in championship name with "_" (underscore) symbols. You can change class badge colors for all championships by changing values for classes .uk-badge-class0 (0 to 4) in app.css file.
    2.058.27:
    • Championship standings tables cell colors are now customizable through app.css classes. Open rF2 Log Analyzer ver. 2.058.27\web2py\applications\r2la\static\css\app.css file in text or code editor and change hex color codes for classes that start with "cellbg_" prefix ("cellbg_1st", "cellbg_2nd" and so on). Save changes. You might need to press CTRL+F5 on r2la page in your browser to pick up changes made to css file.
    • Added championship option "Only show driver position in driver standings (cell center)". Default - off.
    2.058.26:
    • Added "Points through season" graph to championship "Driver Stats" tab (for overall standings only). This graph will not be visible on exported championship standings html page.
    2.058.25:
    • Added "Drop worst results only after X races" option to championship. Default is 0, which means worst results will be dropped as soon as possible, as was in previous versions of r2la.
    2.058.24:
    • Added class name/position column to "Qual Results" table on championship race report page.
    • Added togglable CarType hints to championship Manage Classes widget.
    2.058.23:
    • Fixed error in championship manager when some driver was in Qual log, but not in Race log and "Team championship" option was set to "VehName".
    • Filenames of all xml files removed by r2la are now logged in web2py/r2la_removed_files.log file.
    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.



    1.jpg 2.jpg
     
    Last edited: Nov 30, 2020 at 6:11 AM
  2. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    2
    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,794
    Likes Received:
    3
    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!!!!!!!!!!!!!!!!!!!!
     
    atomed likes this.
  4. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,794
    Likes Received:
    3
    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,942
    Likes Received:
    673
    I`m glad that its useful :)
     
    atomed likes this.
  6. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    2
    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:
    2
    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,942
    Likes Received:
    673
    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,794
    Likes Received:
    3
    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,942
    Likes Received:
    673
    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,794
    Likes Received:
    3
    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,794
    Likes Received:
    3
    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,942
    Likes Received:
    673
    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,242
    Likes Received:
    326
    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,794
    Likes Received:
    3
    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,182
    Likes Received:
    242
    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:
    2
    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,794
    Likes Received:
    3
    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,942
    Likes Received:
    673
    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).
     
    atomed likes this.
  20. P.S.R.

    P.S.R. Registered

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

Share This Page