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

Disable regen braking in eSBR

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Ryhan.N, Dec 23, 2021.

  1. Ryhan.N

    Ryhan.N
    Expand Collapse

    Joined:
    Dec 18, 2021
    Messages:
    53
    Hi,

    Does anyone know how to disable (or reduce) the regen braking in the Hirochi eSBR? I am okay with tweaking the game files.
     
  2. Ryhan.N

    Ryhan.N
    Expand Collapse

    Joined:
    Dec 18, 2021
    Messages:
    53
    Ummm... Nevermind... I figured it out myself...
    Go here: \lua\vehicle\controller
    Then open shiftLogic-electricMotor.lua
    Then change every value with regen written on it to 0 ;)
    Totally works... I mean the regen doesn't work but that's the point
     
  3. Djang0

    Djang0
    Expand Collapse

    Joined:
    Apr 23, 2023
    Messages:
    1
    Another solution:

    Locate this file: "BeamNG.drive\lua\vehicle\powertrain\electricMotor.lua"
    Find this line: "local scaledMaxTorque = fadeCoef * min(maxRegenTorque, maxOverallTorque)"
    And change it to: "local scaledMaxTorque = fadeCoef * min(1, maxOverallTorque)"

    This will almost entirely disable regen braking :)
     
  4. golgo1387

    golgo1387
    Expand Collapse

    Joined:
    Sep 9, 2023
    Messages:
    130
    Alternately, you can stay out of the LUA code and just edit the jbeam file called sbr_electric_motor.jbeam

    There is a value in there for each electric motor called "maxRegenTorque". Changing it to zero leaves you with no engine torque at all. Takes some getting used to.

    An amazing compromise I found is setting the value to 30. It gives predictable engine braking on par with the internal combustion engines.

    The default value of 100 was ridiculous. The car was massively engine braking in the middle of turns making it almost undriveable.

    It's too bad that the devs didn't put comments on that value in the jbeam file so that at least we would know what it did.
     
  5. Ryhan.N

    Ryhan.N
    Expand Collapse

    Joined:
    Dec 18, 2021
    Messages:
    53
    Its been almost 3 years lol, lots changed since then. I am a professional jBeamer and lua'er now :cool:. Thanks though!
     
    • Like Like x 1
  6. Ananel81

    Ananel81
    Expand Collapse

    Joined:
    Sep 7, 2021
    Messages:
    1,245
    And you can do it in the radial menu now lol
     
    • Like Like x 1
  7. golgo1387

    golgo1387
    Expand Collapse

    Joined:
    Sep 9, 2023
    Messages:
    130
    Awesome. Just yesterday I decided to try and solve this problem and when I Google'd the issue your old post here was the only hit that seemed to address the issue. Once I found the value in the jbeam I figured I would share. Now maybe when someone else Googles the issue they'll find several solutions.
    --- Post updated ---
    Yeah but I was looking for a more permanent (sticky?) solution. I hate having to change various options before I start driving.
     
    • Agree Agree x 1
  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