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.

How to damage rod bearings?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Zackosb, Jun 14, 2018.

  1. Zackosb

    Zackosb
    Expand Collapse

    Joined:
    Mar 4, 2018
    Messages:
    7
    Just a small question that's all, how do you damage rod bearings and piston rings?
     
  2. Cael233Niall

    Cael233Niall
    Expand Collapse

    Joined:
    Mar 13, 2016
    Messages:
    422
    I think this can be done by holding the throttle until the engine overheats. It's especially easy to do on older cars that don't have rev limiters.
     
  3. Harkin Gaming

    Harkin Gaming
    Expand Collapse

    Joined:
    Jan 17, 2016
    Messages:
    551
    Thats how you bend valves. In this case, damage the radiator or remove it entirely.
     
    • Agree Agree x 1
    • Informative Informative x 1
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,781
    There is damageTracker.setDamage() which needs three parameters, group, name, value which group and name are something that I don't know, those probably could be found though from some files of steamapps\common\BeamNG.drive\lua\vehicle.

    damageTracker.lua is where you can see that function, then it is some other file where is defined names for group and name parameter.

    Something like damageTracker.setDamage(engine, conrodbearing, 1) given to console Vehicle lua side would then damage bearings, but what are actual keywords for engine and conrodbearing is that needs to be found and sadly I don't have hours to read numerous different files to find out that parameter, but that is how one enough time and interest can find out about it.

    With this I get game to give message about reduced torque:
    damageTracker.setDamage("engine","engineReducedTorque",1)

    Not really sure if there would be keyword for bearing, but maybe that helps someone to explore more.

    combustionEngine.lua has some codes like:
    damageTracker.setDamage("engine", "engineIsHydrolocking", isFlooding)
    damageTracker.setDamage("engine", "engineLockedUp", true)

    But these don't actually kill the engine, so not sure where one can found code that actually initiates these and makes actual damage.

    Well, had to look and this sets bearings damaged, but only in UI App, not in engine itself, but probably there is some other command which this can be used to set damage for the engine:
    damageTracker.setDamage("engine", "rodBearingsDamaged", true)

    There is also this in combustionEngineThermals.lua:
    M.connectingRodBearingsDamaged

    It might work like this:
    Something.connectingRodBearingsDamaged=true

    Only problem is I can't figure out what that something could be.

    This is why that brick thick manual of available keywords etc. would be nice.
     
    #4 fufsgfen, Jun 14, 2018
    Last edited: Jun 15, 2018
  5. Zackosb

    Zackosb
    Expand Collapse

    Joined:
    Mar 4, 2018
    Messages:
    7
    Thanks for this, I didn't expect such an in-depth reply but it gives me something to look into
    --- Post updated ---
    oh i found out that it was this:
    drivetrain.engine.connectingRodBearingsDamaged = true

    However, it doesn't work when I put it into the console... :mad:
     
    • Like Like x 1
  6. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,781
    I'm thinking here that code you have probably is still indicator or reporting side of things, maybe we need to look how to set connectingRodBearingDamage instead, as there is connectingRodBearingDamageTreshold set in jbeam file, if we can figure out how to set value of connectingRodBearingDamage higher to that said treshold, it should do the trick.

    You can give command like dump(powertrain) to get list of available keywords.

    There is also dump(electrics), but haven't figure out all. For example there should be way to shutdown or disable engine, which could be handy for making story elements for a mission, but without knowing more what is available it is bit hard to reverse engineer this.

    There is very tiny bit of stuff in here, but maybe you can find it interesting too.
    https://wiki.beamng.com/Lua:Reference
     
  7. Zackosb

    Zackosb
    Expand Collapse

    Joined:
    Mar 4, 2018
    Messages:
    7
    oh i found out that it was this:
    drivetrain.engine.connectingRodBearingsDamaged = true

    However it doesnt work when i put it into console, it comes up with this:
    thanks again
     
  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