You are viewing a potentially older version of this package. View all versions.
sighsorry-CaptainValheim-1.1.2 icon

CaptainValheim

Turns shields into active weapons. All you need is one shield. Shield strikes, throws, charges, projectile reflection, and block charges all follow real shield stats and blocking skill.

Date uploaded 5 days ago
Version 1.1.2
Download link sighsorry-CaptainValheim-1.1.2.zip
Downloads 100
Dependency string sighsorry-CaptainValheim-1.1.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 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.2360

README

CaptainValheim

Make your shield your main weapon. Strike, throw, charge, and counterattack with power drawn from your shield's stats and Blocking skill.

A player striking an enemy with a shield

Shield Strike — Fight up close with your shield.

A thrown shield ricocheting between enemies

Shield Throw — Hit multiple enemies with a ricocheting shield that returns to you.

A player charging into enemies with a shield

Shield Charge — Rush forward to close the distance and push enemies back.

Repeated blocks building a shield counterattack

Block Charge — Build charges with successful blocks and automatically counterattack when fully charged.

A shield reflecting a projectile

Projectile Reflection — Block eligible projectiles to send them back toward your aim.

Getting started

Install with a mod manager. For multiplayer, install CaptainValheim on the server and all participating clients.

Equip a shield and leave your right hand empty:

Action Input
Shield Strike Attack
Shield Throw Secondary Attack without blocking
Shield Charge Hold Block + Secondary Attack

These use your existing key bindings. Block Charge and Projectile Reflection activate while blocking.

Thrown shields return to your inventory and re-equip when your hands remain free. If your inventory is full, the shield drops into the world.

Configuration

The first launch creates two files in BepInEx/config:

  • sighsorry.CaptainValheim.cfg — Server permissions, tooltip display, and pickup settings.
  • CaptainValheim.yml — Enable or tune each shield technique. Global applies to all shields; individual shield entries override only the values you specify.

ServerSync synchronizes gameplay settings. Server admins control them while Lock Configuration is enabled.

With a one-handed melee weapon and a shield, Block Charge and Projectile Reflection are enabled by default. Servers can also enable Shield Charge. Strikes and throws always require an empty right hand.

When Shield Charge is enabled for your equipment, Block + Secondary Attack is reserved for it, even during cooldown or when stamina is too low. Release Block to use the weapon's normal secondary attack.

By default, automatically picked-up weapons stay in your inventory while you use only a shield, including while waiting for a thrown shield to return. Your own identified thrown weapons can still re-equip. Change Prevent Weapon Auto Equip While Shield Only to disable this protection.

English and Korean are built in. The package includes CaptainValheim.English.yml as a translation template.

Compatibility

These integrations are optional:

  • Path of Valheiman: Its available shield attacks and charge take priority where they overlap. A successful PoV projectile reflection prevents a second CaptainValheim reflection. Each mod keeps its own damage and return rules.
  • Armoire: Thrown shields keep their equipped cosmetic appearance through ricochets and the return flight.
  • FearNoSpear: Restricts automatic pickup of dropped thrown shields to their thrower. Other players can still pick them up manually.
  • WarfareTweaks: Lets configured Warfare effects recognize CaptainValheim shield hits.
  • SecondaryAttacks: Handles other weapon types alongside CaptainValheim.

Shield techniques and settings · Default configuration

CHANGELOG

Changelog

1.1.2

  • Fixed a startup error on Valheim 1.0.30 when CaptainValheim added shield controls to the HUD. The error could also affect other mods that update the same key hints, including SecondaryAttacks.
  • Shield hints now follow the game's active HUD panel. If a future update changes how the game selects hints, CaptainValheim skips its custom hints so the rest of the mod can still load.
  • Shortened the README and kept all five shield technique demonstrations.
  • Updated the required BepInExPack to 5.4.2360. For multiplayer, update CaptainValheim on the server and all participating clients together.

1.1.1

  • Added optional Path of Valheiman compatibility. Acquired Shield Throw and Shield Strike nodes take priority for their attack inputs, and CaptainValheim hides the corresponding shield key hints.
  • Yield CaptainValheim Shield Charge to Path of Valheiman's acquired Shield Charge node and prevent both charge controllers from running together, including during node changes.
  • Prevent duplicate projectile reflection when Path of Valheiman successfully launches a parry reflection. CaptainValheim still handles eligible ordinary blocks and provides its existing reflection when Path of Valheiman does not launch a projectile.
  • Keep each mod's damage scaling, block-charge effects, and thrown-item return handling unchanged. Path of Valheiman is optional and is detected by supported method signatures rather than an exact version requirement.
  • Update CaptainValheim on the server and participating clients together to satisfy the existing version check.

1.1.0

  • Rebalanced primary strikes, shield throws, and Shield Charge to reduce high-deflection shields' attack push more strongly while retaining a larger share of lower-force shields' push. Existing YAML pushFactor settings now multiply the adjusted force; damage, attack ranges, normal blocking, projectile reflection, and Block Charge keep their existing formulas.
  • Added the default-On, client-only Prevent Weapon Auto Equip While Shield Only option. Automatically collected weapons stay in the inventory while using only a shield or waiting for a thrown shield to return to empty hands.
  • Identified weapons thrown by you retain the game's normal automatic re-equip checks. Existing FearNoSpear and SecondaryAttacks drop markers are recognized; newly found weapons and unmarked drops receive no recovery exception.
  • Manual pickup, equipment choices, inventory capacity checks, and existing shield returns remain unchanged. Recovery markers stay on world drops rather than inventory item data.
  • Update CaptainValheim on the server and participating clients together to satisfy the existing version check.

1.0.13

  • Thrown shields now retain their equipped appearance and style, including appearances applied by Armoire, through ricochets and the return flight.
  • Synchronize the launch-time appearance separately from the real shield. Damage, durability, inventory returns, and dropped item identity remain unchanged; reflected arrows and spells are excluded.
  • Apply the selected mesh once during visual creation, handle late appearance data, and fall back to the original shield when a cosmetic prefab is unavailable. Unchanged appearances and repeated asset failures do not trigger per-frame mesh recreation.
  • Armoire remains optional, with no required dependency or exact-version restriction. Compatibility uses the game's resolved equipment appearance rather than Armoire's private settings or save format.

1.0.12

  • Reduced shield key-hint UI work by preventing the game's combat hints and CaptainValheim's hints from repeatedly toggling each other every frame. Preserved normal weapon hints when using a shield with a melee weapon and cleaned up owned hints when the HUD is destroyed.
  • Improved automatic re-equipping after direct shield returns and marked ground pickups. Re-equipping now waits for temporary attack, dodge, or swimming restrictions to end instead of expiring after one second.
  • A new hand equipment choice cancels pending re-equipping. Other mods' equipment restrictions remain authoritative; a rejected equip leaves the shield in the inventory without repeated attempts or extra item drops.
  • Added thrower identity metadata to dropped thrown shields for optional FearNoSpear integration. Compatible FearNoSpear versions can restrict automatic pickup to the thrower while retaining manual pickup; metadata failures after a successful drop do not trigger a duplicate drop.

1.0.11

  • Added server-synchronized options for using shield charge, block-charge counterattacks, and projectile reflection with a one-handed melee weapon. Charge defaults to Off; block charge and reflection default to On.
  • When enabled, Block + Secondary Attack uses shield charge while ordinary weapon attacks remain available. A failed or held charge input cannot fall back to a weapon attack.
  • Block-charge accumulation and counterattacks now respect the equipment policy and YAML enable setting without changing other players' shields; entering disallowed equipment clears stored charges.
  • Prevented direct shield charge from starting during attacks, dodges, knockback, stagger, or other restricted actions.
  • Updated shield hints, tooltips, and the Compendium to explain weapon compatibility while retaining normal weapon hints.
  • Updated the required BepInExPack version to 5.4.2351.

1.0.10

  • Updated CaptainValheim for Valheim 1.0.7, including the new shield tooltip signature and original game assembly access boundaries.
  • Updated the bundled ServerSync compatibility build for Valheim 1.0.7, fixing configuration initialization and preserving connection-time player, history, administrator, and network-time messages.
  • Preserved Valheim 1.0 damage channels, attack resource effects, and status-effect variants through shield hits and the versioned projectile reflection protocol.
  • Prevented new mid-flight projectile template behavior from bypassing shield throw hit ownership and duplicate-hit handling.
  • Updated the required BepInExPack version to 5.4.2350.

1.0.9

  • Reorganized shield throw and charge state alongside their runtime code and removed redundant attack setup forwarding without changing combat rules.
  • Removed an unnecessary ObjectDB snapshot pass while retaining capture-before-write and conditional restoration of modified shield data.
  • Avoided allocating reflection block contexts for characters and shields that do not use projectile reflection.
  • Added DeployToGame support for automatic local DLL updates after Debug builds, plus options to skip game copies or release packaging during validation.

1.0.8

  • Added the client-only Show Shield Tooltip setting, enabled by default, so each player can hide CaptainValheim guidance from shield item tooltips without changing server behavior.
  • Removed the shield reflection debug logging option and its diagnostic-only logging and data plumbing.

1.0.7

  • Added localized shield key hints, contextual shield tooltip guidance, and a new Compendium page explaining Shield Strike, Throw, Charge, Projectile Reflection, and Block Charge.
  • Added built-in English and Korean text plus client-side CaptainValheim.<Language>.yml overrides; Thunderstore packages now include CaptainValheim.English.yml as a translation template.
  • Simplified the shield-only configuration and runtime structure by removing unused inherited SecondaryAttacks paths and consolidating code that changes together.
  • Hardened live configuration reload and synchronization, ObjectDB restoration and reapplication, runtime cleanup, and shield state handling while preserving existing combat behavior.

1.0.6

  • Rebuilt dedicated-server projectile reflection around owner-authoritative HitData and projectile snapshots with exact, one-shot target correlation, allowing multiple shield players in the same loaded zone to reflect independently.
  • Removed pending queues, TTL pruning, fuzzy matching, and string payload workarounds while preserving the original sender, validating ownership, and marking reflected projectiles across ownership transfers.

1.0.5

  • Reduced inherited SecondaryAttacks infrastructure to CaptainValheim's shield-only configuration, definition, and runtime pipeline, removing duplicate version RPC and unused generic paths.
  • Hardened shield primary, throw, charge, and reflection context cleanup with scoped Harmony finalizers and simplified projectile visual and return handling.

1.0.4

  • Fixed dedicated-server shield reflection for multiple players in the same loaded zone by correlating remote projectile and block contexts through player ZDOIDs.
  • Added bounded ordered fallback matching and now creates reflected projectiles from their registered source prefabs.

1.0.3

  • Improved dedicated-server shield reflect reliability by keeping successful blocks briefly pending so late projectile ownership/context RPCs can still trigger reflection.

1.0.2

  • Improved multiplayer shield reflect reliability on dedicated servers by sending projectile fallback payloads for remote block contexts.
  • Relaxed remote shield reflect context matching so valid blocks can reflect even when projectile hit context timing or hit points differ between clients.

1.0.1

  • Added multiplayer shield reflect ownership handoff so remote projectile hits can be reflected by the blocking player on dedicated servers.
  • Added optional shield reflect diagnostics.
  • Fixed generated key hint separator font/style copying.

1.0.0

  • Initial Release.