issy123 / agario-protocol

Protocol for agar.io version 2.1.5
8 stars 2 forks source link

Packet 64 #7

Open terjanq opened 8 years ago

terjanq commented 8 years ago

Packet 64 isn't used anymore. Seems to be all data is included in packet 255 though.

wishstorage commented 8 years ago

Why isn`t used!? I got it! Example: (server -> client) data: ff:2b:00:00:00:f0:1c:40:9f:58:a5:f7:f2:be:ba:c0:3b:69:e2:62:bb:d2:c0:c0:49:fd:81:e7:5a:71:bc:40:32:fa:d4:8a:92:cb:b5:40:00:00:00:00:32:2e:31:2e:36:00

wishstorage commented 8 years ago

Sorry, it was 255 packet

EnTerr commented 8 years ago

It's used but encapsulated in compression envelope 0xFF, see:

ff:                         type 255, compressed
2b:00:00:00:                uncompressed content size = 0x2b = 43
f0:1c:                      compression prefix, skip 43 (i.e. rest)
40:                         real content, type 64
9f:58:a5:f7:f2:be:ba:c0:    float64
3b:69:e2:62:bb:d2:c0:c0:
49:fd:81:e7:5a:71:bc:40:
32:fa:d4:8a:92:cb:b5:40:
00:00:00:00:
32:2e:31:2e:36:00           '2.1.6\x00'  NB! now UTF8 (before ~utf16)