Solved Can't find suitable engine node

Discussion in 'Mod Support' started by Shadow_Clan1965, Dec 15, 2023.

  1. Shadow_Clan1965

    Shadow_Clan1965
    Expand Collapse

    Joined:
    Aug 25, 2018
    Messages:
    100
    "libbeamng.combustionEngine.init can't find suitable engine node, using ref node instead!"

    Im not sure what the game is looking for, I have torqueReactionNodes. Also when the engine like breaks off the vehicle the sound player for the engine gets stuck wherever it breaks, so if i crash into a building and reset. You can hear the engine rev at the building.

    This is an issue on my plane mod, found here https://www.beamng.com/threads/mtn-goat-bush-plane.94323/
     
  2. lndj.588

    lndj.588
    Expand Collapse

    Joined:
    Dec 28, 2023
    Messages:
    1
  3. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,337
    Maybe something related to (for example) that it can't find the node that makes the sound?
    --- Post updated ---
    most helpful forum user
     
  4. Shadow_Clan1965

    Shadow_Clan1965
    Expand Collapse

    Joined:
    Aug 25, 2018
    Messages:
    100
    Yeah i think so, maybe ref nodes for the engine itself but i cant find any node referenced specifically for sound in vanilla engines.
     
  5. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,406
    Does the engine have the engineGroup defined? That's the only thing I know of that could affect sound, should be in a section called node beam interface or something like that
     
  6. Shadow_Clan1965

    Shadow_Clan1965
    Expand Collapse

    Joined:
    Aug 25, 2018
    Messages:
    100
    All of the nodes are in a engineGroup, the beams arent in any group. I tried adding a soundConfig to see if that changes anything, it changed the sound but still has the error.
    I attached the engine jbeam.
     

    Attached Files:

  7. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,406
    I spent like 3 hours debugging this issue and turns out it's a small typo... Missing colon where torqueReactionNodes are defined. The worst kind of typo that is nearly impossible to notice (so I'm not blaming you for missing it), and doesn't technically break the syntax so it shows no useful errors... That being said though, I could not reproduce your issue where the engine sound location gets stuck, and the newest version of the mod does not work for me at all, just spams console errors when trying to rev the engine. Might be related to the fact that the transmission has only 1 gear, which is not supported for manual transmissions. I don't see a transmission at all in the model, so I suggest replacing it with just a geared shaft connected straight to the clutch, if this is mechanically accurate to what you have in mind. Otherwise use a continuously variable transmission, or a manual with a forward and reverse gears.
    I looked around the files, and they overall give the impression that you sometimes have no clue what you are doing, no offense. The aerodynamics part of the mod is well made, but there are some issues with nodes and beams. I strongly recommend giving this page a read: https://documentation.beamng.com/modding/vehicle/intro_jbeam/jbeamsyntax/. You should try to understand it while reading. Maybe look at some vanilla Jbeam files while doing it and analyze why they are written the way they are, and what is different from your files and why. Generally, try to use vanilla cars as reference when making your own things, don't refer to mods as they might be severely outdated and only work due to backwards compatibility measures. The Section Links part of the page relates to your issue, if you understand it then it becomes clear why the missing colon means the game can't find the nodes you specified. Another tip I have, do not omit things that you think won't be necessary, every line is written for a reason, no matter if it's a car or a plane. Keeping them in the same order as in vanilla cars should help find anything that could be missing.
    I also noticed that you struggled with understanding materials. The theory is pretty well explained here: https://documentation.beamng.com/modding/materials/materials_1.5/. And here are examples of how to implement it in game, explaining every line of the code: https://documentation.beamng.com/modding/materials/vehicle/typicalmaterials/. I hope this will help you improve the mod, if you have any further questions feel free to ask.
     
  8. Shadow_Clan1965

    Shadow_Clan1965
    Expand Collapse

    Joined:
    Aug 25, 2018
    Messages:
    100
    Of all the things I looked at trying to find the issue, i didnt notice that in vanilla jbeam. Thank you so much. The sound getting stuck seems to have fixed itself.

    Another user of the new version had the same issue, I will remake and simplify the whole powertrain next.

    I often don't know what im doing, this is my first mod aside from bumpers or basic add-ons. I will look through this page, thank you very much for all the information, this should help me out. Have a nice day!
     
  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