Script File Format
From Populous Wiki
Total File Size : 12552
There are 4096 unsigned short (UInt16) at the start of the file, the first of which is always set to the value of 12. This is the actual script.
Following this there are 512 pairs of unsigned int and int (UInt32 and Int32) which denote the vars used in the script.