[Request]: Honkai Impact 3rd Keybind Location
Is your request related to a problem?
No
How is the feature request related to the problem?
No response
Describe your proposed solution
This is information to help with an item in the "QOL Improvements: List of potential upcoming features" open issue, specifically:
- Add Control settings to Game Settings (where did they save this?)
I realized I've been using a rudimentary solution myself for the better part of a year from information provided in this reddit comment, which TL:DR has the keybinds located in the registry under:
"HKCU:\SOFTWARE\miHoYo\Honkai Impact 3rd\GENERAL_DATA_V2_ActionGroupBindingLocalDataDic_hxxxxxxxxxx",
with the series of "x"s at the end seemingly being a 10 digit number dependent on your account.
As per the Reddit comment, "It is stored as a binary, so you need to first decode it into text, edit it, re-encode it back to binary then update the registry key."
To do this, I slightly modified the script from that Reddit comment (they updated the keybinds in v7.4 to add the word "Group" to "ActionBindingLocalDataDic_hxxxxxxxxxx"), and found I had to install PowerShell 7 - as the ConvertFrom-Json cmdlet from that PowerShell script requires it.
I currently run that script using the following steps:
- Open PowerShell in the directory that has the script and enter:
.\honkai_keybinds.ps1 -export - Edit the newly created "bindings.json" as needed.
- Import keybinds to game using
.\honkai_keybinds.ps1 -import
In the exported bindings.json file, the keys are named using a sequence of 7 numbers instead of their actual keys - each entry looks like the example below:
{"Key": 1010508,
"Value": {
"groupId": 1010508,
"bindingKey": "None",
"bindingControlTypes": null,
"bindingKeys": [
"F4"
],
"bindingKeysMousekeyboardMode": [
"Key5"
],
"bindingControlTypeArray": [
[
"LeftStickButton"
]
]
}
}
From cursory testing, it appears that "bindingKeys" is the default keybind and "bindingKeysMousekeyboardMode" is the assignable keybind.
With this setup, it is possible to do things like assign keybinds to the same key (although I still can't find a way to natively assign mouse 4+5 (backwards/forwards) buttons, which has been a personal annoyance for miHoYo games).
More research is needed for what keybinds are allowed, but I hope this can at least help folks start to customize keybinds.
Describe alternatives you've considered
N/A
Additional context
No response
Hi~ thanks for the insight and research on this topic. While its interesting, its gonna be quite the pain considering the key themself is assigned by ID, so we need to find all the ID that corresponds to the action in-game. This gonna take awhile and since ZZZ is on the horizon then unfortunately this will be taken into kinda a low priority enhancement for us.
Feel free to keep updating us on the matter and we'll update you when we got into this!
Sounds good - for reference, the bindings.json file that gets exported by the script currently contains 25 entries which doesn't appear to cover all of the keybinds as there are more than 80, assuming each one is individually assigned. That being said, there could be other places in the registry that the other keybinds can be found, but I haven't dived in myself.