Okay so theres a check engine light that only shows up when the engine is literally sent to heaven. I was wondering if there was a way to create a mod to activate said check engine light when the intake, oil pan, or even by pressing a button lol Which script controls the engine light when the engine is disabled, and is it possible to hotkey it to activate on command/when intake or oil pan, or other engine problems arise?
I have it figured out! I just made a command to turn the light on at the press of a key Will post screenshots of it later on when it's fully working. It is giving me errors and I am still learning LUA haha
The engine light is handled in vehicleController.lua, the line for that is 449: electrics.values.checkengine = controlLogicModule.checkengine or false
There does seem to be a lot more to it then just setting a value to true. It appears to be controlled by a "mainEngine" line, but I can't seem to figure out which one. I'm going to keep looking!
angelo234 at your service Code: powertrain.getDevice("mainEngine").isDisabled = true Only thing is that you won't be able to start the engine when isDisabled is true lol I guess when the engine is off, you can just set that to false.
I figured that one out lol I might have also figured out how to activate the check engine light with a key press tho, I have to test it to verify.
Omg this will be useful for the LR Defender TFL config! TFL's first Defender had it's check engine light on irl so this would be nice to add into the wacky config, thanks! --- Post updated --- I have only one question, since I am completely new to lua just now I have no idea where the vehicleController.lua is located, can anyone help? --- Post updated --- Oh no I just put myself into a bigger black hole, since I don't want the original gauge to have the check engine light on, is it possible to make a separate gauge? (I probably shouldn't be doing this now sorry...)
//common\BeamNG.drive\lua\vehicle\controller\vehicleController.lua It should be in your main install, under LUA ---> vehicle ---> controller --- Post updated --- "drive Letter":\SteamLibrary\steamapps\common\BeamNG.drive\lua\vehicle\controller or more commonly C:\Program Files (x86)\Steam\steamapps\common\beamNG.Drive\lua\vehicle\controller --- Post updated --- Yes, totally possible! I could help out if you need^^
Please do! It's always nice to have someone guide you through new topics such as this --- Post updated --- I have found the vehicleController file, but now how should I make it separate and only for for the mod? --- Post updated --- Yes! I got the check engine to turn on, but now I only have to make a separate gauge that only turns the check engine light on
If you'd like, add my Discord! Naz the Wolf#9173 --- Post updated --- Also, yes you should seperate the LUA, and as far as I know, rename it too ^^
I have found the vehicleController file, but now how should I make it seperate and work only for the Your Discord is currently not accepting any friends, but that's ok. Try mine: dumdumdum #2642
I have encountered a problem: Everything was fine until I decided to change the controller file name to the one that have the check engine light on, the "broken" gauges are now really broken as they have no texture. Again I am completely new to this so I have no idea if I'm doing this the correct way
Which files exactly? I am a bit confused on everything --- Post updated --- The NO MATERIALS is still there after a lot of trying... If anyone else would like to help me try to create a separate lua for a separate gauge please help, thanks!