1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

[Noob] Reading SimTools outputs

Discussion in 'Miscellaneous' started by magicfr, Oct 21, 2014.

  1. magicfr

    magicfr kimochi

    Joined:
    Oct 21, 2014
    Messages:
    6
    Occupation:
    Software Ingineer
    Location:
    Lyon, France
    Balance:
    388Coins
    Ratings:
    +1 / 0 / -0
    Hello,

    I'm new here, and honestly , even If I know what XSim is doing, I have 0 knowledge on it :D

    I made a plugin for rFactor1/rFactor2/AssettoCorsa, Real Head Motion.

    Also I have somebody who use my plug who use X-Sim.

    Their simulator have yaw motion computed with X-Sim from the game output telemetry, but their screen is static.

    Is there a way for me, with a X-Sim plug-in I could code, or shared memory, to read the Yaw computed by X-Sim to send it to my plug so I can move the camera to follow the Yaw computed from X-Sim.

    If yes, could you point me to according documentation.

    Best Regards.
    Seb.
    Last edited: Oct 21, 2014
  2. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello!

    I assume you're talking about Simtools!
    not X-sim. You can edit your post to avoid any confusion :)

    The telemetry data are extracted by Simtools and sent to a Comport.

    Can your plugin read a ComPort?
    Yours
    Mat
  3. magicfr

    magicfr kimochi

    Joined:
    Oct 21, 2014
    Messages:
    6
    Occupation:
    Software Ingineer
    Location:
    Lyon, France
    Balance:
    388Coins
    Ratings:
    +1 / 0 / -0
    From my undestanding they are not directly sent to comport, SimTools read game telemetry output ( Gs, velocitie : linear/angular ), and compute a yaw,pitch,roll for the nDOF simulator, right?
    I neeed to read that output Yaw.
    Reading the comport wouldn't help if don't know the exact structure sent to it. Also it's a bit like a hacking solution to directly read the data output to the comport instead of using a genuine plug-in solution ;)
  4. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,498Coins
    Ratings:
    +3,319 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Hi @magicfr
    If I understand you right, you want to read the raw data output of the simulation/game.
    For that you can use the documented interfaces of the mentioned games. That's the most direct way.
    Alternatively you can send the different data available in SimTools to an IP address.
    See the documentation of SimTools and rFactor/Assetto Corsa for more details.
  5. magicfr

    magicfr kimochi

    Joined:
    Oct 21, 2014
    Messages:
    6
    Occupation:
    Software Ingineer
    Location:
    Lyon, France
    Balance:
    388Coins
    Ratings:
    +1 / 0 / -0
    Hi,
    No I don't want to read the game's car yaw, I already read it in my plug.
    I want to read the motion cockpit yaw computed by SimTools sent to the motion rig.
    The motion rig yaw is not equal to game's car yaw, it depend of car's angular velocities and G and parameters set into SimTools ( from my understanding )

    Cheers,
  6. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,162
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,172Coins
    Ratings:
    +5,037 / 16 / -0
    You want to use the NET output from SimTools, like @value1 described above.
    yobuddy
    • Informative Informative x 1
  7. magicfr

    magicfr kimochi

    Joined:
    Oct 21, 2014
    Messages:
    6
    Occupation:
    Software Ingineer
    Location:
    Lyon, France
    Balance:
    388Coins
    Ratings:
    +1 / 0 / -0
    Hi yobuddy,

    I'm a bit confused, you talk about Net ouput from SimTools that sound like what I want, but Value1 seems to talk about output from the game ( rFactor/AssettoCorsa) which is obviously ;) already what I'm doing in my plug.

    Like you both suggested I'll look at SimTools documentation . I didn't find it on the website so I guess I have to download it.

    Cheers,
    Seb
  8. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    For documentation, you have a Starting point with the link in my signature below
    Then you will see the subsection forum from there
    (No easy link copy paste with smartphone sorry)
    Mat