Actions

Dat Format

From Populous Wiki

Revision as of 04:39, 10 December 2009 by IncaWarrior (talk | contribs) (→‎Objects)

Dat files are stored in the levels directory and contain the land structure and all the initial objects. These are kept in two blocks of data.

Land Structure

The land data starts at 0x0. Each point of land is a word/shortinteger one after the other. 0 is the lowest point which is water. 1028 is consided to be the highest as braves lower the land to build anything higher than that. 900 is easier for players to see when their resolution is 640 x 480.

Max (walkable) land height is around 1024.

Objects

The object data starts at 0x14043 and carries on for the rest of the file. Each object is 55 bytes containing all the object's information. Most of the block is not used. The next object starts after the first object and so on. The total number of objects should be less than 2000.

For more information visit Object Data