Solved ETK 800 Hybrid Engine Mod issue

Discussion in 'Mod Support' started by ItsTheLittleAcura!, Aug 14, 2018.

  1. ItsTheLittleAcura!

    ItsTheLittleAcura!
    Expand Collapse

    Joined:
    Feb 9, 2018
    Messages:
    116
    I added a 1.6-litre and a 2.0-litre 4-cylinder hybrid engine to the ETK 800 based on @AdamB and the Pessima Hybrid. Now I'm getting an "attempt to compare number with nil" error concerning the engine jbeam when I try to load the vehicle. I put the file for the hybrid engine below. Anyone know what's wrong with my code?
     

    Attached Files:

    #1 ItsTheLittleAcura!, Aug 14, 2018
    Last edited: Aug 14, 2018
  2. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Make a backup of your work first.

    Try removing parts to see if the problem goes away. You've got a pile of parts (11) in that jbeam. Isolating your problem is always a good first move. (eg is it the engine, the transmission, etc)

    Once you've narrowed it down to one part, start gutting that part. Remove entire subsections until the problem goes away (flexbodies, beams, soundConfig, vehicleController - whatever seems appropriate). You should be able to quickly isolate the problem further.

    Let us know how you make out!
     
  3. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
  4. ItsTheLittleAcura!

    ItsTheLittleAcura!
    Expand Collapse

    Joined:
    Feb 9, 2018
    Messages:
    116
    Yes, I just rewrote the drivetrain code! This issue is fixed.
     
  5. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Good job. Please share with others how you got things straight! Also be sure to mark this thread as solved using the "thread tools". :)
     
  6. ItsTheLittleAcura!

    ItsTheLittleAcura!
    Expand Collapse

    Joined:
    Feb 9, 2018
    Messages:
    116
    Now it's not working again. The engine file for my vehicle disappeared (deleted?) and I had to rewrite it. Now I'm getting this error:
    29.14246|E|libbeamng.lua.V.jbeam.loadDirectories|unable to decode JSON: vehicles/etkch/etk_hsys_engine.jbeam
    29.14252|E|libbeamng.lua.V.jbeam.loadDirectories|JSON decoding error: lua/common/json.lua:74: Expected dictionary key near line 388, '],' Here's the problem: THAT KEY IS ALREADY THERE!
    Here's the file, any help would be appreciated!
     

    Attached Files:

  7. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    You are missing } from the end of the file, there is one, but you need another one that closes the first one.
     
  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