Compress

v1.3.0·Updated 2021-10-29

Compress ZDOData synced between server and client.

About this mod Author’s original text

## Compress

  • Opt-in server and client data compression when syncing ZDOs.
  • ZPackage/ZSteamSocket optimizations for related code in the SendZDOs hot-loop.

Notes

  • This mod must be installed on the server to enable compression.
  • As a client, if the server does not have the mod then Compress will send uncompressed/vanilla data.
  • Your Send rate in the F2 Panel will be the usual ~150 KB/s.
  • As a client, if the server does have the mod it will start sending and receiving compressed ZDO data.
  • You should see a drop in your Send rate of around 50% to ~80 KB/s.

Installation

  • Manual/Vortex
  • Un-zip Compress.dll to your /Valheim/BepInEx/plugins/ folder.

*

  • Go to Settings > Browse profile folder and un-zip Compress.dll to the /BepInEx/plugins/ folder.

Configuration

  • isModEnabled
  • Globally enable or disable this mod (restart required).

Changelog

1.3.0

  • Temporarily remove the ZSteamSocket.Send patch from Compress as it does not retry on a failed send.

1.2.0

  • Added ZPackage.Write(ZPackage) patch that copies the passed in ZPackage buffer directly.

1.1.0

  • Added ZSteamSocket.Send() patch that directly sends the ZPackage data on the socket.

1.0.0

  • Initial release.

Extra

  • Source code available at: Github
  • Looking for a chill Valheim server? Comfy Valheim Discord
  • Looking for great Valheim servers to play on? valheimlist.org

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
Compress-1.3.0.zip
File size
110.1 KiB