X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=doc%2Fprotocol;h=f194d77d3ce28a7bcb17ab676efb87bb705ec860;hb=e40a5620036f6887828fe547588125f08ff718be;hp=025a13d1b09e784d291ea0398e1503be9ffc312e;hpb=33b37e7242e4cbfa76e4a0d6e5bb54223b541162;p=blank.git diff --git a/doc/protocol b/doc/protocol index 025a13d..f194d77 100644 --- a/doc/protocol +++ b/doc/protocol @@ -30,7 +30,8 @@ packu 2 16bit unsigned int representing a float value normalized to it can be unpacked by dividing by 65535 vec3n 6 3x packn vec3u 6 3x packu -quat 8 4x packn float +quat 8 2bit index of largest component, a 2bit padding, then 3x 20bit small components in xyzw + order mapped from [-0.7072,0.7072] to [0,1048574] (with largest omitted) entity state 42 [ 0] vec3i chunk pos (there's a variation where this is a vec3b) [12] vec3u block pos by 16, [18] vec3 velocity, @@ -169,6 +170,10 @@ Chunk Begin ----------- Sent by the server to inform the client of an upcoming chunk transmission. +The client may send this packet to the server to re-request a chunk +transmission. In that case fields other than the chunk coordinates are +ignored. Also, the server may choose not to resend the chunk (e.g. if the +player is too far away from it). Code: 9 Payload: