@mantasisg a good news, follow up from your post regarding
TachometerNonlinear experiment, I've tried more testing, and managed to get
"impulse" tachometer working in RF2.
Here is an animation showcase the impulse effect on Skip barber:
ps: main difference (or limitation) of this method compare to the real one seen in 50s is that it is RPM based rather than timing based, so the "impulse" interval varies a bit at lower or high gear instead of constant.
The code part:
TachometerNonlinear=(0,0) // target RPM to override; RPM for displaying
Basically, the first value of TachometerNonlinear is the RPM that we need to override with; the second value is the target RPM range we want the needle to be placed at.
The reason it doesn't work with a few lines (big steps) of TachometerNonlinear, is due to that game automatically interpolates the RPM gap between each TachometerNonlinear line in order to produce smooth transition. The solution is to simply override every one RPM step with second value, so game won't have the chance to interpolate it.
Edit:
Just did a bit more testing, apparently the code can be further simplified down to following, there is no need to add TachometerNonlinear for every single RPM, but only the lower and upper bound of each step. Updated example files
For example, the original test code that doesn't work:
Code:
TachometerNonlinear=(000,0)
TachometerNonlinear=(500,500)
TachometerNonlinear=(1000,1000)
//(... continues)
Code that works after fill in TachometerNonlinear for lower and upper bound RPM steps:
Code:
//------------ Target RPM: 0, Override: 0 - 499
TachometerNonlinear=(000,0)
TachometerNonlinear=(499,0)
//------------ Target RPM: 500, Override: 500 - 999
TachometerNonlinear=(500,500)
TachometerNonlinear=(999,500)
//------------
TachometerNonlinear=(1000,1000)
TachometerNonlinear=(1499,1000)
//------------
TachometerNonlinear=(1500,1500)
TachometerNonlinear=(1999,1500)
//(... continues)
For complete example, see attached
tach_nonlinear_rpm20000_step500.txt file which contains full TachometerNonlinear example lines, range from RPM 0 to 20000RPM with 500RPM step for each impulse, that should be enough for most cars. Note, you only need the lines up to the car's max RPM, for example, skipbarber is around 7000RPM.
Also see attached example file inside
skipbarber_cockpitinfo.zip (just extract and drop it in
ModDev\Vehicles\SkipBarber folder, backup old file first) which can be tested in Dev Mode.
The limitation of example file is that changing RPM step(impulse) require some manual editing. Maybe
@redapg can come up with some tools to easily change RPM step & automate whole process.
Plus, this method is pretty easy to be integrated with existing mods (only need change cockpitinfo.ini), probably a good starting point.
Good luck.