Page 1 of 1

A few questions about serialization and data formats

PostPosted: Sat Feb 09, 2013 22:24
by rarkenin
I hope I haven't missed something in the doc folder, so here goes.

  • Is v3f1000 3 32-bit integers, that when divided by 1000, yield a floating point value, such as a player position? Is their endianness machine-specific?
  • Where can I find annotated samples of the serialization formats for inventories, as well as node/object definitions?

PostPosted: Sun Feb 10, 2013 22:13
by doserj
rarkenin wrote:Is v3f1000 3 32-bit integers, that when divided by 1000, yield a floating point value, such as a player position?


yes.

Is their endianness machine-specific?


no. data is serialized in big-endian format.

Where can I find annotated samples of the serialization formats for inventories, as well as node/object definitions?


I am afraid you will probably have to look at the sourcecode for now.