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

(RESOLVED) 6x6 powertrain problems, help! (Devs needed) (file included)

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, May 2, 2020.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Im making a 6x6 mod, the powertrain is setup correct all wheels connected and drive when lifted off the ground, but for some reason only the front 2 wheels get 90% of the power, also if I test driving it against a wall to spin the tires, the 2 front wheels spin but the rear 4 wheels are stationary, this despite the drivetrain is AWD with all transfer cases and diffs locked.

    EDIT:
    Here is the powertrain isolated from the jbeam files, from the gearbox to the wheels
    Code:
    //Powertrain for 6x6 from gearbox to wheels - all gearRatio set to "1", all diffs and transercases locked, all friction set to "0"
    
    //Transmission: transfercase to driveshaft_F / transfercase to driveshaft_R
        },
        "slotType" : "schoolbus_transfer_case_6x6",
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["differential", "transfercase", "gearbox", 1, {"diffType":"locked", "lockTorque":10000, "friction":0, "uiName":"Transfer Case", "defaultVirtualInertia":2}],
            ["shaft", "driveshaft_F", "transfercase", 1, {"breakTriggerBeam":"driveshaft_F", "uiName":" Driveshaft", "electricsName":"driveshaft_F", "friction":5}]
            ["shaft", "driveshaft_R", "transfercase", 2, {"breakTriggerBeam":"driveshaft_F", "uiName":" Driveshaft", "electricsName":"driveshaft_F", "friction":5}]
    
    //Front Setup:
        ],
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["differential", "differential_F", "driveshaft_F", 1, {"diffType":"locked", "gearRatio":1, "lockTorque":10000, "friction":0, "uiName":"  Differential","defaultVirtualInertia":2}],
        ],
        "powertrain" : [//front wheels
            ["type", "name", "inputName", "inputIndex"],
            ["shaft", "wheelaxleFL", "differential_F", 1, {"connectedWheel":"FL", "breakTriggerBeam":"axle_FL", "friction":0}],
            ["shaft", "wheelaxleFR", "differential_F", 2, {"connectedWheel":"FR", "breakTriggerBeam":"axle_FR", "friction":0}],
    
    //Rear Setup:
        ],
        "powertrain" : [//to front rear diff
            ["type", "name", "inputName", "inputIndex"],
            ["differential", "transfercase_R", "driveshaft_R", 1, {"diffType":["locked"], "lockTorque":10000, "friction":0, "uiName":"Transfer Case", "defaultVirtualInertia":2}],
            ["differential", "differential_R_1", "transfercase_R", 1, {"diffType":"locked", "gearRatio":1, "lockTorque":10000, "friction":0, "uiName":"  Differential","defaultVirtualInertia":2}],
        ],
        "powertrain" : [//front rear wheels
            ["type", "name", "inputName", "inputIndex"],
            ["differential", "differential_RL", "differential_R_1", 1, {"diffType":"locked", "gearRatio":1, "lockTorque":1000000, "friction":0, "uiName":" Differential","defaultVirtualInertia":2}]
            ["differential", "differential_RR", "differential_R_1", 2, {"diffType":"locked", "gearRatio":1, "lockTorque":1000000, "friction":0, "uiName":" Differential","defaultVirtualInertia":2}]
            ["shaft", "wheelaxle_RL1", "differential_RL", 1, {"connectedWheel":"RL1", "breakTriggerBeam":"axle_RL_1", "uiName":"  Left Axle", "friction":0}]
            ["shaft", "wheelaxle_RL2", "differential_RL", 2, {"connectedWheel":"RL2", "breakTriggerBeam":"axle_RL_1", "uiName":"  Left Axle", "friction":0}]
            ["shaft", "wheelaxle_RR1", "differential_RR", 1, {"connectedWheel":"RR1", "breakTriggerBeam":"axle_RR_1", "uiName":"  Right Axle", "friction":0}]
            ["shaft", "wheelaxle_RR2", "differential_RR", 2, {"connectedWheel":"RR2", "breakTriggerBeam":"axle_RR_1", "uiName":"  Right Axle", "friction":0}]
        ],
        "powertrain" : [//to intershaft - to rear rear diff
            ["type", "name", "inputName", "inputIndex"],
            ["shaft", "intershaft", "transfercase_R", 2, {"electricsName":"intershaft", "breakTriggerBeam":"intershaft", "uiName":"Inter Axle Driveshaft", "friction":2}],
            ["differential", "differential_R_2", "intershaft", 1, {"diffType":"locked", "gearRatio":1, "lockTorque":10000, "friction":0, "uiName":"  Differential","defaultVirtualInertia":2}],//WELDED CODE
        ],
        "powertrain" : [//rear rear wheels
            ["type", "name", "inputName", "inputIndex"],
            ["differential", "differential_R_RL", "differential_R_2", 1, {"diffType":"locked", "gearRatio":1, "lockTorque":1000000, "friction":0, "uiName":" Differential","defaultVirtualInertia":2}]
            ["differential", "differential_R_RR", "differential_R_2", 2, {"diffType":"locked", "gearRatio":1, "lockTorque":1000000, "friction":0, "uiName":" Differential","defaultVirtualInertia":2}]
            ["shaft", "wheelaxle_R_RL1", "differential_R_RL", 1, {"connectedWheel":"R_RL1", "breakTriggerBeam":"axle_RL_2", "uiName":"  Left Axle", "friction":0}]
            ["shaft", "wheelaxle_R_RL2", "differential_R_RL", 2, {"connectedWheel":"R_RL2", "breakTriggerBeam":"axle_RL_2", "uiName":"  Left Axle", "friction":0}]
            ["shaft", "wheelaxle_R_RR1", "differential_R_RR", 1, {"connectedWheel":"R_RR1", "breakTriggerBeam":"axle_RR_2", "uiName":"  Right Axle", "friction":0}]
            ["shaft", "wheelaxle_R_RR2", "differential_R_RR", 2, {"connectedWheel":"R_RR2", "breakTriggerBeam":"axle_RR_2", "uiName":"  Right Axle", "friction":0}]
    
    Below are the problems with the powertrain with an example to reference.

    Video of 6x6 locked with front wheel spin under load


    Video of 6x4 RWD one axle spinning under load


    Video of correct operation from a mod, 8x8 locked all wheels spin under load
     

    Attached Files:

    #1 ThreeDTech21, May 2, 2020
    Last edited: May 3, 2020
  2. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,926
    Could you please provide the screenshot with drivetrain loaded with moderate throttle, and a jbeam file if necessary
     
  3. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I updated the OP with lots of info and a link to a powertrain file jbeam, if anyone wants to test the full mod let me knw i can PM it, its unfinished and includes alot of working files like Blender files and Photoshop files.
     
  4. TrackpadUser

    TrackpadUser
    Expand Collapse

    Joined:
    Aug 24, 2019
    Messages:
    468
    A lock torque setting of 10000 might be too low for the transfer case and differentials.

    The semi's transfer-case is at 100000, and the diffs are at 5000000. Don't forget torque gets multiplicated the further down the driveline you go.

    As for debugging tips, lifting the car off the ground can also help to see if things are connected properly. If something's not spinning at the correct speed, or spinning the wrong way, it's easier to spot. On the ground that often just results in weird behavior and binding.
     
    • Like Like x 1
  5. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Thanks i will try these!

    It didn't work it still behaves the same, but when suspended in the air all there is something odd with the front wheels, they spin at 140mph while the rest spins at 20mph..

    Captsure.png

    EDIT: It works!

    after hours of frustration I found the issue.

    I had to replace this:
    {"diffType":"locked", "lockTorque":10000, "friction":15, "uiName":"Transfer Case", "defaultVirtualInertia":2}],

    with this:
    {"diffType":"locked", "gearRatio":3, "friction":15}]


    for the differentials, and i also had gearRatios in the wrong section. I don't know why it works now, seems like the lockTourqe is needed but by leaving it out my setup works now, all wheels spin under load.
     
    #5 ThreeDTech21, May 4, 2020
    Last edited: May 4, 2020
  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