cosimo
Registered
Hi all,
I'm spending some free time programming plugins for rFactor 2 these days
I put together this proof of concept for a Delta Best or Delta Time plugin.
This is the implementation of the iRacing Delta Bar for rFactor 2.
Download here:
I made this plugin for my own enjoyment and I decided to offer it to everyone else for free.
If you use the plugin and would like to show your appreciation and support, use this Paypal donation link.
Have fun!
____________________________________________________________
List of changes for v25/WEC - 2017/04/16
____________________________________________________________
List of changes for v24/Nola
List of changes for v23/Anderstorp
(v21 and v22 were just test versions with limited distribution)
List of changes for v19Nords
List of changes for v18/Targa (v17 was never released publicly)
____________________________________________________________
____________________________________________________________
List of changes for v16/Sebring
List of changes for v15/Modena
____________________________________________________________
List of changes for v14/Nardò
____________________________________________________________
List of changes for v13
____________________________________________________________
List of changes for v11 (forget v12)
____________________________________________________________
List of changes for v9 and v10:
I'm spending some free time programming plugins for rFactor 2 these days
I put together this proof of concept for a Delta Best or Delta Time plugin.
This is the implementation of the iRacing Delta Bar for rFactor 2.
Download here:
- 2017/04/16 v25 "WEC"
rF2_Delta_Best-v25.zip
I made this plugin for my own enjoyment and I decided to offer it to everyone else for free.
If you use the plugin and would like to show your appreciation and support, use this Paypal donation link.
Have fun!
____________________________________________________________
List of changes for v25/WEC - 2017/04/16
- Fixed plugin for driver swaps! Finally the DeltaBest plugin should work fine after taking over a car with a driver swap. The plugin should automatically start when entering realtime mode (clicking the "Race" button) when in spectate mode and should start indicating the delta time as soon as a best lap is loaded or recorded and a new timed lap starts.
It took me a long time to figure out how to make plugins survive driver swaps! Here's the solution in case you are wondering:
https://forum.studio-397.com/index....survive-driver-swaps.50312/page-2#post-886329
____________________________________________________________
List of changes for v24/Nola
- Fixed a cosmetic bug in how the best lap time is displayed when a session is loaded or when a new best lap is saved. A laptime of "2:02.058" would be displayed as "2:2.058".
List of changes for v23/Anderstorp
(v21 and v22 were just test versions with limited distribution)
- Fixed a few logic mistakes in how the best lap is saved. Now the best lap time should be saved more accurately.
- Added a chat message when a best lap is restored from file, so you will know what is your best time in the same car/track combination.
- Changed how the Delta info is shown. Now it's never shown when the player is in the pits, and should be there from the first timed lap whenever you already have a saved lap from before.
- other minor fixes.
List of changes for v19Nords
- Plugin should now work after a restart. Previously it stopped working when race was restarted. This possibly means that it will work after a driver swap as well, but I haven't tested that yet.
List of changes for v18/Targa (v17 was never released publicly)
____________________________________________________________
- Best laps are now saved persistently to disk into the "rFactor2\Userdata\player\Settings\DeltaBest" folder. The format is "<TrackName>_<CarClass>.lap". For now this feature can not be disabled, but read the ResetKey entry below.
- Plugin should now work fine with the Targa Florio track. Previously there was a hard limit of 50km long tracks.
- Delta time is now displayed beyond the session end time. This typically impacted qualify sessions. When the session timer reached 0:00, the delta time disappeared. Now it continues to work until the session is closed.
- It is now possible to reset the best lap of the session through CTRL + Z. I realise this shortcut may not suit everyone, so you can customize it through the DeltaBest.ini file. In the "[Keyboard]" section, the "ResetKey" entry will allow you to redefine the ResetKey.
____________________________________________________________
List of changes for v16/Sebring
- Inverted negative and positive delta bars. When you're below your best timed lap (improving) the bar with go towards the right now, instead of left. This might be confusing, but it's the same as iRacing does. I'm convinced it's better from a perception point of view, as in "you're behind your best lap" or "you're ahead of your best lap".
List of changes for v15/Modena
- Finally fixed the track/car lap times mismatch bug! Now when you record a best lap, then exit the session, load up another track and/or car, your previously saved best lap will be properly reset. The previous best lap won't count for a new session with a different car or track (or even the same one for that matter).
____________________________________________________________
List of changes for v14/Nardò
- Now requires build 798+ of rFactor2. This is because the path to plugins changed from "Plugins" to "Bin32/Plugins" or "Bin64/Plugins". Version 14 will not work with older rF2 builds. You have been warned.
- Improved display of delta time when flapping around zero, so that it doesn't change at high frequency between -0.01, 0 and 0.01.
- Implemented an experimental new option in the INI file called "HiresUpdates", by default enabled. If you disable it, the delta time will be updated less often. This is something that was requested by one or two of you, but I'm not convinced it's worth it, and it's definitely not recommended. YMMV. This option could go away anytime in the future. Example INI file was updated with an example of this new option.
- Fixed incorrect location of "DeltaBestBackground.png" file after rF2 build 798 that caused the grey background/bars to not display. I think a few users interpreted this as bar being disabled, and they wondered why the delta time was moving around. Remember, to disable the bar, copy the provided example ini file into "DeltaBest.ini" and then in the "[Bar]" section, change the "Enabled" property to zero. This will disable the bar and keep the delta time centered at all times.
____________________________________________________________
List of changes for v13
- Fixed a crash-to-desktop problem when going in reverse gear (!) due to 64-bit and compiler changes.
____________________________________________________________
List of changes for v11 (forget v12)
- Added DeltaBest_x64.dll for the upcoming 64-bit builds of rFactor2
____________________________________________________________
List of changes for v9 and v10:
- iRacing-style dynamicly colored bar is fully working now, with a slightly better layout
- Plugin layout and visuals are completely configurable via the INI file (an annotated example in included in the zip archive)
- Turn on/off either the colored bar or the delta time text
- Change position, width and height of either the bar or the time text
- Modify font face or size of the time text
- Change shortcut key (default is CTRL+D) to toggle the display of the plugin
- (v10) Debug logging was accidentally turned on, now it's turned off.
Attachments
Last edited: