[Tutorial] - Creating your own vehicle

Discussion in 'Content Creation' started by Nadeox1, Aug 13, 2013.

  1. TomiL88

    TomiL88
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    169
    DO´H! I forgot that. Thanks, it worked. But somehow the N/B and mesh is high from the ground but in blender it´s not so much.

    And... my N/b explodes after I spawn it.

    EDIT: Got it not to explode by finding random beam settings from hatch.jbeam ;) Ah.. that satisfaction to see own mesh hitting ground and deforming!
     

    Attached Files:

    • runkobeams.jpg
    #141 TomiL88, Mar 27, 2014
    Last edited: Mar 27, 2014
  2. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616

    Whoa! how did you get the jbeam structure to show up in blender!? I need to learn how to do that
     
  3. TomiL88

    TomiL88
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    169
  4. RhinoBlindado

    RhinoBlindado
    Expand Collapse

    Joined:
    Mar 18, 2014
    Messages:
    12
    Why thanks so much for this little tutorial, I'm looking foward the dudes who are working in the jbeam exporter for Blender, I am sure it will ease a lot the work.
    I'd like to ask you, Nadeox, how did you do all those beams and nodes with the cars you have done? And the materials? Would you like to share the tutorials that, if any, you used.

    Ah yes, my creation, it's coming to life in Drive, one step at a time. Looks better when you fuse the whole thing together, for the time being at least, haha:)
    Untitled.png
     
  5. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    FIRST OF ALL, I KNOW THIS IS A BUMP.

    I read the forum and I didn't see anyone with my error,

    The tutorial's great. But once the box part, and the jbeam, and the object name with in the jbeam is done, I get an error which makes the model not appear, (the Jbeam does) Here's the error:

    jbeamerror.PNG
     
  6. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Have you got the game physics paused?
     
  7. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    uh, if I did I would feel so stupid, Ima' go check.

    EDIT: nope, same thing, (it wasn't paused in the first place) :confused:
     
  8. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I have left it on pause fairly often and only after 5 - 10 mins of raging and digging through the jbeam later i realize that i just left pause on. I just couldn't quite remember what message in the console normally prompts me to remember :p
     
  9. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    Do you have a different solution? :)
     
  10. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    No not really, if you are willing to attach your jbeam file then i may be able to get a better idea of the problem. If i cant then i am sure someone else will.

    Some troubleshooting tips:
    • Back up your vehicle files
    • If the vehicle worked before then try and remember what you have added recently just before it stopped working and delete it or try and fix it
    • If you cant remember just start deleting chunks of code until it functions correctly. Just please make sure you back up first.
     
  11. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    ok, here they are,

    P.S. the only part that has EVER worked was the JBeam, the model just wont show.
     

    Attached Files:

    #151 IBsenoj, Sep 3, 2014
    Last edited: Sep 3, 2014
  12. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Always, always end node groups in the node section with this
    Code:
    {"group":""}
    I don't know if that will fix the vehicle since i haven't tested it but that will cause the game to freeze if its not present when you add a mesh to your jbeam.
     
  13. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    is there a comma after {"group":""}?
     
  14. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I haven't on the go kart i am making but its probably good practice to add one. As far as i am aware they are not necessary most of the time.

    This is what my nodes section looks like:
    Code:
    "nodes" :[
            ["id", "posX", "posY", "posZ"],
            
            {"group":"body"},
            {"selfCollision":false}
            {"collision" :true}
            {"nodeMaterial":"|NM_METAL"},
            {"frictionCoef":0.7},
            {"nodeWeight":2},
            
            //lower chassis
            ["lc00",0.4, 0.6, 0.38],
            ["lc10",-0.4, 0.6, 0.38],
            ["lc01",0.4, 0, 0.38],
            ["lc11",-0.4, 0, 0.38],
            ["lc02",0.35, -0.6, 0.38],
            ["lc12",-0.35, -0.6, 0.38],
            
            //upper chassis
            ["uc00",0.4, 0.6, 0.5],
            ["uc10",-0.4, 0.6, 0.5],
            {"nodeWeight":10},
            ["uc01",0.4, 0, 0.7],
            ["uc11",-0.4, 0, 0.7],
            {"nodeWeight":2},
            ["uc02",0.35, -0.6, 0.5],
            ["uc12",-0.35, -0.6, 0.5],
            
            {"nodeWeight":0.8},
            //Front Bumper
            ["fb0",0.35, -0.9, 0.4],
            ["fb1",-0.35, -0.9, 0.4],
            {"nodeWeight":2},
            {"group":""}
            
            //Bits wheels attach to
            ["wrl", 0.58, 0.6, 0.5],
            ["wrr", -0.58, 0.6, 0.5],
            ["wfl", 0.47, -0.6, 0.5],
            ["wfr", -0.47, -0.6, 0.5],
            
        ],
     
  15. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    hhm, sad day. :\ still won't work. :( anyone got idea's

    here's the updated files...
     

    Attached Files:

  16. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    The flexibody sections in both of our vehicles is also different.
    Yours:
    Code:
    "flexbodies": [
             ["mesh", "[group]:"],
             ["Cube1", ["Box001"]]
         ],
    Mine:
    Code:
    "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            {"isCollisionMesh":false},
            {"rotation":{"x":0, "y":0, "z":0}, "translation":{"x":0, "y":0, "z":1}},
            ["Chassis", ["body"],],
            ["Sides", ["body"],],
            ["Front", ["body"],],
            {"deformGroup":""}
         ],    
    
    If you look at the chassis section in my flexibody section you will see that mine places more commas than yours inside the brackets. So that may be part of the issue.
     
  17. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    I'm a little lost, you can download the files and try what your saying, (because I just can't convert my JBeam to match yours, when the other has more features then mine)
     
  18. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Well in truth i am currently slightly overloaded with coursework that i am trying to get done really quickly so i am trying to prioritize that over your model. So sorry about that. This means that i don't have time to test everything i say since i have other things to do. But looking over a jbeam file in search of errors doesnt take to long and is a nice distraction from photoshop, kingsoft writer and visual basic :)

    What i was trying to say in the last post is that i think you are missing a comma. Since i know that my model is in game and works i am using that as a known standard. The section of my vehicle that i shared is actually mostly from the wiki: Flexbodies

    So try changing it from this:
    Code:
    ["Cube1", ["Box001"]]
    to this:
    Code:
    ["Cube1", ["Box001"],]
    as that makes the syntax the same as mine. Hopefully adding that comma in should make your vehicle function.
     
  19. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    You're totally fine! I'm so glad that even willing to help me this much. :)

    I'm added the commas.

    EDIT: YAY I got a new error, (which is good because it might give me some info)

    Here's a pic just in case:

    jbeamerror2.PNG

    And here are some even newer files (everything I changed)
     

    Attached Files:

  20. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Rename your .dae file to be the same as what the game is expecting it to be form the error message. (top red line)
     
  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