ClitherProject / Slither.io-Protocol

The Documented Slither.io Protocol
151 stars 37 forks source link

Update Protocol.md #59

Closed RowanHarley closed 8 years ago

RowanHarley commented 8 years ago

After looking throught the console, I seen the variable protocol_version. When I typed it in I got 2

Mat2095 commented 8 years ago

I'm pretty sure it should be 8...

RowanHarley commented 8 years ago

Hmmm... When you open the page you get protocol version 2 but after playing a match it turns to 8

Mat2095 commented 8 years ago

Okay, now I get it: The (official) client can communicate in multiple protocol_versions. The server tells its protocol_version in the init-packet, but before that all variables have hard-coded default-values, e.g. 2 for the version. Since they don't have any use any more, we don't care about them