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.
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.
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.
check default vehicle parts. they all have a flexbodies section that defines the mesh to be used by the jbeam structure.
"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.
"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?
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.
{ "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?
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.