How to make seperate parts for vehicles?

Discussion in 'Content Creation' started by FalloutNode, Mar 15, 2016.

  1. FalloutNode

    FalloutNode
    Expand Collapse

    Joined:
    Dec 21, 2015
    Messages:
    443
    How to make seperate parts for vehicles? Always when i edit something and name it differently the file name and the files insides it just replaces the original.
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    If for example you just want to make your own separate part (off an existing one) for a vehicle, copy that whole part section
    Example from 'hatch_bumper_F' (line 275)
    "hatch_lip_F": {
    "information":{
    "authors":"BeamNG",
    "name":"Front Lip",
    "value":30,
    },
    "slotType" : "hatch_lip_F",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["hatch_lip_F", ["hatch_bumper_F"]],
    ],
    "nodes": [
    ["id", "posX", "posY", "posZ"],
    //--redefine nodes to move them
    {"collision":true},
    {"nodeMaterial":"|NM_PLASTIC"},
    {"frictionCoef":0.8},
    {"nodeWeight":0.68},
    {"group":"hatch_bumper_F"},
    {"selfCollision":true},
    ["fb2rr", -0.71, -1.87, 0.167],
    {"selfCollision":false},
    ["fb2r", -0.38, -1.94, 0.167],
    ["fb2", 0, -1.95, 0.167],
    ["fb2l", 0.38, -1.94, 0.167],
    {"selfCollision":true},
    ["fb2ll", 0.71, -1.87, 0.167],
    {"selfCollision":true},
    ["fb4rr", -0.78, -1.58, 0.158],
    ["fb4ll", 0.78, -1.58, 0.158],
    {"group":""},
    ],
    },

    And paste it somewhere under.
    Change the name on the first line ( hatch_lip_F > hatch_lip_F_yourmod )

    That part will now appear as a new part in the part selector.
     
  3. FalloutNode

    FalloutNode
    Expand Collapse

    Joined:
    Dec 21, 2015
    Messages:
    443
    Do you need to put a underline there?
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    you can name it whatever you want, as far it's unique.
     
    • Like Like x 1
  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