[REL] rF2 Shared Memory Tools for Developers

* Expose `rF2HWControl` input buffer, which allows sending limited number of inputs into the game.

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.
 
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.
 
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.
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)
 
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.
 
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?
unknown.png

unknown.png

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:
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?
unknown.png

unknown.png

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
Try executing ALL the redistributables included in ..\rFactor 2\Support\Runtimes\
 
Did it, nothing changed
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.
 
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.
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
 
honestly could be, i disabled my antivirus but i don't know if i have softwares that can cause issues with that
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.
 
Another madness: Check dll file and folder permissions
did it, and the shared memory has the same permissions as the others dll, nothing happened

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.
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
 
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.
 
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.
did both, sadly nothing changed but i'll give it one more try
 
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
 
Back
Top