Actions

CONFIG00.DAT

From Populous Wiki

All numbers are stored in big-endian format!

Populous Configuration File Format

Block Format
Data Type Length Position (DEC) Description
BYTE 1 0x0 RESOLUTION
INT32 4 0x1
INT32 4 0x5
INT32 4 0x9
INT32 4 0x13
INT32 4 0x17
INT16 2 0x21
BYTE 1 0x23
INT16 2 0x24
INT32 4 0x26
INT32 4 0x30
BYTE 1 0x34
INT32 4 0x35
INT32 4 0x39
BYTE 1 0x43
BYTE 1 0x44
INT32 4 0x45
INT16 2 0x49
BYTE 1 0x51
INT32 4 0x52
INT32 4 0x56
INT32 4 0x60
INT32 4 0x64
INT32 4 0x68
INT32 4 0x72
INT32 4 0x76
INT32 4 0x80
BYTE 1 0x84
INT32 4 0x85
BYTE 1 0x89
BYTE 1 0x90
BYTE 1 0x91
INT32 4 0x92
INT32 4 0x96
INT32 4 0x100
BYTE 1 0x104
BYTE 1 0x105
BYTE 1 0x106
INT32 4 0x107
BYTE 1 0x111
BYTE 1 0x112
INT32 4 0x113
INT32 4 0x117
INT32 4 0x121
INT32 4 0x125
BYTE 1 0x129
BYTE 1 0x130
INT32 4 0x131
INT32 4 0x135
INT32 4 0x139
INT32 4 0x143
INT32 4 0x147
INT16 2 0x151
INT32 4 0x153
INT32 4 0x157
INT32 4 0x161
INT32 4 0x165
INT32 4 0x169
INT32 4 0x173
Total 177 Bytes

Resolution

Resolution is ordered from lowest possible 640x480 to highest possible that your monitor supports.

Example:

0 = 640 x 480

1 = 800 x 600

Any values higher than this purely depends on your monitor and you'll have to pull the resolution from there. It requires a bunch of complicated system calls and dll imports, a story left for another wiki.