Actions

Header Format

From Populous Wiki

Revision as of 17:24, 4 May 2006 by TedTycoon (talk | contribs)

The Header (.hdr) is a Populous Level File which contains the level's attrubutes.

Spells

These 3 bytes starting at byte 0 contain the spells blue starts off with. If you convert one of these bytes into binary then you can see all the spells it holds and there on or off value.

Byte 1

If you convert 27 from hex to binary then you will get these values. The last two bytes do not contain anything, leave at 1. Blast and Swarm should be on.

00100111 ||||||----Blast |||||-----Lightning ||||------Tornado |||-------Swarm ||--------Invisibility |---------Hypnotise

Byte 2

If you convert 54 from hex to binary then you will get these values. Earthquake, Land Bridge and Erode should be on.

01010100 ||||||||----Firestorm |||||||-----Ghost Army ||||||------Erode |||||-------Swamp ||||--------Land Bridge |||---------Angel of Death ||----------Earthquake |-----------Flatten

Byte 3

If you convert F4 from hex to binary then you will get these values. The bytes that contain nothing should be left at 1. Nothing should be on.

11110100

   | ||----Volcano
   | |-----Convert
   |
   |-------Magic Shield

Buildings

Buildings are just like spells. But they are kept in two bytes starting at byte 5.

Byte 1

If you convert 0D from hex to binary then you will get these values. The bytes that contain nothing should be left at 1. Hut and Guard Tower should be on.

00001101 ||||| | ||||| |-----Hut ||||| ||||| ||||--------Guard Tower |||---------Temple ||----------Spy Hut |-----------Warrior Hut

Byte 2

If you convert FF from hex to binary then you will get these values. The bytes that contain nothing should be left at 1. Firewarrior Hut, Boat Hut and Balloon Hut should be on.

11111111 | | |----Firewarrior Hut | | | | | | | | | |---------Boat Hut | |-----------Balloon Hut

Spells Not Charging

...

Fog of War and God Mode

This is kept in 1 byte stating at byte 98.

00 - Nothing 01 - Fog of War 02 - God Mode 03 - Fog of War and God Mode

Landscape and Tree Style

The Landscape Style is 1 byte starting at byte 96 and the Tree Style is 1 byte starting at byte 97.

There are 36 landscape styles. In hex that is from 00 to 24.

There are 5 tree styles. In hex it goes 00, 03, 04, 05, 06.

Max Tribes

Maximum Tribes sets what tribes should appear on the level. In Single Player you must set this to the last colour on your level or 03. (Blue, Red, Yellow, Green). In Multiplayer you set this to how many players the level is. It is 1 byte long and starts at byte 88.

AI Scripts

AI Scripts are 3 bytes long and starts at byte 88. Each byte is for each colour (Red, Yellow, Green). You must type the script number n hex for it to link to that script. (Cpscr010.dat = 010 = 0A)

Allies

Allies are kept in 4 bytes staring at byte 89.

Blue = 01 Red = 02 Yellow = 04 Green = 08

An ally equals the two colours together. To make yellow and blue allies you would add Blue(01) and Yellow(04) together which makes 05. Then put 05 for yellow and blue (05 02 05 08).

Level Name

...

Markers

...