Skip to content
Menu
SteamAH
  • Cheat
  • Guide
  • Tips
  • Game Lists
  • Privacy Policy
  • Abuse
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 Simple Commands for FPS Boost

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:

  • Valheim How to Fix Dedicated Server Desync/Lag (uMod)
  • Valheim Dedicated Game Server (uMod Support)
  • Valheim Player with More than 10 Players (uMod)
  • Valheim How to Connect to Servers By IP
  • Valheim Backup and Restore World or Character Data Guide

13 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. yer says:
      April 1, 2021 at pm1:07

      dont edit the whole thing, or click edit IL Code and just replace the number, then save as. no need to compile

      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
  8. Ladyhawke says:
    March 8, 2021 at am6:47

    Many thanks for this tip, just compiled the .dll, now we see if it will work like intended. Nevertheless, since I don’t have a clue of C#, this manual was very much appreciated and relatively easy to follow.

    Reply
  9. Richard says:
    September 19, 2021 at am2:08

    Please help.
    It is now the Hearth and Home update.
    I got as far as the ZDOMan instance.
    There is NO m_dataPerSec

    Reply
    1. pankdir says:
      September 26, 2021 at am10:46

      I’m also getting the disappearance of m_dataPerSec please someone help!

      Reply

Leave a Reply Cancel reply

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

Disclaimer

All content cited is derived from their respective sources. If you think we have used your content without permission, Please go to the Abuse Page to contact us and we will be taking it seriously.

Recent Posts

  • Dead Space How to Fix Chapter 10 Cutscene Bug
  • No One Survived The Best Locations For Loot
  • Hi-Fi RUSH Wall of Fame Objectives Guide
  • A Wife and Mother Walkthrough (Updated V0.180)
  • Revita All Fishing Info Guide
©2023 SteamAH | Powered by SuperbThemes & WordPress