[REL] rF2 Pedal Overlay Plugin

Discussion in 'Other' started by TechAde, Sep 7, 2012.

  1. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    Version 8 released

    OK, here's version 8, this should be compatible with UAC and will write the logs into your UserData folder wherever it may be.

    Edit: Hang fire, found a bug!

    Edit2: Bug fixed, here it is...
     
    Last edited by a moderator: Aug 21, 2013
  2. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    Thinking about it, it would make much more sense if it wrote to the log folder, I'll make that change for the next version.
     
  3. Deadpedal

    Deadpedal Registered

    Joined:
    Nov 5, 2011
    Messages:
    250
    Likes Received:
    6
    I just ran a couple of sessions with the Megane at Longford and Clio at Croft. The only thing I am getting is that the FFB.log which gives me a single line for the session (2013-08-21 16:34:34 Min=-1.000000 Max=1.000000 Avg=-0.035413) is now being written into the UserData folder rather than the C:\Program Files (x86)\rFactor2 folder as it was with v6 (which leads me believe it is not an issue with permissions in that v6 of the plugin successfully updated that log file for each session). Still no sign of the FFB_details.csv file.
     
  4. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    Have you enabled it in the ini?

    Sent from my GT-I9300 using Tapatalk 4
     
  5. Deadpedal

    Deadpedal Registered

    Joined:
    Nov 5, 2011
    Messages:
    250
    Likes Received:
    6
    Yes, first thing I did before planting it and the .dll in the Plugins folder.

    [General]
    OffsetX=0
    OffsetY=0
    BarWidth=10
    BarHeight=50
    DetailedLog=True
     
  6. Bart S

    Bart S Member

    Joined:
    Oct 5, 2010
    Messages:
    851
    Likes Received:
    104
    It shows up for me right below FFB.log after I change DetailedLog=True
     
  7. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    That's most bizarre that you are getting the basic log but not the detailed log.

    I'll take another look at the code when I get to my desk as that shouldn't be possible.

    Sent from my GT-I9300 using Tapatalk 4
     
  8. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    Bart, do you run with UAC enabled?

    Sent from my GT-I9300 using Tapatalk 4
     
  9. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    I've just tested with a fresh rF2 install to the default locations (C:\Program Files (x86)\rFactor2 and C:\Users\Ade\Documents\rFactor2\UserData) with UAC enabled and it works fine, I get both log files as long as DetailedLog=True in rF2PedalOverlayPlugin.ini.

    The creation of both files uses the same code and attempts to write to the same path so I'm struggling to see where it could go wrong.

    It's interesting that the original version would write the FFB.log to C:\Program Files (x86)\rFactor2 for you but it wouldn't write the FFB_Details.log. I think there's a clue there somewhere, if only I can work out what it is.
     
  10. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    OK, think I've nailed it.

    The problem was that the ini file was still in Program Files and we didn't have write access to it.

    Attached is version 9 which fixes this issue by writing rF2PedalOverlayPlugin.ini to UserData (i.e. in Documents if UAC is enabled). I haven't included an ini file in the zip as this will be created in the correct location on first run. Note that DetailsEnabled=False by default so if you want the detailed log you'll have to run rF2 once to have it write the ini file and then edit it so DetailsEnabled=True.

    Another slight change is that FFB.log and FFB_Details.csv are now written to the UserData\Log folder.

    Fingers crossed that's the end of the UAC nightmare!
     
  11. Deadpedal

    Deadpedal Registered

    Joined:
    Nov 5, 2011
    Messages:
    250
    Likes Received:
    6
    V9 is perfect, TechAde! Love your never-say-die commitment! Might I suggest that, ideally, the .log and .csv files should have a specified sub-folder of UserData\Log\, like PedalOverlayFFB

    Just a warning to users: DetailsEnabled=True generates a big file fast. Use this line set to True only for FFB analysis and don't leave it active otherwise. An 11.7 minutes session generated over 266 thousand lines for a 5.6MB file.
     
  12. newtonpg

    newtonpg Registered

    Joined:
    Oct 5, 2010
    Messages:
    97
    Likes Received:
    0
    Thanks (once again) TechAde for all your efforts to make this excellent plugin.
    A must have plugin, indeed!

    I suppose that it could be very helpful to add a visual advice (like a warning light) each time you turn too much the front wheels or, in other words, if the steering lock (at garage setup) is correctly adjusted. Is it possible? Or is this a trial and error procedure?

    Edited:
    NVM
     
    Last edited by a moderator: Sep 2, 2013
  13. Tiago Fortuna

    Tiago Fortuna Registered

    Joined:
    Oct 23, 2012
    Messages:
    3
    Likes Received:
    0
    Agreed
     
  14. olandese volante

    olandese volante Registered

    Joined:
    Jul 23, 2012
    Messages:
    47
    Likes Received:
    0
    Does this work also in rF1?? I would love to test it
     
  15. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    Unfortunately not, it relies on API features which are only available in rF2.
     
  16. rer8

    rer8 Registered

    Joined:
    Dec 19, 2010
    Messages:
    492
    Likes Received:
    23
    I just downloaded, dropped in the Plugins folder, and started testing. Your elegant plugin combined with the careful instruction presented in DrR1pper's post should qualify as a sticky. My almost new G27 has never functioned better, and rFactor 2 has never performed better. Thank you so much for your excellent work.
     
  17. AndS

    AndS Registered

    Joined:
    Mar 19, 2012
    Messages:
    4
    Likes Received:
    0
    Downloaded plugin and it works great, just could not move interface "around the screen". I've created the rF2PedalOverlayPlugin.ini file (btw, it's in the same folder as dll, right?) with following lines
    [General]
    OffsetX=550
    OffsetY=10, but to no avail, it still sits in the upper left corner?
    Since i'm also using TrackMap plugin, i have to place it to a more comfortable and visible position. Where did i go wrong?
    I know, i can also move TM interface, but ...
    Thanks for your help.
     
  18. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    You shouldn't need to create the ini file, it should be automatically created in UserData on first run (I.e. Not alongside the dll). See post #110.

    Sent from my Nexus 7 using Tapatalk
     
  19. xOwnage133

    xOwnage133 Registered

    Joined:
    Apr 3, 2014
    Messages:
    10
    Likes Received:
    1
    Will this work as well in replay mode?
     
  20. darcidm

    darcidm Registered

    Joined:
    Jun 24, 2013
    Messages:
    191
    Likes Received:
    106

Share This Page