

- #INSTALLING RFACTOR 2 MODS UPDATE#
- #INSTALLING RFACTOR 2 MODS CODE#
- #INSTALLING RFACTOR 2 MODS FREE#
It is possible to configure which buffers get updated and which don't. Other buffers can be enabled via CustomPluginVariables.json settings. Note: only PluginControl and HWControl buffers are enabled by default.
#INSTALLING RFACTOR 2 MODS UPDATE#
HWControl - Read at 5FPS with 100ms boost to 50FPS once update is received.The idea here is to allow client to turn missing functionality on if it is missing due to misconfiguration. Also, allows enabling control input buffers. Plugin Control inputĪllows dynamically subscirbing to buffers that might've been unsubscribed by CustomPluginVariables.json configuration.
#INSTALLING RFACTOR 2 MODS FREE#
That said, I am very passionate about autosport rules, so if you try to use this plugin for rules development and need help/changes (with the plugin part), feel free to reach out. I tried to minimize the impact of this processing gap by copying some of the latest rules state onto the updated state, but I do not know how reliably would that work. So there's a gap between game ouput rules and requested input rules. Using shared memory plugin this process is not synchronous: game sends rules in a function call, plugin picks up rules update from the input buffer in a separate function call, and will apply update next time game calls rule update function. The reason for that is that when done inside of a plugin, rules are applied synchronously: game sends rules input, and allows updating that input in the same callback, meaning synchronously. However, this is experimental, because I am not positive this approach is going to "fly"/is reliable. The idea was that it might make developing custom rules plugin easier, by being able to change logic in an external app/script without rebuilding plugin/restarting rF2. It allows sending Rules input to the game. This might be useful in keeping internet queries/thread synchronization out of rF2 plugin thread and inside of a standalone weather control app. Weather Control inputĪllows sending weather input. HWControl inputĪllows sending restricted set of inputs to rF2. Although multiple clients should be able to coexist fine, they will need to be mindful of buffer update clashes, plugin does not moderate that part. Note: designed with only one write client in mind.
#INSTALLING RFACTOR 2 MODS CODE#
Monitor app includes sample code that uses Input buffers. When working with the input buffers, make sure to set DebugOutputLevel to 15 and DebugOutputSource to 32767 and review UserData\Log\RF2SMMP_DebugOutput.txt for errors and warnings. Please use this stuff with extreme care - it can cause game freezes and unexpected behavior. Plugin supports sending input to the game (using rFactor 2 API). Note to cheaters who dare to contact me with questions: none of this can be used to control vehicle. Note: Graphics and Weather are unsbscribed from by default.

