Wireless Battery Recharge Set

If you liked this item, please rate it up on Steam Workshop page.

Author: YourStolenKidney

Last revision: 5 Jul at 16:58 UTC

File size: 430.7 KB

On Steam Workshop

Description:
Wireless Battery Recharge

Adds wirelessly-chargeable batteries and a powered standalone wireless charging station. This is intended as a lore-friendly QoL improvement so that you don’t need to manually change batteries in tools and EVA for you and your crew. Install the Wireless Charging Station near your airlock and the passing crew will automatically get a recharge when passing by!

This mod introduces upgraded wireless versions of all four tool battery types, plus a dedicated wall-mounted Wireless Charging Station. Once installed and connected to power, the station creates a local charging field that recharges compatible wireless batteries nearby.

The original vanilla chargers and equipment slots remain supported, so the new batteries can still be used normally. BepInEx Mod Loader is required for this mod.

Features

New wireless batteries

Adds wireless rechargeable versions of:

  • EVA suit battery
  • Gott tool / drill battery
  • Halvorson tool / welder battery
  • Weber laser torch battery

These batteries remain compatible with their original equipment and charger slots, but can also recharge wirelessly when near a powered Wireless Charging Station.

New Wireless Charging Station

Adds a standalone powered wireless charging station.

Install it on a wall, connect it to the power grid, and nearby compatible wireless batteries will begin charging automatically. The station must be powered for wireless charging to work.

Vanilla compatibility

The new batteries are designed to preserve vanilla compatibility:

  • Wireless EVA battery still works in EVA equipment and EVA charger slots.
  • Wireless Gott battery still works in compatible Gott tools and drill charger slots.
  • Wireless Halvorson battery still works in compatible Halvorson tools and welder charger slots.
  • Wireless Weber battery still works in compatible Weber laser torch equipment and charger slots.
  • Vanilla batteries and vanilla chargers are not replaced and work as intended.

Low-overhead BepInEx charging logic

Wireless charging is handled by a lightweight BepInEx plugin. The JSON mod provides the items and their charging tickers, while the plugin only enables charging when a compatible wireless battery is near a powered Wireless Charging Station.

The plugin uses cached station/battery lookups and targeted refreshes to reduce performance overhead.

Optional Lite / fallback behavior

The BepInEx config includes options for players who encounter performance issues or prefer a simpler QoL mode.

Config file:

BepInEx/config/com.robin.ostranauts.wirelessbatteryrecharge.cfg

Useful options:

## Disable all charging polling. Useful in case of performance issues. Mod items remain in game but are no longer wirelessly charged. DisablePolling = false

Set this to true to completely disable the plugin’s polling and charging logic. The mod items remain available, but wireless charging is disabled.

## Lite fallback mode. When true, wireless batteries self-recharge anywhere: the plugin only enables their JSON recharge ticker and skips all charger proximity/power checks. InexhaustibleBatteries = false

Set this to true for a low-overhead QoL mode where wireless batteries recharge without needing proximity to a charging station.

## Wireless charging radius around a powered Wireless Charging Station. RadiusWorldUnits = 12

Adjusts how close a battery must be to a powered Wireless Charging Station to recharge.

Spawn commands for testing

Open the debug console and use:

spawn ItmWirelessChargingStation01Loose

Wireless charging station.

spawn ItmBattery03Wireless

Wireless EVA battery.

spawn ItmBatteryDrill01Wireless

Wireless Gott / drill battery.

spawn ItmBatteryWelder01Wireless

Wireless Halvorson / welder battery.

spawn ItmBattery04Wireless

Wireless Weber laser torch battery.

Troubleshooting

The station is installed but batteries are not charging

Check the following:

  • Check if your BepInEx config manager (not a dependency, but you should use it, it’s great!) contains entry for this mod. If not, restart the game. After subscribing, the first startup sometimes does not load the BepInEx plugin, and only the assets/json logic.
  • The station is installed, not just loose.
  • The station is connected to the power grid.
  • The station is powered.
  • The battery is one of the wireless batteries from this mod.
  • The battery is within the configured charging radius.

The game is laggy

Current game version (0.15.1.6) works perfectly fine with stock settings for this mod, but upcoming game updates can always wreak havoc. For the lowest-overhead QoL mode:

InexhaustibleBatteries = true DisablePolling = true

The items will remain in-game, but wireless charging will work independent on the presence and state of the actual charger.

The station was just installed and batteries do not charge immediately

The plugin refreshes its cache after relevant install/task completions, but it may still up to 3 minutes for the next update tick. In game item has a lore-friendly explanation.

Notes

This mod does not replace vanilla batteries or vanilla chargers. It adds separate wireless versions and a separate powered wireless charging station.

Wireless charging only applies to the new wireless batteries introduced by this mod.

Download
Required items:

Click the title to search on this site.


BepInEx Mod LoaderSteam Workshop