bot4dofus / Datafus

📚🥚 The Dofus database and socket events in JSON files. Includes the source code and more...
https://discord.gg/kNHsFcbUGp
MIT License
50 stars 13 forks source link

[A2] Wrong attributes order #41

Open LucBerge opened 1 year ago

LucBerge commented 1 year ago

In the file https://github.com/bot4dofus/Datafus/blob/master/data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/connection/IdentificationMessage.as#L119

The correct serialization order is:

  1. autoconnect
  2. useCertificate
  3. useLoginToken
  4. version
  5. lang
  6. credentials
  7. serverId
  8. sessionOptionalSalt
  9. failedAttempts

Current order is (based on attributes declaration):

  1. version
  2. lang
  3. credentials
  4. serverId
  5. autoconnect
  6. useCertificate
  7. useLoginToken
  8. sessionOptionalSalt
  9. failedAttempts

events.json content:


    "IdentificationMessage": {
        "file": "data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/connection/IdentificationMessage.as",
        "id": "7755",
        "superclass": "NetworkMessage",
        "interfaces": [
            "INetworkMessage"
        ],
        "attributes": {
            "version": "Version",
            "lang": "String",
            "credentials": "Vector<VarInt,Byte>",
            "serverId": "Short",
            "autoconnect": "Boolean",
            "useCertificate": "Boolean",
            "useLoginToken": "Boolean",
            "sessionOptionalSalt": "VarLong",
            "failedAttempts": "Vector<Short,VarShort>"
        }
    },
kkuette commented 11 months ago

autoconnect, useCertificate, useLoginToken are wrapped at the beggining