[REL] Delta Best plugin for rFactor 2

Discussion in 'Other' started by cosimo, Apr 20, 2014.

  1. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Button (or rather, link) added in first post. Let's see... :)
     
  2. naifexx

    naifexx Registered

    Joined:
    Oct 21, 2011
    Messages:
    57
    Likes Received:
    1
    Really liking the plugin, super usefull.~Just a question, is is possible to disable it while driving?
    Thanks Cosimo, brilliant work.
     
  3. Narrowbackwing

    Narrowbackwing Registered

    Joined:
    Jan 12, 2012
    Messages:
    429
    Likes Received:
    156

    yes i think Cosimo needs to put this in the readme ----------Added a keyboard shortcut (CTRL + D) to enable/disable the delta time display. Calculations are done in the background in any case. You have to press CTRL + D thoroughly, a gentle press is not going to work, because of how I do key press checking. Sorry about that, but I figured one doesn't enable/disable all the time.
     
  4. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    I thought that displaying a message in the chat window about it would be enough...
     
  5. LeChuck

    LeChuck Registered

    Joined:
    Oct 6, 2010
    Messages:
    47
    Likes Received:
    0
    I wanted to make a plugin like this but didn't even started so... I will put some things I like to see:

    - A different profile for practice, qualyfing, race: So you can customize what time do you want to set on a lap, maybe you're trying to set the fastest lap on qualy, maybe you want to save tires or fuel and want a slower lap. I don't know if I am clear on the explanation.
    - Configure position and look.
     
  6. Coanda

    Coanda Registered

    Joined:
    Jun 9, 2013
    Messages:
    689
    Likes Received:
    3
    Thank you. Does this plugin have an ini option to control x & y screen location? As seen on the pedal overlay plugin..

    If not I think that would be handy for future releases..

    OffsetX=1478
    OffsetY=1
     
  7. SmellySkidmark

    SmellySkidmark Registered

    Joined:
    Jan 11, 2012
    Messages:
    500
    Likes Received:
    173
    +1, great idea

    SS
     
  8. naifexx

    naifexx Registered

    Joined:
    Oct 21, 2011
    Messages:
    57
    Likes Received:
    1
    Hi Narrow.
    I actually did check that, have to try again as I pressed couple of times and the Delta was showing.
    Pleas let me check and confirm.
    Thanks for the reply.
     
  9. naifexx

    naifexx Registered

    Joined:
    Oct 21, 2011
    Messages:
    57
    Likes Received:
    1
    As said to Narrow, I have to check this again, I remember to have pressed some times and the chat bot text anouncing Plugin disabled/ Enabled didnt appear.
    Have to confirm.
    Thanks Cosimo.
     
  10. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    When you start driving from the pits you get a message (if you have the chat window visible, I suppose so) that says "plugin enabled. press Ctrl + D to toggle".

    After that no message is output anymore. If the time disappears there is no need to send a message saying that the time just disappeared because you disabled it... :)
     
  11. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Uploaded v7! (first post edited)

    Changes:
    • Plugin is now customisable through a "DeltaBest.ini" file (example included)
    • You can decide where the time is going to be displayed (no idea if you use multiview what's going to happen, but try and let me know)
    • You can change font and size

    The v7 zip file contains a "DeltaBest.example.ini" file that you can copy into "rFactor2\Plugins\DeltaBest.ini" and modify at will.
    The file is self-documenting, you should have all information you need.
    This has gone through minimal testing, so I don't exclude bugs, but it worked for me at the first shot.

    Have fun!
     
  12. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Example of DeltaBest.ini

    Copy/paste of the bundled example INI file, so you get an idea.

    Code:
    ;===================================================
    ;
    ; rF2 Delta Best plugin configuration example
    ;
    ;---------------------------------------------------
    ;
    ; NOTE: For this file to be effective, rename
    ;       it to DeltaBest.ini and place it in the
    ;       rFactor2\Plugins folder next to the
    ;       DeltaBest.dll file and remove this notice :)
    ;
    ; Cosimo, 30/04/2014
    ;===================================================
    
    [Display]
    
    ; Define a rectangle (Left,Top) -> (Right,Bottom)
    ; The Delta Time will be displayed inside this box,
    ; horizontally centered, and vertically aligned at the top.
    ;
    ; If no INI file is added or the assigned value for any
    ; of the Left, Top, Right, Bottom attributes is zero,
    ; the default value for the corresponding attribute
    ; will be used.
    ;
    ; Default values are:
    ;   Left   = 0
    ;   Top    = <ScreenHeight> / 6
    ;   Right  = <ScreenWidth>
    ;   Bottom = <ScreenHeight>
    ;
    ; That position corresponds to the center of the screen,
    ; just below the central virtual mirror. That is the
    ; setting I recommend. Feel free to change it.
    ; 
    
    Left=0
    Right=0
    Top=0
    Bottom=0
    
    ;
    ; Control font face and size.
    ; Default is "Arial Black", size 48
    ;
    
    FontSize=48
    FontName=Arial Black
    
     
  13. Eddy

    Eddy Registered

    Joined:
    Jun 27, 2013
    Messages:
    1,649
    Likes Received:
    394
    Really great Cosimo. You're BOSS
     
  14. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    I think I will take a break now and then switch to the race engineer plugin (but take it more as a long term relaxed thing possibly) :)
     
  15. guod

    guod Registered

    Joined:
    Oct 5, 2010
    Messages:
    533
    Likes Received:
    78
    Nice idea Cosimo. Thanks for doing it.
     
  16. Mr.Thor

    Mr.Thor Registered

    Joined:
    May 25, 2013
    Messages:
    244
    Likes Received:
    48
    hi cosimo,

    installed v6 yesterday and it is really great and a big help! like the plugin :) thanks very much!
    today i was driving some laps on LRP, then i changed track to spa. without leaving rF2. at the start of sector 2 on spa the plugin jumped from -2 sec green to +45 sec red... after i restarted rF2 completly, loaded spa and checked, it was all ok!
    i installed v7 now, checked again, did some laps on LRP, changed ingame to spa and did some laps, again at the start of sector 2 the plugin jumped to 45 sec red and raised to +99 sec.
    so it looks like, the plugin keeps the time from LRP when you change the track in game without leaving rF2.
     
  17. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    LOL Yes, you are right. I have some bug fixing to do :)

    I bet after this, folks will ask to record best laps by track, wouldn't that be great? :)
     
  18. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Hi cosimo.
    Thank you very much.
    I've been waiting for this for a long time.
     
  19. alpha-bravo

    alpha-bravo Registered

    Joined:
    Dec 22, 2012
    Messages:
    1,374
    Likes Received:
    31
    Hi cosimo! Many thanks for this great plugin. It helps a lot to identify the corners where improvements are possible or how much time a driving failure cost. Perfect :) !
    This made me a to a better driver :D
    I use some parts of Track Map also and I can confirm the calculated times by the plugin are right because the shows the same time as the caculated split times by Track Map.
    Thx for the V7 will try it ASAP :)
     
  20. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Testing v8 at the moment :)
     

Share This Page