Relocate engine_intake Node to Body jbeam for Automation Mods

Discussion in 'Programming' started by Avetho, Feb 13, 2025.

  1. Avetho

    Avetho
    Expand Collapse

    Joined:
    Jul 4, 2018
    Messages:
    2
    The query is rather simple just as in the title. In Automation exported vehicles, there are two nodes that are defined under engineGroup with the engine_intake string attached to them. I am making a large bus mod and I want to relocate these from the engine_structure jbeam file to the main jbeam file, as on the body there are two intake pods where the intake tubing would be routed to were the vehicle to really exist. The fixtures were welded to the body mesh in the exporter, so they aren't separate bodies.

    I recall on several vehicles there are intake snorkels that aren't part of the engine structure, how would I go about adding something to make the nodes closest to the intake pods on my bus function as the intakes instead of the two nodes on the engine block? Are there any examples or any vehicles I can download that I can peruse for a way to make a main jbeam node function as the engine intake node?
    --- Post updated ---
    Oh. Well, I feel a bit embarrassed, it turns out it didn't work for me before due to a simple formatting error. All I had to do was change these two lines:
    Code:
    ["engine4", -0.381791, -2.27009, 2.13332, { "engineGroup":["engine_block", "engine_intake"] }],
    ["engine7", -0.381791, -1.186, 2.13332, { "engineGroup":["engine_block", "engine_intake"] }],
    
    to the following in the engine_structure jbeam file:
    Code:
    ["engine4", -0.381791, -2.27009, 2.13332, { "engineGroup":["engine_block"] }],
    ["engine7", -0.381791, -1.186, 2.13332, { "engineGroup":["engine_block"] }],
    
    and in the main jbeam file for the body, I had to take these two lines:
    Code:
    ["a48", -1.25, -0.721186, 2.45631],
    ["a51", 1.25, -0.721186, 2.45631],
    
    and turn them into these:
    Code:
    ["a48", -1.25, -0.721186, 2.45631, { "engineGroup":["engine_intake"] }],
    ["a51", 1.25, -0.721186, 2.45631, { "engineGroup":["engine_intake"] }],
    
    I must have forgotten the colon, or gotten the brackets wrong when I last tried like two weeks ago, because this works perfectly well, my super bus can now ford through water without issue, even when the wheel wells are almost fully submerged, but any deeper and it hydrolocks very swiftly, just as intended.

    Well, I hope this helps whoever wants to do the same! These forums are immensely helpful.
     
    • 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