Solved Fixing the Electric Sunburst

Discussion in 'Mod Support' started by AdamB, Jun 2, 2017.

  1. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    I don't know why this is happening, but whenever i drive my electric sunburst, the LUA goes nuts.
    It really slows down my computer (see fps counter)
    i posted a screenshot, but keep in mind that it is running that as fast as it can over and over
     

    Attached Files:

  2. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I have the same issue with my mod. Haven't noticed any fps issues though.
     
  3. Snowstorm

    Snowstorm
    Expand Collapse

    Joined:
    Apr 23, 2017
    Messages:
    61
    It looks like a bit of bad code regarding the engine starter, the author probably mistyped/miswrote the code for that...
    --- Post updated ---
    I would suggest comparing the starter data to that of another electric vehicle mod, ie Ishibu Condensa, or Bruckell eGran.
     
  4. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    Thing is, I am the author of that mod. I've traced it back to the in game code for electric motors.
     
  5. Snowstorm

    Snowstorm
    Expand Collapse

    Joined:
    Apr 23, 2017
    Messages:
    61
    ah. :|... do you know the specific error?
     
  6. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    I think that it deals with a fault because electric motors aren't supposed to have a starter, and the game is having an error because of that
     
  7. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Remove engine start stop/button app, it has a bug where it keeps trying to deactivate the starter.
    Ofc the error shouldn't happen in the first place, but not much you can do about that (apart from faking that currently non existing method in your own code)
     
    #7 Diamondback, Jun 6, 2017
    Last edited: Jun 7, 2017
  8. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    Thanks for your help. :D
     
  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