Skip to content

A mod that allows users to configure network variables.

Notifications You must be signed in to change notification settings

Dalayeth/NetworkFix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Changelog:

1.1.1
	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.

1.1.0
	***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.

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

1.0.0
	Initial commit.

For developers just add your own game directory and the directory with your BepInEx folder into the "Directories.targets". Might be the same directory if so just put that in their twice. Then start the project and everything should be set up.

About

A mod that allows users to configure network variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages