Skip to content

Repository files navigation

Batteries Not Included

Devices now require batteries!

Batteries Not Included is a spiritual successor to the original BatterySystem mod by Jiro, continued by Birgere in his version of the mod for SPT 3.9.0


Features

  • Dedicated Battery Slots: All Headsets, Holographic/Reflex Sights, NVDs, and Tactical Devices, now feature dedicated battery slots
  • Batteries: CR123A Battery which replaces the Rechargeable Battery, CR2032 Battery which replaces D Size Battery, and AA Battery
  • Active Drain: Power is consumed when the device is switched ON
  • Battery Depletion: Battery is drained based on the device's manufacturer stated estimated battery life (if found) which is mapped to gameplay runtime
  • Togglable Mechanic: Adds a new togglable component to devices for headsets and sights
  • Device Description: Item description lists the required and number of batteries needed for the device to function; also indicated is the runtime of the device with a full charge
  • Bot Batteries: Bots spawn with batteries for their devices, with a random charge that depends on the bot's level if they're a PMC, a Scav, or a Boss
  • Configurable: Configuration is available server side and client side

Installation

  • Extract the contents of the .zip archive into your SPT folder.
  • Refresh item icons through the SPT Launcher, Settings -> Clean Temp Files
Demonstration

Installation Thank you DrakiaXYZ for the gif

Configuration

Server Side

In the config.jsonc file:

  • globalDrainMultiplier - A global drain multiplier applied. A higher value results in a faster drain. Default is 1.0
  • minGameRuntime - Minimum game runtime for devices in seconds. This is equivalent to real 1 hour runtime. Default is 900 seconds (15 minutes)
  • maxGameRuntime - Maximum game runtime for devices in seconds. This is equivalent to real 100,000 hours runtime. Default is 9,000 seconds (2.5 hours)
  • botBatteries - Adjust battery charge spawned for bots. Default for PMCs min: 50; max: 100, Scavs min: 20; max: 60
  • siccContainerBatteries - Allow batteries in the SICC Case if enabled. Default is true.
  • debugLogs - Enable debug logging. Default is false.

In the customDevices.jsonc file:

  • This file is used for adding device properties for custom items from mods - Specifies which battery a device uses, with how many batteries are needed to operate, and the battery life of the device in hours. See file itself for examples

Client Side

In the BepInEx configuration manager (F12)

  • Remaining Battery Tooltip - Shows the remaining runtime when hovering over a device. Default is true

Compatibility

  • Mods that add custom devices are compatible. These will default to use CR2032 batteries, if not found in the customDevices.jsonc configuration file. I will try as much to support all custom devices and fill in the required properties.
  • Project Fika is compatible with the use of the sync addon

Support

Support

If you find any bugs, issues, feature suggestions, or have balancing suggestions, feel free to post them on the comment section, or open an issue on GitHub, or most preferably through the SPT Discord, ozen

Credits

Credits
  • Thanks to Jiro for the existing bundles and especially for creating the original mod!
  • Thanks to Birgere for allowing me to work on this, and for his version of the mod, which made porting and introducing changes easier!

Disclaimer: I will not be held responsible for any injuries resulting from the loss of optics, illumination, night vision, or active hearing. Please carry extra batteries.

About

Devices now require batteries!

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages