[REL] DAMPlugin for rF2

Discussion in 'Other' started by Lazza, Jul 18, 2015.

  1. Chet

    Chet Registered

    Joined:
    Aug 6, 2022
    Messages:
    6
    Likes Received:
    1
    Thanks! I should remember that I can calculate this. It's fundamental vehicle dynamics.

    For ABS and TC, I will try that later, I just found out my current log file does not include control_1, which recorded the Filtered throttle position.
     
  2. Zoaal

    Zoaal Registered

    Joined:
    Apr 17, 2012
    Messages:
    53
    Likes Received:
    18
    Thanks for your reply!
    The plugin's log can be normally created on the folder, the only error I get is the one previously described.
    Apparently the error is related to "ntdll.dll" and happens simultaneously when the plugin starts the log or immediately right after it.


    Faulting application name: rFactor2.exe, version: 1.1.3.2, time stamp: 0x6411ebf9
    Faulting module name: ntdll.dll, version: 10.0.19041.2130, time stamp: 0xb5ced1c6
    Exception code: 0xc0000374
    Fault offset: 0x00000000000ff6a9
    Faulting process id: 0x3418
    Faulting application start time: 0x01d959e9e8a0c51b
    Faulting application path: D:\SteamLibrary\steamapps\common\rFactor 2\Bin64\rFactor2.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
    Report Id: 6efbb742-1fcb-4e86-a66e-1b1a0d18731a
     
  3. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    I'm not sure I understand what is and isn't working for you. Can you share an rF2 trace file and the complete DAMPlugin logs? (Output and error log)
     
  4. Zoaal

    Zoaal Registered

    Joined:
    Apr 17, 2012
    Messages:
    53
    Likes Received:
    18
    For some reason, 2 dlls from the DAMPlugin were registered in the following archive: CustomPluginvariables.json.
    The second DLL register was causing the issue. I deleted the second DLL registered and it began to run normally again.

    Thanks again, Lazza.
     
    Lazza likes this.
  5. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    Thanks for the update!

    My first thought was having 2 copies of the actual dll (named differently) which seemed very unlikely. I didn't know multiple entries in that json could do this, very interesting :p
     
  6. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    I've added v0.931. I'm (still) yet to overhaul some of the code in this relating to the channels, I did make some minor changes to value ranges but I'm hoping I haven't broken anything. Additions:
    • Delta Best is now logged, at all times (it's in the base scoring group). This is generated by the game itself. Note that by default it's limited to +/- 10 seconds (the game displays up to 9.999 in the HUD). By setting the base scoring group to 3 (high range logging) you can get up to 3600s (1 hour). I've defaulted to 10s because it basically matches the game itself and it gets good precision without increasing filesize too much.
    • Battery Charge Level is logged as part of the base Vehicle group. 0 - 100%
    • Electric motor channels are added to the Vehicle_1 group. These are:
      • Motor State. Values 0 - 3 -> Unavailable, Inactive, Propulsion, Regeneration
      • Motor Torque. (Positive when providing power, Negative when regenerating)
      • Motor RPM
      • Motor Temperature
      • Motor Water Temperature
    The various available rates for these channels are largely matched to their similar mechanical/combustion counterparts.

    As usual, could almost make this my signature: any problems, let me know. If you get a virus warning on the Handler, just use the Manual version.
     
  7. Adolfo Bisi

    Adolfo Bisi Registered

    Joined:
    Dec 29, 2022
    Messages:
    56
    Likes Received:
    65
    Hello lazza!
    quick question, is it possible to get separated lateral g force for front and rear axis? I guess the game only have 1 output for this, i'm only asking to be sure.
    Thanks
     
  8. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    Correct, just the overall G forces available.
     
  9. Feralarri

    Feralarri Registered

    Joined:
    Sep 21, 2014
    Messages:
    116
    Likes Received:
    40
    upload_2023-5-15_18-4-39.png
    Lazza Have you ever seen this error? I am unable to open rf2 .ld files through Motec but if i double click on the actual .ld file it opens OK in Motec. Running DAMPlugin 0.931 and 1.15.85
     
  10. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    That's not an error, just information. It won't affect opening logs.

    I've just checked the same i2Pro version, and logs are opening fine (with that same message).
     
  11. Feralarri

    Feralarri Registered

    Joined:
    Sep 21, 2014
    Messages:
    116
    Likes Received:
    40
    Must be something my end then I just cannot open any rf2 .ld file from the File/Open command
     
  12. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    You aren't somehow opening a different version of i2Pro when double-clicking files? And it's using the same project when doing so? Seems a bit weird.

    I should ask - what does it actually do, or not, when opening a file? Just show nothing at all?
     
  13. Feralarri

    Feralarri Registered

    Joined:
    Sep 21, 2014
    Messages:
    116
    Likes Received:
    40
    It was causing i2 pro to crash all the time when you tried to open. I have found the issue. My log folder was 13Gb so I deleted a whole heap of files and bingo it worked like a dream. I assume it must have been struggling to read all the files. I kept the files I was having trouble with and they open faultlessly now. I have no answer why but it worked
     
    Lazza likes this.
  14. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    Ok, glad you worked that out :cool:

    I've certainly had some major slowdowns with lots of files in there, I guess I've never reached crashing stage before moving some out. Good to know!
     
  15. Adolfo Bisi

    Adolfo Bisi Registered

    Joined:
    Dec 29, 2022
    Messages:
    56
    Likes Received:
    65
    Hello Lazza!
    Yesterday something strange happened.
    While I was testing a car (BMW 330I M BTCC) at monza, I wanted to compare 2 laps so I opened them in motec.
    They were in 2 separated files
    upload_2023-8-4_12-23-49.png

    This is a lap distance graph, that I consider to be correct. The distance is reset when i cross the finishing line.
    upload_2023-8-4_12-22-50.png

    But the other file is strange, as if there was an offset to the data
    upload_2023-8-4_12-26-2.png
    The file is considering the start of the lap to be around 100m after the finishing line.

    The problem is that everything seems to have the same offset, making the variance crazy, and impossible to compare the laps upload_2023-8-4_12-28-45.png

    is there anywhere in motec that i can apply a correction to this?

    on another subject, i didn't find values for the p2p activation, are those in the data acquisition?
     
    Last edited: Aug 4, 2023
  16. Simulation_Player

    Simulation_Player Registered

    Joined:
    Mar 4, 2022
    Messages:
    708
    Likes Received:
    450
    Try the highlighted option.

    Capture .PNG
     
  17. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    For the offset, use the offset axis as @Simulation_Player pointed out. You can also press O on the keyboard; check the Component -> Data Offset menu for some more options. You'll then have multiple horizontal axes down the bottom, and you can drag them left or right separately.

    The offset itself is intriguing, sometimes there can be a distance/timing mismatch (switch with F9) and Lap Distance itself is a low-frequency scoring value that isn't logged by default, but that does look like an actual offset, and I don't think I've seen that previously with logs. I might have to test some logs with Lap Distance included and see if that causes this sort of issue; all my recent ones don't have it so Motec is set to calculate lap distance from the speed, off the top of my head I don't know if that will automatically switch if all opened logs have Lap Distance included.

    As for P2P, no, the game doesn't provide information on P2P activation, or a number of other vehicle status items (ABS/TC/Mixture settings, for example).
     
  18. Adolfo Bisi

    Adolfo Bisi Registered

    Joined:
    Dec 29, 2022
    Messages:
    56
    Likes Received:
    65
    you guys are awesome, that worked great, thanks a lot for all the help!

    on another topic, i'm still crawling over the math expressions, is it possible to create a comparison of a channel with the time/distance axis, as to result in a "rate" channel? For example a tire wear rate that would output a [%/s] or [%/m] value
    I was able to do those comparison between two channels, but as time/distance is not a channel to be put in the expression, I was not able to do it.
     
  19. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,533
    Likes Received:
    6,705
    If I understand you correctly, you'll want to use derivative. That's a measure of the slope of a line/graph. You'll likely want to use smooth inside that, to avoid the result being too noisy/dynamic. That'll give you numbers you can compare either graphically or via a math function.
     
  20. Franek Godrecki

    Franek Godrecki Registered

    Joined:
    Jun 22, 2022
    Messages:
    2
    Likes Received:
    1
    Hello, I am using the latest DAMPlugin version with i2 Pro (1.1.5.85). It does not collect any data regarding dampers, suspension velocity etc on my end (one of the most important things that I started using DAMP again for after a 5 year break). Could this be looked into? Should I change my i2 version? My friend is using some outdated 2018 plugin and has all the data workin on his end.
     

Share This Page