Use last driven car to reuse mirror, and FFB multipler settings, for all other cars of same kind.
Adjusting mirrors and/or FFB multiplier is only saved for the current vehicle/livery combination. I.e. when selecting the same car but a different livery you need to set the mirrors and FFB once again.
Monitor the last driven car's settings and apply/copy those settings to the all other cars of the same type.
-
Download
node
and install (if you don't have it installed already) -
Also download
yarn
. (It might work withnpm
as well, just exchangeyarn
tonpm
below). -
Download (or fork) the sources, having
all_vehicles.js
, and place/unpack anywhere you like (ensure you have write permissions in this directory though, i.e. don't put it under Program Files). -
Open a command prompt and CD to the location of the script, and run
yarn install
This downloads all dependencies needed, and you should able to run it.
After you exit rFactor 2 just run this script using yarn
as
yarn start
and all cars with the same type, as the one last driven, will be updated to use the same settings for mirrors and FFB multiplier.
The above means you must exit rFactor 2 before selecting a new car. To be able to go in and out from sessions with different cars, or other livery, you can start as
yarn start --watch
which will watch when a new car is chosen, and add it to a queue. When rFactor 2 is ended, the settings of used cars will be applied - in used order. Note, switching livery without exiting the game in between will apply the latest driven livery to the rest of similar cars. So ensure the last driven car has your preferred settings.
A configuration file, all_vehicles.JSON
, placed in the same folder as the script can be used to tweak the process and set the location of your rFactor 2 player directory and the strategy used to find same cars.
{
"playerDir": "<path>/<to>/playerdir>",
"scope": "SAME_VERSION_ONLY" | "IGNORE_VERSION"
}
Copy the all_vehicles.example.JSON
as all_vehicles.JSON
and change the content as you see fit - most probably you may need to change the location of playerDir
.
Cars are identified by its name and version inside all_vehicles.ini
. Use the scope
configuration to tweak which cars should be affected:
SAME_VERSION_ONLY
(default) whenSAME_VERSION_ONLY
same cars are those having having the same name and version - i.e. if you have a car where you are using multiple versions, only cars of the same version is affected.IGNORE_VERSION
ignore the version of the car, and apply settings to all cars of same brand/type (ignoring its version).
A history file, all_vehicles-history.JSON
, in the same directory as the script, is used to track updated vehicles (no real use at the moment, only as log)
Please report issues on github, https://github.com/mattno/rf2-all_vehicles/issues.
Not yet available.