1. This Software is no longer supported by us. Please download the new motion control software SimTools.
    Dismiss Notice
  2. 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
  3. 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!
  4. 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
  5. 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

iRacing plugin ?

Discussion in 'Force-Sender & Plugins' started by iRacingSteph, Apr 27, 2009.

  1. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi,

    I developped a plugin for iRacing (known under name: Telemetry HUD), it display split timing and other stuff, very usefull to improve his driving...

    Jochen contact me to modify my plugin to make it work with X-Sim, so he give me a sample project of GrandPrix plugin, so I see that I need to create two function in my DLL but I need some help to add Effect 25, 26, 27, where I put this data, there is no place in GetPluginDataEx ?

    other question: Who is creating instance of plugin DLL ?
    In my case, it's iRacing because it's a d3d9 proxy DLL, is it a problem ?

    Thanks for your response,
    Regards

    [​IMG]
  2. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    First, thanks for the explication ;)

    You are right, only one program can use the iRacing Telemetry !

    It's the part that I doesn't know, I thought that the DLL will be loaded by iRacing and the X-Sim function calls use the same DLL instance.

    In fact, I don't want to rewrite all the code, so it could be nice if I just to add the x-sim get data functions in my DLL...
    May be, in future I can't write differently my plugin to make it universal for your sim, but there is lot of works to do in my plugin (I build this plugin to improve my driving with nice feature like auto-shiftlight or realtime delta timing)
  3. Ringorumble

    Ringorumble Active Member

    Joined:
    Jan 20, 2008
    Messages:
    178
    Balance:
    190Coins
    Ratings:
    +48 / 1 / -0
    Hi stephane, would be great if you could realize it in any way !
    Jochen
  4. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    First test with X-Sim 2.0 (speed and rpm)

    screenshot
    (don't look my FOV setting, normaly I run with 3 displays ;))

    I create a new sender DLL, this one communicate with my d3d9 proxy dll...

    Why I get strange values ?
    The speed is updated normaly but the RPM are updated only when I shift a gear ?!
    Actually, I'm not using Mutex, is it a problem ?
  5. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Someone could explain how X-Sim get data ?
    Because I modify the original source code of iRacing plugin for X-Sim to make a version which communicate with my DirectX plugin (it sample telemetry at 360Hz)

    But I'm not get the same value than the original X-Sim iRacing plugin :(
    Sirnoname, do you want to see my source code ? or 360Hz is it my problem ?

    In fact, I don't know how to synchronize my plugin with the X-Sim plugin...
  6. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Someone could explain how X-Sim get data ?
    Because I modify the original source code of iRacing plugin for X-Sim to make a version which communicate with my DirectX plugin (it sample telemetry at 360Hz)

    But I'm not get the same value than the original X-Sim iRacing plugin :(
    Sirnoname, do you want to see my source code ? or 360Hz is it my problem ?

    In fact, I don't know how to synchronize my plugin with the X-Sim plugin...
  7. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Yes, thank you, I copy/paste the x-sim source code to add the shared memory with my d3d9 dx plugin.
    But the force values are not correct, not same than the original iRacing dll...
    I don't know why :(
    My DX dll work with iRacing at 360Hz, but I don't know how X-Sim get data so I thinks X-Sim get one telemetry sample on some so the G Forces is not correct...
    like this shema (D = sample for DirectX plugin, X = sample for X-Sim)
    D-D-D-D-X-D-D-D-D-X

    I can send you the modified source code, if you want take a look ?
  8. ebinary

    ebinary New Member

    Joined:
    Jun 23, 2009
    Messages:
    90
    Balance:
    2Coins
    Ratings:
    +0 / 0 / -0
    FYI - the rfactor.fr (where the above link refers) is being flagged as a host of malicious code according to Google Chrome.

    If anyone here is an Admin on rfactor.fr, you may want to take that up with Google.

    Eric
  9. Ringorumble

    Ringorumble Active Member

    Joined:
    Jan 20, 2008
    Messages:
    178
    Balance:
    190Coins
    Ratings:
    +48 / 1 / -0
    Sirnnoname, have you had any chance to look at the code from stephane ?
  10. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    @ sirnoname
    Yes, the force seem réel but I haven't a motion cockpit so someone made a test for me and he show me that the values are not the same than original dll...

    @ ebinary
    Yes, I know for this server, it's not mine, it's from a private league...
  11. Ringorumble

    Ringorumble Active Member

    Joined:
    Jan 20, 2008
    Messages:
    178
    Balance:
    190Coins
    Ratings:
    +48 / 1 / -0
    Martin, he doesnt know where to send, thats the problem i think ...
  12. Ringorumble

    Ringorumble Active Member

    Joined:
    Jan 20, 2008
    Messages:
    178
    Balance:
    190Coins
    Ratings:
    +48 / 1 / -0
    Thats sad , how much work would that be for somebody which is firm with c++ if the sources are available. What do you think ? Is it really that hard that his iracingplugin for x-sim he already wrote puts out the forces in the right spot, since it is already putting out something ?
    I just try to understand , i dont wanna be an ass!
  13. Ringorumble

    Ringorumble Active Member

    Joined:
    Jan 20, 2008
    Messages:
    178
    Balance:
    190Coins
    Ratings:
    +48 / 1 / -0
    After reading Wiki , the memory mapped file works like this ?
    Iracing Api sends to memory Mapped file

    The Memory Mapped File sends to stephanes, x-sim and anything else the original data what iracing is putting out ?

    So if he would use this everbody which is iracing and have more than one app/piece of hardware could use this ?

    For example a wheel which (like the new g27) which is getting infos for the rev limiter over the api, would that also work right from scratch or would logitech have to reprogram that that it gets data from the memory mapped file ?

    Do i understand that ?
  14. Ringorumble

    Ringorumble Active Member

    Joined:
    Jan 20, 2008
    Messages:
    178
    Balance:
    190Coins
    Ratings:
    +48 / 1 / -0
    Thanks ! Now i understand that.
  15. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    I don't really take a look to your modified code, because your PM is clear
    So again you want I modify how my plugin get the data so read from shared memory instead from read from iRacing API. There is no sense...

    It's more easy to me to share memory from my plugin and write a x-sim dll to read these data...
  16. iRacingSteph

    iRacingSteph New Member

    Joined:
    Apr 27, 2009
    Messages:
    14
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    I don't want to modify my plugin to get the telemetry datas from the X-Sim plugin, only few drivers use X-Sim in the iRacing world.

    maybe one day, I write a real plugin for X-Sim which display directly information on screen, so convert my plugin into a real X-Sim plugin...