Help needed with wheels

Discussion in 'Content Creation' started by mike94, Aug 1, 2015.

  1. mike94

    mike94
    Expand Collapse

    Joined:
    Mar 7, 2015
    Messages:
    155
    I'm making this '68 Ford 3000 tractor for BeamNG.:D For some info about the project,read this thread.
    2015-08-01_00002.jpg
    I have made .jbeams for frame and axles following the instructions in vehicle creation page.
    Now I'm trying to add wheels but this keeps happening:
    2015-08-01_00001.jpg
    I took the front wheels from D15 Offroad and copied all node and beam values from my front axle jbeam into D15 offroad wheels file.
    I don't know why wheels don't spawn. Tractor spawns fine again after deleting the wheels .jbeam from the ford folder.
    Jbeam files are included in attachments section.
     

    Attached Files:

  2. burilkovdeni

    burilkovdeni
    Expand Collapse

    Joined:
    Aug 21, 2014
    Messages:
    1,169
    In the pressure wheels section of the front axle jbeam there nothing there.
     
  3. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    Line 100 of the wheel jbeam:
    Code:
    {"axleBeams":["axle_a_FL","axle_b_FL",]}
    The wheels need axles. Set the axle beams to something that exists in the axle jbeam, and you'll have one less error. Not sure if this is the one causing the problem, but it's one that needs to be fixed.
     
  4. mike94

    mike94
    Expand Collapse

    Joined:
    Mar 7, 2015
    Messages:
    155
    D15 suspension jbeam has similar empty pressure wheels section. It makes no difference if it exists or not.

    Now wheels have axles. Wheel jbeam looks like this. I have still similar results.
    Code:
    {
    "Ford_3000_wheel_F": {
        "information":{
            "authors":"Mike94",
            "name":"Ford 3000 Front Wheels",
        }
        "slotType" : "ford_wheel_F",
        "scalebeamSpring":0.84,
        "scalebeamDamp":1.3,
        "scalebeamDeform":1.5,
        "scalebeamStrength":1.78,
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             //wheels
    
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"collision":true}
             {"selfCollision":false}
             {"nodeWeight":5.8},
             {"group":"wheelhub_a_FR"},
             ["hufr", -0.68610, -0.88252, 0.42217],
             {"group":"wheelhub_a_FL"},
             ["hufl", 0.68610, -0.88252, 0.42217],
             {"group":"wheelhub_b_FR"},
             ["fwr", -0.74610, -0.88252, 0.42217],
             {"group":"wheelhub_b_FL"},
             ["fwl", 0.74610, -0.88252, 0.42217],
             {"collision":false}
             {"group":""},
             
        ],
        
        "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //hub
              {"beamSpring":1321000,"beamDamp":6},
              {"beamDeform":145000,"beamStrength":300000},
              ["fwr","hufr"],
              ["fwl","hufl"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],    
        "pressureWheels": [
                ["name","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
                {"enableTireReinfBeams":true},
                {"enableTireSideReinfBeams":true},
                //general settings
                {"radius":0.425},
                {"hubRadius":0.22},
                {"wheelOffset":0.06},
                {"hubWidth":0.285},
                {"tireWidth":0.275},
                {"numRays":16},
                
                {"hubTreadBeamSpring":2151000, "hubTreadBeamDamp":3},
                {"hubPeripheryBeamSpring":2151000, "hubPeripheryBeamDamp":3},
                {"hubSideBeamSpring":2151000, "hubSideBeamDamp":3},
                {"hubBeamDeform":112000, "hubBeamStrength":154000},
                {"hubNodeWeight":0.85},
                {"hubNodeMaterial":"|NM_METAL"},
                {"hubFrictionCoef":0.5},
                
                //tire options
                {"wheelSideBeamSpring":0,"wheelSideBeamDamp":15},
                {"wheelSideBeamSpringExpansion":121000,"wheelSideBeamDampExpansion":20},
                {"wheelSideReinfBeamSpring":0,"wheelSideReinfBeamDamp":15},
                {"wheelSideReinfBeamSpringExpansion":391000,"wheelSideReinfBeamDampExpansion":20},
                {"wheelReinfBeamSpring":21000,"wheelReinfBeamDamp":50},
                {"wheelReinfBeamSpringExpansion":21000,"wheelReinfBeamDampExpansion":50},
                {"wheelTreadBeamSpring":301000,"wheelTreadBeamDamp":40},
                {"wheelTreadBeamSpringExpansion":301000,"wheelTreadBeamDampExpansion":40},
                {"wheelPeripheryBeamSpring":391000,"wheelPeripheryBeamDamp":20},
                
                //deform values
                {"wheelSideBeamDeform":78000,"wheelSideBeamStrength":95000},
                {"wheelSideReinfBeamDeform":78000,"wheelSideReinfBeamStrength":95000},
                {"wheelReinfBeamDeform":78000,"wheelReinfBeamStrength":95000},
                {"wheelTreadBeamDeform":78000,"wheelTreadBeamStrength":95000},
                {"wheelPeripheryBeamDeform":78000,"wheelPeripheryBeamStrength":95000},
                
                //general tire values
                {"nodeWeight":0.45},
                {"nodeMaterial":"|NM_RUBBER"},
                {"frictionCoef":1.22},
                
                //
                {"triangleCollision":false},
                {"pressurePSI":18},
                {"maxPressurePSI":2000},
                {"dragCoef":20},
                
                //front
                {"selfCollision":false}
                {"collision":true}
                {"enableHubcaps":false},
                {"axleBeams":["hufl","fwl",]}
                ["FL", "wheel_FL", "hufl", "fwl", 9999,  "spl11", -1, {"torqueArm":"fr3"}],
                {"axleBeams":["hufr","fwr"]}
                ["FR", "wheel_FR", "hufr", "fwr", 9999,  "spr10", 1, {"torqueArm":"fr3"}],
                {"axleBeams":[]}
                {"propulsed":0}
                {"enableABS":false}
                {"selfCollision":true}
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                
        ],
    }
    }
     
  5. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    Is the wheel model in the same folder as the rest of the vehicle? If not, then it needs to be.
     
  6. mike94

    mike94
    Expand Collapse

    Joined:
    Mar 7, 2015
    Messages:
    155
    Yes. All parts of the mesh are in the same .dae file
     
  7. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    I am pretty sure you need (at least should have) the wheels in a separate *.dae. And make sure the names of parts in the .dae match the names in the jbeams.
     
  8. mike94

    mike94
    Expand Collapse

    Joined:
    Mar 7, 2015
    Messages:
    155
    Nearly all of the mod vehicles have wheels in the same .dae as the other meshes. This is not a problem with the wheel mesh. The whole tractor disappears and only that gray square shows up after loading it with wheels. I don't see any beams or nodes and parts selector is empty.
     
  9. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Wheels don't need axles, or to be in a seperate DAE file. When you see only a license plate spawn, that's due to a jbeam syntax error. Check the console for details.
     
  10. mike94

    mike94
    Expand Collapse

    Joined:
    Mar 7, 2015
    Messages:
    155
    Console looks like this:
    2015-08-01_00003.jpg

    These errors are present in the torque3d.log file:

    2006.94565|E|libbeamng.object|spawnVehicle: got exception: lua/vehicle/jbeam/jbeam_main.lua:789: attempt to index field 'engine' (a nil value)
    2006.96560|E|libbeamng.object|lua/vehicle/drivetrain.lua:669: attempt to index local 'wInfo' (a nil value)

    Tractor and wheels spawn with "wheelhub_a" and "wheelhub_b" nodes and without errors after I changed the values marked in red to zero.
    If I add some nodes in "nodeArm" or "torqueArm" sections, I get those errors mentioned above.:mad:
    How I can spawn proper wheels?:confused:
    Code:
    {
    "Ford_3000_wheel_F": {
        "information":{
            "authors":"Mike94",
            "name":"Ford 3000 Front Wheels",
        }
        "slotType" : "ford_wheel_F",
         "scalenodeWeight":0.95,
         "scalebeamSpring":0.75,
         "scalebeamDamp":0.73,
         "scalebeamDeform":0.36,
         "scalebeamStrength":0.65,
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             //wheels
    
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"collision":true}
             {"selfCollision":false}
             {"nodeWeight":5.8},
             {"group":"wheelhub_a_FR"},
             ["hufr", -0.68610, -0.88252, 0.42217],
             {"group":"wheelhub_a_FL"},
             ["hufl", 0.68610, -0.88252, 0.42217],
             {"group":"wheelhub_b_FR"},
             ["fwr", -0.74610, -0.88252, 0.42217],
             {"group":"wheelhub_b_FL"},
             ["fwl", 0.74610, -0.88252, 0.42217],
             {"collision":false}
             {"group":""},
             
        ],
        
        "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //hub
              {"beamSpring":1321000,"beamDamp":6},
              {"beamDeform":145000,"beamStrength":300000},
              ["fwr","hufr"],
              ["fwl","hufl"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],    
        "pressureWheels": [
                ["name","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
                {"enableTireReinfBeams":true},
                {"enableTireSideReinfBeams":true},
                //general settings
                {"radius":0.425},
                {"hubRadius":0.22},
                {"wheelOffset":0.06},
                {"hubWidth":0.285},
                {"tireWidth":0.275},
                {"numRays":16},
                
                {"hubTreadBeamSpring":2151000, "hubTreadBeamDamp":3},
                {"hubPeripheryBeamSpring":2151000, "hubPeripheryBeamDamp":3},
                {"hubSideBeamSpring":2151000, "hubSideBeamDamp":3},
                {"hubBeamDeform":112000, "hubBeamStrength":154000},
                {"hubNodeWeight":0.85},
                {"hubNodeMaterial":"|NM_METAL"},
                {"hubFrictionCoef":0.5},
                
                //tire options
                {"wheelSideBeamSpring":0,"wheelSideBeamDamp":15},
                {"wheelSideBeamSpringExpansion":121000,"wheelSideBeamDampExpansion":20},
                {"wheelSideReinfBeamSpring":0,"wheelSideReinfBeamDamp":15},
                {"wheelSideReinfBeamSpringExpansion":391000,"wheelSideReinfBeamDampExpansion":20},
                {"wheelReinfBeamSpring":21000,"wheelReinfBeamDamp":50},
                {"wheelReinfBeamSpringExpansion":21000,"wheelReinfBeamDampExpansion":50},
                {"wheelTreadBeamSpring":301000,"wheelTreadBeamDamp":40},
                {"wheelTreadBeamSpringExpansion":301000,"wheelTreadBeamDampExpansion":40},
                {"wheelPeripheryBeamSpring":391000,"wheelPeripheryBeamDamp":20},
                
                //deform values
                {"wheelSideBeamDeform":78000,"wheelSideBeamStrength":95000},
                {"wheelSideReinfBeamDeform":78000,"wheelSideReinfBeamStrength":95000},
                {"wheelReinfBeamDeform":78000,"wheelReinfBeamStrength":95000},
                {"wheelTreadBeamDeform":78000,"wheelTreadBeamStrength":95000},
                {"wheelPeripheryBeamDeform":78000,"wheelPeripheryBeamStrength":95000},
                
                //general tire values
                {"nodeWeight":0.45},
                {"nodeMaterial":"|NM_RUBBER"},
                {"frictionCoef":1.22},
                
                //
                {"triangleCollision":false},
                {"pressurePSI":18},
                {"maxPressurePSI":2000},
                {"dragCoef":20},
                
                //front
                {"selfCollision":false}
                {"collision":true}
                {"enableHubcaps":false},
                {"axleBeams":["[COLOR=#ff0000]00[/COLOR]","[COLOR=#ff0000]00[/COLOR]",]}
                ["FL", "wheel_FL", "hufl", "fwl", 9999,  " [COLOR=#ff0000]00[/COLOR] ", -1, {"torqueArm":"[COLOR=#ff0000]00[/COLOR]"}], 
                {"axleBeams":["[COLOR=#ff0000]00[/COLOR]","[COLOR=#ff0000]00[/COLOR]"]}
                ["FR", "wheel_FR", "hufr", "fwr", 9999,  "[COLOR=#ff0000]00[/COLOR]", 1, {"torqueArm":"[COLOR=#ff0000]00[/COLOR]"}],
                {"axleBeams":[]}
                {"propulsed":0}
                {"enableABS":false}
                {"selfCollision":true}
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                
        ],
    }
    }
    
     
    #10 mike94, Aug 1, 2015
    Last edited: Aug 1, 2015
  11. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Torque arm and axles are not needed, but you need to specify valid nodes for the rest if you don't want errors.
     
  12. mike94

    mike94
    Expand Collapse

    Joined:
    Mar 7, 2015
    Messages:
    155
    I added engine jbeam and wheels spawned right. Then I was able to add torque arm and node arm nodes without any errors.

    Now the tractor has wheels and it is finally drivable.:D

    2015-08-02_00001.jpg

    Frame and rear axle need few reinforcement beams and front axle and wheel spindles need some serious strengthening.
    The whole front axle collapses after the tractor gets some speed and spindles are too weak to turn the wheels at all.:eek:
     
  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