Help needed for use user_bindings (Key binding)

Example of how to use it (click on the link):

The currently bindable actions are in the stonehearth.json file, you need to copy them and paste them in the user_settings.json file, but writing “user_bindings” instead of “bindings”.

You can open the json file with any text editor, like Notepad.

For example, in stonehearth.json there’s:

"bindings": {
      "citizen:manager": {
         "combo1": "c", 
         "combo2": ""
      }, 
      "vision:xray:toggle": {
         "combo1": "x", 
         "combo2": ""
      }, 
      "vision:slice:toggle": {
         "combo1": "\\", 
         "combo2": ""
      }, 
      "town:overview": {
         "combo1": "i", 
         "combo2": ""
      }, 
(more keybindings)
...

You would add them in the user_settings.json like this:

{
	"user_id" : "cfb2e056-0a85-11e7-a3a9-f8cab8643ca9",
	"user_bindings" : {
      		"citizen:manager": {
        		 "combo1": "c", 
        		 "combo2": ""
      		}, 
      		"vision:xray:toggle": {
        		 "combo1": "x", 
        		 "combo2": ""
      		}, 
      		"vision:slice:toggle": {
         		"combo1": "\\", 
         		"combo2": ""
      		}, 
      		"town:overview": {
         		"combo1": "i", 
         		"combo2": ""
      		}
	},
	"enable_auto_save" : false,
(more user settings)
...

And then change the hotkeys to whatever you want.

3 Likes