[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,237
    Likes Received:
    294
    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.4
    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.4:
    • Added options to hide tire/fuel data for Practice, Qualy or Race reports.
    • Added pace.js page load progress bar.
    • Added an option to include your custom js files in r2la pages. Use form at Options page to add your js files.
    2.058.3:
    • Added track positions widget to LiveTiming.
    • Fixed LiveTiming error with non-ascii symbols. But they will not be displayed correctly.
    • Added LiveTiming suport for rFactor1 and Automobilista. You need to use modified version of rFactorSharedMemoryMap plugin. Download it here. Put rFactorSharedMemoryMapDedi.dll into rFactor or Automobilista\Plugins directory. Remove rFactorSharedMemoryMap.dll if you had it there. rF1 mode limitation - human players will have AI status when standing in pits, no vehicle names, no tire compounds info.
    • Added optional support for global memory reading for LiveTiming with rFactor2. This is only needed in case when multiple rF2 servers are started from different windows user accounts and LiveTiming is not working (please wait for new version of rFactor2SharedMemoryMapPlugin to be released for this feature to work).
      • Set read_global_memory value to 1 in rF2 Log Analyzer ver. 2.058.2\web2py\applications\r2la\live_timing_settings.json.
      • Set rFactor2SharedMemoryMapPlugin64.dll option DedicatedServerMapGlobally to 1 in all your your player/CustomPluginVariables.JSON files.
      • You need to start r2la_live_timing.bat from admin account or from non-admin account by pressing SHIFT+RMB and selecting "Run as different user" and entering windows admin account name and password.
      • You need to start rF2 servers from admin account or from non-admin accounts by pressing SHIFT+RMB and selecting "Run as different user" and entering windows admin account name and password.
    2.058.2:
    • Fixed LiveTiming Practice/Warmup time/laps values and Warmup standings table.
    2.058.1:
    • LiveTiming support for multiple rFactor2 server processes.
    • Fixed weather numbers output in LiveTiming.
    2.058:
    • Added LiveTiming. For server to output data - you need to download rF2 Shared Memory Tools for Developers, extract rFactor2SharedMemoryMapPlugin64.dll into your rFactor 2\Bin64\Plugins directory, start rF2, go into Options/Plugins and turn ON rFactor2SharedMemoryMapPlugin64. For LiveTiming to work you need to start r2la on server machine by r2la_live_timing.bat file. For LiveTiming to work properly always start r2la_live_timing.bat before you start rF2 session.
      Clients don`t need to do anything new, just go to server`s r2la Live page. LiveTiming also works if you use rF2 offline, just install Shared Memory plugin and start r2la by r2la_live_timing.bat.
      Special thanks to The Iron Wolf for Shared Memory plugin and to k3nny for helping me access shared memory data in Python.
    • Added an option to show Team Name instead of Car Name in Records table.
    • Added Ballast column to "Session results" table.

    1.jpg 2.jpg
     
    Last edited: Apr 17, 2018
  2. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    0
    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,237
    Likes Received:
    294
    I`m glad that its useful :)
     
  6. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    0
    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:
    0
    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,237
    Likes Received:
    294
    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,237
    Likes Received:
    294
    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,237
    Likes Received:
    294
    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,203
    Likes Received:
    278
    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,154
    Likes Received:
    200
    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:
    0
    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,237
    Likes Received:
    294
    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