Unsolved Vehicles uncontrollably ascend into space

Discussion in 'Mod Support' started by Anolen95, Jul 12, 2023.

  1. Anolen95

    Anolen95
    Expand Collapse

    Joined:
    Jul 31, 2016
    Messages:
    24
    I'm experiencing an issue, which I assume is coding related, where a modded vehicle will ascend into the sky immediately upon spawning. Pausing physics does not correct the issue, and if I spawn a different car, it starts however high up I got with the bugged vehicle.

    This primarily happens when I'm messing around with jbeam, and I'm sure it's my own fault, but I would like to figure out specifically what causes it.

    For example, I'm going through MorzBNG's modding tutorial and have followed his steps up to a point where he has nodes and beams created for a triangle. In the video, he spawns in the triangle and can interact with it etc. However in my game, I rapidly ascend into the sky.

    If anyone can help pinpoint what is causing this I would really appreciate it.

    My jbeam reads as follows:
    {
    "tutorial": {
    "information":{
    "authors":"Anolen95",
    "name":"tutorial",
    },
    "slotType" : "main",
    "slots": [],

    "refNodes": [
    ["ref:", "x:", "y:", "y:"],
    ["tc", "tx", "ty", "tz"],
    ],

    "nodes": [
    ["id", "posX", "posY", "posZ"],
    {"nodeWeight": 10},
    {"nodeMaterial": "|NM_Metal"},
    {"collision": true},
    {"selfCollision": false},
    ["tc", 0, 0, 0],
    ["tx", 1, 0, 0],
    ["ty", 0, 1, 0],
    ["tz", 0, 0, 1],
    ],

    "beams": [
    ["id1:", "id2:"],
    {"beamSpring": 430000},
    {"beamDamp": 400},
    {"beamDeform": 400},
    {"beamStrength": FLT_MAX},
    ["tc", "tx"],
    ["tc", "ty"],
    ["tc", "tz"],

    ["tx", "ty"],
    ["ty", "tz"],
    ["tz", "tx"],
    ],
    },
    }
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,588
    Please follow the tutorial exactly, Jbeam is EXTREMELY sensitive to syntax errors, pay really close attention to all of the quotation marks and which letters are uppercase and which lowercase.
     
  3. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,325
    Agree with AgentY here, I was stuck on this tutorial for a while too at some point, but then I think it was a missing end bracket or something like that. I found it and it worked fine
    --- Post updated ---
    Found it!
    In refNodes, y is referred to twice instead of y and z
    --- Post updated ---
    Also it’s ["ref:", "left:", "back:", "up:"], not x, y and z.
     
  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