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.
First two authorisation tokens
new Int8Array([-2,6,0,0,0]);
new Int8Array([-1,-78,-86,42,-87]);
Every packet that comes from the server starts with a 1 byte header, which indicates the message type.
- Packet 18 | Reset playercells
- Packet 32 | Cell Ids
- Packet 49 | LeaderBoard
- Packet 64 | Viewport
- Packet 255 | Cells update
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 |
? | ? | ? | ? | ? |
offset | Bytes | Data Type | Description | Default |
---|---|---|---|---|
0 | 1 | Uint32 | Packet ID | 32 |
? | ? | ? | ? | ? |
Top 10 dominating cells.
offset | Bytes | Data Type | Description | Default |
---|---|---|---|---|
0 | 1 | Uint8 | Packet ID | 49 |
? | ? | ? | ? | ? |
Tells the client his viewport
offset | Bytes | Data Type | Description | Default |
---|---|---|---|---|
0 | 1 | Uint8 | Packet ID | 64 |
? | ? | ? | ? | ? |
Tells the client his viewport
offset | Bytes | Data Type | Description | Default |
---|---|---|---|---|
0 | 1 | Uint8 | Packet ID | 255 |
? | ? | ? | ? | ? |
Login with facebook / Google+ token
offset | Bytes | Data Type | Description | Default |
---|---|---|---|---|
0 | 1 | Uint8 | Packet ID | 16 |
1 | ? | ? | ? | ? |
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 | ? |
Login with facebook / Google+ token
offset | Bytes | Data Type | Description | Default |
---|---|---|---|---|
0 | 1 | Uint8 | Packet ID | 16 |
1 | ? | ? | ? | ? |