Actions

Difference between revisions of "Keys Configuration Format"

From Populous Wiki

m (fixed spelling)
Line 18: Line 18:
 
|INT32
 
|INT32
 
|4
 
|4
|0x0
+
|0
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x4
+
|4
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x19
+
|19
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x34
+
|34
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x49
+
|49
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x64
+
|64
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x79
+
|79
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x94
+
|94
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x109
+
|109
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x124
+
|124
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x139
+
|139
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x154
+
|154
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x169
+
|169
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x184
+
|184
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x199
+
|199
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x214
+
|214
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x229
+
|229
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x244
+
|244
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x259
+
|259
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x274
+
|274
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x289
+
|289
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x304
+
|304
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x319
+
|319
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x334
+
|334
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x349
+
|349
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x364
+
|364
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x379
+
|379
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x394
+
|394
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x409
+
|409
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x424
+
|424
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x439
+
|439
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x454
+
|454
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x469
+
|469
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x484
+
|484
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x499
+
|499
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x514
+
|514
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x529
+
|529
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x544
+
|544
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x559
+
|559
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x574
+
|574
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x589
+
|589
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x604
+
|604
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x619
+
|619
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x634
+
|634
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x649
+
|649
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x664
+
|664
 
|-
 
|-
 
|
 
|
 
|15
 
|15
|0x679
+
|679
 
|-
 
|-
 
|Total
 
|Total

Revision as of 07:27, 8 October 2014

The Populous Keys configuration file remains mostly unknown. It is believed to be clustered in 15 byte blocks, unknown if any of these blocks contain the arrow keys configuration.

Introduction

The Populous Key configuration file is located in ./saves/Key def.dat (Key def download) after you use the built in keys editor inside the game. The keys configuration file uses the systems keycode map to determine what keys are available to use. This website has the key codes that seem to work wit most US QWERTY keyboards keycode list for US QWERTY.

Inside the key blocks contains a modifier and a key. The modifier is optional and can be removed by setting it to 0. The modifier keys have no particular pattern associated with them, it could very well be hard coded.

All numbers are stored in big-endian format!

Block Format
Data Type Length Position (DEC) Description
INT32 4 0
15 4
15 19
15 34
15 49
15 64
15 79
15 94
15 109
15 124
15 139
15 154
15 169
15 184
15 199
15 214
15 229
15 244
15 259
15 274
15 289
15 304
15 319
15 334
15 349
15 364
15 379
15 394
15 409
15 424
15 439
15 454
15 469
15 484
15 499
15 514
15 529
15 544
15 559
15 574
15 589
15 604
15 619
15 634
15 649
15 664
15 679
Total 709 Bytes