• Welcome to SC4 Devotion Forum Archives.

KEYCFG file format

Started by FlyHigh, July 24, 2016, 01:43:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FlyHigh

KEYCFG (Keyboard Accelerators) is a filetype present in SimCity_1.dat that controls keybindings. There are four files of this type.


  • Automata player drive - controls the automata (direction and behaviour), camera (zooms, direction and rotation), day/night cycles and user interface elements. NOTE: there one element that is not assigned.


  • 3D View - Probably the most important file of this sort. The first part of the file comprises a description of the key combinations in a comment The second part is the actual keybinding. There is a group called Easter Egg hot keys (all control-shift-alt combinations) that has to do with animations.


  • Region View - Bindings for the region view panning, Region Bitmap Load, used to render custom maps, and shortcuts to the Quit Game menu


  • General View - keys for the Cheat Box. There are two ways of reaching it.





Structure of the file:
Quote

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SimCity 4 keyboard accelerators
;
; Format of these keys are:
;    <KeyCombination> = <MsgID> [[[<data1>] <data2>] <data3>] [<Description>]
;
;    [The first part of the file comprises a description of the key combinations in a comment with all the valid keys listed]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
[keyboard key]                    = [Hex reference]           "[Description]"

>>> Maxwell R. Black <<<
* * *

* * *

vester

Please, tell us a little about what you think this can be used for.

FlyHigh

Well there doesn't seem to be really anything exciting here to do except changing the keybinds since the hex values are hardcoded in the exe. It could be used as a way to call a custom-made plug-ins window, rather then to scroll through those messy vertical menus but, again, the game would have to be able to associate that hex value to the proper window. I'm not sure how feasable would that be using a "fix file".
>>> Maxwell R. Black <<<
* * *

* * *

NCGAIO