Skip to content

Latest commit

 

History

History
112 lines (71 loc) · 3.02 KB

protocol-v2.1.5.md

File metadata and controls

112 lines (71 loc) · 3.02 KB

Agar.io Protocol Version 2.1.5

Agar.io has decided to change their protocol once again. Many extension makers are not happy with the update since all extensions that do not use the newest protocol are broken.

Server -> client

Init keys

First two authorisation tokens

new Int8Array([-2,6,0,0,0]);
new Int8Array([-1,-78,-86,42,-87]);

Server -> client

Every packet that comes from the server starts with a 1 byte header, which indicates the message type.

Index

Packet 18 | Reset playercells

Resets all playercells their location and id. Probably used to try to patch bots.

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 18
? ? ? ? ?

Packet 32 | Cell Ids

Resets all playercells their location and id. Probably used to try to patch bots.

offset Bytes Data Type Description Default
0 1 Uint32 Packet ID 32
? ? ? ? ?

Packet 49 | LeaderBoard

Top 10 dominating cells.

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 49
? ? ? ? ?

Packet 64 | Viewport

Tells the client his viewport

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 64
? ? ? ? ?

Packet 255 | Cells update

Tells the client his viewport

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 255
? ? ? ? ?

Client -> Server

Index

Packet 0 | Nickname / Spawn

Login with facebook / Google+ token

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 16
1 ? ? ? ?

Packet 16 | Update movement

Tells the server his direction

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 16
1 4 Int32 Position x ?
5 4 Int32 Position y ?
9 4 Int32 Token ?

Packet 102 | Facebook / Google+ token

Login with facebook / Google+ token

offset Bytes Data Type Description Default
0 1 Uint8 Packet ID 16
1 ? ? ? ?