You are viewing a potentially older version of this package. View all versions.
Balrond-balrond_secondchance-1.0.15 icon

balrond secondchance

Adds Configurable Ressurection system to the game

Date uploaded a month ago
Version 1.0.15
Download link Balrond-balrond_secondchance-1.0.15.zip
Downloads 953
Dependency string Balrond-balrond_secondchance-1.0.15

README

⚒️ Balrond Second Chance


Overview

Balrond Second Chance adds a configurable Downed state to Valheim.

Instead of dying immediately, players can enter a Downed state where they may:

  • Be revived by another player
  • Revive themselves, either for free or by consuming a configured item
  • Release their soul manually and die normally
  • Wait for the Downed timer to expire

Most gameplay settings can be synchronized and enforced by the server. The selected Downed animation is a local cosmetic setting, so every player can choose their own preferred pose.

This is an early release. If you encounter a problem, please send feedback on Discord together with your logOutput.txt.


🧭 What Happens When You Die?

  1. You do not die immediately.
  2. You enter the Downed state.
  3. A popup appears with the available options:
    • Wait for another player to revive you
    • Self revive, if enabled
    • Release your soul
  4. The Downed timer begins counting down.
  5. If the timer reaches zero, you die automatically when Auto Release When Timer Ends is enabled.

🤝 Reviving Other Players

To revive another Downed player:

  1. Walk close enough to the player.
  2. Press Use (E).
  3. If an item is required, you must have the configured resurrection item and amount in your inventory.

If Require Item For Friend Revive is disabled, reviving another player is free.

After a successful revive, the player returns with the configured amount of health and receives the revive cooldown.


🧍 Self Revive

Self revive can be enabled or disabled in the config.

Free Self Revive

When Require Item For Self Revive is disabled:

  • Press the Resurrect button while Downed
  • No item is consumed

Item-Based Self Revive

When Require Item For Self Revive is enabled:

  • You must have the configured resurrection item in your inventory
  • The configured amount is consumed when you revive

💀 Release Soul

While Downed, you can choose to Release Soul at any time.

This immediately ends the Second Chance state and continues with normal Valheim death behavior.


⚙️ Features

  • Downed state instead of immediate death
  • Multiplayer player-to-player revival
  • Optional self revive
  • Free or item-based reviving
  • Configurable resurrection item and required amount
  • Configurable revive distance
  • Configurable revive health
  • Configurable Downed duration
  • Optional automatic death when the timer expires
  • Revive cooldown
  • 24 selectable Downed animations and poses
  • Per-player local Downed animation preference
  • ServerSync support for gameplay configuration
  • Localization support

🔧 Configuration

General

Setting Default Description
Lock Configuration true When enabled, the server controls synchronized gameplay settings.
Downed Seconds 120 How long a player can remain Downed before the timer expires.
Auto Release When Timer Ends true Automatically kills the Downed player when the timer reaches zero.
Cooldown Minutes 10 Cooldown applied after a successful revive.
Revive Health Percent 0.25 Health restored after revival. 0.25 means 25% health.
Revive Distance 3 Maximum distance from which another player can revive you.
Downed Presentation Mode Sit Selects the animation or pose used while your character is Downed. This is a local cosmetic setting and is not controlled by the server.

Self Revive

Setting Default Description
Allow Self Revive true Enables the self revive option while Downed.
Require Item For Self Revive true Requires the configured resurrection item when reviving yourself. Disable it for free self revive.

Friend Revive

Setting Default Description
Require Item For Friend Revive true Requires the configured resurrection item when reviving another player. Disable it for free player-to-player revives.

Resurrection Item

Setting Default Description
Resurrection Item Prefab MeadHealthMinor Prefab ID of the item used for resurrection.
Resurrection Item Amount 1 Number of resurrection items consumed when an item is required.

🎭 Downed Animations

Downed Presentation Mode controls how your character looks while in the Downed state.

Available options:

  • Sit
  • Bed
  • Kneel
  • Cower
  • Cry
  • Despair
  • Rest
  • Relax
  • Dance
  • Headbang
  • Challenge
  • Cheer
  • Flex
  • Roar
  • Shrug
  • Laugh
  • Point
  • ThumbsUp
  • BlowKiss
  • Bow
  • ComeHere
  • NoNoNo
  • Toast
  • Wave

Sit is the default option.


🌐 Translation

Translation files are stored in the mod's translation folder inside the config directory. The default file is English.json.

If you see untranslated text such as $tag_something_bal, the translation file was not loaded correctly or is missing.

For dedicated servers, make sure the required translation files are also installed where needed.

To add another language:

  1. Copy the existing English.json file.
  2. Rename the copy using a language name supported by Valheim.
  3. Translate the values only.
  4. Do not change the translation keys.

💬 Community & Support

Discord: https://discord.gg/Jfp8T5N7Pv
Ko-fi: https://ko-fi.com/balrond1020


⚒️ Enjoy your Second Chance!

CHANGELOG

Balrond Second Chance — Changelog

v1.0.17 — Source patch (not yet runtime-validated)

Added

  • Optional Hold to Revive for reviving another player. New server-synchronized settings under [2 Friend Revive]:
    • Enable Timed Friend Revive = false — off by default; preserves the original one-press interaction.
    • Friend Revive Hold Seconds = 4 — configurable from 0 to 60 seconds; 0 always means instant revival.
  • The interaction prompt changes from USE to HOLD when timed revival is active and shows elapsed/required seconds.
  • Support for the remappable Use binding and controller JoyUse while holding the interaction.
  • Explicit revive outcome and payment-confirmation messages for multiplayer, with transaction/session IDs, bounded receipt retries and duplicate-payment protection.
  • Exact-amount item payment controlled by Resurrection Item Amount, across multiple stacks of the same configured item type; alternative IDs in Resurrection Item Prefab remain OR choices and cannot be mixed to meet one payment.

Fixed

  • Resurrection items are no longer charged before a friend-revive RPC completes. An ordinary rejected revive or cancelled hold does not remove items. A verified success response triggers the configured item deduction, not removal of the full stack.
  • Improved owner-side RPC validation for revive requests: sender/player ZDO ownership, target state, release, distance, cooldown, active hold session and elapsed time.
  • Prevented repeated HOLD Begin messages from restarting an accepted hold session; added acceptance acknowledgement and cancellation handling.
  • Self revive now uses a local owner-authorized state transition instead of a self-directed network RPC; strengthened revival recovery and post-success handling.
  • Improved Downed popup scaling on ultrawide displays by using Valheim's GUI scaling behavior.
  • Hardened HUD/audio cleanup, fallback UI handling and malformed translation JSON loading.
  • Replaced fixed local-drive Unity assembly references with configurable/relative project references for easier builds.
  • Aligned plugin, assembly and ServerSync protocol versions to 1.0.17; connected peers must use matching builds.

Known limitations / verification

  • Revival state and the reviver's inventory are owned separately in multiplayer. The revive-then-charge flow is not a durable atomic transaction: a disconnection or inventory change at the wrong moment may leave a completed revive unpaid or its payment pending. There is no cross-session payment ledger.
  • Cooldown persistence after reconnect and compatibility with other mods patching player updates/death require in-game checks.
  • Source-level/model validation has been performed; no successful Valheim runtime or dedicated-server verification is claimed. Treat this as a source patch until compiled and tested.

v1.0.15

  • Allowed multiple alternative resurrection item prefab IDs.
  • Fixed an issue with the Downed popup not appearing.
  • Minor optimizations.

v1.0.14

  • Fixed flickering cursor.
  • Memory optimizations.

v1.0.13

  • Fixed a server desynchronization issue that could prevent the Downed popup from appearing on death.

v1.0.12

  • Multiple multiplayer synchronization fixes.
  • Disabling both friend revive and self revive now turns off the feature.
  • Fixed a case where disabling self revive prevented the player from releasing their soul.

v1.0.6

  • Code optimizations.

v1.0.5

  • Fixed inability to interact with a Downed player.
  • Fixed configuration of item-free revival.

v1.0.4

  • Audio fix.
  • Added Downed animation options.
  • Fixed online revive-distance behavior.

v1.0.3

  • Deep North fix.

v1.0.2

  • Fixed monsters targeting Downed players.

v1.0.1

  • Fixed monsters targeting Downed players.

v0.1.0

  • Initial release.