Wrong position given in results xml

Discussion in 'Bug Reports' started by matf1, Jan 28, 2015.

  1. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    2
    For a quick run down, 46 lap online race. Finished second as indicated by the last line of lap num section:

    <Lap num="46" p="2" et="2826.9739" s1="18.6250" s2="18.3445" s3="21.0352" fuel="-1.000" fcompound="0,Goodyear Medium" rcompound="0,Goodyear Medium">58.0046</Lap>

    Finish status was normal and positions reported as:

    <Position>11</Position>
    <ClassPosition>11</ClassPosition>


    PM for full log if you like.
     
  2. Gijs van Elderen

    Gijs van Elderen Registered

    Joined:
    May 1, 2014
    Messages:
    1,393
    Likes Received:
    469
    Is it the your XML?

    Or the XML from the server?

    You can upload it to simresults.net for a quick check.
     
  3. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    2
    Mine and its up there.
    Simresults has it correct so I'd assume they don't use this value.

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

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,794
    Likes Received:
    4
    I can produce a number of examples where 'position' and 'p' values appear to contradict each other even with FinishStatus = 'Finished Normally' so am quite interested in ISI's response to this. Here is one example...


    Code:
    <rFactorXML version="1.0">
    <RaceResults>
    <Setting>Race Weekend</Setting>
    <PlayerFile>player</PlayerFile>
    <DateTime>1421985456</DateTime>
    <TimeString>2015/01/22 22:57:36</TimeString>
    <Mod>ALL_TRACKS_AND_CARS_10.RFM</Mod>
    <Season/>
    <TrackVenue>Zandvoort</TrackVenue>
    <TrackCourse>Zandvoort</TrackCourse>
    <TrackEvent>Zandvoort 2012</TrackEvent>
    <TrackLength>4320.0</TrackLength>
    <GameVersion>1.910</GameVersion>
    <Dedicated>0</Dedicated>
    <ConnectionType upload="800" download="800">Custom</ConnectionType>
    <RaceLaps>3</RaceLaps>
    <RaceTime>0</RaceTime>
    <MechFailRate>1</MechFailRate>
    <DamageMult>30</DamageMult>
    <FuelMult>1</FuelMult>
    <TireMult>1</TireMult>
    <VehiclesAllowed>1988</VehiclesAllowed>
    <ParcFerme>3</ParcFerme>
    <FixedSetups>0</FixedSetups>
    <FreeSettings>11</FreeSettings>
    <FixedUpgrades>0</FixedUpgrades>
    <Race>
    <DateTime>1421985470</DateTime>
    <TimeString>2015/01/22 22:57:50</TimeString>
    <Laps>3</Laps>
    <Minutes>0</Minutes>
    ...

    Code:
    <Driver>
    <Name>Paulo Roso</Name>
    <Connected>1</Connected>
    <VehFile>CELICA_3.VEH</VehFile>
    <UpgradeCode>00000000 00000000 00000000 00000000</UpgradeCode>
    <VehName>celicaGTO #3</VehName>
    <CarType>CelicaGTO</CarType>
    <CarClass>CelicaGTO</CarClass>
    <CarNumber>3</CarNumber>
    <TeamName>AAR</TeamName>
    <isPlayer>0</isPlayer>
    <ServerScored>1</ServerScored>
    <GridPos>4</GridPos>
    <Position>1</Position>
    <ClassGridPos>4</ClassGridPos>
    <ClassPosition>1</ClassPosition>
    <Points>8</Points>
    <ClassPoints>8</ClassPoints>
    <LapRankIncludingDiscos>2</LapRankIncludingDiscos>
    <Lap num="1" p="7" et="11.1012" s1="60.0048" s2="29.7139" s3="34.9061" fuel="0.196" fcompound="0,Goodyear Medium" rcompound="0,Goodyear Medium">124.6247</Lap>
    <Lap num="2" p="8" et="135.7259" s1="52.4214" s2="29.4000" s3="34.4524" fuel="0.180" fcompound="0,Goodyear Medium" rcompound="0,Goodyear Medium">116.2739</Lap>
    <Lap num="3" p="8" et="251.9998" s1="51.1497" s2="29.2566" s3="34.4346" fuel="0.169" fcompound="0,Goodyear Medium" rcompound="0,Goodyear Medium">114.8409</Lap>
    <BestLapTime>114.8409</BestLapTime>
    <FinishTime>355.7395</FinishTime>
    <Laps>3</Laps>
    <Pitstops>0</Pitstops>
    <FinishStatus>Finished Normally</FinishStatus>
    <ControlAndAids startLap="1" endLap="3">AIControl</ControlAndAids>
    </Driver>
     
  5. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    The XML's are a mess indeed. Simresults.net fixes ALOT of these issues, thereby results show correct on my site and is not a way to test this issue. It uses the value when it can but fallbacks to oldskool sorting when it finds any strange numbers.

    @ISI, if you're interested in log files that are corrupted. See these tests:

    https://github.com/mauserrifle/simresults/blob/develop/tests/Rfactor2ReaderTest.php#L387
    https://github.com/mauserrifle/simresults/blob/develop/tests/Rfactor2ReaderTest.php#L441
    https://github.com/mauserrifle/simresults/blob/develop/tests/Rfactor2ReaderTest.php#L503
    https://github.com/mauserrifle/simresults/blob/develop/tests/Rfactor2ReaderTest.php#L551

    These are Simresults tests that read corrupted logs (and output is fixed by my parser).

    As documented some on my site:

    * Sometimes complete drivers are missing from the results. If this happens, try getting someone else's result XML file and find the proper one. It can be frustrating, because sometimes other XML files have other drivers missing.
    * Sometimes drivers have no finish status, missing their lap, but they finished and have proper position mark. Don't be suprised when the winner is missing laps.

    Issues below are fixed by the Simresults library.

    * Sometimes drivers have position 105 on laps. Proper position is found using previous data.
    * Sometimes drivers are marked position 1 while they are not. This is fixed using finish times.
    * Sometimes positions are really messed up, like position 1 fully missing. Drivers will be ranked using lap data.


    Hope you can solve this issue...
     
  6. c.pucher

    c.pucher Registered

    Joined:
    Nov 4, 2011
    Messages:
    167
    Likes Received:
    0
    I'm working on an (offline) tool to manage championships at the moment and just ran into that issue too. Would be awesome if ISI could fix this and show the right position in the result XML :)
     
    Last edited by a moderator: Feb 24, 2015
  7. c.pucher

    c.pucher Registered

    Joined:
    Nov 4, 2011
    Messages:
    167
    Likes Received:
    0
    after checking some of the files posted by Denstjiro here http://isiforums.net/f/showthread.p...l-result-files?p=296354&viewfull=1#post296354
    they all seemed to show the right position in the <position></position> tag.

    Can some of you confirm that he encountered problems with dedicated server race xml result files? Or just with local result file? mine was a local one, will try to get the corresponding file from the server
     
  8. F1Fan07

    F1Fan07 Member

    Joined:
    Jan 11, 2012
    Messages:
    627
    Likes Received:
    46
    Do the problematic result files involve lapped cars? I've noticed that LiveRacers often gives incorrect finishing results in that case (especially for timed races). I wonder if there's something that needs to be addressed in the results files...
     
  9. c.pucher

    c.pucher Registered

    Joined:
    Nov 4, 2011
    Messages:
    167
    Likes Received:
    0
    After receiving the server xml-files they seemed to be complete. Missing drivers where there and the <gridpos></gridpos> and <position></position> tags showed the right positions.
     

Share This Page