Survival Log Database中文
Power Manager: One panel for your home power, opened from a HUD button. Start and stop every generator, set auto-start, and refuel them from home storage in your own fuel order, junk paper first. Shows battery charge with the time until it runs empty or full, switches devices on and off, and turns low-priority devices off when the battery runs low. Also holds the battery, device power, power cut and solar settings.

Power Manager

One panel for your home power, opened from a HUD button. Start and stop every generator, set auto-start, and refuel them from home storage in your own fuel order, junk paper first. Shows battery charge with the time until it runs empty or full, switches devices on and off, and turns low-priority devices off when the battery runs low. Also holds the battery, device power, power cut and solar settings.

Version
0.2.2
Game build
1.1.20151
Category
Quality of life
Settings
15
Hotkeys
1
Versions
4
Languages
English, 中文

[img]https://sldb.core-directive.com/media/save/1-save-safe.png[/img]

Running your home's power means walking to each generator to start it, stop it and feed it fuel, and guessing how long the battery will last. Power Manager puts it all in one panel you can open from anywhere.

Highlights

Battery forecast

how much the battery holds, what your home makes and uses, and how long until it is empty or full.

Generators

every fuel generator with its fuel time left. Start, Stop and Refuel each one, or Start all, Stop all and Refuel all.

Auto-start

turn on the game's own auto-start for a generator and pick the battery level it starts below, for one generator or all of them.

Refuel from home storage

fuel comes out of your home's storage, in your fuel order. No walking.

Fuel order

the Fuel tab lists the items burned as fuel, top first, with how many you have. Each item shows its burn value. Move them up and down, remove them, or add any other item that burns, whether you have it or not; an item you remove can be added back right away. Items left off the list are never burned. The default burns notes, letters, flyers and other junk paper first, then Poor-Quality, Common and High-Proof Alcohol, then Diesel last.

Auto-refuel

an option, off by default, that tops up a running generator, or one set to auto-start, when it has less than 60 in-game minutes of fuel left. The minutes can be changed.

See all 12 features

Everything it does 12

Battery forecast

how much the battery holds, what your home makes and uses, and how long until it is empty or full.

Generators

every fuel generator with its fuel time left. Start, Stop and Refuel each one, or Start all, Stop all and Refuel all.

Auto-start

turn on the game's own auto-start for a generator and pick the battery level it starts below, for one generator or all of them.

Refuel from home storage

fuel comes out of your home's storage, in your fuel order. No walking.

Fuel order

the Fuel tab lists the items burned as fuel, top first, with how many you have. Each item shows its burn value. Move them up and down, remove them, or add any other item that burns, whether you have it or not; an item you remove can be added back right away. Items left off the list are never burned. The default burns notes, letters, flyers and other junk paper first, then Poor-Quality, Common and High-Proof Alcohol, then Diesel last.

Auto-refuel

an option, off by default, that tops up a running generator, or one set to auto-start, when it has less than 60 in-game minutes of fuel left. The minutes can be changed.

Devices

every powered device at home with its power use and an On/Off switch.

Load shedding

mark devices as low priority. During a power cut they switch off when the battery falls below 20%, and back on once it is 10 points above. The level can be changed.

Power and solar settings

battery size, device power use, when the city power is cut or that it never is, Blackout panic, solar output and output in bad weather, generator power and fuel burn. These used to be in Game Rules and Machine Speed; values you set there are carried over the first time the game starts with Power Manager.

HUD button

a lightning bolt at the top of the bottom-left tool column opens the panel.

Messages

a line after each press says what happened. With the panel closed, auto-refuel and load shedding messages show as pop-ups.

UI size

the mod's own UiScale setting sizes the panel, or it follows Exiled's Toolkit's UI size.

Settings 15

Saved inBepInEx\config\com.dev.survivallog.powermanager.cfgChange them on the Mod Manager's Mods screen, or edit the file with the game closed.

Controls

[Controls]

The value is a Unity key name, for example F2, F11, Insert or Keypad5. None, the default, leaves it unbound. The key does nothing while you type in a text box. Esc always closes the open panel and cannot be changed.

PanelKey
Key
Default None
Key that opens and closes the panel. Unbound by default: the lightning button in the bottom-left corner of the screen opens the panel. Set a key here to open it from the keyboard too.
打开和关闭 Power Manager 面板的按键。默认不绑定:屏幕左下角的闪电按钮可以打开面板。在这里设置按键后,也可以用键盘打开。

Fuel

[Fuel]

The default list starts with notes, letters, flyers and other paper with no other use, then Poor-Quality Alcohol, Common Alcohol and High-Proof Alcohol, then Diesel, so the best fuel is kept for last. Scrap Paper, Newspaper, Entertaining Magazine, Wood Chips and Cardboard are not on it; add them on the Fuel tab if you want them burned. The Fuel tab can add any item that burns, and shows each item's burn value.

Order
Text
Default 42001,42002,42003,42006,42007,42008,42011,42012,42013,42014,42015,42016,42017,42018,42019,42020,42021,42026,42028,42032,42033,42034,42035,42036,42039,42040,42042,42044,42045,42046,11045,15505,15504,15506,40000
The items used to refuel generators, by item id, first used first. Items not on the list are never used. Easiest to change on the panel's Fuel tab.
用来给发电机添加燃料的物品(物品编号),排在前面的先用。不在列表中的物品永远不会被使用。在面板中修改最方便。

Generators

[Generators]
AutoRefuel
On / off
Default Off
Refuels a running generator, or one set to auto-start, from home storage when it has less than AutoRefuelMinutes of fuel left, using the fuel order.
发电机燃料低于 AutoRefuelMinutes 时,自动按燃料顺序从家里的储物中添加燃料。默认关闭。
AutoRefuelMinutes
Number
Default 60
With AutoRefuel on, a generator with less than this many in-game minutes of fuel is refuelled. 10 to 1440.
From 10 to 1440
开启 AutoRefuel 时,剩余燃料少于这么多游戏分钟的发电机会被添加燃料。默认 60,可设为 10 到 1440。
GeneratorEfficiency
Number
Default 1
How much power fuel generators make from the same fuel: 2 is twice the power from each unit of fuel. 0.1 to 100.
燃油发电机消耗相同燃料时的发电量:2 为每份燃料发出两倍电力,0.5 为一半。燃料消耗速度由 FuelBurn 设置。范围 0.1 到 100:0 或更小按 1 计算,0 到 0.1 之间按 0.1 计算,大于 100 按 100 计算。
FuelBurn
Number
Default 1
How fast fuel generators burn fuel: 2 burns it twice as fast, 0.5 makes it last twice as long. 0.25 to 100000. The fuel time the game and the panel show changes to match.
燃油发电机消耗燃料的速度:2 为两倍消耗,0.5 让燃料多用一倍时间。范围 0.25 到 100000,0 或更小按 1 计算。

Interface

[Interface]
UiScale
Number
Default 0
Size of the panel and its messages, in percent, from 75 to 200. At 0 it follows Exiled's Toolkit's UI size.
From 0 to 200
Power Manager 自己的窗口、面板和提示的显示大小(百分比),范围 75 到 200。设为 0 时跟随 Exiled's Toolkit 的界面大小设置(它的 UiScale)。需要 Exiled's Toolkit 0.11.0 或更新版本。

Power

[Power]
BatteryMultiplier
NumberRestart
Default 1
Batteries hold this many times the game's power. 0.1 to 10. Takes effect at the next game start.
From 0.1 to 10
蓄电池的容量为游戏原本的这么多倍:2 为两倍。1 为游戏原本的数值。下次启动游戏时生效。
DevicePowerUse
Number
Default 1
Power that switched-on devices use, times the game's. 0 to 3. Cooking and shredding jobs, the compressor, defenses firing and the signal station are unchanged.
From 0 to 3
开启的电器消耗的电量,为游戏原本的倍数:0.5 为一半。烹饪和粉碎工作、压缩机、防御设施开火和信号站的耗电与游戏原本相同。1 为游戏原本的数值。
PowerCutDelay
Number
Default 0
Days later than in the game that the city power is cut. 0 to 100.
From 0 to 100
市电被切断(剧情事件「停电开始」)比游戏原本推迟的天数。0 为游戏原本的数值。已经停电的不会恢复。
NoPowerCut
On / off
Default Off
The city power is never cut. The events that follow the cut, and the diesel generator start, never come. A cut that already happened is not undone.
市电永远不会被切断(剧情事件「停电开始」不会出现),房子整局都有市电。停电之后的剧情事件不会出现,柴油发电机也无法启动。已经停电的不会恢复。关闭后与游戏原本相同。
NoBlackoutPanic
On / off
Default Off
Power cuts at night no longer bring Blackout panic; a panic already running clears within ten in-game minutes.
夜间停电不会再带来「停电恐慌」及其心态下降。已有的停电恐慌会在游戏内十分钟内消除。关闭后与游戏原本相同。

Shedding

[Shedding]

No device is low priority until you mark it in the panel, so nothing is switched off until you do.

ShedBelow
Number
Default 20
During a power cut, devices you mark low priority in the panel switch off when the battery falls below this percent, and back on once it is 10 points above. 0 turns this off. 0 to 90.
From 0 to 90
蓄电池电量低于这个百分比时,在面板中标为低优先级的电器会被关闭,电量回升到高出 10 个百分点后重新打开。0 为关闭此功能。默认 20,可设为 0 到 90。

Solar

[Solar]
SolarMultiplier
Number
Default 1
Solar panels make this many times the game's power. 0.1 to 10.
From 0.1 to 10
太阳能板的发电量为游戏原本的这么多倍。1 为游戏原本的数值。
BadWeatherOutput
Number
Default 0
In storms and heavy rain the game's panels make nothing. This gives them a share of a cloudy day's power: 0.5 is half, 1 is a full cloudy day. 0 to 1. The multiplier applies on top.
From 0 to 1
在暴雨等恶劣天气中,游戏原本的太阳能板不发电。此项让它们发出阴天发电量的一部分:0.5 为一半,1 为与阴天相同。0 为游戏原本的数值。

Hotkeys 1

Esc

close the panel.

The panel key is unbound by default: the HUD button opens the panel. Set PanelKey in the config to open it from the keyboard too; it does nothing while you type in a text box. The game's own hotkeys are off while the panel is open.

Every action is the game's own: the same start, stop, auto-start, refuel and switch the game's menus use, and refuelling uses the items up. The mod writes nothing into your save file. You can remove it at any time; generators and devices stay as they are.

Works in English and Chinese.

Install

  1. Install BepInEx (if no other mods were installed before, start the game once so BepInEx finishes setup, then quit).
  2. Install Exiled's Toolkit the same way. Download its zip and extract it into the game folder.
  3. Download the zip from the Files tab on Nexus.
  4. Extract it into the game folder (the folder with SurvivalLog.exe). The zip holds a BepInEx folder, so the DLL lands in the right place. When asked, merge the folders. The result should be:
    C:\Program Files (x86)\Steam\steamapps\common\Survival Log\BepInEx\plugins\PowerManager.dll

If you use Game Rules or Machine Speed, update them to 0.7.0 or newer too: their power settings have moved here. Until you do, Power Manager leaves those settings to the old version and a message asks you to update it.

Where it goes

Survival Log\
├─ SurvivalLog.exe
└─ BepInEx\
   ├─ plugins\
   │  └─ PowerManager.dll
   └─ config\
      └─ com.dev.survivallog.powermanager.cfg   (made on first start)

Uninstall

Delete PowerManager.dll from the BepInEx\plugins folder. Devices the mod switched off to save the battery stay off; switch them on from the game's own power panel.

Settings

Auto-refuel, its minutes, the load shedding level and the fuel order can be changed in the panel. Everything else, such as the key and the power and solar settings, can be changed in game on the Mod Manager's Mods screen, where changes take effect at once (the battery size at the next game start), or in BepInEx\config\com.dev.survivallog.powermanager.cfg while the game is closed (see CONFIG.md; the cfg file explains each setting in English and Chinese).

Changelog 4 versions

  1. 0.2.2On NexusGame 1.1.20151
    • Warning: needs Exiled's Toolkit 0.12.0 or newer. Update the Toolkit first.
    • With Game Rules or Machine Speed older than 0.7.0 installed, Power Manager now leaves their power settings to them and a message asks you to update them. Before, both mods applied the same settings, so device power, battery size and generator settings counted twice.
    • A carried-over setting the mod could not read is now logged as not carried.
    • Made for Survival Log 1.1.20151.
  2. 0.2.1Game 1.1.20151
    • The panel key is now unbound by default; use the HUD button, or set a key in the settings.
    • The panel key no longer opens or closes the panel while you type in a text box.
    • Exiled's Toolkit 0.12.0 or newer is now required.
    • Made for Survival Log 1.1.20151.
  3. 0.2.0Game 1.1.20151
    • The default fuel order no longer burns Scrap Paper, Newspaper, Entertaining Magazine, Wood Chips or Cardboard. It now burns Poor-Quality Alcohol, Common Alcohol and High-Proof Alcohol, weakest first, before Diesel. If you already play with Power Manager, your saved fuel order stays as it is.
    • You can now add any item that burns to the fuel order, not only items in your storage. Items already on the fuel order are not offered again.
    • An item you remove from the fuel order shows up in the add list right away, so you can add it back without closing the panel.
    • Every item on the Fuel tab shows its burn value, so you can see which fuel lasts longest.
    • Made for Survival Log 1.1.20151.
  4. 0.1.0Game 1.1.19611
    • First release: one panel for your home's power, on F2 or a lightning button in the bottom-left corner of the screen.
    • Start and stop every fuel generator from the panel, one at a time or all at once, and set each one's auto-start.
    • Refuel generators from home storage in a fuel order you set, junk paper first. Items left off the list are never burned.
    • Auto-refuel, off by default, tops up a running generator, or one set to auto-start, when its fuel runs low.
    • A battery forecast shows how long until the battery is empty or full at the current use.
    • Load shedding: devices you mark low priority switch off when the battery runs low during a power cut, and back on once it recovers.
    • The power and solar settings from Game Rules and the generator settings from Machine Speed now live here. Values you changed in those mods are carried over the first time the game starts with Power Manager.
    • Made for Survival Log 1.1.19611.

Help

Known issues

  • Stopping a generator also turns its auto-start off. This is the game's own rule; turn auto-start back on in the panel.
  • While the game holds its power switches during some story events, nothing can be switched.
  • Devices that Defense Manager powers are shown but cannot be switched or marked low priority here.
  • A low-priority device you switch back on while the battery is still low is switched off again. Mark it normal priority to keep it on.
  • Device priorities are kept per save, so a new game must be saved once before devices can be marked low priority.
  • A change to the battery size takes effect at the next game start.

[img]https://sldb.core-directive.com/img/mods-banner.jpg[/img]
Get Mod Manager to set up all your mods in game | Open the Survival Log wiki for items, recipes and maps[/size]

Found a bug?

Found a bug or have an idea? Come say hi on the Core Directive Discord, or post in the Posts tab on Nexus. For bugs, please include BepInEx\LogOutput.log and BepInEx\power-manager.log.
To reach me directly, message exiled.dev on Discord; you can find me in the official Survival Log Discord. I'm also on X as @AnExiledDev.