Solved Can someone please give me a simple tutorial on how to an part to a vehicle

Discussion in 'Mod Support' started by QUANTUM0, Mar 27, 2018.

  1. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    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.
     
    • Like Like x 1
  2. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    Can someone please just say “No” because it just seems like I’m being ignored.
     
  3. losr

    losr
    Expand Collapse
    Banned

    Joined:
    Sep 16, 2016
    Messages:
    157
  4. Leon1996

    Leon1996
    Expand Collapse

    Joined:
    Jun 4, 2015
    Messages:
    33
    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).
     
  5. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    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
     
  6. losr

    losr
    Expand Collapse
    Banned

    Joined:
    Sep 16, 2016
    Messages:
    157
    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.
     
  7. Leon1996

    Leon1996
    Expand Collapse

    Joined:
    Jun 4, 2015
    Messages:
    33
    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).
     
  8. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    Oh ok. I’ll give it a go
     
  9. Spiicy

    Spiicy
    Expand Collapse

    Joined:
    Sep 8, 2016
    Messages:
    3,798
    Ok I know how to do it, i can write you a tutorial in a minute once i switch classes
     
  10. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    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!
     
    • Like Like x 1
  11. Spiicy

    Spiicy
    Expand Collapse

    Joined:
    Sep 8, 2016
    Messages:
    3,798
    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

    ScreenShot2018-04-06at103802AM.png
    Once you have those in a folder, open the jjbeam file
    ScreenShot2018-04-06at103908AM.png


    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
    ScreenShot2018-04-06at104427AM.png
    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
    ScreenShot2018-04-06at104953AM.png
    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
    ScreenShot2018-04-06at105206AM.png 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!
     
    #11 Spiicy, Apr 6, 2018
    Last edited: Apr 6, 2018
    • Like Like x 1
    • Informative Informative x 1
  12. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    That’s incredibly helpful. Thanks for using some of your time to make this. It’s really appreciated:D
     
    • Like Like x 1
  13. Spiicy

    Spiicy
    Expand Collapse

    Joined:
    Sep 8, 2016
    Messages:
    3,798
    So it worked for you?
     
  14. QUANTUM0

    QUANTUM0
    Expand Collapse

    Joined:
    Aug 18, 2017
    Messages:
    441
    Haven’t tried yet as I’m not home. I’m just greatful for you putting in all that effort
     
    • Like Like x 1
  15. burilkovdeni

    burilkovdeni
    Expand Collapse

    Joined:
    Aug 21, 2014
    Messages:
    1,167
    @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"]],
     
    • Like Like x 1
    • Informative Informative x 1
  16. Spiicy

    Spiicy
    Expand Collapse

    Joined:
    Sep 8, 2016
    Messages:
    3,798
    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!
     
    • 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