Searching for dedicated server race xml result files

Discussion in 'General Discussion' started by Sebastian Röhn, Jul 30, 2014.

  1. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    Hello ISI community,

    as the title already says I'm searching for dedicated server race xml result files. Especially from races with driver swaps and/or use of the rejoin to race function.

    Why do I need them? Just simple...I developed I little tool which produces an race report in html layout. The tool was first developed cause of the use of Marcel Offermans Rejoin Plugin in our enduraces races for rFactor. Since the races with this tool are driven in a rF practice session and the race scoring is shown on a external webpage, we had no race xml result file to use it for a League System (SLS) or rfactor report. My tool use now the rF practice session xml file and the serverlogs of the rejoin plugin to generate a readable race result xml file. Later I also added the race report in html layout.

    What has this to do with rFactor2? Marcel Offermans rejoin plugin can also be used for rF2 but I also want to create a race report in html layout for rF2 races done in a actual race session. At the moment I have only dedicated server race xml result files of sprint races without any driver swaps or so.

    So I especially ask server admins of hosted rF2 servers if you can send me some of your race xml result files that I can take the next steps for my tool.

    And here is an example of the race report and further infos about my tool readable at the impressum (click on right Monitor): rFactor report: 30min sprint race Megane @ Bahrain

    Thank you for your support!

    Best regards Sebastian
     
  2. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    Of course if you are interested getting this tool or if you have questions about it, you can contact me.

    And that's how the "race XML creator" tool looks like:
     
    Last edited by a moderator: Jul 30, 2014
  3. Denstjiro

    Denstjiro Registered

    Joined:
    Oct 6, 2010
    Messages:
    2,952
    Likes Received:
    14
  4. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    Thank you Denstjiro.

    At the moment you can see at the indivdual team pages only the starting position. I will think about also adding an optinonal read-in function of a quali session result file.
     
  5. Valter Cardoso

    Valter Cardoso Registered

    Joined:
    Nov 4, 2011
    Messages:
    601
    Likes Received:
    1
  6. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    Thank you also Valter.

    But I still need some race result files with driver swap and rejoin to race cases. Thank you...
     
  7. Knackko Lovitch

    Knackko Lovitch Registered

    Joined:
    Feb 22, 2013
    Messages:
    22
    Likes Received:
    0
    Hi !

    I tried race xml to do XML import in SLS, but xml source is a quali session during a hillclimb event (drivers can connect to server during the event to climb), is there a way to produce a race xml from quali xml in order to import it in SLS without any rejoin plugin log?
     
  8. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    No, because a qualy session xml file contains only the qualy laps, but neither race positions nor a finish time or gap. The sls can also import qualy session files. Why are you using not this option?
     
  9. Knackko Lovitch

    Knackko Lovitch Registered

    Joined:
    Feb 22, 2013
    Messages:
    22
    Likes Received:
    0
    It does but no results to display if no race session in SLS. A race xml output for SLS should contain 1 lap which is the best lap of the quali session.
     
  10. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    You have to edit the xml result file manually. Here is an example, a part of a qualy session xml file:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE rF [
    <!ENTITY rFEnt "rFactor Entity">
    ]>
    <rFactorXML version="1.0">
    <RaceResults>
    <Setting>Multiplayer</Setting>
    <ServerName>01 AllStar MLT by SR.org</ServerName>
    <ClientFuelVisible>2</ClientFuelVisible>
    <PlayerFile>player</PlayerFile>
    <DateTime>1406999838</DateTime>
    <TimeString>2014/08/02 19:17:18</TimeString>
    <Mod>ALLSTAR MINI LEAGUE 2014_10.RFM</Mod>
    <Season></Season>
    <TrackVenue>Suzuka 2008</TrackVenue>
    <TrackCourse>Suzuka 2008</TrackCourse>
    <TrackEvent>Suzuka 2008</TrackEvent>
    <TrackLength>5788.5</TrackLength>
    <GameVersion>1.798</GameVersion>
    <Dedicated>1</Dedicated>
    <ConnectionType upload="16384" download="16384">Custom</ConnectionType>
    <RaceLaps>0</RaceLaps>
    <RaceTime>60</RaceTime>
    <MechFailRate>2</MechFailRate>
    <DamageMult>50</DamageMult>
    <FuelMult>1</FuelMult>
    <TireMult>1</TireMult>
    <VehiclesAllowed>|AM_EGT|EGT_Full|EGT_US|WEGT|BayroE5|C6r_ZR1|Darche_EGT|Ferruccio_EGT|Venom_EGT</VehiclesAllowed>
    <ParcFerme>3</ParcFerme>
    <FixedSetups>0</FixedSetups>
    <FreeSettings>244</FreeSettings>
    <FixedUpgrades>0</FixedUpgrades>
    <Qualify>
    <DateTime>1407000605</DateTime>
    <TimeString>2014/08/02 19:30:05</TimeString>
    <Laps>2147483647</Laps>
    <Minutes>30</Minutes>
    <Stream>
    
    ...
    
    </Stream>
    <MostLapsCompleted>17</MostLapsCompleted>
    <Driver>
    <Name>Francesco Bigazzi</Name>
    <Connected>1</Connected>
    <VehFile>FEREGT_51.VEH</VehFile>
    <UpgradeCode>00000000 00000000 00000000 00000000</UpgradeCode>
    <VehName>Ferruccio EGT #51</VehName>
    <CarType>FerruccioEGT</CarType>
    <CarClass>EGT</CarClass>
    <CarNumber>51</CarNumber>
    <TeamName>Ferruccio Racing</TeamName>
    <isPlayer>1</isPlayer>
    <ServerScored>1</ServerScored>
    <Position>1</Position>
    <ClassPosition>1</ClassPosition>
    <Points>0</Points>
    <ClassPoints>0</ClassPoints>
    <LapRankIncludingDiscos>1</LapRankIncludingDiscos>
    <Lap num="1" p="5" et="--.---" fuel="0.349" fcompound="0,Sprint" rcompound="0,Sprint">--.----</Lap>
    <Lap num="2" p="3" et="223.9131" s1="49.5261" s2="53.6781" s3="22.6252" fuel="0.318" fcompound="0,Sprint" rcompound="0,Sprint">125.8293</Lap>
    <Lap num="3" p="4" et="349.7424" s1="54.4091" s2="54.6843" fuel="0.290" fcompound="0,Sprint" rcompound="0,Sprint" pit="1">--.----</Lap>
    <Lap num="4" p="5" et="486.6501" fuel="0.349" fcompound="0,Sprint" rcompound="0,Sprint">--.----</Lap>
    <Lap num="5" p="4" et="654.2520" s1="49.6277" s2="52.5200" s3="22.6036" fuel="0.318" fcompound="0,Sprint" rcompound="0,Sprint">124.7513</Lap>
    <Lap num="6" p="4" et="779.0033" s1="49.7712" s2="52.8661" fuel="0.286" fcompound="0,Sprint" rcompound="0,Sprint" pit="1">--.----</Lap>
    <BestLapTime>124.7513</BestLapTime>
    <Laps>17</Laps>
    <Pitstops>7</Pitstops>
    <FinishStatus>None</FinishStatus>
    <ControlAndAids startLap="1" endLap="17">PlayerControl,Clutch,AutoBlip</ControlAndAids>
    </Driver>
    
    ... next drivers ...
    
    </Qualify>
    </RaceResults>
    </rFactorXML>
    
    Change it to this:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE rF [
    <!ENTITY rFEnt "rFactor Entity">
    ]>
    <rFactorXML version="1.0">
    <RaceResults>
    <Setting>Multiplayer</Setting>
    <ServerName>01 AllStar MLT by SR.org</ServerName>
    <ClientFuelVisible>2</ClientFuelVisible>
    <PlayerFile>player</PlayerFile>
    <DateTime>1406999838</DateTime>
    <TimeString>2014/08/02 19:17:18</TimeString>
    <Mod>ALLSTAR MINI LEAGUE 2014_10.RFM</Mod>
    <Season></Season>
    <TrackVenue>Suzuka 2008</TrackVenue>
    <TrackCourse>Suzuka 2008</TrackCourse>
    <TrackEvent>Suzuka 2008</TrackEvent>
    <TrackLength>5788.5</TrackLength>
    <GameVersion>1.798</GameVersion>
    <Dedicated>1</Dedicated>
    <ConnectionType upload="16384" download="16384">Custom</ConnectionType>
    <RaceLaps>0</RaceLaps>
    <RaceTime>60</RaceTime>
    <MechFailRate>2</MechFailRate>
    <DamageMult>50</DamageMult>
    <FuelMult>1</FuelMult>
    <TireMult>1</TireMult>
    <VehiclesAllowed>|AM_EGT|EGT_Full|EGT_US|WEGT|BayroE5|C6r_ZR1|Darche_EGT|Ferruccio_EGT|Venom_EGT</VehiclesAllowed>
    <ParcFerme>3</ParcFerme>
    <FixedSetups>0</FixedSetups>
    <FreeSettings>244</FreeSettings>
    <FixedUpgrades>0</FixedUpgrades>
    [COLOR="#FF0000"]<Race>[/COLOR]
    <DateTime>1407000605</DateTime>
    <TimeString>2014/08/02 19:30:05</TimeString>
    <Laps>2147483647</Laps>
    <Minutes>30</Minutes>
    <Stream>
    
    ...
    
    </Stream>
    <MostLapsCompleted>1</MostLapsCompleted>
    <Driver>
    <Name>Francesco Bigazzi</Name>
    <Connected>1</Connected>
    <VehFile>FEREGT_51.VEH</VehFile>
    <UpgradeCode>00000000 00000000 00000000 00000000</UpgradeCode>
    <VehName>Ferruccio EGT #51</VehName>
    <CarType>FerruccioEGT</CarType>
    <CarClass>EGT</CarClass>
    <CarNumber>51</CarNumber>
    <TeamName>Ferruccio Racing</TeamName>
    <isPlayer>1</isPlayer>
    <ServerScored>1</ServerScored>
    [COLOR="#FF0000"]<Position>1</Position>
    <ClassPosition>1</ClassPosition>[/COLOR]
    <Points>0</Points>
    <ClassPoints>0</ClassPoints>
    <LapRankIncludingDiscos>1</LapRankIncludingDiscos>
    [COLOR="#FF0000"]<Lap num="1" p="1" et="0.0000" s1="49.5261" s2="53.6781" s3="22.6252" fuel="0.318" fcompound="0,Sprint" rcompound="0,Sprint">125.8293</Lap>
    <BestLapTime>125.8293</BestLapTime>
    <FinishTime>125.8293</FinishTime>
    <Laps>1</Laps>
    <Pitstops>0</Pitstops>
    <FinishStatus>Finished Normally</FinishStatus>[/COLOR]
    <ControlAndAids startLap="1" endLap="17">PlayerControl,Clutch,AutoBlip</ControlAndAids>
    </Driver>
    
    ... next drivers always in the <Driver> tags ...
    
    <Driver>
    ... take care of the right <Position> and if it's a multiclass event, also of <ClassPosition>
    </Driver>
    
    
    [COLOR="#FF0000"]</Race>[/COLOR]
    </RaceResults>
    </rFactorXML>
    
    But it's untested because I have no access to a sls league system. If a drivers hadn't completed the lap, it should be written like this (no <FinishTime> )...

    Code:
    ...
    <Lap num="1" p="1" et="0.0000" s1="49.5261" s2="53.6781" s3="22.6252" fuel="0.318" fcompound="0,Sprint" rcompound="0,Sprint">125.8293</Lap>
    <BestLapTime>125.8293</BestLapTime>
    <Laps>1</Laps>
    <Pitstops>0</Pitstops>
    [COLOR="#FF0000"]<FinishStatus>DNF</FinishStatus>[/COLOR]
    ...
    
    It is also possible to delete the <Lap num= ... </Lap> entry. Important for the ranking are only the positions, <FinishTime> and <FinishStatus>
     
  11. Knackko Lovitch

    Knackko Lovitch Registered

    Joined:
    Feb 22, 2013
    Messages:
    22
    Likes Received:
    0
    Thanks Sebastian, i will try that. If you need an SLS access, I can give you one for any tests you need.
     
  12. Sebastian Röhn

    Sebastian Röhn Registered

    Joined:
    Jan 20, 2012
    Messages:
    39
    Likes Received:
    0
    Thank you for this offer...but I don't really need it at the moment. Have you already tried out my proposal?
     
  13. Knackko Lovitch

    Knackko Lovitch Registered

    Joined:
    Feb 22, 2013
    Messages:
    22
    Likes Received:
    0
    Yes ! it works ! thank you for the tip ! now, got to see if I can a script it to automatically browse, edit and export the XML file.
    Here is the test result: http://old-drivers-spirit.fr/sls/index.php?dataarray[dest]=resevent&dataarray[IDseason]=30&dataarray[IDrace]=271
     

Share This Page