[REL] rF2 Shared Memory Tools for Developers

Discussion in 'Other' started by The Iron Wolf, Jan 19, 2017.

  1. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Yes it's a well known old bug of the HUD of rF2.
     
  2. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    Amazing isnt it? I mean as new rf2 player, you are immediatly facing this bug. You buy a new sim, saying its so great, and you SEE a simple yet easy to fix malfunction right away. (Next to total messed fuel consumption values sometimes). And S397 does not care. Do they play their own game at least sometimes???
     
    Davvid, badun and McFlex like this.
  3. João Maurizio Gurtner

    João Maurizio Gurtner Registered

    Joined:
    Jun 16, 2019
    Messages:
    13
    Likes Received:
    1
    Hi all, I have an issue with the shared memory plugin on rf2, since I cant turn it on in game. It says "on (after restart)", but when I restart the game it appears off again.
    Any help??
    Thanks!
     
  4. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    I don't know what's causing that but you can do it manually, edit c:\Program Files (x86)\Steam\steamapps\common\rFactor 2\UserData\player\CustomPluginVariables.JSON (or wherever you have rFactor installed) which should have an entry something like this

    Code:
      "rFactor2SharedMemoryMapPlugin64.dll":{
        " Enabled":1,
        "DebugISIInternals":0,
        "DebugOutputLevel":0,
        "DedicatedServerMapGlobally":0,
        "EnableDirectMemoryAccess":1,
        "UnsubscribedBuffersMask":32
      }
    Note the space in
    Code:
    " Enabled":1,
     
    The Iron Wolf likes this.
  5. João Maurizio Gurtner

    João Maurizio Gurtner Registered

    Joined:
    Jun 16, 2019
    Messages:
    13
    Likes Received:
    1
    [​IMG]
    Thats odd because I don´t have that file :/
     

    Attached Files:

  6. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    It's a basic part of rFactor whether or not you use this plugin. If it's not there it might explain why you can't turn the plugin on! No, if it's not there there won't be anything to turn on.
     
  7. João Maurizio Gurtner

    João Maurizio Gurtner Registered

    Joined:
    Jun 16, 2019
    Messages:
    13
    Likes Received:
    1
    Something is reaaly strange here then, because I can see the plugins in game...
     

    Attached Files:

  8. Morida

    Morida Registered

    Joined:
    Aug 31, 2020
    Messages:
    1
    Likes Received:
    0
    Does anyone have a fix for that? I have the same problem.... Check files didn't helped.... And yeah you guessed right, nothing will be turned on.....
     
  9. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    09/07/2020 - v3.7.14.2

    This version introduces input buffers. See "Input Buffers" readme section (on Github) for more info.

    Plugin:
    * Expose `rF2PitInfo` and `rF2Weather` buffers. Special thanks for prototyping `AccessPitMenu` and `CheckHWControl` plugin functionality go to Seven Smiles.
    * Expose `rF2HWControl` input buffer, which allows sending limited number of inputs into the game.
    * Expose `rF2WeatherControl` input buffer, which allows changing weather conditions dynamically.
    * Expose `rF2PluginControl` input buffer. Allows requesting additional plugin features dynamically.
    * Experimental: Expose `rF2RulesControl` input buffer, which allows sending rules input into the game.
    * Intenral: rework tracing and reduce code duplication.

    Monitor:
    * Updated to demo newly added features.

    Thanks to @The Menace for helping testing and tracking down a bug in an early version
     
    Last edited: Sep 7, 2020
  10. buzz hornet

    buzz hornet Registered

    Joined:
    Oct 5, 2010
    Messages:
    338
    Likes Received:
    249
    Thanks for this
     
  11. Knd

    Knd Registered

    Joined:
    Jan 31, 2019
    Messages:
    5
    Likes Received:
    0
    Hi Iron Wolf,
    I used your rf2Monitor code, and removed almost everything, just to use it as a FFB Clipping Tool Buzzer.
    Basically the only thing made was an added "if" to play the buzzer if the FFB value is 1 (using the Abs for the negative values)
    Hope you don't mind, since for me it's easier to test the clipping this way.
    As a Logitech user, using your code made easier to setup my wheel.
    I didn't want to start a new thread, because to be honest, I don't want to "steal" you excellent work.

    Thank you for your amazing tools and add-ons.
     

    Attached Files:

  12. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    Absolutely - you can use it for your uses and share it with others :) Though stuff like that better fits simhub that uses my plugin for FFB meter and would surely allow script doing what you wanted.
     
    Last edited: Sep 15, 2020
    atomed likes this.
  13. Autosport

    Autosport Registered

    Joined:
    Jun 5, 2014
    Messages:
    10
    Likes Received:
    7
    I can't get the Monitor to work, I just get the Not Connected message. What have I done wrong?
     
  14. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    Is it true that this plugins uses memory hack technics to access data which is not available by the common plugin interface?
     
  15. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    No. It just uses the API published by S397.

    Corrected by The Iron Wolf.
     
    Last edited: Nov 13, 2020
  16. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    Sure? There is code on github which indicates memory scanning
     
  17. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    If you know something different, you could show any source?
     
  18. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    lagg likes this.
  19. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    So a widley used tool uses, or lets say demonstrates, cheater tech, even by publishing code ?
    And shows that cheating can work (and how)?
     
  20. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,345
    Likes Received:
    6,572
    Anyone wanting to do such things for nefarious purposes can easily find how to do such things. It's not like those functions are secret. I'm not sure what your motive is here.
     
    atomed, McFlex, lagg and 1 other person like this.

Share This Page