Power Threshold Governor
v1.0.0Smart electric power governor. Automatically manages and pauses heavy consumers based on grid capacity to prevent blackouts.
- Source code
- https://github.com/rob-oppen/PowerThresholdMod
- Tags
- Quality of Life Power UI
Power Threshold Governor
An intelligent electrical load-shedding and power management system for your island. Protect your factory from catastrophic blackout death spirals by automatically pausing non-critical, heavy consumers during fuel or power shortages, and smoothly bringing them back online in controlled stages.
⚡ 1. Global Rules Tab
Configure pause thresholds for every electric consumer on the island—either as a percentage of total grid capacity (%) or exact power output (MW).
- Threshold Modes: Choose between Percentage mode (e.g. pause if capacity drops below 50%) or Megawatt mode (e.g. pause if power drops below 30 MW).
- Hysteresis Buffer: Built-in safety buffer prevents rapid toggling between on and off states.

📊 2. Live Island Telemetry & Power Tracking
Keep complete visibility over your island's electrical demand right inside the Governor interface.
- Built Machine Counter: Displays the exact count of built, active machines of each type across your entire island (e.g.
[ 9 ] Boilers,[ 12 ] Electrolyzers). - Real-Time vs Max Draw: Tracks live power draw alongside maximum potential consumption (e.g.
36 MW / 81 MW). - Zero Simulation Overhead: Reuses the game engine's internal statistics cache—virtually zero performance impact on your game loop.

⏸ 3. Paused Buildings Tab & Bulk Resume
Never wonder which machines were turned off or why.
- Grouped Overview: See all machines currently throttled by the governor, grouped cleanly by building type.
- Rule Source Attribution: Shows whether each building was paused by a Global Rule or a Local Override.
- One-Click Recovery: Click
[Resume All]or unpause specific building categories on demand.

🛡️ 4. Staged Grid Restoration (Blackout Loop Prevention)
In Captain of Industry, generators only produce what buildings demand. When buildings pause, demand drops and generators throttle down. Unpausing everything at once creates an immediate load surge that trips recovering boilers back into a blackout.
- 10-Second Stability Check: When the grid satisfies 100% of demand (zero deficit) for 10 continuous seconds, the governor safely unpauses ONE single machine to verify real generator headroom.
- Progressive Ramp-Up: If generators absorb the load smoothly, that building remains active, and 10 seconds later the next building is tested.
- Instant Deficit Abort: If reviving a machine creates a power deficit, it is safely paused within 1 second and recovery enters a 20-second cooldown so steam and fuel buffers can rebuild.
- Manual Override: Click
[Resume All]at any time to bypass the test and restart all machines immediately.

🔧 5. Local Machine Inspector Overrides
Need a specific critical facility to stay running while others pause?
- Native Inspector Integration: Click any machine on the map to open its inspector with the embedded ⚡ Power Governor override panel.
- Custom Thresholds: Set dedicated individual thresholds for mission-critical smelters, pumps, or labs.
- Live Status: Directly view whether the machine is operating normally or auto-throttled.


🖱️ Controls & Shortcuts
| Action | Shortcut |
|---|---|
| Toggle Governor Window | Alt + P or F8 or Click the ⚡ icon in the top calendar HUD |
| Machine Override Panel | Click any machine -> Scroll to the bottom of the inspector panel |
💾 Compatibility
- Compatible with vanilla saves: Safely added to or removed from existing saves at any time.
- Game Version: Tested for Captain of Industry v0.8.0+.
No announcements yet.
No changelog available for this mod.
This mod has no dependencies.
No other mods depend on this mod yet.