Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Vehicle components turn selves off #22077
Game version: Current experimental
Operating system: Windows
Tiles or curses: Tiles
Mods active: Tanks + other vehicles
When I turn things on it should stay on and run so long as there is power. Preferably should automatically restart as soon as power becomes available,
The fridge and electronic control's dome light in my vehicle keep turning off without me knowing. The vehicle has solar panels, 2 engines that I haven't been running and a full set of crafting rigs.
Steps to reproduce the behavior
Build a solar powered death mobile and put a fridge, electronic controls and other stuff in it, turn them on and hang out and craft stuff for a while and find the fridge is turned off and stuff is spoiling.
It's a still in construction vehicle so i'm defiantly running it on low power but my fridge still turned itself off sometime while I was away foraging.
The vehicle has been sitting in front of my base for more than 2 in-game weeks now. The only times I have left are for 2 parts stripping trips and 1 day of foraging. However, the dome light hasn't stayed on from one night to the next and I have turned on my fridge 8 times now.
At I would like for at-least the fridge control to stay on until I turn it off. Obviously, if there is no power it should stop running however, it should resume as soon as power is restored. This is how it would work IRL. Even if this behavior was realistic, finding your food spoiled because last week your welder/Tesla cannon drained your battery causing the fridge to turn off without your knowledge violates the rule of fun imho.
I haven't looked at vehicle implementations but, modeling its implementation off of light strips should work conceptually.
Then wherever the code for the actual consumption of power is insert