Dat Format: Difference between revisions
From Populous Wiki
IncaWarrior (talk | contribs) |
IncaWarrior (talk | contribs) |
||
Line 3: | Line 3: | ||
==Land Structure== | ==Land Structure== | ||
The land data starts at 0x0. Each point of land is a word | The land data starts at 0x0. Each point of land is a word(two bytes) one after the other. 0 is the lowest point which is water. 1028 is considered to be the highest as [[brave]]s 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. | Max (walkable) land height is around 1024. |
Revision as of 05:46, 10 December 2009
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(two bytes) one after the other. 0 is the lowest point which is water. 1028 is considered 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