I want to know how to add a part to an existing vehicle in the game. I don’t need to know how to change the properties of the part, that’s already sorted out, I just want to know how to get it to a point where it is a selectable part.
https://wiki.beamng.com/Introduction_to_skin_system Try learning this first, then take the same process of making a new skin jbeam and slot and apply it to any other part. Hopefully this helps.
Can you send the current files (or PM them to me if you don't want them to be shared until the mod is released)? I could possibly help (fix the mod to be exact, so you can look at the differences yourself because I'm not really good at making modding tutorials).
Yeah it’s not a skin I’m trying to create, but thanks I could send you the dae file. You’ll probably just end up telling me I’m not supposed to add a part
What I meant was that you could take the same concept of creating a new "part" for a skin and use the same exact technique for other things.
Can you send it? It would also be helpful if you specified the target car to use it on (so I can name the slots properly). And just to be sure, do you have the materials.cs set up? I can help with coding the main engine but don't really have any experience with materials (and if you don't have them set-up then you could possibly copy them from a vanilla engine, or wait a little longer while I figure out materials).
It’s basically a face lifted van. As a bit of a heads up it does use an altered van body. However the front of the van works with the current vans jbeam files. And no, I don’t have anything set up. I’m pretty shit :/ --- Post updated --- Well thanks!
Ill show you how to make a bumper this tutorial is on the old pessima Ok to start you want your dae file, the material.cs file, and the jbeam file Once you have those in a folder, open the jjbeam file Keep in mind if i say pessima_bumper_f use the vehicles name that your using as a base not pessima Once you opened the Jbeam file, re name/ customize this line Code: { "pessima_bumper_F": { "information":{ "authors":"BeamNG", "name":"Front Bumper", "value":70, I will change the parts you need to to example parts Code: { "EXAMPLE_bumper_F": { "information":{ "authors":"Keys", "name":"Example Front Bumper", "value":99, Then save the jbeam file as a jbeam file After you change those lines, if you package the mod as vehicles/(examplename)/ It should show up in the vehicle selector BUT if you want to change the 3d model which you do, Do as I will show you next... Go to the flex bodies section See where it says pessima_bumper_f ? it will change depending on whatever vehicle your using for the van i guessing it will be van_bumper_f Edit that section as so (updated thanks @burilkovdeni for correcting me!) ORIGINAL "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["pessima_bumper_F", ["pessima_bumper_F"]], change the original vehicle name to your vehicle name Edited "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["Example_bumper_F", ["pessima_bumper_F"]], Now for a tricky part, you will need to find all the names in the jbeam that are pessima_bumper_f it will not be pessima if you used a different vehicle YOU CAN NOT USE THE FIND AND REPLACE TOOL BECAUSE IT WILL MESS UP OTHER NAMES THAT START WITH THAT BUT you can use the find part of the tool so you dont miss any. Click find and get the find tool mine looks different than yours because i use a different editing program so yours will be different In the search box type in pessima_bumper_f and hit find all they should highlight so you can see which ones to change for this part just use copy and paste copy your part custom name EXAMPLE: example_bumper_f and paste it to replace all of the highlighted things unless they have more text after it like pessima_bumper_f_lights DO NOT CHANGE THE SLOT TYPE BECAUSE THAT WILL MESS IT UP ok once you finished that, save the jbeam file! Now go into blender and rename your part to your custom name! example: example_bumper_f then export it as a dae file to the folder in which you have the jbeam and material cs! now send to compressed zip file as vehicles/(examplecar) and put it in your mods folder, DONE!
@Keys this part is slightly wrong and will cause issues. ORIGINAL "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["pessima_bumper_F", ["pessima_bumper_F"]], change the original vehicle name to your vehicle name Edited "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["Example_bumper_F", ["Example_bumper_F"]], ______________________________________________________ This is how it should be. ORIGINAL "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["pessima_bumper_F", ["pessima_bumper_F"]], change the original vehicle name to your vehicle name Edited "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["Example_bumper_F", ["pessima_bumper_F"]],
If it does not work, I can make a video tutorial late, I'm at school rn, but I get home in 2 hours thanks, Ill update it so its not false!