Adding Slots

Discussion in 'Content Creation' started by Sh3lbYe, Apr 9, 2016.

  1. Sh3lbYe

    Sh3lbYe
    Expand Collapse

    Joined:
    Jan 26, 2013
    Messages:
    204
    So im currently trying to add a slot called "lips" to the front bumper so i can put a bunch of lips that i will model, but i'm having quite some trouble... searched in the forum for information to fix this, but with no results.... i hope someone could help me with this...

    So this was what i did...

    In the bumper's jbeam i added one diferent from the stock and sportier ones:




    "sunburst_bumper_F_2": {
    "information":{
    "authors":"Sh3lbYe",
    "name":"Sport Front Bumper with splitter",
    "value":200,
    }
    "slotType" : "sunburst_bumper_F",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["sunburst_bumper_F_2", ["sunburst_bumper_F"]],
    ],
    "slots": [
    ["type", "default", "description"]
    ["sunburst_licenseplate_F","", "Front License Plate"],
    ["Bumper_Lip_F_Slot","", "Custom Front Lip"],
    ....
    ....
    ....



    Then added the slot ( ["Bumper_Lip_F_Slot","", "Custom Front Lip"], ) as seen in the code right after that, i created a new jbeam file called "Bumper_Lip_F.jbeam" and writed the information mesh etc, except for nodes, beams, etc... (do i need to do that just to see the lip ingame?)




    "Bumper_Lip_F_01": {
    "information":{
    "authors":"Sh3lbYe",
    "name":"Custom Front Lip",
    "value":50,
    }
    "slotType" : "Bumper_Lip_F_Slot",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["Front_Lip_01", ["Bumper_Lip_F"]],
    ],
    }​



    But for some reason the car just don't appear... in console, just gives me a huge spam of lua errors.... Am i doing something wrong?

    Beamng_Errors.png
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,686
    Is that Jbeam closing correctly?

    JBeam must end with

    Code:
       ],
    }
    }
    I see only one } there.
     
  3. Sh3lbYe

    Sh3lbYe
    Expand Collapse

    Joined:
    Jan 26, 2013
    Messages:
    204

    Yap that was one of the problems :s , but yet the phisics are crashing again, and the console is giving me the same lua errors :/
     
  4. Sh3lbYe

    Sh3lbYe
    Expand Collapse

    Joined:
    Jan 26, 2013
    Messages:
    204
    Yap, just discovered that... omg... this litle things....
    It´s working now...

    thanks you two for your time
     
  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