I’ve created a plugin for rFactor that forwards plugin calls to Python scripts, making the task of programming for rFactor much easier. Python is loaded with tons of useful modules (urllib2 and serial, for example) ready to use, and their documentation is very, very good.
Using the plugin is simple as placing its .dll in rfactor/Plugins and rfactor.py in rfactor/.
Python (2.7 at the moment) is the only requirement.
rfactor.py is a simple demonstration but also serves as the plugin’s documentation.
Let me illustrate some cases. You can:
- update a database with players timings every 30 seconds
- create a webpage with live server status (like this one)
- transmit telemetry data over a serial connection (ex. to an Arduino)
- send an email, with results, after a race ends
Of course, all of these examples are possible with C++ plugins, but doing them in Python is incredibly more friendly.
It’s just a matter of editing rfactor.py! No compiling!
Possibilities are many and if you’re using this plugin in a project, I’d be happy to know about it.