[REL] Delta Best plugin for rFactor 2

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

  1. MMartin

    MMartin Registered

    Joined:
    Oct 30, 2010
    Messages:
    515
    Likes Received:
    4
    Thanks Cosimo... very useful!!

    Grazie!:cool:
     
  2. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    I tried the plugin, but it seems that it is not working. Nothing appears on screen. Neither on practice nor in race.

    I am using trackmap, pedal overlay and realhead motion plugins
    rFactor2 on win7 64 bit, full screen mode ... what else you want to know ?
     
  3. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Perhaps stupid questions:
    • did you copy the DeltaBest.dll into the Plugins folder?
    • did you do at least three laps? In a practice session, the first one is not timed. The second will be timed, so it will be used as a best lap reference when you do the third lap.

    I haven't received any report of working or not working so far, so I don't know I am the only one who can run this :)
    Let's wait and see.
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    i just tested to see, and i confirm that there is nothing displayed (after 3 lap, in any mode)

    May be you have not published the correct dll build. Try the dll in the zip you provide to see if the dll works for you (normally no).
     
  5. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Mmh, I'm starting to wonder if this is related to the fact that I link the DirectX9 library.
     
  6. Miro

    Miro Registered

    Joined:
    Jul 14, 2012
    Messages:
    1,356
    Likes Received:
    109
    Confirm that too, additionally I get an error massage when fireing up rF2 now.
    Programm can't run because it's missing MSVCR120.dll. What ever this is. But rF2 loads just after I press the "OK" button.
     
  7. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Aha, I see. Thanks. I think this is because I'm compiling the DLL with VS 2013 (msvcr120.dll), so it needs the VS2013 runtime.
    I think I can fix this quickly. What compiler is used to compile rF2?
     
  8. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    2010 works normally
     
  9. Jorgen

    Jorgen Registered

    Joined:
    Oct 5, 2010
    Messages:
    558
    Likes Received:
    3
  10. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Testing the VC2010-compiled version. Hang on :)
     
  11. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Seems to work for me. Updating first post!
     
  12. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Known issues of the V3 version:

    • the calculations are based on a fixed 200ms interval. I can't seem to be able to change that, no matter what I do, because it depends on the rF2 engine calling the UpdateScoring() plugin method. Sometimes this causes spurious values to appear for a moment.
    • styling is not very cool. It's just a number slapped on the screen. The iRacing version is much cooler, but I don't know if I'll be able to spend time on this.
    • If you enter the pitlane, the plugin doesn't realise that and continues to display the delta time. It shouldn't.
    • Haven't tested during a race what happens
    • Probably more... :)

    Please do not use this on a serious/league event without testing it first, as your rF2 may suddenly crash.
    I have ironed out a lot of early version bugs, but still others might surface if more and more people start using this.

    That said, if you have half as much fun as I had making this, then you're going to like it :)
     
  13. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    sorry, but V3 still not display anything on my screen.
    I dropped the .dll into /plugin folder and run 6 laps
     
  14. Emil Zhelyazkov

    Emil Zhelyazkov Registered

    Joined:
    Oct 16, 2013
    Messages:
    33
    Likes Received:
    2
    Thank's for working on this plugin Cosimo. I'll try it these days. Great to have this in RF2.

    Sent from my GT-I9300 using Xparent Skyblue Tapatalk 2
     
  15. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    GauchoRS, I got confirmation from at least one user that the v3 plugin is working.

    Can you perhaps run rF2 with the "+trace=5" option in the "advanced" tab in the launcher, drive around for a few laps (at least 3-4) and then check your "rFactor2/UserData/Log/trace.txt" for hints about plugin not loaded or something like that?
    Maybe also check for message boxes that may appear.

    Perhaps in the next version I could make it so when the plugin is loaded, it shows a message in the chat window saying that it's active, or write a log file.
     
  16. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    trace.txt show that the plugin was not loaded

    TRACE LEVEL = 1000
    tracelog.cpp 139: Command line: "+path=".." +hash=####HIDDEN#### +highprio +trace=1000"
    main.cpp 290: FPU=0x0009001f
    game.cpp 1742: Entered Game::Enter()
    osman.cpp 808: Entered OSMan::Enter()
    plrfile.cpp 2965: Entered PlayerFile::Enter()
    ......
    plrfile.cpp 2107: Attempting to save to K:\rFactor2\UserData\player\player.TMP
    plrfile.cpp 2144: Retcode: 0 for renaming to K:\rFactor2\UserData\player\player.PLR
    hwinput.cpp 7628: Entered HWInput::Enter()
    hwinput.cpp 7629: HKL=0xf0010409
    PluginManage 80: Could not load plugin Plugins\DeltaBest.dll
    vidman.cpp 1871: Entered VidMan::Enter()
    specialfx.cp 3759: Entered SpecialFX::Enter()
    dynman.cpp 673: Entered DynMan::Enter()
    sound.cpp 1312: Entered Sound::Enter()
    onscreen.cpp 3540: Entered OnScreen::Enter()
    game.cpp 1804: Entered Game::Setup()
    hwinput.cpp 7719: Entered HWInput::Setup()
    hwinput.cpp 7702: DirectInput enumerated 1 game controller(s)
    hwinput.cpp 1475: Controller was enumerated ...
    hwinput.cpp 1619: ... and successfully initialized
    options.cpp 4999: Entered Options::Setup()
    O_AppObj.cpp 2829: Initiate options object creation
    O_OSC.cpp 2945: Entered Options_OSC_Reader::ReadOSC()
     
  17. antgen

    antgen Registered

    Joined:
    Mar 15, 2012
    Messages:
    54
    Likes Received:
    0
    Thanks Cosimo for your work :)
    V3 is working for me, I tried it for about 20 min.(need more testing) and I didn't have any crash or something wrong.
    I run rfactor2.exe as it is.
    Others plugins I have are realheadmotion, pedals overlay,DashMeterPlugin,rFactorMemoryMapPlugin. I don't have trackmap installed(not because of any conflict, just saying).
     
  18. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    GauchoRS. Did you run the build 660?
    In case of the plugin use the v06
     
  19. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Good point. Plugin uses v06. I could "downgrade" to v05 I think.
     
  20. Luc Devin

    Luc Devin Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,133
    Likes Received:
    23
    Plugin sympa
    Merci
     

Share This Page