Open sharpwg1337 opened 6 months ago
I don't know if you resolved your issue, this fix worked for me:
You need to update the following file src/common/field_sizes.h
and change the line 21 (variable MAX_PACKET_SIZE) to a greater value.
Here is a patch for it
diff --git a/src/common/field_sizes.h b/src/common/field_sizes.h
index de46a1f..ed493bc 100644
--- a/src/common/field_sizes.h
+++ b/src/common/field_sizes.h
@@ -18,7 +18,7 @@
#ifndef INCLUDED_FIELD_SIZES_TYPES
#define INCLUDED_FIELD_SIZES_TYPES
-const unsigned MAX_PACKET_SIZE = 3072;
+const unsigned MAX_PACKET_SIZE = 65535;
const unsigned MAX_WOL_GAMERES_PACKET_SIZE = 65535;
const unsigned MAX_NORMAL_TYPE = 0xffff;
const unsigned MAX_FILE_TYPE = 0xffff;
With this change, my server is running smoothly since the last two weeks.
Greetings,
I was wondering if there was any way to discern what could cause "Connection has been interrupted" randomly in-game (but VERY frequently. Always within 10 minutes of the game start, usually within 5).
This is version 1.13c (client and server).
I have gotten it in several areas, across several characters, and it "seems" to be random. I don't seem to be doing anything specific when it happens.
That is, is this a very tricky one to solve or is there some log file that would contain more specific information? I have looked at my D2GS logs (although I am not sure if this is a PVPGN problem or D2GS problem).
In D2GS.log you can see I enter a game, play for a while, then it closes the game:
The only "error" I can see is:
D2GSSendNetData: send failed, code: 10054 (twice)
All the services are running on the same machine. I am connecting to the realm locally as well, at the moment.
The only mod I have is BaseMod which is loaded from a custom MPQ (a large portion of the features are disabled) and I also modified the Patch_D2.mpq bin files to adjust some drop rates.
I found this in d2dbs.log under PVPGN:
May 01 11:11:21 [error] pvpgn::packet_get_size: packet has bad size 3136 May 01 11:11:21 [error] pvpgn::packet_get_size: packet has bad size 3136
The above seems to be the cause. Is there any fix. I compiled this about a week ago using the develop branch at the time.