Creating custom pneumatic controller

Discussion in 'Programming' started by gtpdzbiz, Apr 8, 2018.

  1. gtpdzbiz

    gtpdzbiz
    Expand Collapse

    Joined:
    Aug 12, 2013
    Messages:
    18
    So I looked at the bus as a sample for creating custom pneumatic controller for other vehicle, it looks like this in the main jbeam file:

    "controller": [
    ["fileName"],
    ["vehicleController"],
    ["bus", {"nextStopNode":"nextstop", "destinationSignNode":"destsign"}],
    ["reverseWarn", {"beepLoopName":"event:>Vehicle>Electrics>Reverse>Beep_04"}],
    ["pneumatics", {"name":"airbags"}],
    ["pneumatics", {"name":"doors"}],
    ["airbrakes"]
    ],

    Looks like you have to register these pneumatic controller in the main jbeam first to actually use them.

    So the question is if there is a way to write these controller definition lines in a separate mod file? I tried put them in a different jbeam file and they don't seem to work.

    Thanks!
     
  2. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    You can use controllers from anywhere you like. Check the ESC jbeam files for an example :)
     
  3. gtpdzbiz

    gtpdzbiz
    Expand Collapse

    Joined:
    Aug 12, 2013
    Messages:
    18
    Thanks, got it figured out... one more thing, the pneumatic system will consume quite a bit of engine power when setting pressure?
     
  4. Gregory TheGamer

    Gregory TheGamer
    Expand Collapse

    Joined:
    Oct 22, 2014
    Messages:
    1,174
    In real life, yes. In the game, no. Pneumatics are just like hydros in the game, except with air instead of hydraulic fluid. Would be nice to see the engine rev up when the pump is operating, like in real life.
     
    • Agree Agree 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