[WIP] Race Engineer (Spotter) plugin for rFactor 2

Plugin V0.4 Available
- Fix Wrong Blue flags
- Fix Wrong Fuel message
- Add Break and Tire temp message, here the default threshold, in °C, i set (tell me if i set wrong values)
Code:
v:breakTooHot=600
v:breakTooCold=300
v:tireTooHot=105
v:tireTooCold=80


It depend configuration (if we supose it is not a bug).
For example, each event have a spacing value (mean that once a sound have been played by this event, another event of the same type (name) cannot be played during Spacing (second).


Optimum tire and brake temperatures depend on the mod/car. While LMP cars can have brake temps up to 1000°C, street cars may overheat at 200°. So maybe you should make these value configurable.
 
Optimum tire and brake temperatures depend on the mod/car. While LMP cars can have brake temps up to 1000°C, street cars may overheat at 200°. So maybe you should make these value configurable.
It is already configurable (by vehicle class). It is why i said i put those data as default value
 
Here the list of sounds (filename and text content) in the wiki.

Note: until i create spotter sounds with TextToSpeech, the "not_enough_fuel.wav" don't have the correct sentence compare to what i have configured in the spotter.

The current wav was used in rF1 to tell when you cannot do more than 1 lap with remaining fuel, but in my spotter, the goal is too tell you if you do not have enough full to finish the session (and the remaining laps using the fuel left should be <= 5)
 
Not sure if I have understood correctly how this plugin works. I didn't get any comments regarding if it's normal if I didn't hear a single laptime or gap announcement during my 10 lap race? Also read that I'm supposed to hear announcement telling me how much faster or slower I am than the cars near me. Did I missed something?
 
The provided configuration tell you lap and sector time information only in practice and qualifying.

Relative gap with behind and front car (place) is told only in race, every 3 lap and if car behing make the previous lap faster than you (if diff average previous laptime<3s), and if you make the prevous laps faster than the driver in front (if diff average previous laptime< 3s)
 
Additionnaly, did you at least heard the "Green, Green, Green" at the begin of the race ? If not maybe you have a missplaced spotter dll or spotter config.

Also, someone didn't hear any spotter sound because it a parameter (not known which one) of its PC was in 5.1 and so didn't played spotter "mono" wav
 
The provided configuration tell you lap and sector time information only in practice and qualifying.

Relative gap with behind and front car (place) is told only in race, every 3 lap and if car behing make the previous lap faster than you (if diff average previous laptime<3s), and if you make the prevous laps faster than the driver in front (if diff average previous laptime< 3s)

Ok, I didn't hear those things you say I should hear in race...
 
Additionnaly, did you at least heard the "Green, Green, Green" at the begin of the race ? If not maybe you have a missplaced spotter dll or spotter config.

Also, someone didn't hear any spotter sound because it a parameter (not known which one) of its PC was in 5.1 and so didn't played spotter "mono" wav

Yeah, I heard green green green. But only at one race start... after that it just crashed to desktop after race start.

Files are where readme file informed me to put them.
 
Plugin V0.4 Available
- Fix Wrong Blue flags
- Fix Wrong Fuel message
- Add Break and Tire temp message, here the default threshold, in °C, i set (tell me if i set wrong values)
Code:
v:breakTooHot=600
v:breakTooCold=300
v:tireTooHot=105
v:tireTooCold=80

Maybe it could be wrong or not, depends on the cars and the track. Just a crazy idea, but would be nice to set the min/max temps for the plugin ingame ;-)
 
Maybe it could be wrong or not, depends on the cars and the track. Just a crazy idea, but would be nice to set the min/max temps for the plugin ingame ;-)

I see that the Class configuration seem not clear, here a most detailed explanation.

When the plugin take a value from the Spotter.ini, it start to take this parameter in a section who have the name of the VehicleClass (rF2 data provided by the plugin API) and if this parameter have not been overrided in the VehicleClass section (or if this section does not exists), it will read the parameter in the [DEFAULT] section.

So for example (as i don't know which value to put, i just put different value - not realistic values):
Code:
[DEFAULT]
v:breakTooHot=600
v:breakTooCold=300
v:tireTooHot=105
v:tireTooCold=80

[SkipBarber_National]
v:breakTooHot=900
v:breakTooCold=600

[Kart Junior]
v:breakTooHot=400
v:breakTooCold=100
v:tireTooHot=135
v:tireTooCold=100

This example mean that if you enter the session with :
- a Kart Junior: the optimal break range is between 100 and 400 and for tires is 100 and 135
- A SkipBarber_National: the optimal break range is between 600 and 900 and for tires is 80 and 105 (only tire temp come from [DEFAULT])
- Any other car class: the optimal break range is between 300 and 600 and for tires is 80 and 105 (tire and break temp come from [DEFAULT])

IMPORTANT: You can override any parameter (except debugMode), so you can use a specific Rule for for a given VehicleClass (for example if you want a different level of detail and rule for NASCAR)
Code:
[SkipBarber_National]  // i know it is not a NASCAR class :)
v:breakTooHot=900
v:breakTooCold=600
Rules.file=SkipBarber.ini
maxDetailLevel=4
So it is why i asked advice for the default values. But if someone want and can provide me data for several or each ISI car, i will be very happy ;)
 
Last edited by a moderator:
Ok cool. For info, the last rF2 build have some random crash, ISI is working to find and fix those CTD (off course, in your case, may be it was my plugin in some circonstances)

For information:
- I will rework the NextSlower and BehindFaster in the next version (not satisfying algorythm)
 
Is this the correct way to add a vehicle?

I went in to the Spotter.ini and added this;

Code:
[Civic_BTCC_Car]
v:breakTooHot=500
v:breakTooCold=320
v:tireTooHot=105
v:tireTooCold=60
for the BTCC.

Also, how often should we expect chatter? On the first lap in practice I was getting a tires too cold message and after that I was getting lap and flag information. Nothing about tires or breaks. This was in a practice session.
 
Yes for the Civic (if it is what rF2 provide to the plugin as Vehivle Class)

Actually tire temperature and break are cheched at AnySector, and once a event is played (break or tire) this event will not be replayed during 2 minutes. You can update DefaultEvents.ini to change this value (Spacing).
Note : there is no message break message when break are in correct temperature range, and same thing for tire. (only if too hot or too cold)

- but i will rework it also, to be played at UpdateScoring (and only after the first lap) instead of AnySector (you can change already that in the DefaultRules.ini if you want, but in this case it will play the two events, for the first time, as soon you enter the car)
 
Back
Top