Stationeers

Stationeers

27 ratings
Battery Backup Light
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
669.456 KB
16 Sep @ 12:39am
16 Sep @ 12:42pm
3 Change Notes ( view )

Subscribe to download
Battery Backup Light

Description
By default, the Wall Light Battery will function mostly like a normal wall light, except that if it is currently on and the power cable loses power, it'll switch to draining from the battery.
I personally expected this device to function instead like an "emergency backup light" where if power is LOST the light turns on, powered by the battery. This mod changes it so that is how it functions.

If no cable is connected, or if the power network is experiencing a brown/blackout, the light will kick on. Once a cable with available power is returned, the light will turn off. It will still charge the battery as well.

Instructions

It requires BepInEx to the installed with the StationeersLaunchPad plugin.
See: StationeersLaunchPad[github.com]


Safe to add/remove from save. Existing Wall Light Batteries should gain the new functionality when added.

Source on GitHub[github.com]
3 Comments
froggx 27 Sep @ 6:14pm 
thanks for checking that out.
i put a little more thought into "how do i want to use battery lights?" and turns out there's only 2 different ways i'd be using them in about 95% of placements:
1) your backup lights
2) my wireless lights.

I've never been "efficient" with wireless lights; i'd often run them around the clock. toggling like 20 lights by hand daily was no good. i consider it to be "cheaper" to spend 1 game afternoon adding panels/turbines/gens. then some rooms (like gas storage) that i could go months without going in. they were where manual control was useful.

thing is (and i'm kinda embarrassed i hadn't realized earlier...) but i can just turn off the power transmitter omni that charges wireless batts if i want to turn the lights off. super easy to set in logic.

unless i misunderstood, the mod should already allow both. setting var for manual control seems good. i actually keep a logic writer on me to toggle device variables for these kind of case.
alliephante  [author] 23 Sep @ 8:00pm 
@froggx
Presently, it will auto turn on if you tried to turn it off.
Another user on the discord (Sukasa) asked about adding a way to have manual control of the lights.
I'm looking into it, since it should be pretty doable, but have not yet have a chance to. This would likely be done by having a logic value where if you write 1 to it, it won't auto turn off even if power is restored.
Might not help your case though where you never run a cable, and thus could never write a logic value.

Due to the way the power grids work in the game, there isn't a good way to make it only happen "once" when power first goes out, so instead it has to do the check every tick hence it turns back on.

I could make it so no cable = normal light functionality though. I originally associated that state as the same as no power.
froggx 23 Sep @ 6:52pm 
if there's no cable connected then can the wall light batteries still be turned off (and back on) manually? it seems like it'd be super cool to have emergency backup lighting but my primary use case for these lights is to pop in wireless batteries and light up my base without doing hard stuff like, ya know, running cables (cause my difficulty threshold is just that low).