@@ -1907,7 +1907,8 @@ public void ParseClientMessage(Client client, NetworkMessage inMessage, NetworkM
19071907 // the structure of a new packet. Because of that, it's better to log as much data as
19081908 // possible and continue.
19091909 Console . WriteLine ( ex . ToString ( ) ) ;
1910- Console . WriteLine ( $ "Current packet: [{ ( ( byte ) currentPacket ) . ToString ( "X2" ) } ]{ currentPacket } ") ;
1910+ Console . WriteLine ( $ "Current position: { inMessage . Position } ") ;
1911+ Console . WriteLine ( $ "Current packet: [{ ( ( byte ) currentPacket ) . ToString ( "X2" ) } :{ packetPosition } ]{ currentPacket } ") ;
19111912 Console . WriteLine ( $ "Last known packets: { string . Join ( " " , packets . Select ( p => "[" + ( ( byte ) p . PacketType ) . ToString ( "X2" ) + ":" + p . Position + "]" + p . PacketType ) . ToArray ( ) ) } ") ;
19121913 Console . WriteLine ( $ "Data: { BitConverter . ToString ( inMessage . GetData ( ) ) . Replace ( '-' , ' ' ) } ") ;
19131914 }
@@ -3816,7 +3817,8 @@ public void ParseServerMessage(Client client, NetworkMessage inMessage, NetworkM
38163817 // the structure of a new packet. Because of that, it's better to log as much data as
38173818 // possible and continue.
38183819 Console . WriteLine ( ex . ToString ( ) ) ;
3819- Console . WriteLine ( $ "Current packet: [{ ( ( byte ) currentPacket ) . ToString ( "X2" ) } ]{ currentPacket } ") ;
3820+ Console . WriteLine ( $ "Current position: { inMessage . Position } ") ;
3821+ Console . WriteLine ( $ "Current packet: [{ ( ( byte ) currentPacket ) . ToString ( "X2" ) } :{ packetPosition } ]{ currentPacket } ") ;
38203822 Console . WriteLine ( $ "Last known packets: { string . Join ( " " , packets . Select ( p => "[" + ( ( byte ) p . PacketType ) . ToString ( "X2" ) + ":" + p . Position + "]" + p . PacketType ) . ToArray ( ) ) } ") ;
38213823 Console . WriteLine ( $ "Data: { BitConverter . ToString ( inMessage . GetData ( ) ) . Replace ( '-' , ' ' ) } ") ;
38223824 }
0 commit comments