Skip to content
Menu
SteamAH
  • Cheat
  • Guide
  • Tips
  • Game Lists
  • Privacy Policy
SteamAH
Valheim How to Fix Multiplayer Lag

Valheim How to Fix Multiplayer Lag

Posted on February 18, 2021February 18, 2021

Valheim players, if you encounter some extreme rubber banding and skipping during multiplayer and can’t attribute it to one person’s connection or faulty server hardware, it is most likely due to the game’s 60kb upload cap and the tendency for players to hit the cap in complex multiplayer situations. Hopefully this guide will help you out but it goes without saying, I do not guarantee anything.

 

Download DNSPY

Download DNSPY -> https://github.com/dnSpy/dnSpy/releases

Extract the contents into its’ own folder somewhere on your pc.

Run DNSPY

File > Open:
Navigate to (Drive where your game is located):\SteamLibrary\steamapps\common\Valheim\valheim_Data\Managed\
Select assembly_valheim.dll
Click Open

In the left panel Titled ‘Assembly Explorer’, Find and select assembly_valheim.dll.
Select {}
Select ZDOMAN
Select m_dataPerSec, Right-Click and select Edit Class…
in the line “private int m_dataPerSec = ” set it to at least 122880
Click Compile in the bottom right corner
Click File > Save Assembly

Start your Server.

If you are hosting the Valheim locally on your own PC, then all you need to do at this point is launch your server and have some people join. If you are still experiencing lag, then other things may be causing your problems and I am sorry.

If you are connecting to a dedicated server, then you need to replace the assembly_valheim.dll file that the dedicated server uses. Once the file is replaced using the new value, start/restart your server to load the new file.

Check your performance in-game by hitting F2 and checking the data sent value. If this does not go past 60 then you did something wrong or the .dll was overwritten.

READ:  Valheim How to Save and Load Your Constructions

IF THE GAME UPDATES, IT OVERWRITES ASSEMBLY_VALHEIM.DLL AND YOU WILL NEED TO REDO THESE STEPS

 

That’s all we are sharing today in Valheim How to Fix Multiplayer Lag, if you have anything to add, please feel free to leave a comment below, and we’ll see you soon.
Credit to All Might

MORE GAME GUIDES FOR YOU

Related Posts:

  • Craftopia Solution for Can Not Use Multiplayer/ Server Time Out
  • Grounded Multiplayer Fix (Server Visibility Guide)
  • SCP Secret Laboratory: How to Fix “Mic & Voice Not Working” Issues
  • Battlefield 4 How to Fix Getting Kicked by Punkbuster
  • Valheim How to Fix Low Fps Issue

9 thoughts on “Valheim How to Fix Multiplayer Lag”

  1. Biff says:
    February 19, 2021 at pm5:14

    Just wanted to say thanks ! I had a severe lag/ruberbanding issue on my dedicated server that made the game unplayable, even preventing people to join sometimes and your fix seems to have solved it 🙂

    Reply
  2. Oyjord says:
    February 21, 2021 at am10:57

    I get all kinds of errors after hitting COMPILE (“identifier error,” “the type or namespace name…” etc). Any tips?

    Reply
    1. Dan Koller says:
      February 22, 2021 at am8:27

      Did you move the DLL file out of the Managed folder? I did that first and got all sorts of errors when trying to compile, then I tried it again but this time left the file where it was, and it compiled without issue.

      Reply
    2. Nakinto says:
      February 22, 2021 at am10:11

      Oyjord, ya you need to keep the .DLL where it is, make a copy before trying to edit anything (I know most people know this) and edit the one in the folder, shouldn’t have any trouble.

      Reply
  3. Yannick says:
    February 22, 2021 at am11:33

    Same for me… something like inconsisten accessibility ZDOMan.ZDOPeer FindPeer(ZNetPeer netPeer)
    I have a umod dedicated server. I tried changing it in the Steam path and there it works…
    Need tips too^^

    Reply
  4. Frosty says:
    February 22, 2021 at pm9:12

    Just for Linux Server operators who come here – I was not able to modify a DLL for the Windows version of the game, and run that in place of the Linux compiled DLL (the lazy way)
    However, I was able to download the DLL from my Linux server, rename it and put it in my game directory on my windows machine and use DNSPY to edit the linux version of the DLL following the steps above, and then move that back to the linux server and it worked.

    The path is {relative-to-steamcmd-install-dir}/valheim/valheim_server_Data/Managed/ and the file is still called assembly_valheim.dll.

    Good luck!

    Reply
  5. Mike says:
    February 23, 2021 at am1:30

    Doesnt seem to work with dedicated server on linux. As soon as I use the modified version the server wont start anymore with errors related to “not connected to steam”. 🙁

    Any ideas?

    Reply
  6. ad says:
    February 26, 2021 at am7:37

    Do you need to do this on the client side or only on the dedicated server?

    Reply
  7. MCC says:
    February 28, 2021 at pm4:33

    We just did it on the dedicated server.
    I read that you should only attempt to have each of your clients do it if doing the server alone first doesn’t help.

    For us, just doing the server .ddl edit made a night and day difference. I was initially a bit skeptical but if you are having issues take my word this fix is worth trying.

    I dont know how the dev team hasn’t put out a similar hotfix like this, to tide things over until a long term solution is found.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • League of Maidens Fishing System Guide (Santonia Isles)
  • Breathedge Special Achievements Guide
  • League of Maidens Crafting and Mining Guide
  • Rogue Heroes: Ruins of Tasos All Sphere Locations Guide
  • Persona 5 Strikers Fix for Infinite Loading & Black Screen Windowed Mode
©2021 SteamAH | Powered by SuperbThemes & WordPress

Welcome to SteamAH!

We'd like to use cookies to help analyse, improve and personalise our service to you. Using cookies we are able to provide better contextual advertising (which pays to run this website) and share anonymised statistics with our partners and potential clients.

You can find out more in our Privacy Policy and customise your settings below.

Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.

Click below to consent to the use of the cookie technology provided by vi (video intelligence AG) to personalize content and advertising. For more info please access vi's website.

Show purposesShow vendors
Privacy settings