Open Proxima-b opened 1 year ago
Can't seem to reproduce on my side, can you attach a save?
I can confirm this has been happening on my save with the smart engine controller as well. It kept turning the engine on and off repeatedly.
Can't seem to reproduce on my side, can you attach a save?
I've uploaded my save, but I seem to found the issue. It only happens when the solar panel is installed and working in the daylight.
/confirm
Still an issue in 0.H release candidate. I've looked into the smart controller's code and believe I've found where the bug is triggering, but I couldn't figure out the trigger myself.
This part of the code is for if a vehicle has fuel and electric engines, this part handles turning engines off immediately after turning engines on. I assume the logic here is choosing the wrong engines to turn off for some reason.
Smart controllers used for automatically turning on/off power generation (like in a power generator) are running fine btw, that's handled elsewhere.
Describe the bug
So the smart engine controller does suppose to turn on the car engine so it can recharge the battery when it's below the low threshold. However in practice, it turns the engine on and off repeatedly when the charge is below the high threshold, and continues to do so when the charge drops below the low threshold, and it did not charge the battery sufficiently
================================================================
Edit: I tested the situation around, it only seem to happen when the solar panel is working.
Attach save file
N/A
Steps to reproduce
Expected behavior
The SEC turns on the engine steadely when the charge is below the low threshold, and turns it one when the charge is above high threshold (while not driving the car)
Screenshots
Versions and configuration
latest experimental
Additional context
No response