Dalayeth-NetworkFix icon


A mod that allows users to configure network variables.

Last updated 2 weeks ago
Total downloads 907
Total rating 1 
Categories Mods Server-side Client-side
Dependency string Dalayeth-NetworkFix-1.1.1
Dependants 6 other mods depend on this mod

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.1600 icon

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.1600


A simple mod that allows you to configure the packet queue size and bandwidth. Should make multiplayer less laggy.

This mod uses a transpiler patch which allows you to modify sendQueueSize, hard-coded to 10,240. as well as a postfix patch which allows you to modify the SendRateMin and SendRateMax variables. This should allow your server to trasmit more than 150kbps, (153,600bps). I've also removed the 512kbps, (524,288bps) maximum buffer size from the socket allowing you to set it to an arbitrary limit.

These changes were first discovered to be helpful here and expanded upon in this comment chain. I only made what they were doing manually into a mod to make it easier to use. Shout out to all their great detective work. Special shout-out Patk88 for the config defaults.

If you have any issues with this mod please post them to https://github.com/Dalayeth/NetworkFix/issues


	Adding a fix for detecting local servers.
	Adding some try/catch blocks to ensure code is executed safely.
	Added code to detect ZNet being destroyed. Should make things safer.

	***It is recommended you delete your config for version 1.1.0***
	Changed from modifying RegisterGlobalCallbacks function with a transpilier to a postfix.
	Allowed setting values higher than 512kbps.
	Added checks for negative config values.
	Changed the config entries to the names of the variables. Should lower confusion.
	Added a config to disable the mod entirely.

	Fixed the log strings to have correct variable names.
	Added Github link.

	Initial commit.

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-10-8 1.1.1 564 Version 1.1.1 Install
2021-10-6 1.1.0 184 Version 1.1.0 Install
2021-10-5 1.0.1 86 Version 1.0.1 Install
2021-10-4 1.0.0 73 Version 1.0.0 Install