Drivetrain.lua error

Discussion in 'Programming' started by NotLikeThis, Nov 30, 2015.

  1. NotLikeThis

    NotLikeThis
    Expand Collapse

    Joined:
    Nov 1, 2015
    Messages:
    335
    When I`m loading SBR4, it is invisible and broken. Console says:
    libbeamng.object|lua/vehicle/drivetrain.lua:487: attempt to perform arithmetic on field `clutch` (a nil value).
    I can`t realize, what`s the trouble. Can somebody help me, please?
    Update: I changed clutch value in .lua from 1 to 0, but this isn`t helping.
     
    #1 NotLikeThis, Nov 30, 2015
    Last edited: Nov 30, 2015
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    Don't touch the lua files.

    If you changed something to the SBR4, then that problably broke it.
    Remove any modification you made to it.
     
  3. NotLikeThis

    NotLikeThis
    Expand Collapse

    Joined:
    Nov 1, 2015
    Messages:
    335
    Couldn`t u give me original main .jbeam please? I think i can`t find my changes in it, probably some brackets are missing. Anyway, is there a way to find them?
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    • Like Like x 1
  5. NotLikeThis

    NotLikeThis
    Expand Collapse

    Joined:
    Nov 1, 2015
    Messages:
    335
    Everything works now, ty!
     
  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