Disable JBeams - Is it possible?

Discussion in 'General Discussion' started by davidinark, Jan 11, 2020.

  1. davidinark

    davidinark
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    117
    I know this seems completely contradictory to what BeamNG is all about, but is there a simple way (via script mod or something) to disable destruction/deformation? I am basically looking for a way to easily turn all the vehicles into hot wheels/matchbox cars for a project I have in mind.

    Any ideas/takers? Thanks!
    —davidinark
     
    • Like Like x 1
  2. Egsen Bro

    Egsen Bro
    Expand Collapse

    Joined:
    Jun 18, 2019
    Messages:
    52
    idk cmpltly but plz make a vid about that new mod (raven r20)? on a new map (that raceway)?
     
  3. crazikyle

    crazikyle
    Expand Collapse

    Joined:
    Sep 3, 2013
    Messages:
    1,010
    • Agree Agree x 1
  4. Sithhy™

    Sithhy™
    Expand Collapse

    Joined:
    Apr 5, 2017
    Messages:
    2,369
    Doesn't the "Simplified collision physics" somewhere in the options do that? Or atleast, minimize the damage taken
     
  5. MrJavelin

    MrJavelin
    Expand Collapse

    Joined:
    Apr 21, 2019
    Messages:
    307
    No, the vehicles just phase through each other.
     
    • Informative Informative x 2
    • Agree Agree x 1
  6. Nadeox1

    Nadeox1
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,579
    Without beams, the nodes of the vehicle will simply fall on the floor loosing any sort of structural integrity.
    What are you trying to achieve exactly?
     
  7. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,260
    It sounds to me like he basically wants the cars to hit stuff but not be damaged... kinda like he stated with the matchbox/hotwheels cars example.

    So while yes, it is doable... it's NOT something that can be done at the flip of a switch.

    You need to modify the beams stiffness, damping, and tensile strength settings to achieve this indestructibility. Also, even if you do this for the entire vehicle, you won't be turning off damage 100%... you basically are just making a VERY tough car that "could" potentially still be damaged if hit hard enough.
     
    • Agree Agree x 1
  8. Blood-PawWerewolf

    Blood-PawWerewolf
    Expand Collapse

    Joined:
    Jan 18, 2016
    Messages:
    460
    I remember wayyyyy back in 2015/2016 that there was an “invincible” d-series and later a etk I-series.
     
    • Informative Informative x 1
  9. missionsystem

    missionsystem
    Expand Collapse

    Joined:
    Oct 9, 2015
    Messages:
    551
    its possible, change EVERY beam strength to FLT_MAX. i think some stuff still breaks though
     
    • Agree Agree x 2
  10. Lambor14

    Lambor14
    Expand Collapse

    Joined:
    Oct 13, 2018
    Messages:
    53
    It makes the cars become ,,ghosts" so they'll just drive through each other.
     
  11. davidinark

    davidinark
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    117
    Heya! I am trying to have indestructible vehicles, or mostly indestructible - whatever it takes. Essentially, I’d like the vehicles to take as little damage as possible should they be flung around a track rubbing walls, other vehicles, etc. Think very cool-looking, realistically behaving (speed, turning mainly) vehicles but no destruction. As I mentioned: think Hot Wheels/Matchbox. Might not even be possible and/or might be the worst idea ever. But, I tend to think outside the box.
     
  12. davidinark

    davidinark
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    117
    Sorry to reply to my own reply, but I am figuring it out. Looks like I can edit various .jbeam files, replacing "beamDeform":12000 with "beamDeform":"FLT_MAX" to build up some serious rigidity. The problem now is that not every section of, say, the body.jbeam file has a "beamDeform" and I don't know if I can simply add it in or if it only applies to certain sections. I will say, though, setting deform to 0 is one of the coolest effects ever! I'll be posting a vid about it shortly. Any further guidance on the subject is definitely appreciated. Thanks for everyone's suggestions thus far.
     
    #12 davidinark, Jan 14, 2020
    Last edited: Jan 14, 2020
    • Informative Informative x 1
  13. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,260
    Well, JBeam properties propagate from file to file depending on load order... so if you have some beam properties defined in your frame, but then don't bother to defend any new ones in your suspension files... then they will just use the last defined properties. I have done this on accident before where I somehow loaded my hood after my shocks which just turned my hood to jello since I didn't redefine the properties in my hood file.

    Point being... as long as you change every file for a particular vehicle where the properties "are" defined, then you will also get the ones where they aren't.
     
  14. FLyInG 2 YoUr SoUL

    FLyInG 2 YoUr SoUL
    Expand Collapse

    Joined:
    May 31, 2016
    Messages:
    5,113
    beamDeform set to "FLT_MAX" (close to infinity) would just make beams resistant to permanent deformation. Structure would deform just like before, but it would pop back to its original shape instead of staying deformed.

    If you want a structure to be truly undeformable (rigid), you have to work with beam stiffness (beamSpring) and triangulation.
     
  15. G-Farce

    G-Farce
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    431
    I'm sure someone could make a script that goes latches onto the exe and changes all beams to FLT_MAX
     
  16. davidinark

    davidinark
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    117
    Thanks for the help, everyone! I'll see what I can do. I kinda like the idea of deforming and returning to shape. hahah!
     
    • Like Like x 1
  17. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,260
    I did that a long time ago to the Charger in RoR on accident once... you could run into a wall at 100 mph, compress the thing to half its length, and have it almost instantly spring back with next to no damage... the result was that the car would spring off of walls like it was a superball and would definitely give some strange effects.

    Was one hell of a sight to behold, I'll give it that much...
     
    • Like Like x 2
  18. Stoat Muldoon

    Stoat Muldoon
    Expand Collapse
    Global Moderator
    BeamNG Team

    Joined:
    Jun 21, 2013
    Messages:
    342
    If you add:

    "scalebeamDeform":10000,
    "scalebeamStrength":10000,

    to the main jbeam part of any vehicle (some have it there already, simply set to 1 so it has no effect), this will effectively disable permanent deformation and part breakage. Though be warned there may be some unexpected side effects when you start crashing into things. Instability, excessive bouncing off walls etc. There is no way to treat an existing jbeam as a rigid body.

    It is possible to do the same to beamSpring and beamDeform, but doing this will result in immediate jbeam instability. Spring and Damp values are carefully tuned close to their limit in most cases. You can reduce their scale value and turn the car into jelly though, if you like.
     
    • Like Like x 4
    • Informative Informative x 1
  19. PriusRepellent

    PriusRepellent
    Expand Collapse

    Joined:
    Mar 19, 2018
    Messages:
    280
    I am almost 100% sure this would cause severe instability. Lots of ways overflows could happen here.
     
  20. Oggynator

    Oggynator
    Expand Collapse

    Joined:
    Apr 22, 2019
    Messages:
    8
    Moin, is it possible to increase the mass of the car for more deformation?
    Best regards Andreas
     
  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