{"action":"created","issue":{"url":"https://api.github.com/repos/SNSA/agario-client2/issues/13","repository_url":"https://api.github.com/repos/SNSA/agario-client2","labels_url":"https://api.github.com/repos/SNSA/agario-client2/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/SNSA/agario-client2/issues/13/comments","events_url":"https://api.github.com/repos/SNSA/agario-client2/issues/13/events","html_url":"https://github.com/SNSA/agario-client2/issues/13","id":155132423,"number":13,"title":"Packet 255, ViewArea","user":{"login":"terjanq","id":11320896,"avatar_url":"https://avatars.githubusercontent.com/u/11320896?v=3","gravatar_id":"","url":"https://api.github.com/users/terjanq","html_url":"https://github.com/terjanq","followers_url":"https://api.github.com/users/terjanq/followers","following_url":"https://api.github.com/users/terjanq/following{/other_user}","gists_url":"https://api.github.com/users/terjanq/gists{/gist_id}","starred_url":"https://api.github.com/users/terjanq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terjanq/subscriptions","organizations_url":"https://api.github.com/users/terjanq/orgs","repos_url":"https://api.github.com/users/terjanq/repos","events_url":"https://api.github.com/users/terjanq/events{/privacy}","received_events_url":"https://api.github.com/users/terjanq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SNSA/agario-client2/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":{"login":"heroandtn3","id":2512088,"avatar_url":"https://avatars.githubusercontent.com/u/2512088?v=3","gravatar_id":"","url":"https://api.github.com/users/heroandtn3","html_url":"https://github.com/heroandtn3","followers_url":"https://api.github.com/users/heroandtn3/followers","following_url":"https://api.github.com/users/heroandtn3/following{/other_user}","gists_url":"https://api.github.com/users/heroandtn3/gists{/gist_id}","starred_url":"https://api.github.com/users/heroandtn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroandtn3/subscriptions","organizations_url":"https://api.github.com/users/heroandtn3/orgs","repos_url":"https://api.github.com/users/heroandtn3/repos","events_url":"https://api.github.com/users/heroandtn3/events{/privacy}","received_events_url":"https://api.github.com/users/heroandtn3/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-05-16T22:01:11Z","updated_at":"2016-05-17T16:00:47Z","closed_at":null,"body":"[255,33,0,0,0,240,18,64,MinX::Float64, MnY::Float64, MaxX::Float64, MaxY::Float64]\r\n\r\n255 - packet ID\r\n33,0,0,0 -> Uint32 -> packet length (after).\r\n240, 18, 64 -> SubId for ViewArea (18 = 33 - 15 always)\r\n\r\nif(MaxX - MinX > 14E3 && MaxY - MinY > 14E3) game.offsetX = 7071 + Minx, game.offsetY = 7071 + MaxY"},"comment":{"url":"https://api.github.com/repos/SNSA/agario-client2/issues/comments/219765680","html_url":"https://github.com/SNSA/agario-client2/issues/13#issuecomment-219765680","issue_url":"https://api.github.com/repos/SNSA/agario-client2/issues/13","id":219765680,"user":{"login":"heroandtn3","id":2512088,"avatar_url":"https://avatars.githubusercontent.com/u/2512088?v=3","gravatar_id":"","url":"https://api.github.com/users/heroandtn3","html_url":"https://github.com/heroandtn3","followers_url":"https://api.github.com/users/heroandtn3/followers","following_url":"https://api.github.com/users/heroandtn3/following{/other_user}","gists_url":"https://api.github.com/users/heroandtn3/gists{/gist_id}","starred_url":"https://api.github.com/users/heroandtn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroandtn3/subscriptions","organizations_url":"https://api.github.com/users/heroandtn3/orgs","repos_url":"https://api.github.com/users/heroandtn3/repos","events_url":"https://api.github.com/users/heroandtn3/events{/privacy}","received_events_url":"https://api.github.com/users/heroandtn3/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T16:00:47Z","updated_at":"2016-05-17T16:00:47Z","body":"I think all fields should have 1, 2, or 4 bytes, while 240, 18, 64 is 3 bytes so it's invalid IMO.\r\n\r\nBtw, this is what I got from @q3wzeck:\r\n\r\n```JavaScript\r\n255: (data) => {\r\n        //logger.debug('World update:', data);\r\n        var buf = new Buffer(data);\r\n        var packet    = new Packet(buf);\r\n        var packet_id = packet.readUInt8();\r\n        var packet_subId = packet.readUInt8();\r\n\r\n        if (packet_subId == 43) {\r\n\r\n          packet.offset += 6;\r\n          var min_x = packet.readFloat64LE();\r\n          var min_y = packet.readFloat64LE();\r\n          var max_x = packet.readFloat64LE();\r\n          var max_y = packet.readFloat64LE();\r\n\r\n          this.emit('mapSize', min_x, min_y, max_x, max_y);\r\n\r\n        };\r\n\r\n\r\n        this.emit('worldUpdate', data);\r\n      }\r\n```\r\n"}}