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,683
    This is a tool I've wanted to start for a long time. This tool is here to help those who know the *.truck format, be able to understand *.jbeam just as well.

    For those who don't know, *.truck is the format used in Rigs of Rods.

    It will currently convert the following sections:
    Code:
    globals
    nodes
    nodes2
    fixes
    beams
    shocks
    shocks2
    hydros
    cinecam
    minimass
    slidenodes
    railgroups
    refnodes
    set_node_defaults
    set_beam_defaults
    set_beam_defaults_scale
    wheels
    engine
    engoption
    torquecurve
    contacters
    rollon
    flexbodies
    submesh (collision only)
    wheels2
    brakes
    axles
    meshwheels
    meshwheels2
    flexbodywheels
    
    Of course there will be more to come, but this is just the start! :)

    You can download and test it here:
    https://github.com/Dummiesman/truck2jbeam

    you will need an installation of Python 3 on your computer
     
    #1 Dummiesman, Aug 16, 2016
    Last edited: Aug 18, 2016
    • Like Like x 15
  2. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Just recently added slidenodes, shocks2, among some other things.

    Big thing that's lacking is commands right now. D:
     
  3. burilkovdeni

    burilkovdeni
    Expand Collapse

    Joined:
    Aug 21, 2014
    Messages:
    1,167
    It does work, but not for all .truck files.

    The ones it does not work for, for me are the Vapid Clover and the Austin Mini.

    Have latest.

    Thanks for your hard work.



    EDIT: .truck = .jbeam .

    20160816200516_1.jpg 20160816200646_1.jpg
    ^
    EDIT II: this is just a proof of concept, with slapped on pressure wheels and engine, for personal use only.

    If anyone wants I can post a video of this vehicle.
     
    #3 burilkovdeni, Aug 16, 2016
    Last edited: Aug 17, 2016
  4. Dealercrash

    Dealercrash
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    3,122
    what is a .truck format used for?
     
  5. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,401
    It's the format that Rigs of Rods uses. It's like jbeam, but written differently.
     
  6. Raft

    Raft
    Expand Collapse

    Joined:
    Aug 26, 2015
    Messages:
    709
    its for the old ror cars, so we can convert it to jbeam
    edit: ninja'd
     
    • Like Like x 1
  7. Dealercrash

    Dealercrash
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    3,122
    oh okay
     
  8. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    Need to finish them D:
    90% done ...
     
    • Like Like x 8
  9. Dealercrash

    Dealercrash
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    3,122
    you did this on Python?
     
  10. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Yep



    Since I'm posting anyways:

    -detacher groups are now converted
    -minimass is now taken into account (apparently it wasn't before :/ whoops)
    -slidenodes have been fixed (me being an idiot having an extra number in there)
    -set_beam_defaults_scale is now taken into effect
    -engine conversion, and torquecurve conversion has been added

    as always just d/l again from github and you'll be updated
     
    #10 Dummiesman, Aug 17, 2016
    Last edited: Aug 17, 2016
  11. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    is mesh wheels to pressure wheels conversion planned or possible?
     
  12. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    I recently pushed a commit of 'wheels' to PressureWheels. That's the first step to this stuff ;)

    tl;dr : yes
     
  13. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    Awesome
     
  14. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Implemented and committed:
    Code:
    contacters
    set_node_defaults
    
    To go for an 'initial release' status:
    Code:
    commands (may be possible with some custom lua + inputmap)
    wheels (meshwheels, meshwheels2, flexbodywheels, wheels2)
    submesh (collision & buoyancy)
    flexbodies
    props
    
     
  15. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    If you bring in sub mesh, wheels we should be able to bring in the dyno from RoR.

    It's a simple file, only thing it will be missing is commands. But I see it's been worked on by the dev team.

    Keep up the good work !
     
  16. youdidwhat!!

    youdidwhat!!
    Expand Collapse

    Joined:
    Feb 8, 2013
    Messages:
    723
    who remembers the old tatra 815
    anyone want me ro give it a go
    --- Post updated ---
    how does one intall this ?
     
  17. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Usage is in the readme. If you are converting something, please make sure you have permission.
     
    • Like Like x 1
  18. youdidwhat!!

    youdidwhat!!
    Expand Collapse

    Joined:
    Feb 8, 2013
    Messages:
    723
    oh thanks then what? how do I make the .truck into a jbeam do I copy and paste it?
     
  19. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Take .truck
    Drag onto truck2jbeam.py
    A .jbeam will be created
     
  20. youdidwhat!!

    youdidwhat!!
    Expand Collapse

    Joined:
    Feb 8, 2013
    Messages:
    723
    oh right my mistake :)
    --- Post updated ---
    where does it put the .truck?
     
    #20 youdidwhat!!, Aug 17, 2016
    Last edited: Aug 17, 2016
  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