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

Details

Date Uploaded
3 days ago
Downloads
42
Size
7.5KB
ADDatHost Valheim hosting
€1

StatCreditFix

Client-side mod for Valheim 1.0. Felled trees and food taken from cooking stations and ovens count towards your own stats and achievements again when you play on a server.

The problem

Valheim records some player stats inside a network handler that runs only for the owner of the object:

  • felled trees (Tree stat, achievement The Lumberjack);
  • food taken from a cooking station or an oven (achievement The Master Chef, and through it Kings and Queens of Valheim).

On servers with server-side simulation mods the server owns these objects, so nobody gets the credit. In plain co-op the same happens whenever another player owns the tree or the station.

What the mod does

  • When you hit a tree, your client takes ownership of that tree.
  • When you take finished food from a cooking station or an oven, your client takes ownership of that station.

It uses the game's own ownership handover (ZNetView.ClaimOwnership), the same mechanism the game uses for carts and picked-up items. Stats, achievements, damage and drops are not modified. When you walk away, ownership goes back to the server as usual.

Installation

Client-side only. The server does not need it, and other players can play without it.

  • Mod manager: install as usual.
  • Manual: put StatCreditFix.dll into BepInEx/plugins.

Configuration

BepInEx/config/qua8ion.valheim.statcreditfix.cfg

Key Default Description
ClaimTrees true Take ownership of a tree when you hit it
ClaimCookingStations true Take ownership of a cooking station or oven when you take finished food from it
LogClaims true Write Took ownership of … to BepInEx/LogOutput.log

Achievements with mods

Valheim does not count achievements while BepInEx is loaded. Enable them once per character in the F5 console: yesiuseddevcommandsbutiwantmyachievementsanyway 1

How to check

Fell a tree on the server. In game: Compendium → Stats → category AnyTree goes up by one. On Steam the progress of The Lumberjack goes up as well.


Кратко по-русски

Клиентский мод. Возвращает зачёт срубленных деревьев и еды с жаровни и из печи в вашу статистику и ачивки (The Lumberjack, The Master Chef, Kings and Queens of Valheim) при игре на сервере, особенно с серверной симуляцией. При ударе по дереву и при снятии готовой еды ваш клиент становится владельцем объекта штатным механизмом игры. Счётчики и ачивки мод не меняет. На сервер ставить не нужно.

DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro