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.30 Bug Reporting thread
    Solutions and more information may already be available.

High Altitude Engine Bug

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by default0.0player, Mar 8, 2020.

Tags:
  1. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,925
    When you shutdown the engine at very high elevation, its friction becomes INFINITY.

    BeamNGdrive-018419588-RELEASE-x642020_3_810_56_05.png

    Note the powertrain app and the Altitude(Elevation)


    Watch video(see attachment)
     

    Attached Files:

  2. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    What makes you think anythere is infinity? If it did indeed was +-inf it would explode the car I think.
     
  3. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,925
    Well looks like I misinterpreted, the problem is after shutting down the engine, both the starter and dumping the clutch are unable to start it.
    --- Post updated ---
    BTW, is there any console commands to delibrately set engine RPM, such as setting the engine RPM 1000 instantly.
     
  4. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,925
    Huh, I found the culprit: when the engine idle torque is lower than engine friction, the physics calculation codes will intentionally break the engine regardless of what caused it, even without engine damage. Either with a (mod) bad starter, or with restarting engine at very high altitudes. The engine then won't turn even you teleport the vehicle to sea level, use tremendous force to push it(shift to 1st, downhill in Jupiter gravity, nodegrabber etc.).
    in "BeamNG.drive\lua\vehicle\powertrain\combustionEngine.lua" line 560~564
    Code:
      if device.frictionTorque > device.maxTorque or (device.outputAV1 < device.idleAV * 0.5 and device.frictionTorque > idleTorque * 0.95) then
        --if our friction is higher than the biggest torque we can output, the engine WILL lock up automatically
        --however, we need to communicate that with other subsystems to prevent issues, so in this case we ADDITIONALLY lock it up manually
        device:lockUp()
      end
    
    I'm sorry, but the logic behind this is beyond my comprehension.
     
    #4 default0.0player, Feb 19, 2021
    Last edited: Feb 19, 2021
  5. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    I thought that once the engine locks up it can't be turned on again irl? Isn't this a realistic thing? In real life nobody would push a car downhill with Jupiter gravity just to turn it back on, they would just buy a new car
     
  6. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,925
    That seems understandable, I guess I should stop splitting hairs then.
     
  7. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    That's not surprising, it's not obvious.
    The reason this specific piece of code exists is the dynamic friction change the engine undergoes when overheating. At some point the friction will be so high that the engine can't be started anymore, this is a state that needs to be communicated to various other systems and the easiest way to do that was to declare the engine broken.
     
  8. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,925
    Another thing is that engine braking is caused by the vacuum or air resistance of the throttle valve, thus the "enginebrakingtorque" should reduce according to elevation. However, currently in BeamNG it does not do that, making engine braking torque at high altitude as much torque as at sea level.
     
  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