Valheim
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
10 hours ago
Downloads
27
Size
18KB
Dependency string
TWOKEY-WeaponRename-0.1.1
ADDatHost Valheim hosting
30% off!

WeaponRename

Shift+right-click a weapon in your inventory to rename it, or reset it to the default localized name.

The custom name is stored on that item instance (not the prefab). Every player with this mod sees the same name on world drops, in chests, and on item stands.

Install

Install with r2modman or another Thunderstore manager. This mod depends on:

Dedicated servers and every client must have matching versions. Vanilla clients will be rejected at join so renamed weapons stay visible to everyone.

How to use

  1. Open your inventory.
  2. Hold Shift (configurable).
  3. Right-click a weapon.
  4. Rename, Reset (back to the default localized name), or Cancel. Escape also closes.

Features

  • Weapons by default: one-handed, two-handed, two-handed left, and bows. A synced config can allow all items.
  • Reset restores the real vanilla name, including other languages.
  • Host rules (rename enabled, weapons-only, max length) sync from the server. The Shift key stays per-client.
  • Does not change internal prefab ids. Other mods still see an Iron Sword.
  • Optional: DarwinAwards death feed can show the custom weapon name.

DarwinAwards

WeaponRename does not require DarwinAwards. If both mods are installed, the victim's client fills the killing weapon into the death feed (and Discord, if DarwinAwards has a webhook).

DarwinAwards itself only knows {player} (the victim) and {enemy} (the killer's character name). It has no weapon token. WeaponRename adds {weapon} and, when a PvP line omits it, appends (Custom Name) so it works with the default jokes.

Out of the box

Keep DarwinAwards' default AwardCategories.yml. A PvP death looks like:

Alice wanted to hug Bob and found death instead. (Excalibur)

Turn this off with synced config DarwinAwardsShowWeapon.

Recommended YAML (host / dedicated server)

DarwinAwards syncs BepInEx/config/AwardCategories.yml from the server/host. Edit that file, then restart or wait for the file watcher. Example PvP lines:

death by player:
  - "{player} was killed by {weapon}."
  - "{player} was slain by {enemy}'s {weapon}."

You cannot add new category keys. You can only change the lines under the existing ones. Keep lines short so they fit the on-screen feed.

{weapon} is the custom name if the killer renamed that instance, otherwise the normal localized name (Iron Sword, etc.).

Changelog

0.1.1

  • DarwinAwards death feed can show the killing weapon's custom name.

0.1.0

  • First release.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.