You are viewing a potentially older version of this package. View all versions.
IronLabs-TombstoneLock-1.0.2 icon

TombstoneLock

Automatically locks your tombstones so only you can loot them. Your friends can request access to help you. All clients must run the mod to be effective.

Date uploaded a day ago
Version 1.0.2
Download link IronLabs-TombstoneLock-1.0.2.zip
Downloads 8
Dependency string IronLabs-TombstoneLock-1.0.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 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.2333

README

TombstoneLock

The Valheim mod TombstoneLock automatically locks Valheim tombstones so only their owner can loot them. In some cases maybe you would like a friend to loot your tombstone for you, in this case, he can request access to your tomb and you can decide to accept or not. The tombstone remains locked for 10 In-game days so that you have enough time to retrieve your items.

Enforcement is client-side only. All connected players must run the mod for it to be effective. AzuAntiCheat can be used server-side to make sure all clients run the mod.

Features

  • Newly created tombstones are automatically locked to their owner.
  • Only the owner can open a locked tombstone.
  • Other players trigger an automatic unlock request (only if the owner is online).
  • The owner is notified and grants access with the /accept chat command.
  • Requests expire after 20 seconds; both the owner and the requesting player are notified when a request expires.
  • Only one outstanding request at a time.
  • A player can send another unlock request only after 2 minutes.
  • A tombstone locked for 10 in-game days or more unlocks automatically — anyone can then loot it, no request needed.

Installation

  • Install a mod manager like r2modman
  • Open it and download the mod from there or manually from here

Important: every player must install the mod. Because enforcement is client-side, a player without the mod can open any tombstone normally.

To make sure everyone runs it, use a server-side mod enforcer such as AzuAntiCheat.

For developers

You can download the source code from github:

https://github.com/end3rbyte/TombstoneLock

Environment variables used

BepInExPath=C:\Program Files (x86)\Steam\steamapps\common\ValheimM\BepInEx
CorlibPath=C:\Program Files (x86)\Steam\steamapps\common\ValheimM\valheim_Data\Managed
ValheimGamePath=C:\Program Files (x86)\Steam\steamapps\common\ValheimM

Debugging

  • useful link to setting your debug environment
  • pdb2mdb executable is needed only to debug and can be commented out
  • a .pdb from assembly_valheim.dll can be generated with ILSpy
  • DirectPlay mod is pretty useful to avoid select a character and world on every debug session

Thanks

Contact

For issues: create an issue in github

Anything to share with me or others: post in the github discussion

CHANGELOG

v1.0.0

  • Initial Version

v1.0.4

  • Localized in all languages (translated by Codex)

v1.0.5

  • bug fix when the playerId is negative
  • added a more explicit message when the player cannot request access for the moment (the 2min period)