Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Source CandyConquer BUG

Discussion on Source CandyConquer BUG within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 04/26/2019, 13:25   #16
 
liqicong's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 15
Received Thanks: 0
Quote:
Originally Posted by Super Aids View Post
A wild guess is that the virtual size of a packet doesn't match the actual size of the packet.

Ex.

Code:
{
    ushort: 6 (size)
    ushort: 2
    uint: 1
    uint  1
}
Has a virtual size of 6.

But a physical size of 12.

That means when the client receives the packet it will read the first 6 bytes and then the second half of the first uint will be a new packet to the client and will most likely be read as an invalid size since it obviously isn't the size of a packet.

Instead that packet should have been:

Code:
{
    ushort: 12 (size)
    ushort: 2
    uint: 1
    uint  1
}
---

That's also why I said debug and log the packets. Check what the server is actually sending to the client.



Definitely not a race condition, or at least it shouldn't be since it doesn't send anything across threads to the client during login which is when this happens.

And even when it does it's concurrent and shouldn't cause any race conditions.
Doesn't seem to be.

'10.0.0.2' has connected to the server.
PacketId: 1004 PhysicalSize: 52 VirtualSize: 52
PacketId: 1006 PhysicalSize: 124 VirtualSize: 124
PacketId: 1033 PhysicalSize: 36 VirtualSize: 36
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1110 PhysicalSize: 20 VirtualSize: 20
PacketId: 1016 PhysicalSize: 20 VirtualSize: 20
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 1025 PhysicalSize: 20 VirtualSize: 20
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 1103 PhysicalSize: 20 VirtualSize: 20
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 2064 PhysicalSize: 79 VirtualSize: 79
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1004 PhysicalSize: 93 VirtualSize: 93
'taoist' has successfully logged in...
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
'10.0.0.2' has disconnected from the server Reason: [N-6]The socket has been disconnected.
'10.0.0.2' has connected to the server.
PacketId: 1004 PhysicalSize: 52 VirtualSize: 52
PacketId: 1006 PhysicalSize: 124 VirtualSize: 124
PacketId: 1033 PhysicalSize: 36 VirtualSize: 36
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1110 PhysicalSize: 20 VirtualSize: 20
PacketId: 1016 PhysicalSize: 20 VirtualSize: 20
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 1008 PhysicalSize: 68 VirtualSize: 68
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 1109 PhysicalSize: 43 VirtualSize: 43
PacketId: 2030 PhysicalSize: 38 VirtualSize: 38
PacketId: 10014 PhysicalSize: 228 VirtualSize: 228
PacketId: 1009 PhysicalSize: 92 VirtualSize: 92
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 10017 PhysicalSize: 28 VirtualSize: 28
PacketId: 1040 PhysicalSize: 136 VirtualSize: 136
PacketId: 10010 PhysicalSize: 38 VirtualSize: 38
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
PacketId: 10010 PhysicalSize: 37 VirtualSize: 37
'10.0.0.2' has disconnected from the server Reason: [N-2]The client has been disconnected.

Quote:
Originally Posted by turk55 View Post
I remember having the same issue. I believe I fixed it by adding condition checks to the packet reader/writer class. As the source is now, there are no conditions.
It’s too difficult for me. can you tell me how to fix it? thank you.
liqicong is offline  
Old 04/26/2019, 18:50   #17
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
I already did.
turk55 is offline  
Old 04/26/2019, 19:39   #18
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
I'd say start by breakpointing the send method and slowly resume after each packet until it disconnects. Then you'll know exactly what packet disconnected you and you'll be able to peek at the data.

I can already tell it looks like something with 10010.
Super Aids is offline  
Old 04/27/2019, 04:02   #19
 
liqicong's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 15
Received Thanks: 0
Quote:
Originally Posted by Super Aids View Post
I'd say start by breakpointing the send method and slowly resume after each packet until it disconnects. Then you'll know exactly what packet disconnected you and you'll be able to peek at the data.

I can already tell it looks like something with 10010.
can't find it through breakpoint, this is why I'm here to ask for help.

The problem maybe in the turk55 said checks to the packet reader/writer class.
but I can't find any problems there.
liqicong is offline  
Old 04/27/2019, 09:26   #20
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by liqicong View Post
can't find it through breakpoint, this is why I'm here to ask for help.

The problem maybe in the turk55 said checks to the packet reader/writer class.
but I can't find any problems there.
Breakpoint here and check the packets send.



You will be able to see exactly what packet disconnected you.
Super Aids is offline  
Old 04/27/2019, 13:58   #21
 
liqicong's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 15
Received Thanks: 0
Quote:
Originally Posted by Super Aids View Post
Breakpoint here and check the packets send.



You will be able to see exactly what packet disconnected you.
'10.0.0.2' has connected to the server.
packetId:1004 Length:54
packetId:1006 Length:119
packetId:1033 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:2064 Length:51
packetId:1004 Length:95
'qqqqq' has successfully logged in...
'10.0.0.2' has disconnected from the server Reason: [N-6]The socket has been disconnected.
'10.0.0.2' has connected to the server.
packetId:1004 Length:54
packetId:1006 Length:119
packetId:1033 Length:36
packetId:10010 Length:36 ( ExchangeType.EnterMap )
'10.0.0.2' has disconnected from the server Reason: [N-2]The client has been disconnected.



I removed something else and rewrote packet 1004 1006 1033 10010 2064.

I can't fix it.
liqicong is offline  
Old 04/30/2019, 10:42   #22
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Check the data sent too and make sure it's not incorrect at any point.
Super Aids is offline  
Old 05/01/2019, 18:45   #23
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by liqicong View Post
'10.0.0.2' has connected to the server.
packetId:1004 Length:54
packetId:1006 Length:119
packetId:1033 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:10010 Length:36
packetId:2064 Length:51
packetId:1004 Length:95
'qqqqq' has successfully logged in...
'10.0.0.2' has disconnected from the server Reason: [N-6]The socket has been disconnected.
'10.0.0.2' has connected to the server.
packetId:1004 Length:54
packetId:1006 Length:119
packetId:1033 Length:36
packetId:10010 Length:36 ( ExchangeType.EnterMap )
'10.0.0.2' has disconnected from the server Reason: [N-2]The client has been disconnected.



I removed something else and rewrote packet 1004 1006 1033 10010 2064.

I can't fix it.
Check send encryption. Maybe if you're not re-creating the packet everytime you send (always sending the same packet), depending on how you're handling encryption, it might be encrypting the packet and if you send it again it will re-encrypt and then make a packet with great size.

Happened to me with MsgTalk ANSWER_OK and MsgNpcInfo.

This is an example with MsgNpcInfo that happened to me.

Code:
0000:  2A 00 EE 07 24 00 00 00  00 00 00 00 8E 01 88 01  | *...$........... |
0010:  96 00 02 00 00 00 00 00  00 00 00 00 00 00 00 00  | ................ |
0020:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  | ................ |
0030:  00 00                                             | .. |

0000:  4C 60 93 D8 FA 9C 85 B5  E3 EA 4F D0 5B E0 F4 91  | L`........O.[... |
0010:  F1 C0 41 CB 36 5F DA D9  09 C8 32 3E 3E 56 B6 FB  | ..A.6_....2>>V.. |
0020:  1F E8 44 83 8F 1B B8 5B  D4 AE 30 6D 08 C0 C5 81  | ..D....[..0m.... |
0030:  12 51                                             | .Q |
pintinho12 is offline  
Old 05/01/2019, 19:26   #24
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by pintinho12 View Post
Check send encryption. Maybe if you're not re-creating the packet everytime you send (always sending the same packet), depending on how you're handling encryption, it might be encrypting the packet and if you send it again it will re-encrypt and then make a packet with great size.

Happened to me with MsgTalk ANSWER_OK and MsgNpcInfo.

This is an example with MsgNpcInfo that happened to me.

Code:
0000:  2A 00 EE 07 24 00 00 00  00 00 00 00 8E 01 88 01  | *...$........... |
0010:  96 00 02 00 00 00 00 00  00 00 00 00 00 00 00 00  | ................ |
0020:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  | ................ |
0030:  00 00                                             | .. |

0000:  4C 60 93 D8 FA 9C 85 B5  E3 EA 4F D0 5B E0 F4 91  | L`........O.[... |
0010:  F1 C0 41 CB 36 5F DA D9  09 C8 32 3E 3E 56 B6 FB  | ..A.6_....2>>V.. |
0020:  1F E8 44 83 8F 1B B8 5B  D4 AE 30 6D 08 C0 C5 81  | ..D....[..0m.... |
0030:  12 51                                             | .Q |
It's not an encryption issue since you have no access to the encrypted buffer.

See:

Code:
		/// <summary>
		/// Sends a packet to the client.
		/// </summary>
		/// <param name="packet">The packet to send.</param>
		public void Send(byte[] packet)
		{
			if (Socket == null || packet == null)
			{
				return;
			}
			
			try
			{
				lock (Locks.NetworkLock)
				{
					byte[] pbuffer = packet;
					byte[] buffer = packet;
					
					if (Suffix != null)
					{
						Array.Resize(ref buffer, buffer.Length + Suffix.Length);
						System.Buffer.BlockCopy(Suffix, 0, buffer, buffer.Length - Suffix.Length, Suffix.Length);
						pbuffer = buffer;
					}
					
					if (Cryptography != null)
					{
						buffer = new byte[pbuffer.Length];
						System.Buffer.BlockCopy(pbuffer, 0, buffer, 0, buffer.Length);
						buffer = Cryptography.Encrypt(buffer);
					}
					
					if (Socket.Connected)
					{
						Socket.Send(buffer);
					}
				}
			}
			catch (Exception e)
			{
				#if DEBUG
				#if TRACE
				ErrorLogger.Log(StackTracing.GetCurrentMethod().Name, e);
				#else
				ErrorLogger.Log(Messages.Errors.FATAL_NETWORK_ERROR_TITLE, e);
				#endif
				#else
				Global.Message(e.ToString());
				#endif
				
				Disconnect(Messages.Errors.FATAL_NETWORK_ERROR_TITLE);
			}
		}
Super Aids is offline  
Old 05/08/2019, 04:54   #25
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Just a guess
pintinho12 is offline  
Old 01/21/2020, 14:46   #26
 
elite*gold: 52
Join Date: Jul 2008
Posts: 50
Received Thanks: 15
I am running into somewhat of a similar issue.

Steps to reproduce:
  1. Open two v5517 conquer clients (make sure you haven't logged in previously, this is important as it doesn't seem to happen otherwise)
  2. Log in two accounts simultaneously
  3. One account will successfully login while the second will disconnect with a "[N-5]The received packet's virtual size is too big." console message

Debugging shows that the disconnection happens after sending the key exchange packet as outlined here



This is strange because it ONLY happens with a newly opened Conquer client where you're logging in for the first time. Any help would be appreciated.
Relic is offline  
Old 01/23/2020, 03:26   #27
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by Virus7799 View Post
I am running into somewhat of a similar issue.

Steps to reproduce:
  1. Open two v5517 conquer clients (make sure you haven't logged in previously, this is important as it doesn't seem to happen otherwise)
  2. Log in two accounts simultaneously
  3. One account will successfully login while the second will disconnect with a "[N-5]The received packet's virtual size is too big." console message

Debugging shows that the disconnection happens after sending the key exchange packet as outlined here



This is strange because it ONLY happens with a newly opened Conquer client where you're logging in for the first time. Any help would be appreciated.
Will look into it at some point as it looks like it might be the key exchange that fails somehow.

Not entirely sure what and why (didn't look into it much.)

I've never come across this issue and many others hasn't either so not sure what's up now.
Super Aids is offline  
Thanks
1 User
Reply

Tags
candyconquer


Similar Threads Similar Threads
ProjectX V5 (Aka. Codename CandyConquer) - 5517 Source
10/11/2023 - CO2 PServer Guides & Releases - 87 Replies
CandyConquer is the base source for ProjectX V5 and it's based around patch 5517. It's currently playable, but has some missing features that would be up to you to implement. It uses MSSQL with a custom ORM implementation. The whole source is documented and kept in a user-friendly structure. It should be fairly easy to work with. It's not a fully featured or bugless source, but it's definitely better than my previous sources, both in terms of design, stability and maintainability. As it...
[SEARCH]Gold bug , castel bug ans speed repair bug for key bug or crystal bug
04/23/2020 - Browsergames - 3 Replies
Hi I search key or crystal bug :) I will give gold , castel and speed repair bug Please send me skype : ciechomek111
FCQMap_Convertor [CandyConquer]
07/21/2018 - CO2 PServer Guides & Releases - 2 Replies
it's Covert Map from TinyMaps to FCQMap_Convertor It will help you if you are working on Source CandyConquer 1- open FCQMap Convertor.exe 2- Choose Path Folder TinyMaps and Click to Ctrl+A to select All + Open Will Covert Auto into Folder Maps



All times are GMT +1. The time now is 17:42.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.