Player Updating Issue In 317 Server & Clients
Well this is the known issue people have been having in the 317 protocol.
They can only update up to 80 players then the client will get a T2 error directing at the player updating opcode.
Issues I found:
Once you log into your server, teleport, or move into a region with more then 80 players your client t2's. Well you need to start loading up to 5 to 15 players at a time per cycle.
Then appearances send every cycle. Appearances should send when their was a change of clothing, look, item wearing, or if a player enters your region area.
Buffer size of the server should be set to 30,000 along with the client.
This is code from a non-renamed Client in the 317 protocol era
Code:
public static Class30_Sub2_Sub2 method396(int i, int j)
{
synchronized(aClass19_1415)
{
Class30_Sub2_Sub2 class30_sub2_sub2_2 = null;
if(i == 0 && anInt1411 > 0)
{
anInt1411--;
class30_sub2_sub2_2 = (Class30_Sub2_Sub2)aClass19_1414.method251();
} else
if(i == 1 && anInt1412 > 0)
{
anInt1412--;
class30_sub2_sub2_2 = (Class30_Sub2_Sub2)aClass19_1415.method251();
} else
if(i == 2 && anInt1413 > 0)
{
anInt1413--;
class30_sub2_sub2_2 = (Class30_Sub2_Sub2)aClass19_1416.method251();
}
if(class30_sub2_sub2_2 != null)
{
class30_sub2_sub2_2.anInt1406 = 0;
Class30_Sub2_Sub2 class30_sub2_sub2 = class30_sub2_sub2_2;
return class30_sub2_sub2;
}
}
if(j < 9 || j > 9)
throw new NullPointerException();
Class30_Sub2_Sub2 class30_sub2_sub2_1 = new Class30_Sub2_Sub2(false);
class30_sub2_sub2_1.anInt1406 = 0;
if(i == 0)
class30_sub2_sub2_1.aByteArray1405 = new byte[100];
else
if(i == 1)
class30_sub2_sub2_1.aByteArray1405 = new byte[5000];
else
class30_sub2_sub2_1.aByteArray1405 = new byte[30000];
return class30_sub2_sub2_1;
}
Notice at the bottom this:
Code:
if(i == 0)
class30_sub2_sub2_1.aByteArray1405 = new byte[100];
else
if(i == 1)
class30_sub2_sub2_1.aByteArray1405 = new byte[5000];
else
class30_sub2_sub2_1.aByteArray1405 = new byte[30000];
So just set the Buffer to 30,000 on both server and client. That should handle the issue with out any further complications.