Simresults.net - a webbased result reader & PHP library

Discussion in 'Other' started by mauserrifle, Jun 2, 2013.

  1. TIG_green

    TIG_green Registered

    Joined:
    Jul 21, 2012
    Messages:
    3,038
    Likes Received:
    44
    Nice addition :)

    I hope to see you on track too ;)
     
  2. TIG_green

    TIG_green Registered

    Joined:
    Jul 21, 2012
    Messages:
    3,038
    Likes Received:
    44
    Since build 770 I haven't been able to load correct log files. I keep getting corrupted results. For example, today I was in a league race where there was 14 of us in the race but results showed only 8 drivers. It keeps doing this... any guesses why?
     
  3. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Can you send me the file? My biggest guess is that they're just not included in the XML. Because the parser doesn't remove drivers for any reason. Most likely the same rFactor bug again, but apparently in it's extreme :(



    Hope to do some racing again yeah
     
  4. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    For anyone using Twitter. I've created a Twitter account for simresults:
    http://twitter.com/simresults

    I'll be using it (besides this topic) to keep you updated on releases, issues, results and future plans for the library and website.
     
  5. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Good stuff today!

    Performance of simresults.net has been improved by 67%. A huge test log (403 laps and 32 drivers) went from 17s seconds to 5.6s on my local machine. It might be more on the live server.

    Hope everybody is able to parse huge logs now without any issues, splitting files or whatever.

    Please report any issues!
     
  6. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Mighty news!

    After 4 days of hard work I am proud to announce that Simresults can now parse old gmotor result files as used within RACE 07. This means that Simresults now supports:

    * rFactor
    * rFactor 2
    * Game Stock Car 2012
    * Game Stock Car 2013
    * Formula Truck 2013
    * Assetto Corsa
    * RACE
    * RACE 07
    * GTR
    * GTR2
    * GT Legends
    * BMW M3 Challenge
    * F1 challenge 99-02

    The following expansions of RACE (07) should work too:

    * Race: Caterham expansion
    * GTR Evolution
    * Crowne Plaza
    * STCC - The Game
    * STCC 2 - The Game
    * RACE On
    * Raceroom - The Game
    * Raceroom - The Game 2
    * Formula Raceroom
    * GT Power
    * WTCC 2010
    * Retro
    * Race Injection
    * Volvo - The Game

    Just like rFactor. The parser fixes any bad logs or little differences between games above. It's a nightmare sometimes but I managed to download alot of logs from google and they all seem to parse now without issues :)

    KNOWN ISSUES

    * Some logs, especially F1 challenge, do not include any lap information. So If you're missing data, check the logs. If it's really there, please report the issue to me.

    * Sector times are missing. Yup, GTR, RACE 07 etc don't include them.

    LOG LOCATIONS

    <GAME>\UserData\LOG\Results

    Make sure you set this in your PLR profile file: Extra Stats="1". This makes sure you actually get proper results.


    Some result examples:
    http://simresults.net/140810-h9K
    http://simresults.net/140810-Jm1
    http://simresults.net/140810-M5j
    http://simresults.net/140810-0P5
    http://simresults.net/140811-Y7H
    http://simresults.net/140811-rk2
    http://simresults.net/140810-2av
    http://simresults.net/140810-ia3


    No new library version yet. I need to do some cleaning etc before I stamp a version. But the code is available in the `develop` branch on github:

    I am mainly only part of the rFactor 2 community. So: Please help me spread the word!
     
    Last edited by a moderator: Aug 13, 2014
  7. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Site got updated:

    * Better optimized for mobile devices
    * Always shows class and team fields when there were driver swaps (team view). Previously this was done through the ?team=1 query param
    * After uploading there is a tab called "Customize". Here you'll find a form (gui) to change the game logo, the logo link and forcing team and class columns on results. The last is useful because qualify results will not show class and team columns because there are probably no driver swaps in your event
    * CSV export includes class and team columns
    * Some more minor improvements like "drivers" as column name when there are swaps

    I'm seeking cool new features for the site. Useful extra analyzes. Maybe something similar and crucial like the CSV export which was a great suggestion! What is your league still missing? Name it!
     
  8. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Two updates.

    Some of you already noticed. You can now assign a point system to results. I will add qualify points too soon.

    As of today Simresults also supports parsing AC server log files. So if you run a league with an AC department too, Simresults is here to serve you on that too!
     
  9. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    A Pitlanes.com result of yesterday had way too many incidents (>40.000!). So the parser couldn't handle it. I fixed it by ignoring incidents on large scale.

    Result here:
    http://simresults.net/140913-UT5
     
  10. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Site updated. Can now give points for qualify sessions and best lap of a race.

    Other news:Assetto Corsa support is becoming quite stable and there is alot of use from this community too!
     
  11. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Site updated.

    Added "best laps" tab. It includes the top 20 and best laps grouped by drivers.

    Thanks to TIG_green for this useful request!
     
  12. TIG_green

    TIG_green Registered

    Joined:
    Jul 21, 2012
    Messages:
    3,038
    Likes Received:
    44
    nice :) Now waiting for those other things I suggested ;)
     
  13. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Simresults.net has been updated to show consistency of drivers

    Consistency is calculated using: average of non-pb MINUS personal best

    The following laps are ignored:

    * Laps 21s slower than personal best
    * Pit laps (rfactor only)
    * Non completed laps (rfactor only)

    Changes are in develop branch at github

    Is 21s reasonable to ignore for consistency? What do you guys think? I want a good balance. Not include any big crashes but also punish when someone is for example 10s slower. He might not be a clean driver (not avoiding collisions). Please provide me with feedback on this.

    Thanks
     
  14. TIG_green

    TIG_green Registered

    Joined:
    Jul 21, 2012
    Messages:
    3,038
    Likes Received:
    44
    I think my idea behind the consistency rating was to show how consistent each drivers are on their "clean laps". I think you can already see mistakes with brown color laps. Also doesn't "average lap" already take these mistake laps into account? Maybe make separate rating showing how many mistakes each driver did? (this would include really slow laps (probably spins etc.) and contacts)

    Could you explain what is the % value in consistency? Is it how far off your average lap was from your best lap or is it how many % of your laps were within certain range from your PB?

    But thanks for adding cool features once again :)
     
  15. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    % is just consistency in percentage. So 100% would happen when you have 3 laps with exact same time :p
     
  16. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Good stuff!!

    I am introducing a new feature which league/server owners among us definitely will like.

    Currently if you own a server, you have to upload the results manually. Or as an alternative it is possible to use the Simresults PHP parser to write your own stats site that reads out your log directory and let users choose the result from your directory. This requires alot of programming and you are re-doing simresults.net templating work.

    The above is now much easier and saves you massive time. You can get all your results on Simresults.net without much programming knowledge. You can just skip using my parser.

    Just make a JSON file on your server that is dynamicly generated (for example looping your files in your folder):

    Code:
    {
    "name": "[YOUR LEAGUE NAME]",
    "results": [
    {
    "name": "Example result",
    "log": "http://YOUR.WEBSEVER/server_output.txt"
    },
    {
    "name": "Example result 2",
    "log": "http://YOUR.WEBSEVER/server_output2.txt"
    },
    {
    "name": "Example result 3",
    "log": "http://YOUR.WEBSEVER/server_output3.txt"
    }
    ]
    }


    For simresults I put on a example file here:
    http://simresults.net/example.json

    Next just add the URL to this file to simresults.net/remote as query param:
    http://simresults.net/remote?results=http://simresults.net/example.json

    And you're done!! Simresults.net will load the first result it will find and let the user choose any other result from the dropdown.

    You can also just show one result (without a dropdown for others):
    http://simresults.net/remote?result=http://simresults.net/example_result1.xml

    Or force not to show the first result but rather the third (or whatever):
    http://simresults.net/remote?results=http://simresults.net/example.json&result=http://simresults.net/example_result3.txt

    Let me know you think of this!


    I also added a forum to simresults.net. This is forum is not intended to replace the Rfactor 2 and AC forum threads. It will just be the main point for general things, such as website and library guides. Besides I encourage you share any project based on Simresults library, promote your league and use the forum to discuss big features/issues knowing multiple sim communities will be able to add themself to the conversation.


    Have fun!
     
    Last edited by a moderator: Feb 1, 2015
  17. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
  18. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Again not really rFactor related but a newsflash for anyone interested. Simresults now also supports Project Cars using the server JSON files!

    Example: http://simresults.net/151107-1jd

    Cheers!
     
  19. F1Fan07

    F1Fan07 Member

    Joined:
    Jan 11, 2012
    Messages:
    627
    Likes Received:
    46
    Found a little issue for you. In Game Stock Car, one of our drivers has a VEH with a "&" in the filename. This is a valid Windows filename such as: foo&bar.veh but it causes the Simresults reader to not read the results file.

    A second issue (once I manually remove the "&" symbols) is that the result files for GSC are displayed as rFactor2.
     
    Last edited by a moderator: Dec 17, 2015
  20. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Thanks for reporting. I will fix this soon. Could you send me the log too? Maybe I can find a way to detect GSC
     

Share This Page