Drive shaft problems

Discussion in 'Content Creation' started by drperry, Jun 14, 2016.

  1. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    I've tried searching, and either I can't find the right syntax, or when I do, I'm too tired to figure things out, but I'm having drive shaft issues with my semi... Looking for info on how to stop it from happening, please and thanks!

    screenshot_00006.jpg
     
  2. G-Farce

    G-Farce
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    604
    I used a modded D series and the driveshaft instantly broke on a light bump. Of course the car was lowered to begin with, but I would think the shaft could last much longer.
     
  3. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    It might have something to do with chassis flex.. At least on the semi... I haven't found anything related to u-joint or driveshaft strength anywhere, as of yet.
     
  4. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    Its in the semi_suspension_R jbeam. Here is a version of a "HD" driveshaft for my semi "performance" package.

    Code:
    },
    "semi_driveshaft_josh": {
        "information":{
            "authors":"BeamNG",
            "name":"HD Driveshaft",
            "value":550,
        }
        "slotType" : "semi_driveshaft",
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
        ],
         "props": [
            ["func"      , "mesh"           , "idRef:", "idX:", "idY:", "baseRotation"        , "rotation"            , "translation"        , "min", "max", "offset", "multiplier",],
            ["driveshaft", "semi_driveshaft", "ra1","tra1","ra1ref",    {"x":0, "y":0, "z":90}, {"x":0, "y":1, "z":0} , {"x":0, "y":0, "z":0}, -360, 360, 0, 1,{"deformGroup":"semi_driveshaft"}],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             ["ra1ref", 0, 0.81, 0.6,{"collision":false,"selfCollision":false,"nodeWeight":5.1}],
        ],
        "beams": [
              ["id1:", "id2:", "options"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
              //ref node
              {"beamSpring":9000800,"beamDamp":80},
              {"beamDeform":300000,"beamStrength":"FLT_MAX"}
              ["ra2l","ra1ref"],
              ["ra2r","ra1ref"],
              ["ra1","ra1ref"],
              {"beamPrecompression":1.0, "beamType":"|BOUNDED", "beamLongBound":0.01, "beamShortBound":0.01},
              {"beamSpring":0,"beamDamp":0,"beamDeform":2000,"beamStrength":4000},
              {"beamLimitSpring":10001000,"beamLimitDamp":1000},
              ["tra1","ra1",{"name":"driveshaft","deformGroup":"semi_driveshaft"}],
    
        ],
    }
    
    
    
     
  5. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    Unfortunately, it doesn't seem to help... I'll keep trying different beamSpring numbers, but adding a 1 in front of yours didn't help, lol.

    The only way I've gotten it to last, is to either lower the power, or reduce the tire grip... But then I don't get my awesome wheelies, lol.
    --- Post updated ---
    I don't want to cut power or traction, lol.

    Here's my Engine specs:
    Code:
    "semi_engine_I6": {
      "information":{
      "authors":"BeamNG",
      "name":"DMFP I6 BFT Diesel Engine",
      "value":8000,
      }
      "slotType" : "semi_engine",
      "slots": [
      ["type", "default", "description"]
      //engine
      ["semi_transmission","semi_transmission_12M", "Transmission"],
      ["semi_exhaust","semi_exhaust", "Exhaust"],
    
      ],
      "enginetorque":[
      ["rpm", "torque"]
      [0, 0],
      [200, 1305],
      [500, 1505],
      [750, 1755],
      [1000, 2195],
      [1200, 2195],
      [1500, 2192],
      [1800, 2180],
      [2200, 2185],
      [2500, 2285],
      [3000, 2285],
     [3500, 2385],
     [4000, 2385],
     [4500, 2485],
     [4750, 2605],
     [5000, 2705],
     [5500, 2855],
      [6000, 2955],
      [6500, 3055],
      [7000, 0],
      ],
      "turbocharger": {
      "wastegateStart":100,
      "wastegateLimit":104,
      "maxExhaustPower": 25000,
      "backPressureCoef": 0.000065,
      "bovEnabled":false,
      "bovSoundVolumeCoef": 0.0
      "frictionCoef": 1.5,
      "inertia":18,
      "pressurePSI":[
      //turbineRPM, pressure(PSI)
      [0,  -1],
      [30000,  10],
      [60000,  18],
      [90000,  37],
      [150000,  51],
      [200000,  59],
      [250000,  68],
      [300000,  77],
      [350000,  86],
      [400000,  95],
      [450000,  104],
      ],
      "engineDef":[
      //engineRPM, efficiency, exhaustFactor
      [0,  0.2,  0.0],
      [250,  0.6,  0.55],
      [500,  0.9,  0.9],
      [800,  0.9,  0.9],
      [1400,  0.9,  0.9],
      [1800,  0.9,  0.9],
      [2200,  0.9,  0.9],
      [2800,  0.9,  0.9],
      [3200,  0.9,  0.9],
      [3800,  0.9,  0.9],
      [4200,  0.9,  0.9],
      [4800,  0.9,  0.9],
      [5500,  0.9,  0.9],
      [6000,  0.9,  0.9],
      [6500,  0.85,  0.85],
      [7000,  0.7,  0.7],
      ],
      },
      "engine":{
      "idleRPM":650,
      "shiftDownRPM":3300,
      "shiftUpRPM":5000,
      "maxRPM":7000,
      "revLimiterRPMDrop":0,
      "inertia":10,
      "friction":150
      "brakingCoefRPS":5
      "burnEfficiency":0.22
      "throttleSensitivity":1
      "torqueReactionNodes:":["en1l","en2l","en4r"]
    
    Transmission:
    Code:
    "semi_transmission_12M": {
      "information":{
      "authors":"DMFP",
      "name":"18/5-Speed Manual Transmission",
      "value":15000,
      }
      "slotType" : "semi_transmission",
      "engine":{
      "transmissionType":"manual"
      //18 forward gears, 5 reverse gears
      "gears":[-1.78, -2.62, -3.73, -5.16, -10.40, 0, 10.40, 8.6, 7.26, 5.16, 4.2, 3.74, 3.15, 2.73, 2.38, 2.04, 1.88, 1.62, 1.37, 1.25, 1.15, 1.07, 1.00, 0.921]
      "clutchDuration":0.001
      "clutchTorque":15000
      },
    
    Tires:
    Code:
    {
    "semi_tire_R_1": {
      "information":{
      "authors":"BeamNG",
      "name":"Heavy Duty Front Rear Tires",
      "value":1000,
      }
      "flexbodies": [
      ["mesh", "[group]:", "nonFlexMaterials"],
      ["tire_02a_22x10_41", ["wheel_RR_1","tire_RR_1"], [], {"pos":{"x":-0.739, "y":1.46, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ["tire_02a_22x10_41", ["wheel_RL_1","tire_RL_1"], [], {"pos":{"x": 0.739, "y":1.46, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ["tire_02a_22x10_41", ["wheel_RR_1","tire_RR_1"], [], {"pos":{"x":-1.069, "y":1.46, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ["tire_02a_22x10_41", ["wheel_RL_1","tire_RL_1"], [], {"pos":{"x": 1.069, "y":1.46, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ],
      "slotType" : "semi_tire_R_1",
      "pressureWheels": [
      ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
      {"enableTireLbeams":true,"disableMeshBreaking":false,"disableHubMeshBreaking":false},
    
      //general settings
      {"radius":0.53},
      {"tireWidth":0.57},
      {"numRays":14},
    
      //tire options
      {"wheelSideBeamSpring":21000,"wheelSideBeamDamp":64},
      {"wheelSideBeamSpringExpansion":1101000,"wheelSideBeamDampExpansion":80},
      {"wheelReinfBeamSpring":91000,"wheelReinfBeamDamp":120},
      {"wheelTreadBeamSpring":351000,"wheelTreadBeamDamp":200},
      {"wheelPeripheryBeamSpring":501000,"wheelPeripheryBeamDamp":80},
    
      //deform values
      {"wheelSideBeamDeform":78000,"wheelSideBeamStrength":82000},
      {"wheelReinfBeamDeform":78000,"wheelReinfBeamStrength":82000},
      {"wheelTreadBeamDeform":78000,"wheelTreadBeamStrength":96000},
      {"wheelPeripheryBeamDeform":78000,"wheelPeripheryBeamStrength":96000},
    
      //general tire values
      {"nodeWeight":1.63},
      {"nodeMaterial":"|NM_RUBBER","hasTire":true},
      {"frictionCoef":225.20},
      {"triangleCollision":true},
      {"pressurePSI":50},
      {"maxPressurePSI":240},
      {"dragCoef":20},
      ],
    }
    "semi_tire_R_2": {
      "information":{
      "authors":"BeamNG",
      "name":"Heavy Duty Rear Rear Tires",
      "value":1000,
      }
      "flexbodies": [
      ["mesh", "[group]:", "nonFlexMaterials"],
      ["tire_02a_22x10_41", ["wheel_RR_2","tire_RR_2"], [], {"pos":{"x":-0.739, "y":2.79, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ["tire_02a_22x10_41", ["wheel_RL_2","tire_RL_2"], [], {"pos":{"x": 0.739, "y":2.79, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ["tire_02a_22x10_41", ["wheel_RR_2","tire_RR_2"], [], {"pos":{"x":-1.069, "y":2.79, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ["tire_02a_22x10_41", ["wheel_RL_2","tire_RL_2"], [], {"pos":{"x": 1.069, "y":2.79, "z":0.45}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
      ],
      "slotType" : "semi_tire_R_2",
      "pressureWheels": [
      ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
      {"enableTireLbeams":true,"disableMeshBreaking":false,"disableHubMeshBreaking":false},
    
      //general settings
      {"radius":0.53},
      {"tireWidth":0.57},
      {"numRays":14},
    
      //tire options
      {"wheelSideBeamSpring":21000,"wheelSideBeamDamp":64},
      {"wheelSideBeamSpringExpansion":1101000,"wheelSideBeamDampExpansion":80},
      {"wheelReinfBeamSpring":91000,"wheelReinfBeamDamp":120},
      {"wheelTreadBeamSpring":351000,"wheelTreadBeamDamp":200},
      {"wheelPeripheryBeamSpring":501000,"wheelPeripheryBeamDamp":80},
    
      //deform values
      {"wheelSideBeamDeform":78000,"wheelSideBeamStrength":82000},
      {"wheelReinfBeamDeform":78000,"wheelReinfBeamStrength":82000},
      {"wheelTreadBeamDeform":78000,"wheelTreadBeamStrength":96000},
      {"wheelPeripheryBeamDeform":78000,"wheelPeripheryBeamStrength":96000},
    
      //general tire values
      {"nodeWeight":1.63},
      {"nodeMaterial":"|NM_RUBBER","hasTire":true},
      {"frictionCoef":225.20},
      {"triangleCollision":true},
      {"pressurePSI":50},
      {"maxPressurePSI":240},
      {"dragCoef":20},
      ],
    }
    }
    
     
  6. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Why is the driveshaft breaking? I assume that it's either being: bent, over-compressed, or over-extended. My advice? Turn on node names and beam visualization and find the driveshaft. Turn on 16x or 100x slow-motion and do a launch. Observe what bad thing happens to the driveshaft.

    Observing that stuff will set you up to understand what's happening better, but you could also just start playing with the bounds to see if it's over-compressing or over-extending. The JBEAM code which Josh posted can handle only 1% expansion or contraction - so maybe 2-3cm depending on the length of the shaft?

    Don't forget this documentation: http://wiki.beamng.com/JBeam_Reference
     
  7. CreasingCurve

    CreasingCurve
    Expand Collapse

    Joined:
    Jan 19, 2016
    Messages:
    940
    Dude you do not need 225 friction coef. When i make drag cars that do instawheelies i put it as high as maybe 7 or 8 not 200
     
    • Like Like x 1
  8. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    That's a fair point (I have actually been using 3.25 on the standard Wheelie Monster with optional 4.2's) but I FWIW don't think this is related to the driveshaft problem. The game doesn't currently (0.5.6.1) support torque breaking the driveshaft - only those three things I mentioned in my post above.
     
  9. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    Thanks torsion! It was in fact the driveshaft not being able to lengthen itself out enough... The intermediate shaft between differentials looked like it was hitting 45+ degrees of angle before it let go... Increased the LongBound and she's golden...

    The friction coef was more a random number because I didn't want them to spin, lol. And they the back end of the T75 5th wheel gets pretty loose at 170MPH around the loop on the grid map with 25 and lower, lol


    I just hammered in big power while keeping the existing handling characteristics... Keeping it simple for now
     
  10. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Sweet, I'm glad you got it fixed.
     
  11. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    Making big power is easy... Controlling it... Not so much, lol
     
  12. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    I agree. Do you plan on releasing your mod on the Mods DB? FWIW several people have asked me to do something similar.
     
  13. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    I probably should, lol. Just gotta get around to reading up on how to make it work in a package, and if I have to upload the whole zip or just the jbeams and such. I don't usually think about it much, lol
     
  14. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    If you've got things working in-game you can only be so far away from being able to package them up. OTOH if your modifications are currently to stock parts (eg they replace/change stock parts) then moving those over to custom parts so that they don't interfere with the base game is probably going to be your largest challenge.
     
  15. drperry

    drperry
    Expand Collapse

    Joined:
    Apr 7, 2016
    Messages:
    10
    That'd be it, yep, lol, I'd like it to be a drop down option in the menu for the semi, which, in theory, I should be able to do with a mod... I know I can do it with modded stock files
     
  16. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Take a look at my mod to the D15 for reference if you'd like. The Pickup/Roamer use "common files" more extensively than the Semi probably does, but it's basically the same idea.
     
  17. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    You'd want to separate your modified parts off into their own separate file. Package those up standalone. Your mod would be turned down from repo if it interfered with base game parts.
     
  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