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?
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!
Did you fix the problem you asked about in this thread? It's hard to imagine new gauges being useful w/out a drivetrain. https://www.beamng.com/threads/etk-k-etkc-jbeam-issue.57235/
Good job. Please share with others how you got things straight! Also be sure to mark this thread as solved using the "thread tools".
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!
You are missing } from the end of the file, there is one, but you need another one that closes the first one.