You are viewing a potentially older version of this package. View all versions.
OdinTheWise-CrossbowMemory-1.0.0 icon

CrossbowMemory

A loaded crossbow stays loaded when you switch weapons, stash it or log out, and remembers which bolt was in it. Client-side.

Date uploaded 4 days ago
Version 1.0.0
Download link OdinTheWise-CrossbowMemory-1.0.0.zip
Downloads 305
Dependency string OdinTheWise-CrossbowMemory-1.0.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351

README

Crossbow Memory

Your crossbow stays loaded when you put it away.

In vanilla Valheim, a loaded crossbow is unloaded the moment you switch to another weapon, sheathe it, start swimming, use a crafting station or log out, and you have to crank it again. With this mod the crossbow remembers that it was loaded, and which bolt was in it, until you actually fire.

What it does

  • Load your crossbow, switch to a sword, switch back: still loaded, no reload bar.
  • Works through sheathing (hide weapons), swimming, crafting stations, sitting, chests, dropping, death (tombstone) and leaving / rejoining a world.
  • Remembers the bolt type that was loaded. When you take the crossbow out again it re-equips that bolt, if you still carry some (otherwise it keeps whatever bolt you have equipped).
  • Nothing is gained or lost: reloading never costs a bolt in Valheim; the bolt is taken when you fire.
  • Works for every weapon that has to be loaded before it fires: Arbalest, Ripper, and modded crossbows.
  • A reload that was still in progress when you switched is not remembered (same as vanilla).

Multiplayer

Client-side. Only your own crossbow is affected; other players and the server do not need the mod.

Configuration

BepInEx/config/com.crossbowmemory.valheim.cfg, or in game with ConfigurationManager (F1):

  • Enabled (on): off = vanilla behaviour.
  • Restore bolt type (on): re-equip the remembered bolt when the crossbow comes out.
  • Log events (off): one log line whenever a crossbow is remembered, restored or fired, and a list of your crossbows at login. Turn on if something seems wrong.

Notes

  • Does the same job as the deprecated SaveCrossbowState (plus the bolt memory). Run only one of the two.
  • Requires BepInExPack_Valheim. Nothing else.

CHANGELOG

Changelog

1.0.0

  • First public release.
  • The memory stays on the crossbow at all times (written when a reload finishes, when it leaves your hands and right before a save; cleared when it fires) and is re-checked right after a login, so it survives leaving and rejoining a world also with inventory mods such as ExtraSlots.
  • "Log events" (F1 → Debug) is off by default. Turn it on to see one log line per remembered / restored / spent crossbow and a list of your crossbows at login.

0.1.0 (test build)

  • A loaded crossbow stays loaded when it leaves your hands (weapon switch, sheathing, swimming, crafting stations, sitting, chests, dropping, death, logout) and remembers which bolt was loaded; the bolt is re-equipped when the crossbow comes out again. Options in F1: Enabled, Restore bolt type, Log events.