Help with new vehicle parts.

Discussion in 'Content Creation' started by Ozark Mountain Cowboy, Jun 8, 2018.

  1. Ozark Mountain Cowboy

    Ozark Mountain Cowboy
    Expand Collapse

    Joined:
    Jul 15, 2017
    Messages:
    25
    I am trying to make a better flatbed for the D-Series and need help adding it as a new part. I have a model in works but can't figure out how to make it show up in game a a new bed.
     
  2. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    your first step is to duplicate the part you need to change. then, in the "flexbodies" section of your jbeam, you can change the mesh to a different one (use the exact name of your model). also change node positions if needed (if the bed is a different general shape), and make sure you change the name of the new part (instead of being a duplicate of the old bed and overwriting it). then, you'll have to do textures, which someone else will have to reply to this to help you with, because i am incompetent when it comes to that.
     
  3. Ozark Mountain Cowboy

    Ozark Mountain Cowboy
    Expand Collapse

    Joined:
    Jul 15, 2017
    Messages:
    25
    I'm confused. In the flexbodies section is where I should define what model the part will have, right?
    --- Post updated ---
    To assist with helping me I'm going to put the JBEAM that I'm working with here. JBEAM was generated with the Blender JBEAM export tool.
     

    Attached Files:

    #3 Ozark Mountain Cowboy, Jun 8, 2018
    Last edited: Jun 8, 2018
    • Agree Agree x 1
  4. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    check default vehicle parts. they all have a flexbodies section that defines the mesh to be used by the jbeam structure.
     
  5. Ozark Mountain Cowboy

    Ozark Mountain Cowboy
    Expand Collapse

    Joined:
    Jul 15, 2017
    Messages:
    25
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["barstow_hood", ["barstow_hood"]],
    ],

    So for example the name of the model should be the part that you want in the DAE file since in this case the Barstow hood is the name of the part in the DAE file.
     
  6. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    yes
     
  7. Ozark Mountain Cowboy

    Ozark Mountain Cowboy
    Expand Collapse

    Joined:
    Jul 15, 2017
    Messages:
    25
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["pickup__new_flatbed", ["pickup_framefront", "pickup_framecab", "pickup_framebed", "pickup_rearshocktop", "pickup_bed"], [], {"pos":{"x":0,"y":0,"z":0}}],
    ],

    Is this correct?
     

    Attached Files:

    • Screenshot_5.png
    #7 Ozark Mountain Cowboy, Jun 9, 2018
    Last edited: Jun 9, 2018
  8. CrashHard

    CrashHard
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    1,581
    yes
     
  9. Ozark Mountain Cowboy

    Ozark Mountain Cowboy
    Expand Collapse

    Joined:
    Jul 15, 2017
    Messages:
    25
    The part doesn't show up in the part menu. I have the folder installed in the unpacked section of the mods folder. It contains the JBEAM file and the DAE file.
     
  10. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    make sure the actual name of the bed is different from a stock one
     
  11. Ozark Mountain Cowboy

    Ozark Mountain Cowboy
    Expand Collapse

    Joined:
    Jul 15, 2017
    Messages:
    25
    {
    "pickup_flatbed": {
    "information":{
    "authors":"BeamNG",
    "name":" NewFlatbed",
    "value":2000,
    },
    The original code was copied from the stock flatbed. Does the "pickup_flatbed" at the top need to be changed as well?
     
  12. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    yes, that's the technical name of the part in the jbeam, the "name" is just what is displayed in-game for that particular part.
     
  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