



Run world and monster simulations on a dedicated server.
Updated for patch: 0.220.5
It's recommended to also install the mod "BetterNetworking", it works very well with Serverside Simulations.
Ordinarily, to keep server resource usage low, the Valheim server will hand off simulation of an area to the first client that enters said area. However, if the player in charge of the area has a poor connection all other players in that area will suffer. This mod is an attempt at improving that specific situation at the cost of increased latency for the client which would ordinarily own the area.
This dedicated server mod causes terrain, monsters and other objects that are normally created and owned by clients to instead be created on—and thus owned and simulated by—the server.
For mod developers interested in maintaining compatibility with Serverside Simulations:
null on a dedicated server; your code should check for this.ZNet.instance.GetReferencePosition() returns a position outside of the world and is not related to any player position.ZNet.instance.IsDedicated() check, if that code is expected to run on the server.To manually compile, create a file at src/Environment.props with the following content, and change the path to point at your Valheim install.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Needs to be your path to the base Valheim folder -->
<VALHEIM_DEDI_INSTALL>E:\SteamLibrary\steamapps\common\Valheim dedicated server</VALHEIM_DEDI_INSTALL>
</PropertyGroup>
</Project>