Stranded: Alien Dawn

Stranded: Alien Dawn

210 ratings
No Idle Power Consumption
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
502.896 KB
12 Aug, 2023 @ 11:41am
3 Feb, 2024 @ 6:03am
9 Change Notes ( view )

Subscribe to download
No Idle Power Consumption

Description
Powered crafting, research and relaxation devices consume electricity only when in use. Also supports DLC's Surgical automaton.

Should work out of the box for modded devices too if they are added similar to vanilla ones.

When added to already started game, the existing devices need to be used once to become idle.

Buy Me a Coffee[buymeacoffee.com]
Paypal Support[paypal.me]
72 Comments
helfisk 21 Jul @ 9:45am 
I think there's an issue with Medical Bed's not having power / in "idle".
After I started using this mod, survivors seems to not wanting to automatically choose to go to the medical beds. They can still be ordered just fine though.

I have almost no lua experience, so I might be wrong, but think the issue lies with the code in "UnitMedicalBed.lua", line 56:
if not power_consumption or power_consumption <= 0 or patient and patient.require_treatment <= 0 then return end

If I'm on to something, would it be possible to solve by assigning some "trickle" idle value, like 1 or something?

Hope it's helpful - and that I'm not misidentifying the root cause
lukeh_ro  [author] 1 Jun @ 3:54am 
that's a bit more complicated technically...
also, for turrets you have sensors to enable them only on need
son-goku 1 Jun @ 3:08am 
Can you add turrets to this? Kiind of weird that towers use that much energy when not being in use
lukeh_ro  [author] 12 Apr @ 6:02am 
@jeypee, what errors? I'm using it and no errors...
send me a log maybe
CTD bug 23 Sep, 2024 @ 8:17am 
DLC 수술 치료 작동 안 함 😡
HunterAlpha1 13 Aug, 2024 @ 4:43pm 
I'd think devices should still take some power when idling, maybe like 5 or 10% of their normal consumption?
WarriorsLegacy 1 Aug, 2024 @ 11:24am 
Love the mod as it makes a lot of sense. No person with limited power is going to leave a appliance on all the time. One problem ive seen is that the Automated surgical bed wont heal automatically though as when someone lays in it, they act like it has no power even when laying there to heal and simply wait for someone to give them first aid while laying in the bed. If you can find some way to fix this that would be awesome. Thank you.
lukeh_ro  [author] 17 Jul, 2024 @ 11:13am 
Yeah, since I made this mod I don't use circuits for production devices. I still use them for turrets+motion sensors, lights+light sensors, heating+termostats...
Anotubus 17 Jul, 2024 @ 5:00am 
> I think I kind of reproduced it when the power was limited - as in not enough to turn on the device(s)

yeah, I forgot the furnaces were on a circuit, that was powering them down when the charge was <70%. I took them out of the circuit and the behavior stopped.
Basically the native power saving through circuits mechanic and this mod are competing entities with the same goal. So maybe excluding the devices (from the mod processing) with configured circuits that are on Low Battery Sensor - is a good idea. But I also imagine it is lot of work or even impassible. So at the very least you could add a warning in the mod description.
lukeh_ro  [author] 16 Jul, 2024 @ 9:38pm 
@Anotubus
I understand what you mean but I didn't notice this problem while playing and I had used two furnaces like that placed nearby.
I think I kind of reproduced it when the power was limited - as in not enough to turn on the device(s). So, when the furnace is on idle mode (but not enough power surplus to start it) the mod does see it as possibly working and brings resources to it; once it has resources there is not enough power to start the job and the resources may be transported somewhere else.
Could this be your situation too?
If so, I would think about it but not sure how I could handle it better. As you noticed this is not a core mechanic and a lot of tricks were needed in order to hook it into a very core functionality which is not easy...