3/13/2024 0 Comments Rfactor 2 trackmap plugin dx11Plugin Control inputĪllows dynamically subscirbing to buffers that might've been unsubscribed by CustomPluginVariables.json configuration. 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. 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. Extended - 5FPS and on tracked callback by the game.Multi Rules - on callback from a game, usually once a session and in between sessions.Plugin is built using VS Community Edition, targeting VC12 (VS 2013) runtime, since rF2 comes with VC12 redist. Plugin offers optional weak synchronization by using version variables on each of the output buffers. Tony Whitley: pit info/HWControl prototyping/bug fixes/proofreading.Morten Roslev: parts of DMR implementation and teaching me various memory reading techniques and helping me to stay sane.Vytautas Leonavičius With contributions by:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |