Difference rFactor 1 and rFactor XML

Discussion in 'General Discussion' started by mauserrifle, May 9, 2013.

  1. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    Title is wrong. Should be: Difference rFactor 1 and rFactor 2 XML

    What's the best way to detect whether a XML is from rFactor 1 or 2? Both versions have the exact same "<rFactorXML version="1.0">" and "<GameVersion>1.155</GameVersion>". That's kind of silly...

    Is there any new tag in rFactor 2 available that's added 100% all of the time so we can distinguish it?
     
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,386
    Likes Received:
    6,602
    I just did a quick compare between an rF1 xml and an rF2 one, and the rF2 tags <ServerName> and <ClientFuelVisible> aren't in the rF1 file. That's using the trymedia rF1 exe.
     
  3. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    But not always present in rf2 the log. Atleast not the logs I looked at. Will look later for a good detection. When found I'll post.
     
  4. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
  5. MJP

    MJP Registered

    Joined:
    Oct 5, 2010
    Messages:
    988
    Likes Received:
    21
    You might be on 1.155, most of us are on 1.197. ;)
     
  6. mauserrifle

    mauserrifle Registered

    Joined:
    Feb 26, 2013
    Messages:
    382
    Likes Received:
    3
    lol good point. I havnt looked at the latest results yet. Thnx for pointing out :p

    EDIT: I think it's currently always reporting that version... Oh well. I just check for rf1 version for now.

    I hope for a json version soon :) Read that rf2 will move to json.
     
    Last edited by a moderator: May 11, 2013

Share This Page