Released How to add boosters - Updated:23.02.2017

Discussion in 'Programming' started by KaLul0, Nov 28, 2013.

  1. moosedks

    moosedks
    Expand Collapse

    Joined:
    Nov 4, 2012
    Messages:
    1,112
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    choose two nodes that make a line pointing the direction you want the thruster to fire, and then use those two nodes.
     
    #41 moosedks, Jul 12, 2014
    Last edited: Jul 12, 2014
  2. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    819
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    Oops sorry I didn't see your post.
     
  3. Shadowdragon94

    Shadowdragon94
    Expand Collapse

    Joined:
    Jul 9, 2013
    Messages:
    348
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    could someone possibly just send me jbeam of all official vehicles with rocket thingys? it seems REALLY hard to add all that coding,i am very simple minded
     
    • Like Like x 1
  4. TheMohawkNinja

    TheMohawkNinja
    Expand Collapse

    Joined:
    May 18, 2014
    Messages:
    207
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    So... I backed up my van.JBEAM files, and replaced it with the one in the .ZIP, but the thrusters don't seem to work.

    I feel like my eyes are glancing over something in the OP, but I don't know what I am missing.

    Anyone know how to fix?
     
  5. DESTROYER3001

    DESTROYER3001
    Expand Collapse

    Joined:
    Feb 22, 2014
    Messages:
    103
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    Could you use this to create massive turbo lag?
     
  6. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    I was stumped by this a few months ago...Couldn't get it to work. However, like for example the Covet, just Copy the code listed in the first post, and paste it after the LAST Bracket, but before the last 2 } 's. Attached is a picture of what I mean. On the top of the picture, you will see that I boxed in RED the file name (in the hatch folder, it's hatch.jbeam, no other jbeam file). Next, I boxed IN RED the last Bracket, then in Green is the code copied from the first post, then in red again, is the last 2 } 's. It took me 2 seconds to do it. Last time I tried I was reading to deep into it. He did all the work for you.

    The tutorial is meant to help those out in adding thrusters to cars that are basically coming out, or non-official mods. Pic below:
    thrusters Covet.png
     
  7. ScaryHaze

    ScaryHaze
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    1
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    Can somebody do it with the sunburst and post the code here? Thanks!

    I can't get it to work...
     
  8. Bamboy

    Bamboy
    Expand Collapse

    Joined:
    Feb 24, 2015
    Messages:
    1
    Re: Tutorial: How to add thrusters/booster/NOS to cars via LUA/Scripting

    I did this with two central beams on the Bolide. Turned out great as a booster. Then I got an idea... and I reversed one of the thrusters...

    Anyone want to paint with tires while making their very own limousine? :D

    Amazingly, the car in the image STILL WORKED*, despite being exposed to 160g+ forces. Was able to get g forces of over 230 by breaking the wheels and/or disabling gravity. Very fun.
    Note it helps to have a weak thruster or two pointing down to keep your car from going airborne.

    Thruster code: (Put this on super.jbeam)
    Code:
    "thrusters": [        
    ["id1:", "id2:"],
             //forward
            {"factor": 10},
            {"thrustLimit":80000},
            {"control": "H"},
            ["c4l", "c5l"],
            
            {"factor":10},
            {"thrustLimit":80000},
            {"control": "H"},
            ["c5r", "c4r"],
            //down
            {"factor":20000},
            {"thrustLimit":500},
            {"control": "H"},
            ["c1", "c7"],
    
    
            {"factor":20000},
            {"thrustLimit":500},
            {"control": "H"},
            ["c6", "c12"],
         ],
    
    *Worked until I spun out at low speed, then the engine decided to immediately break.
     

    Attached Files:

    • 284160_screenshots_2015-03-15_00001.jpg
    • Like Like x 1
  9. KaLul0

    KaLul0
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    59
    Hello @ all!
    Iam back after beeing busy and lazy a long time (only on the internet)
    I had a car crash 2 days ago and it brought me back to beamng to find out what maybe happened with me, and ive found out my tutorial "still,kinda" works.
    Iam gonna update it the next days so you all can do it with the actual beamng version with ease.

    see you soon!
     
  10. KaLul0

    KaLul0
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    59
    I will update it soon and add a lot of official cars into a list so you just have to make 2-3 simle steps
     
  11. KaLul0

    KaLul0
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    59
    Tutorial is up to date now. have fun!
    --- Post updated ---
    up to date again!
     
    • Like Like x 1
  12. JetPoweredMacintoshâ„¢

    JetPoweredMacintoshâ„¢
    Expand Collapse

    Joined:
    Feb 23, 2016
    Messages:
    1,537
    Does WinRar have malware? if so, how do you get rid of it? otherwise i might try his. lol i Can imagine driving down grid,small,pure in a burnside!!! HAHAHAHA
     
  13. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,401
    No, it does not. I prefer 7-Zip to WinRAR.
    You don't need any other software to open or extract the zip files though, as Windows can do that by itself.
     
  14. Roasted Bunny

    Roasted Bunny
    Expand Collapse

    Joined:
    Apr 4, 2015
    Messages:
    83
    Thanks it works! :D
     
    • 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