SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => Tips, Tricks and Tutorials => Topic started by: FlyHigh on July 24, 2016, 01:43:42 PM

Title: KEYCFG file format
Post by: FlyHigh on July 24, 2016, 01:43:42 PM
KEYCFG (Keyboard Accelerators) is a filetype present in SimCity_1.dat that controls keybindings. There are four files of this type.




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]"

Title: Re: KEYCFG file format
Post by: vester on July 24, 2016, 10:46:28 PM
Please, tell us a little about what you think this can be used for.
Title: Re: KEYCFG file format
Post by: FlyHigh on August 18, 2016, 02:40:24 AM
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".
Title: Re: KEYCFG file format
Post by: NCGAIO on August 18, 2016, 06:07:26 PM
It is curious how the cycles are repeated ...


Assigning Your Favorite Lots to Keyboard Shortcuts  (http://sc4devotion.com/forums/index.php?topic=9503.0)