RimWorld

RimWorld

44 ratings
Power Controller
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5
File Size
Posted
Updated
114.399 KB
Jul 16, 2022 @ 10:12am
Jul 19, 2024 @ 6:49am
16 Change Notes ( view )

Subscribe to download
Power Controller

Description
Description
Makes fuelled power plants automatically throttle their power output to keep power production at desired surplus, and keep the batteries charged. The fuel consumption rate is adjusted proportionally. The throttle can also be set manually.

Settings allow to set the desired network surplus,
The tolerance,
The minimal throttle,
And weather the batteries should be kept charged, or ignored.

Performance
The mod has minimal impact on performance.

Compatibility
The mod automatically patches buildings with "CompPowerPlant", this should cover the vast majority of custom fueled power plants, and all that can be included as-is.

Additionally, there is a compatibility patch included for:
- Vanilla Furniture Expanded - Power,
- Vanilla Helixien Gas Expanded,
- Rimefeller,
- Save Our Ship 2.

The mod is currently incompatibile with any other mod that at runtime alters a building's power output, such as with a linkable.

Savefile safety
The mod makes no permanent changes to a save file.
It can be added to an existing game, and shouldn't cause any issues if removed.

Known issues
With multiple generators selected, all gizmos react visually to selecting target in one of them.

Source
Github[github.com]
46 Comments
莫名某某 Apr 19 @ 9:01pm 
Thank you for your reply. I think your guess is correct. It won't really affect the mod work. I'll just ignore the redundant tabs
Azuraal  [author] Apr 19 @ 1:01pm 
@莫名某某 No, but I suspect what is happening. My mod adds a very small internal battery to all fueled generators. This perhaps causes the power tab to detect the generator comp, and the battery comp and add a power tab for both.

The internal batteries are an undocumented change. The reason I added them is as a performance optimization measure by avoiding the problem of the main function of the mod needing to scan the power network to determine if there are any unpowered devices connected, and therefore the throttle needs to be higher despite the current power balance being seemingly ok.
莫名某某 Apr 19 @ 6:43am 
Sorry, the translation led to inaccurate description. Does this mod have some functions that overlap with power tab? Because I can see the second 'power tab' on all fuel-driven generators.
莫名某某 Apr 19 @ 6:36am 
Does this mod have the same function as power tab? Because I can now see two 'power tab' on the information panel of the generator.
NVM3L3SS Apr 15 @ 4:53am 
could it be possible to split the power between all connected batteries to even the power out, set a battery fill cap in % or setting a battery-prioritylist?
Planned to do a "stack of Batteries" so i got a better indicator when i should reactivate my Generator.
Azuraal  [author] Jul 16, 2024 @ 4:04am 
@[MaD] Soon (before the end of the week) I will get around to adding the functionality to override the throttle on a generator with a gizmo.
[MaD] Jul 15, 2024 @ 4:04pm 
Would it be possible to add a gizmo to toggle the controller for a specific generator.
Or even more fancy - use a system like backup power to place a thing ontop a genrator to controll it?
Kateye Jun 24, 2024 @ 8:56am 
Ah, sorry, I missed the "such as with a linkable" when I was searching for "Even More Linkables". My bad.
Azuraal  [author] Jun 24, 2024 @ 8:05am 
@Kateye It is known and noted in the compatibility section, I guess I should also add it in the About.xml
Kateye Jun 23, 2024 @ 1:07pm 
I'd like to note an incompatibility with Even More Linkables. The power boosting linkables don't work with any generators that can be throttled when this mod is installed, but work fine without this mod. I suspect it's because this mod has custom code for the generator, which the author of that mod has said they can't do anything about that.