[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
    Works, but possibly without background and bars.
    Check out V14, which solves this problem.

    Or a quick&dirty workaround is to create the "Plugins" directory, even if rF2 doesn't use it anymore and place the DeltaBestBackground.png file there.
     
  2. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Version 14 (Nardò) of the plugin is now released. Updated first post.
     
  3. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18


    It is very close. It will be very easy for you to make a rf1 version.
     
  4. Mr.Thor

    Mr.Thor Registered

    Joined:
    May 25, 2013
    Messages:
    244
    Likes Received:
    48
    hi cosimo,
    i am using the 64bit plugin. was driving on Tommy's Hockenheim National circuit and changed the track to Sebring 12h. But the Plugin still compared to my best time from Hockenheim. i know you fixed that in a previous 32bit version, but i looks like it is not deleting the best time when changing the track without leaving the game anymore.
    best regards T.
     
  5. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Unfortunately, this is not a 32-64 bit problem, because the source code is exactly the same.
    The problem is that I can't seem to get the right events from the sim. When a track is changed, I don't get any "signal" so to speak, so I don't know when to reset the best recorded lap time.

    So this is still an open bug.
     
  6. Coanda

    Coanda Registered

    Joined:
    Jun 9, 2013
    Messages:
    689
    Likes Received:
    3
    Hello cosimo. Cheers for the latest update. The delta is not moving around the screen :) I set-up the ini exactly the same as v13 and its working better. I don't include the png file as I don't like the grey box and I have to set the Top value for Bar even though I have the Bar this disables as this seems to be the only way to move the delta time higher up than its default position. I tried setting the Top value under the Time parameter however this has no affect.

    One small issue I still have. I think I may have mentioned it before. On a race restart after a crash the delta goes missing. I have to fully exit out and re-load for it to work again. Is this a known issue?

    cheers again.
     
  7. Mr.Thor

    Mr.Thor Registered

    Joined:
    May 25, 2013
    Messages:
    244
    Likes Received:
    48
    thanks for the info cosimo. do you get the name of the running track? if yes, you could save it, and when it is different to the saved value it has changed and you could reset the time. don`t if something like that would be possible?
     
  8. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Yes, it is possible and it is the road I thought I should take, but the code would be a bit clunky, so I've been a bit reluctant.
    We'll see.
     
  9. McFlex

    McFlex Registered

    Joined:
    Feb 23, 2012
    Messages:
    1,031
    Likes Received:
    317
    Hi cosimo today i tried v14 of your plugin. Everything worked fine. But is it possible to make the bar a bit more smooth? The flickering of the colors in the bar is pretty hard. Maybe you could add more gradations of green and red. Greets
     
  10. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Hi cosimo.
    I have been speaking with a friend of mine (Gaboni) about this problem and i think that he has gave me the solution.

    virtual void Load() {} // scene/track load
    virtual void Unload() {} // scene/track unload

    virtual void StartSession() {} // session started
    virtual void EndSession() {} // session ended
     
  11. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Thanks lagg, will check my code now. I'm sure I have StartSession() and EndSession() implemented.
    Not sure about Load() and Unload().
     
  12. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Right, son of a bi... :) I found the source of this bug. Basically was a big facepalm in the code.
    StartSession() and EndSession() were of course called as they should have.

    This means that from now on (version 15+), whenever you change car or track, the previously saved best lap will be reset and won't count in the new session.

    Version 15 of Delta Best plugin with this bug fix was just released!
    First post updated.
     
  13. jrcn50

    jrcn50 Registered

    Joined:
    Jan 12, 2012
    Messages:
    363
    Likes Received:
    1
    Thank you very much for this!
     
  14. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Thank you very much cosimo.
     
  15. ~IsR~Barabba

    ~IsR~Barabba Registered

    Joined:
    Oct 6, 2010
    Messages:
    1,160
    Likes Received:
    40
    Very Very Very Goood
    Thx Cosimo

    Babs :)
     
  16. Mr.Thor

    Mr.Thor Registered

    Joined:
    May 25, 2013
    Messages:
    244
    Likes Received:
    48
    Cosimo, you are the best! Thank you! :)
     
  17. mixer61

    mixer61 Registered

    Joined:
    Dec 26, 2011
    Messages:
    554
    Likes Received:
    149
    Thank you !!:)
     
  18. P.S.R.

    P.S.R. Registered

    Joined:
    Jun 15, 2014
    Messages:
    1,794
    Likes Received:
    4
    Thank you, Cosimo :)
     
  19. MMartin

    MMartin Registered

    Joined:
    Oct 30, 2010
    Messages:
    515
    Likes Received:
    4
    Thak You Cosimo!!!

    Inviato dal mio Nexus 4
     
  20. Mydriaz

    Mydriaz Registered

    Joined:
    Jan 16, 2012
    Messages:
    968
    Likes Received:
    47
    Thank you for having fixed this bug !
     

Share This Page