Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME
Here's a quote from my bug report to Valheim devs: "Hello everyone, I want to first say that I may have found a temporary solution to an issue plaguing the souls of a lot of Valheim vikings... I recently discovered a "fix" for anyone that has "ZRPC Timeout" Disconnection issues.
If you used DnSpy, you may already be away of the data limitations Valheim has, and may have already changed the data. This method is very very similar.
First: Download dnSpy Second: Open dnSpy Third: Go to File>Open>Find your Valheim installation directory> select valheim.exe
Fourth: notice the long list of the library of code Valheim uses> click the arrow to the left of the name "assembly_valheim"
Fifth: Click the arrow to the left of "{ }" Sixth: scroll down to "ZRpc", and click the arrow Seventh: scroll down to "m_timeout", and Right Click> Edit Class> "private static float m_timeout = 30f;" is the DEFAULT. Here lies the ISSUE. Some PCs are having trouble connecting within "30" seconds. Change the "30f" to something bigger (i.e. 300f)
Your Welcome!"
I really hope this helps everyone else. I did NOT test this for dedicated servers. You may have to do the same thing for your Valheim Dedicated Server, as this was just a clientsided fix
If you used DnSpy, you may already be away of the data limitations Valheim has, and may have already changed the data. This method is very very similar.
First: Download dnSpy Second: Open dnSpy Third: Go to File>Open>Find your Valheim installation directory> select valheim.exe
Fourth: notice the long list of the library of code Valheim uses> click the arrow to the left of the name "assembly_valheim"
Fifth: Click the arrow to the left of "{ }" Sixth: scroll down to "ZRpc", and click the arrow Seventh: scroll down to "m_timeout", and Right Click> Edit Class> "private static float m_timeout = 30f;" is the DEFAULT. Here lies the ISSUE. Some PCs are having trouble connecting within "30" seconds. Change the "30f" to something bigger (i.e. 300f)
Your Welcome!"
I really hope this helps everyone else. I did NOT test this for dedicated servers. You may have to do the same thing for your Valheim Dedicated Server, as this was just a clientsided fix
2:13 pm, August 30, 2021
Element47 replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 28, 2021 @ 5:49:22 pm PDT
it is not "connecting within 30 seconds". its 30 seconds in which the server does not recieve anything from the client. set to to whatever you want just keep in mind that the value is not set arbitrarily, its there for a reason. and just like the data rate adjustment that did just move the issue down to the buffer, changing this may have unintended consequences beyond what is easily apparent.
2:13 pm, August 30, 2021
0 comments
0 likes
Wariat117 replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 28, 2021 @ 10:37:23 pm PDT
only the pinging system is related to this value changing this may have unintended consequences beyond what is easily apparent.
if the pings fail for 30s then it disconnects the player
If he raises it over 30s... then simply it will ping more time and game will accept bigger delays
I wonder how it's possible to fail to receive 30 pings in a row o-O (apparently it pings once per second)
2:13 pm, August 30, 2021
0 comments
0 likes
Wonay replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 30, 2021 @ 12:09:33 pm PDT
Anyone has found a solution to play with GeforceNow ?
2:13 pm, August 30, 2021
0 comments
0 likes
Alaena replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 31, 2021 @ 7:25:24 am PDT
I wonder how this should be done on a hosted environment. Those dont really have the .EXE file
2:13 pm, August 30, 2021
0 comments
0 likes
Wariat117 replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 31, 2021 @ 7:28:01 am PDT
my valheim dedicated server has .exe I wonder how this should be done on a hosted environment. Those dont really have the .EXE file
but anyway, the change is done in .dll not .exe
2:13 pm, August 30, 2021
0 comments
0 likes
Alaena replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 31, 2021 @ 7:38:40 am PDT
mm.. found it.. but trying to compile that throws a lot of compilation errors.. shame really, up until now, the game has been great.my valheim dedicated server has .exe I wonder how this should be done on a hosted environment. Those dont really have the .EXE file
but anyway, the change is done in .dll not .exe
2:13 pm, August 30, 2021
0 comments
0 likes
Wariat117 replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME March 31, 2021 @ 8:21:59 am PDT
probably depends on program you usemm.. found it.. but trying to compile that throws a lot of compilation errors.. shame really, up until now, the game has been great. my valheim dedicated server has .exe
but anyway, the change is done in .dll not .exe
when you decompile whole class then it's (weirdly) common for bunch of errors to come
in case of dnspy you can "edit method" to edit only 1
in case of editting constructor you need to remove weird red text .ctor()
But I personally prefer to edit methods Awake() or Start() and there edit fields
2:13 pm, August 30, 2021
0 comments
0 likes
kimmo replied to Disconnection via ZRpc - Version 0.148.6 SOLUTION DISCOVERED BY ME August 30, 2021 @ 6:54:58 am PDT
hey mate,
just felt the need to comment here and thank you for making this post, seriously for the past 5 days ive tried every suggestion googled showed and valheim's subreddit but nothing managed to work
had to host the server for my brothers & lag relentlessly while playing because i couldnt join their server
THANK YOUUUU!!!!!!!!
just felt the need to comment here and thank you for making this post, seriously for the past 5 days ive tried every suggestion googled showed and valheim's subreddit but nothing managed to work
had to host the server for my brothers & lag relentlessly while playing because i couldnt join their server
THANK YOUUUU!!!!!!!!
2:13 pm, August 30, 2021
0 comments
0 likes