File information

Last updated

Original upload

Created by

Remodor

Uploaded by

Remodor

Virus scan

Some manually verified files

Tags for this mod

About this mod

This mod adds configurable power modifiers to change the effectivity and capacity of all 4 power generators and the swim-charge-fins charging speed. Additionally, let's you specify a power source order for energy consumption.

Requirements
Permissions and credits
Changelogs
!! IMPORTANT !!
SMLHelper is no longer supported. Steam Legacy Branch is no longer supported. Old files can still be found in the "Files/Archive" section.

Introduction:
I was annoyed by the super strong Solar Panels. In fact, as they are super cheap and a single one is already nearly as strong as a bioreactor, I found all other power generators nearly useless above 200m. So I created this mod to adjust this!
Additionally, because of the lacking implementations of existing power order mods, I included this functionality as well.

Description:
First up, everything is configurable in the mod options and/or the config file and therefore optional!
As with all my mods, I highly care for a minimal performance impact. Power order sorting and the maximum capacity is kept outside of the main game loop. Power modifying uses a transpiler to inject a single multiplier for the power sources.

I highly recommend my other mod -- Energy Info. This allows you to directly observe and evaluate power production.

Additions:
  • Sliders were added to the mod options to adjust the effectivity (production speed) of the four existing power generators. The modifiers work like a multiplier to the requested energy per update. The production efficiency of the Bioreactor and Nuclear Reactor was not modified (i.e. a Peeper still produces 420 energy but at a higher rate). Greater values can be set inside the mod config file.
  • A slider to adjust the swim-charge-fins charge rate.
  • Sliders were added to adjust the power generator capacity. A change only occurs after a reload or a rebuild of the generators. Greater values can be set inside the mod config file.
  • A power order can be set to specify an order for power consumption (which source is picked for the power consumption is semi-random in the base game). This includes:
    • A slider to set the priority of the Solar Panel, the Thermal Plant, the Power Transmitter (connected power sources are also ordered), the Bioreactor, and the Nuclear Reactor. Lower values mean higher priority (1: First, 2: Second..). The order is saved inside the 'PowerOrder' entry inside the config file.
    • A slider for all other power sources not specified in the 'PowerOrder' entry (for modded power sources).
    • Modded power sources can also be added separately by creating a new entry inside 'PowerOrder' in the config file analogous to the existing entries.
    • Added a list 'FoundPowerSources' of all encountered power sources to the config file. This can help determine the name of a modded power source.

Options:
The options for this mod can be changed either in-game within the options/mod or with the help of the BepInEx/config/Rm_PowerModifier/config.json file.
I am currently playing with:
{
    "SolarPanelPowerModifier": "0.3",
    "ThermalPlantPowerModifier": "0.5",
    "BioReactorPowerModifier": "1",
    "NuclearReactorPowerModifier": "1",
    "FinChargeRateModifier": "0.5",
    "SolarPanelMaxPower": 75,
    "ThermalPlantMaxPower": 150,
    "BioReactorMaxPower": 500,
    "NuclearReactorMaxPower": 2500,
    "EnablePowerOrder": true,
    "SolarPanelPriority": 1,
    "ThermalPlantPriority": 2,
    "PowerTransmitterPriority": 3,
    "BioreactorPriority": 4,
    "NuclearReactorPriority": 5,
    "OthersPriority": 6,
    "FoundPowerSources": [],
    "PowerOrder": {
        "SolarPanel": 1,
        "ThermalPlant": 2,
        "PowerTransmitter": 3,
        "BaseBioReactorModule": 4,
        "BaseNuclearReactorModule": 5
    }
}

Installation:
This mod requires BepInEx Pack for Subnautica and Nautilus.
Extract the Rm_PowerModifier archive into your BepInEx/plugins folder:
"Subnautica/BepInEx/plugins/Rm_PowerModifier/Rm_PowerModifier.dll"

Compatibility:
This mod uses transpiler for the power modifier and should be compatible with all other mods, even if they alter the production rate! Not compatible with other power order mods.
Fully compatible with Better Bio-Reactor. (Bugs from Better Bio-Reactor: Shows the wrong max-capacity on the overlay if modified, but works correctly. Production speed is all over the place, but the power modifier works as intended. Check my bug reports for more info or use the Energy Info and try for yourself.) Explanation: the game requests an amount of energy production every update. This mod alters only the requested amount, but does not modify how it is produced.


Visit the modding community for help or additional information!

Sourcecode: Github