Hello guys ... i am trying to downgrade Trinity Source v 5220 to 5017 and i started with auth and game sockets then with connect , receive and disconnect auth server [ that`s includes BlowFish, GameKey etc ] .. then i moved to game [incoming] new connection after then i moved to receive ...
when its move to this part
of
i get this error message :
[Only registered and activated users can see links. Click Here To Register...]
and this error kills the client .. and i have no idea what shall i do in this case ..
any help with this ?
when its move to this part
Code:
int Len = BitConverter.ToInt32(arg1, position); position += 4;
Code:
public static void GameServer_AnnounceReceive(byte[] arg1, Interfaces.ISocketWrapper arg2)
{
try
{
Client.GameState Client = arg2.Connector as Client.GameState;
try
{
Client.Cryptography.Decrypt(arg1);
}
catch (Exception e) { Console.WriteLine(e); }
if (Client != null)
{
if (Client.Exchange)
{
try
{
Client.Exchange = false;
Client.Action = 1;
ushort position = 7;
uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4;
int JunkLen = BitConverter.ToInt32(arg1, position); position += 4; position += (ushort)JunkLen;
int Len = BitConverter.ToInt32(arg1, position); position += 4;
byte[] pubKey = new byte[Len];
for (int x = 0; x < Len; x++)
pubKey[x] = arg1[x + position];
string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(pubKey);
Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
}
catch (Exception e) { Console.WriteLine(e); Client.Socket.Disconnect(false); }
}
else
{
if (!Client.Exchange && Client.Action != 0)
Network.PacketHandler.HandleBuffer(arg1, Client);
}
}
}
catch (Exception e) { Console.WriteLine(e); }
}
[Only registered and activated users can see links. Click Here To Register...]
and this error kills the client .. and i have no idea what shall i do in this case ..
any help with this ?