Actions

Key def.dat

From Populous Wiki

Information

Key def.dat is a file that you have to create by using the Populous Key editor included in the game. Once you save, the file is created and located in ./save/Key def.dat. The file is structured similar to the header format(Header_Format). Each key is stored in a single hexadecimal address, the combination key is always 1 in front of it. The combination key is like shift + key but in the file format it reads key + shift.

Each key needs to be converted to hexadecimal to a integer. This can be done in programming by simply reading information from the address, else if you're using a hex editor (like HxD) you'll have to do it by hand using a converter like http://home.paulschou.net/tools/xlate/ (use the values from CHAR), once you got the number it should range from 1-105, if it exceeds that, you're reading the wrong location or you got your math wrong. In !!SECTION!! you will be told how to convert the values from keycode (the integer number you just got) to ASCII using programming methods. If you want to change them by hand without programming, all the key definitions are on this list http://www.penticoff.com/nb/kbds/ibm104kb.htm, remember that you have to convert those numbers back to hex from the paulschou's link, or by programming.