1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.32 Bug Reporting thread
    Solutions and more information may already be available.

Friction clutch disable thermals

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Arcanox, Dec 24, 2018.

  1. Arcanox

    Arcanox
    Expand Collapse

    Joined:
    Aug 22, 2018
    Messages:
    290
    I'm trying to disable thermals on a friction clutch (I'm using it as a coupling for an electric motor and it's always engaged...it's overheating and I want to disable all thermal simulation). It seems the Lua code for the friction clutch determines whether thermals are enabled or not using the "thermalsEnabled" jBeam property, except that it defaults to true:

    Code:
      local thermalsEnabled = jbeamData.thermalsEnabled or true
      device.clutchThermalsEnabledCoef = thermalsEnabled and 1 or 0
    The issue is that setting it to "false" in the jBeam falls through to the default, since false is of course "falsey". I'd recommend changing the first line of that snippet to
    Code:
    type(jbeamData.thermalsEnabled) == "boolean" and jbeamData.thermalsEnabled or true
    .

    That being said, there may be a better way to couple an electric motor device to the powertrain keeping its RPM proportional to the wheel RPM that I'm not aware of, so if anyone has suggestions for that, I'm all ears.
     
  2. Capkirk

    Capkirk
    Expand Collapse

    Joined:
    Nov 19, 2017
    Messages:
    673
    I would suggest trying a torque converter that is extremely large and always has lockup enabled. It won't overheat, but I'm not sure if it will work for your purposes, and the game likes unlocking torque converters at low RPM even when they shouldn't really.
     
    • Agree Agree x 2
  3. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,926
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Torque converter with enough high diameter and lockup set to enough low rpm and enough high torque.

    With clutch you will get autoclutch and AI doing weird things I believe.

    Try something like 3 meters for example for a diameter.
     
  5. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    Code:
      local thermalsEnabled = jbeamData.thermalsEnabled or true
    Uh I did this again? :rolleyes:
    Will be fixed in some future update then...

    However, you really shouldn't have issues with overheating, that only happens when the clutch is slipping (which it shouldn't in your case)
    Are you sure you configured it correctly (ie not really at all in jbeam?) Just don't give it any jbeam values and it should work fine for this case.
     
  6. Arcanox

    Arcanox
    Expand Collapse

    Joined:
    Aug 22, 2018
    Messages:
    290
    I discovered it's only when I let off the throttle super abruptly; it seems like it "jiggles" the clutch to very extreme values (between + and - 10000 Nm each frame) which I'm guessing is due to bad spring values on my wheels or suspension. I switched to a very stiff torque converter and it seems to be working a bit better. I'm still fiddling with my node weights and beam/wheel spring/damp; this is my first from-scratch vehicle so it's definitely a learning experience!
     
  7. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    Yea that shouldn't really happen. I've been using this clutch/electric motor combo for a while in different things and haven't noticed any such issues. I'd recommend trying to find/fix the underlying problem instead of covering up it's consequences :)
     
  8. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    Check your torque reaction nodes and the movements of the hub, whes and diff, if they shake, you get this behaviour.
     
  9. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,543
    yeah use a torque converter, and a weak lockup clutch (strong as whatever is driving it), then if for whatever reason the torque load goes above that, the torque converter will just slip a bit, acting like a damper, should smooth things out a bit.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice