Salut :)
C'est loc_4 qui contient le nombre de personnage sur la map
Je crois avoir repéré où se situe l'erreur car :
Je récapitule :
Case 226 -> MapComplementaryInformationsDataMessage ->2eme While 1er tour -> GameRolePlayActorInformations -> GameContextActorInformations ->EntityLook et EntityDispositionInformations
Hors, dans mon GameContextActorInformations j'ai :
Public Function deserializeAs_GameContextActorInformations(ByVal param1 As Dofus.DofusReader)
Me.contextualId = param1.ReadInt32()
Me.look = New EntityLook()
Me.look.deserialize(param1)
Dim _loc_2 As Integer = param1.ReadUnSignedshort()
Me.disposition = ProtocolTypeManager.getInstance(_loc_2)
Me.disposition.deserialize(param1)
Return Me
End Function
J'ai vu que _loc_2 a la bonne valeur, donc normalement mon problème vien de la deserialization de EntityDispositionInformations
Cependant impossible de trouver l'erreur :? ...
EntityDispositionInformation :
Public Class EntityDispositionInformations
Public cellId As Integer = 0
Public direction As UInteger = 1
Public Const protocolId As UInteger = 60
Public Function deserialize(ByVal param1 As Dofus.DofusReader)
Me.deserializeAs_EntityDispositionInformations(param1)
Return Me
End Function
Public Function deserializeAs_EntityDispositionInformations(ByVal param1 As Dofus.DofusReader)
Me.cellId = param1.ReadShort()
If (Me.cellId < -1 Or Me.cellId > 559) Then
Console.WriteLine("Forbidden value (" + Me.cellId + ") on element of EntityDispositionInformations.cellId.")
End If
Me.direction = param1.ReadByte()
If (Me.direction < 0) Then
Console.WriteLine("Forbidden value (" + Me.direction + ") on element of EntityDispositionInformations.direction.")
End If
Return Me
End Function
La voyez vous ?
Merci ;)