[REL] rF2 Shared Memory Tools for Developers

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

  1. FNDY

    FNDY Registered

    Joined:
    Jul 7, 2022
    Messages:
    3
    Likes Received:
    0
    but my live timing wont showup
     
  2. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    362
    Likes Received:
    365
    Could someone give me some guidance on this aspect? (it is difficult for me to look for information due to my complete lack of knowledge of English)
    What kind of events can be triggered or place where I can consult it?
    I work with a very old memory map and I would be interested to know if these maps provide me with the gates I need to better implement the functions I have programmed or even add some new ones that I currently have in mind and can not integrate.
     
  3. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
  4. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    362
    Likes Received:
    365
    Thanks for your help @Seven Smiles ,

    I will try to understand the code (I use vb.net) and adapt it to see if I can do something with it. What I haven't found is the data structure of HWcontrols. My English problems prevent me from figuring things out.

    What I need to be able to do what I want is to be able to turn on/off the lights, activate/deactivate the limiter and, which from what you have told me is not going to be possible, to use the handbrake.

    Sorry for abusing but is it possible to access the chat content of the message center?

    It would be very interesting for me because in this way I could send/receive commands to the other pilots without having to make TCP links.

    To make myself understood I will give an example: (using my software of course)

    A driver suffers an accident and sends a code through the chat that all drivers receive and, consequently, the software activates the limiter to simulate a Virtual Safety Car.

    I am still looking for legal methods to simulate this and other functions I have in mind.

    Thanks again.
     
  5. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    You can't control any of those with HWControl, the only way is by sending "fake" keypresses to rFactor. That works reliably though you need to read the status from the shared memory to know whether you are toggling them off or on. See my rF2 Headlights program (Python)
     
  6. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    362
    Likes Received:
    365
    Yes, that's how I'm doing it but, for example, with the lights an annoying message appears that I wanted to avoid.

    Well you have clarified part of what I wanted, see if someone can give me some guidance on whether it is possible to 'read' the chat.

    Thank you very much.
     
  7. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    Hi guys! suddenly crewchief and simhub no longer work with RF2, and I've noticed that the game no longer recognizes rf2sharedmemory , the plugin is in the folder where it should be, according to simhub everything is normal but in the game the rf2shared does not come out in the plugin list . everything seems normal, can someone help me?
    [​IMG]
    [​IMG]
    things i already did:
    - verify local files - delete the plugin folder and let the game recreate that - changing rf2 version and reverting to the latest release - deleted custompluginvariables file - update to last release of rf2shared - executing all the redistributables included in ..\rFactor 2\Support\Runtimes\
     
    Last edited: Sep 5, 2022
  8. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Try executing ALL the redistributables included in ..\rFactor 2\Support\Runtimes\
     
  9. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    Did it, nothing changed
     
  10. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    That's strange. If the runtimes are installed, rF2 should recognise the dll.
    I'd try downloading again the SharedMemoryMap dll and moving the CustomPluginVariables.JSON to another folder, to force rF2 to create a new one.
     
  11. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    nothing, the game will create the custompluginvariables without the sharedmemory
    upload_2022-9-5_15-24-21.png
    i've tried that before as said on top but wanted to retry to make sure
     
    Paolo Pennimpede likes this.
  12. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    update:
    upload_2022-9-5_18-21-48.png
    so the game recognize the dll but can't load it
     
  13. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    362
    Likes Received:
    365
    Crazy but possible: could it be the antivirus or some software blocking it?
     
  14. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    honestly could be, i disabled my antivirus but i don't know if i have softwares that can cause issues with that
     
  15. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    362
    Likes Received:
    365
    Another madness: Check dll file and folder permissions
     
  16. EricW

    EricW Registered

    Joined:
    Jun 2, 2017
    Messages:
    182
    Likes Received:
    127
    Not sure you tried to check windows defender settings and the firewall entries.
    Just remove any reservation regarding the programs you like to run simultaneously.
    After that you'll be asked allowance, which you'll have to allow of course.
     
  17. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    did it, and the shared memory has the same permissions as the others dll, nothing happened

    i should have done everything you mentioned but nothing changed.

    Afaik i should have done everything to "fix" the issue (even updated the vc++ to latest version thanks to support from rf2 discord, but nothing happened), but nowere to go, might reinstall the game and hope to not get that problem again
     
  18. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Reinstall the program almost never solves any problem.
    Check the integrity of the game files and do a test.
    If there is no luck, move your ..\rFactor 2\UserData folder to force rF2 to create a new one.
     
  19. Luca Martino

    Luca Martino Registered

    Joined:
    Jul 21, 2021
    Messages:
    16
    Likes Received:
    6
    did both, sadly nothing changed but i'll give it one more try
     
  20. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Your case is very, very strange.
    If you:
    • Downloaded the DLL again, just in case the file is corrupted.
    • Installed all the VC runtimes (32 and 64 bits independently of your system type).
    • Checked the rF2 files integrity.
    • Have the permits to access the DLL.
    • Have a new rF2\UserData fólder.
    • And the Antivirus isn't locking the DLL.
    I've no more ideas, sorry
     

Share This Page