Serverside Simulations

版本 v1.1.9·更新於 2025-09-27

Run world and monster simulations on a dedicated server.

截圖 共 1 張

模組介紹 作者原文

Valheim Serverside Simulations

Run world and monster simulations on a dedicated server.

Updated for patch: 0.220.5

Features

  • Server simulates world and AI physics.
  • Client FPS improvements
  • Ships are simulated by the driver to improve the steering experience with high latency.

Installation

  • Install BepInEx (optionally installing "Better Networking" on both clients and the server is recommended)
  • Copy plugin DLL into the BepInEx/plugins/ directory on your dedicated server.
  • You're done! No client-side changes are needed.

_It's recommended to also install the mod "BetterNetworking", it works very well with Serverside Simulations._

Configuration

  • MaxObjectsPerFrame.MaxObjects can be increased to improve the loading times of areas on the server, at the expense of CPU usage.

Caveats

  • Only runs on dedicated servers.
  • The mod dramatically increases server resource usage and running it on a weak CPU may lead to a poor gameplay experience.
  • The mod should be disabled when using the "optterrain" command.
  • This mod does not prevent cheating or any kind of client manipulation.
  • While this mod is quite light on complexity, as with most mods it's possible future Valheim patches will break the mod in unexpected ways. We recommend you back up your characters and worlds and/or consider disabling this mod anytime a new game patch is released.

Why?

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.

How?

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 - compatibility with Serverside Simulations

For mod developers interested in maintaining compatibility with Serverside Simulations:

  • If your mod makes changes relating to simulation / behaviour of the world, it will need to be able run on the dedicated server and should take these points into account:
  • Player.m_localPlayer is always null on a dedicated server; your code should check for this.
  • On a dedicated server, ZNet.instance.GetReferencePosition() returns a position outside of the world and is not related to any player position.
  • Any graphical or hud-related code should probably be behind a ZNet.instance.IsDedicated() check, if that code is expected to run on the server.

Manually compiling

To manually compile, create a file at src/Environment.props with the following content, and change the path to point at your Valheim install.

E:\SteamLibrary\steamapps\common\Valheim dedicated server

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
Serverside_Simulations-1.1.9.zip
檔案大小
76.5 KiB