cosimo
Registered
Hi everyone,
I have started working on a "race engineer" AKA spotter plugin for rFactor 2.
The goal for this project is (for me) to just have fun and do try some C++ programming while staying in a field I like (simracing).
I have looked at the rFactor 1 spotter plugin and it's a massive amount of work, probably far too much for me, compared to the little time I have to dedicate to this.
I do want to try anyway to have at least a subset of those functions, probably only configurable with a text file somewhere. So, a really minimal start and then we'll see where this goes, no promises
I started tonight to prepare the compiler environment, get the example plugin from ISI, documentation and study the rf1 spotter, for which unfortunately no code is available. I am now at a basic proof of concept stage:
Next up on my list are:
An important thing I will need to figure out is how to have the "RaceEngineer" react differently to different cars or tracks. For example, 600°C is just an arbitrary number. Ideally this number should change according to the car. An F1 car is different from a Clio when it comes to brake temp threshold. How do I know that? Can I query the rF2 engine for the current active car or a sensible brake threshold for the current car?
I have started working on a "race engineer" AKA spotter plugin for rFactor 2.
The goal for this project is (for me) to just have fun and do try some C++ programming while staying in a field I like (simracing).
I have looked at the rFactor 1 spotter plugin and it's a massive amount of work, probably far too much for me, compared to the little time I have to dedicate to this.
I do want to try anyway to have at least a subset of those functions, probably only configurable with a text file somewhere. So, a really minimal start and then we'll see where this goes, no promises
I started tonight to prepare the compiler environment, get the example plugin from ISI, documentation and study the rf1 spotter, for which unfortunately no code is available. I am now at a basic proof of concept stage:
- I've got the plugin code to compile and run correctly in build 494
- I added a simple alert on average brake temperature > 600°C
- I verified from the log files that this condition is correctly triggered
Next up on my list are:
- Including the fmod library in the project
- Get to play a sample wav/ogg/mp3 file whenever the brake temp goes over 600°C
- Try to not crash or slow down rF2 when playing external samples, basically use the fmod async APIs
An important thing I will need to figure out is how to have the "RaceEngineer" react differently to different cars or tracks. For example, 600°C is just an arbitrary number. Ideally this number should change according to the car. An F1 car is different from a Clio when it comes to brake temp threshold. How do I know that? Can I query the rF2 engine for the current active car or a sensible brake threshold for the current car?