
WantedExtensions
Experimental Wanted 1.0.2 companion: configurable reward-chest capacity and paid player rerolls with server-controlled settings.Wanted Extensions
An independent companion for Wanted 1.0.2: configurable reward-chest capacity and paid player rerolls. Requires the original Wanted mod and is not affiliated with or endorsed by its author.
Experimental 0.1.4. Builds and automated checks pass, but the current version has not been validated in a live dedicated-server session. Test on a copied world with disposable characters before normal play. Full modpack compatibility is not established.
Features
- Wanted chest defaults to 5 columns × 8 rows, with configurable dimensions and protection against shrinking over occupied cells.
- Shift + Use on the board's wooden face requests a paid reroll. Ordinary Use on notices/chests keeps its normal role.
- Default payment is 100 Coins from the requesting player's inventory. The server can choose another existing inventory-item prefab and quantity; equipped items are excluded.
- Rerolls replace untaken notices: 70% same count, 15% one fewer, 15% one more, limited to at least one and Wanted's configured maximum. An empty board cannot be paid to restock.
- A two-second minimum per-board lock provides busy/wait feedback and prevents overlapping purchases. Pending payment reservations can last longer.
- Normal dawn restocking stays under Wanted's control. Held notices, their promised rewards and chest contents are not rerolled.
Install
Install on the dedicated server and every client, alongside Wanted 1.0.2. Use the same extension version everywhere.
With Gale or another Thunderstore-compatible manager, install this package and its dependencies into the profile used to launch Valheim. If you previously installed the preview manually, remove that older extension DLL/PDB first so there is only one copy; keep its config and receipt files.
For a manual install, copy the package's plugins/WantedExtensions/ folder into your installation/profile's BepInEx/plugins/ directory. Do the same on the dedicated server. Restart the server and game after installation or updates. Hot-reloading the plugin DLL is unsupported; config-file reload is supported.
Settings
Defaults work on the first launch; no first-start/restart cycle is needed. The plugin creates BepInEx/config/friends.valheim.wantedextensions.cfg if missing and preserves existing values on upgrades.
To customise before the first launch, copy BepInEx/plugins/WantedExtensions/friends.valheim.wantedextensions.cfg.example into BepInEx/config/ and remove the .example suffix. The template is optional and is deliberately not installed over an active config.
You can also edit the server's active config while it is running. After saving, stable file contents are checked on the main thread (usually around two seconds); clients receive accepted settings on their next sync, up to about five seconds later. Keep all settings in the file. Invalid, duplicate, incomplete or temporarily unreadable edits retain the last valid running settings and log the reason. Correct the file to recover without restarting. An invalid config at startup has no last-good snapshot, so new rerolls remain unavailable until a complete valid file is saved.
Changes apply to new reroll requests; a pending request keeps its quoted price. Chest resizing waits until the chest is closed and still refuses unsafe shrinking. Clients use the server's settings; local edits do not change the server price. The plugin GUID/config filename stays stable across manual and Thunderstore installations. Updating the plugin DLL itself still requires a restart.
[Chest]
Columns = 5
Rows = 8
[Reroll]
Enabled = true
CostItem = Coins
CostAmount = 100
SameChance = 70
MinusChance = 15
PlusChance = 15
CooldownSeconds = 2
Columns: 1–8; rows: 1–12; cost: 1–100000; cooldown: 2–60 seconds. Chances must total 100. Use exact item prefab names. A custom payment item must exist on the server and all clients. Allow approximately five seconds after joining for settings sync.
Compatibility and limitations
- Only Wanted 1.0.2 is enabled. A future Wanted update needs a compatibility review; avoid independently updating that dependency until supported.
- Uses the loaded game's registered chest-open response and supported inventory method signatures. Unsupported bindings prevent new payment and report a diagnostic; notification failures fall back to the log.
- MultiUserChest is not disabled or excluded. No conflict has been reproduced, but simultaneous chest use and the full profile still need in-game testing.
- ServerCharacters save/disconnect/rollback testing is deferred. Its presence does not make player, world and receipt saves atomic.
- Player inventory remains client-owned under Valheim's cooperative networking. This is not an anti-cheat or fully server-authoritative economy. Matching extension installations are not yet enforced at login.
- Interrupted payments use local receipt journals and recent board outcomes. Ambiguous crash/rollback states may require manual reconciliation; do not delete receipts or assume every timeout warrants a refund. Confirmed refunds wait for inventory space.
- Keep
friends.valheim.wantedextensions.receipts.jsonand its backup in each client's config folder. Do not copy one player's receipt files to others. - A larger chest still has finite capacity. Check all reward stacks, coins and bonuses fit; 40 slots is not a guarantee for every possible contract.
- Before uninstalling, resolve pending purchases and empty the expanded Wanted chests. Removing the plugin while extra rows are occupied can strand items outside Wanted's original 5×2 capacity.
Check BepInEx/LogOutput.log for the loaded extension version and errors. When reporting a problem, include the game, BepInEx, Wanted and extension versions, steps to reproduce and the relevant error. Public logs should not include credentials or private server details.
Credits
Requires Wanted by Flap. No Wanted/game/Unity assets or third-party DLLs are redistributed. Code and documentation were developed with AI assistance.