Open DatMeg opened 4 years ago
It is not as simple as it seems:
i think rules should be like:
in both cases above it should require electric power, not certain parts. Alternator and batteries is not mandatory parts as you can provide electric power for start and for continuous work of the engine in alternative ways(solar panels, cable to another vehicle etc), but engine should stop if it have no electric power available, and ofc should not start if no electric power available.
I did some tests and look in vehicle code - all work as intended, there is no bug.
Small engines like on screenshot(in the description of the issue) can start without vehicle have any battery, it assumed that this is engine with manual starter, for work it require electric energy source(on screenshot it is an alternator, but can also be a battery or reactor), when no electric source available(for example battery got completely discharged) engine will stop. Larger engines work similar but also required electric power to start(so far only battery accepted as starter electric energy source) and consumes battery power even if fail to start, engine wont start if battery have 0 or insufficient charge.
All behavior above realistic and it work as intended.
@Alex-Folts , there is indeed a bug. I've also stumbled upon it before.
control_engines
uses toggle_specific_part
which doesn't check for any faults. If you have one working engine, using "engine control menu", you can start the second one immediately, no matter how faulty it is.
It should use vehicle::start_engine( int e, bool turn_on )
instead.
control_engines
usestoggle_specific_part
which doesn't check for any faults. If you have one working engine, using "engine control menu", you can start the second one immediately, no matter how faulty it is.
Yes i hadnt tested vehicle with 2 or more engines, but it is different bug.
Please update title to better reflect the issue. Something like "Engines can be started without a charged battery"
Describe the bug
Despite being essential parts to operating a vehicle, the Car Battery, and Alternator are indeed optional additions! Reduce the weight of your mini deathmobile by cutting out frivolous parts! All you need is an Engine, and a tank of fuel attached to each other. Add some controls and watch the magic happen. If it refuses to function, simply change the engine configuration and give it that little nudge to turn it over!
Jokes aside. It seems the Engine Configuration Menu bypasses checks for a Battery, or Alternator, as long as there is fuel attached to the engine.
Steps To Reproduce
Expected behavior
Even if I use Magiclysm, there are some things that probably shouldn't feel like magic.
Screenshots
Versions and configuration