1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

Creating new car with weird behavior and errors

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Kirahl, May 10, 2014.

  1. Kirahl

    Kirahl
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    162
    I'm attempting to make my first real project in BeamNG, a crash test cart.
    The main body is mostly jbeamed and I had no trouble in doing so, however, when I tried to add in a suspension piece it gives an error and weird behavior.
    Code:
    BEAMNG | ERR | ***FATAL LUA ERROR: lua/vehicle/partmgmt.lua:196: bad argument #1 to 'pairs' (table expected, got nil)
    BEAMNG | ERR | Stack Trackback
    BEAMNG | ERR | ===============
    BEAMNG | ERR | (2) global C function 'pairs'
    BEAMNG | ERR | (3) Lua upvalue 'selectPart' at file 'lua/vehicle/partmgmt.lua:196
    BEAMNG | ERR | ^Local variables:
    When the part is selected it ignores the changes I made to the jbeam of it. I gave it new nodes and beams and even a new name which it ignores.
    It is also deforming the main body mesh when it shouldn't be able to.

    Anyone know why it's doing this and a fix for it?

    Thanks, Kirahl.
     

    Attached Files:

    #1 Kirahl, May 10, 2014
    Last edited: May 10, 2014
  2. thip123

    thip123
    Expand Collapse

    Joined:
    Jan 27, 2014
    Messages:
    28
    I don't know if you fixed this already. I wanted to try to help. I think the fsuspension .jbeam needs a flexbody section and maybe instead of "Newvehicle" on the top name it FSuspension.
     
  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