Planet files

Planet ( .BINBEAVER ) files are used to store elevation, geological data and initial state of climate and water related variables. Data in the file is divided into 2 parts. First part is files header which describes properties of the world. After the header there is a list of all existing tiles. Each tile is represented as a struct. Bitwise descriptions of both parts can be found below.

If there are multiple tiles with the same coordinates, the last one will overwrite all previous tiles. If a tile is missing, the behaviour is unspecified, altough most likely the tile will be simply initialized with zeroes.

File header

Tile data

Endianess All data is little-endian.

Getting a list of tile coordinates If for some reason the modder wants to use their own coordinates, they can be created using code equivalent to the following: