issy123 / agario-protocol

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

Protocol 21 #27

Open xN3BULA opened 5 years ago

xN3BULA commented 5 years ago

idk whats new but its a thing SERVER SECRET IS 30503

Barbosik commented 5 years ago

All almost the same

sv_protocol 21 sv_secret 0x00007728 sv_versionProto "12.0.1" sv_versionClient "3.5.4"

added new messages for team mode:

0xC0 - player count on the server

Offset Size Description
0 byte =0xC0
1 uint16 player count

0xD1 - teams game result

Offset Size Description
0 byte =0xD1
1 uint32 unknown1
5 byte unknown2
6 uint32 team count
10 float64 percent for team 0
... float64 percent for team N

changed 0x32 - teams leaderboard message

Offset Size Description
0 byte =0xD1
1 uint32 team count
5 teamrecord team 0 info
... teamrecord team N info

teamrecord

Offset Size Description
0 float32 team percent (0...1)
4 byte team color R component
5 byte team color G component
6 byte team color B component

Added new type for message 0xB3 - match event:

Offset Size Description
0 byte =0xB3
1 byte eventType
2 string prey name (zero terminated utf8)
... string hunter name (zero terminated utf8)

eventType

Type Description
0 {hunter} ate {prey}
1 {prey} got eaten by a virus
2 {prey} got eaten by unsafe area
3 {prey} is no more
4 {prey} disconnected?

Also, skin name is not send for owned cells anymore, it should be taken from login_response proto message (see login_response.userSettings record with key==selected_skin_id).

Barbosik commented 5 years ago

I didn't find what means fields unknown1 and unknown2 in the message 0xD1 (teams game result). Any ideas are welcome.

Values that I seen: unknown1 = 0, unknown2 = 0 unknown1 = 1, unknown2 = 1 unknown1 = 2, unknown2 = 0 unknown1 = 2, unknown2 = 1

Mistik commented 2 years ago

I didn't find what means fields unknown1 and unknown2 in the message 0xD1 (teams game result). Any ideas are welcome.

Values that I seen: unknown1 = 0, unknown2 = 0 unknown1 = 1, unknown2 = 1 unknown1 = 2, unknown2 = 0 unknown1 = 2, unknown2 = 1

did you ever figure it out?