Actions

Populous Configuration File: Difference between revisions

From Populous Wiki

No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
|BYTE
|BYTE
|1
|1
|0x0
|0
|RESOLUTION
|RESOLUTION
|-
|-
|INT32
|INT32
|4
|4
|0x1
|1
|-
|-
|INT32
|INT32
|4
|4
|0x5
|5
|-
|-
|INT32
|INT32
|4
|4
|0x9
|9
|-
|-
|INT32
|INT32
|4
|4
|0x13
|13
|-
|-
|INT32
|INT32
|4
|4
|0x17
|17
|-
|-
|INT16
|INT16
|2
|2
|0x21
|21
|-
|-
|BYTE
|BYTE
|1
|1
|0x23
|23
|-
|-
|INT16
|INT16
|2
|2
|0x24
|24
|-
|-
|INT32
|INT32
|4
|4
|0x26
|26
|-
|-
|INT32
|INT32
|4
|4
|0x30
|30
|-
|-
|BYTE
|BYTE
|1
|1
|0x34
|34
|-
|-
|INT32
|INT32
|4
|4
|0x35
|35
|-
|-
|INT32
|INT32
|4
|4
|0x39
|39
|-
|-
|BYTE
|BYTE
|1
|1
|0x43
|43
|-
|-
|BYTE
|BYTE
|1
|1
|0x44
|44
|-
|-
|INT32
|INT32
|4
|4
|0x45
|45
|-
|-
|INT16
|INT16
|2
|2
|0x49
|49
|-
|-
|BYTE
|BYTE
|1
|1
|0x51
|51
|-
|-
|INT32
|INT32
|4
|4
|0x52
|52
|-
|-
|INT32
|INT32
|4
|4
|0x56
|56
|-
|-
|INT32
|INT32
|4
|4
|0x60
|60
|-
|-
|INT32
|INT32
|4
|4
|0x64
|64
|-
|-
|INT32
|INT32
|4
|4
|0x68
|68
|-
|-
|INT32
|INT32
|4
|4
|0x72
|72
|-
|-
|INT32
|INT32
|4
|4
|0x76
|76
|-
|-
|INT32
|INT32
|4
|4
|0x80
|80
|-
|-
|BYTE
|BYTE
|1
|1
|0x84
|84
|-
|-
|INT32
|INT32
|4
|4
|0x85
|85
|-
|-
|BYTE
|BYTE
|1
|1
|0x89
|89
|-
|-
|BYTE
|BYTE
|1
|1
|0x90
|90
|-
|-
|BYTE
|BYTE
|1
|1
|0x91
|91
|-
|-
|INT32
|INT32
|4
|4
|0x92
|92
|-
|-
|INT32
|INT32
|4
|4
|0x96
|96
|-
|-
|INT32
|INT32
|4
|4
|0x100
|100
|-
|-
|BYTE
|BYTE
|1
|1
|0x104
|104
|-
|-
|BYTE
|BYTE
|1
|1
|0x105
|105
|-
|-
|BYTE
|BYTE
|1
|1
|0x106
|106
|-
|-
|INT32
|INT32
|4
|4
|0x107
|107
|-
|-
|BYTE
|BYTE
|1
|1
|0x111
|111
|-
|-
|BYTE
|BYTE
|1
|1
|0x112
|112
|-
|-
|INT32
|INT32
|4
|4
|0x113
|113
|-
|-
|INT32
|INT32
|4
|4
|0x117
|117
|-
|-
|INT32
|INT32
|4
|4
|0x121
|121
|-
|-
|INT32
|INT32
|4
|4
|0x125
|125
|-
|-
|BYTE
|BYTE
|1
|1
|0x129
|129
|SOUND
|-
|-
|BYTE
|BYTE
|1
|1
|0x130
|130
|-
|-
|INT32
|INT32
|4
|4
|0x131
|131
|-
|-
|INT32
|INT32
|4
|4
|0x135
|135
|-
|-
|INT32
|INT32
|4
|4
|0x139
|139
|-
|-
|INT32
|INT32
|4
|4
|0x143
|143
|-
|-
|INT32
|INT32
|4
|4
|0x147
|147
|-
|-
|INT16
|INT16
|2
|2
|0x151
|151
|GAMMA
|GAMMA
|-
|-
|INT32
|INT32
|4
|4
|0x153
|153
|-
|-
|INT32
|INT32
|4
|4
|0x157
|157
|-
|-
|INT32
|INT32
|4
|4
|0x161
|161
|-
|-
|INT32
|INT32
|4
|4
|0x165
|165
|-
|-
|INT32
|INT32
|4
|4
|0x169
|169
|-
|-
|INT32
|INT32
|4
|4
|0x173
|173
|-
|-
|Total
|Total
Line 252: Line 253:
|}
|}
== Resolution ==
== Resolution ==
Resolution is ordered from lowest possible 640x480 to highest possible that your monitor supports.
Resolution is ordered from lowest possible 64480 to highest possible that your monitor supports.


Example:
Example:
Line 261: Line 262:


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.
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.
== Sound ==
The volume starts at 0 and ends at 127 which is 100%
== Gamma ==

Latest revision as of 23:27, 8 October 2014

All numbers are stored in big-endian format!

Block Format
Data Type Length Position (DEC) Description
BYTE 1 0 RESOLUTION
INT32 4 1
INT32 4 5
INT32 4 9
INT32 4 13
INT32 4 17
INT16 2 21
BYTE 1 23
INT16 2 24
INT32 4 26
INT32 4 30
BYTE 1 34
INT32 4 35
INT32 4 39
BYTE 1 43
BYTE 1 44
INT32 4 45
INT16 2 49
BYTE 1 51
INT32 4 52
INT32 4 56
INT32 4 60
INT32 4 64
INT32 4 68
INT32 4 72
INT32 4 76
INT32 4 80
BYTE 1 84
INT32 4 85
BYTE 1 89
BYTE 1 90
BYTE 1 91
INT32 4 92
INT32 4 96
INT32 4 100
BYTE 1 104
BYTE 1 105
BYTE 1 106
INT32 4 107
BYTE 1 111
BYTE 1 112
INT32 4 113
INT32 4 117
INT32 4 121
INT32 4 125
BYTE 1 129 SOUND
BYTE 1 130
INT32 4 131
INT32 4 135
INT32 4 139
INT32 4 143
INT32 4 147
INT16 2 151 GAMMA
INT32 4 153
INT32 4 157
INT32 4 161
INT32 4 165
INT32 4 169
INT32 4 173
Total 177 Bytes

Resolution

Resolution is ordered from lowest possible 64480 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.

Sound

The volume starts at 0 and ends at 127 which is 100%

Gamma