WIP Beta released truck2jbeam

Discussion in 'Utilities and programming' started by Dummiesman, Aug 16, 2016.

  1. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    It will output the .jbeam in the same directory as the .jbeam file
     
  2. youdidwhat!!

    youdidwhat!!
    Expand Collapse

    Joined:
    Feb 8, 2013
    Messages:
    723
    either I'm really stupid or I'm doing it wrong but I cannot find it
    --- Post updated ---
    its working now it was just the mod I was using not wanting to convert
    tried another one and it works fine
     
  3. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Latest :

    wheels2, meshwheels, meshwheels2, flexbodywheels, axles, brakes, submesh (coltrI), rollon (wheel selfcollision), and flexbody support
    changed the parser up some, may fix parsing errors

    Use link in 1st post to get the latest version (commit)
     
    #23 Dummiesman, Aug 18, 2016
    Last edited: Aug 18, 2016
    • Like Like x 4
  4. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    Great tool, here is Stoat's F-250 N/B from RoR converted just for testing purposes. Awesome work DM !
     

    Attached Files:

    • Capture.PNG
  5. St3v3th3d0g

    St3v3th3d0g
    Expand Collapse

    Joined:
    May 3, 2015
    Messages:
    383
    is any body going to mesh these?
     
  6. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    @Dummiesman

    Is this a problem with the converter, or how the .truck file for RoR is setup? This is a fresh converted file.

    Videos below and files below. (Yes this is for testing purposes only and i'm just playing around with different files.)



     

    Attached Files:

  7. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    The converter ports over wheel drive direction, Don't know why that happens :(

    Also BeamNG's engine code is different and most vehicles are only driveable in manual transmission.
     
  8. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    @Dummiesman

    What would I need to do to fix this, sorry I sound so much like a N00b lol.

    Thanks
     
  9. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Just mess with the direction values in the pressureWheels section
     
  10. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    I meant to make this a while ago

    Converting Flexbodies
    Step 1
    Convert all .mesh files into .mesh.xml
    Step 2 for each .mesh.xml:
    a) Import .mesh.xml with your 3D application (plugins will be required)
    b) Merge all objects together
    c) Name this new object as the mesh name. E.g. mycar_bonnet if the mesh.xml file name is mycar_bonnet.mesh.xml
    Step 3 Merge all of these models together into 1 file.
    Step 4 Export as a DAE inside the JBeam folder, name doesn't matter

    After this, your flexbodies may be offset due to the difference in Flexbodies from RoR to BeamNG. If this is the case, simply set rotation and position to 0 inside of the "flexbodies" section in jbeam.
     
  11. Dunkleosteus

    Dunkleosteus
    Expand Collapse
    Banned

    Joined:
    May 20, 2016
    Messages:
    297
    As a test, I imported a NASCAR truck but using it in-game causes the physics to go supernova.




    I'm sure this is an mega-incomplete folder, so what else is needed?
     
  12. Srockzz

    Srockzz
    Expand Collapse

    Joined:
    May 16, 2015
    Messages:
    2,185
    I am goign to seat here and wait for the Gavril MV4 or other similar ror cars.
     
    • Agree Agree x 1
  13. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    In a lot of RoR vehicles, tires have a lot of damping, and BeamNG does not like this. If your physics are going weird, you may want to see if that's the case.
     
    • Like Like x 1
  14. Dunkleosteus

    Dunkleosteus
    Expand Collapse
    Banned

    Joined:
    May 20, 2016
    Messages:
    297
    Thanks, that worked.

    Now I'm just gotta mess with the (invisible) transmission myself. (Basically it accelerates without input and Drive gear goes in reverse.)
     
  15. Car8john

    Car8john
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    6,292
    Well, you're going to be waiting a long time
     
    • Like Like x 1
  16. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    Are you still working on this, bud? (The project, itself)
     
  17. bigcrazycarboy

    bigcrazycarboy
    Expand Collapse

    Joined:
    May 11, 2015
    Messages:
    78
    Thanks for the time investments, I think this will really accelerate the development of vehicles in Beamng. Especially the fact that you did this in Python... I'm 50% through the codecademy course and I know it shouldn't be able to do this ;) Dummiesman always finds a way!
    -update-
    I'm getting problems using a vehicle I made with this converter in-game. I converted the Gavril MV4 because I wanted to use it for myself, but there came an error. Here's the file with a screenshot of the issue.
    upload_2017-2-9_20-21-48.png

    Hopefully you can take a look at that and figure it out. The wheel jbeam looks fine from what I've seen, but clearly the mesh and other parts are not acting properly. Also, I took out an extra section in the flexbodies section that was just an empty dictionary (for example this line: ["mv4", ["mv4"], [], {"pos":{"x":-0.6314, "y":0.27, "z":-1.3699999999999999}, "rot":{"x":0.0, "y":-90.0, "z":180.0}, "scale":{"x":1, "y":1, "z":1}}], ) Hopefully you can figure out what went wrong.
     

    Attached Files:

    #37 bigcrazycarboy, Feb 5, 2017
    Last edited: Feb 10, 2017
    • Like Like x 1
  18. SimplyGaming

    SimplyGaming
    Expand Collapse

    Joined:
    Feb 21, 2016
    Messages:
    762
    Awesome! But how do I convert the models?
     
  19. wilkgr

    wilkgr
    Expand Collapse

    Joined:
    Jun 30, 2017
    Messages:
    12
    See previous post:
    See previous post:
     
  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