Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: Honkai Impact 3rd Keybind Location #467

Open
Tracked by #79
DoctorCandor opened this issue May 19, 2024 · 2 comments
Open
Tracked by #79

[Request]: Honkai Impact 3rd Keybind Location #467

DoctorCandor opened this issue May 19, 2024 · 2 comments
Labels
Area: Game Settings Issue labeled for Game Settings related issues Enhancement New feature or request Game: Honkai Impact 3rd Issue labeled for Honkai Impact 3rd Help Wanted Extra attention is needed

Comments

@DoctorCandor
Copy link

DoctorCandor commented May 19, 2024

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:

  1. Open PowerShell in the directory that has the script and enter:
    .\honkai_keybinds.ps1 -export
  2. Edit the newly created "bindings.json" as needed.
  3. 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

@DoctorCandor DoctorCandor added the Enhancement New feature or request label May 19, 2024
@Cryotechnic Cryotechnic added Game: Honkai Impact 3rd Issue labeled for Honkai Impact 3rd Area: Game Settings Issue labeled for Game Settings related issues labels May 19, 2024
@bagusnl
Copy link
Member

bagusnl commented May 20, 2024

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!

@bagusnl bagusnl added the Help Wanted Extra attention is needed label May 20, 2024
@DoctorCandor
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Game Settings Issue labeled for Game Settings related issues Enhancement New feature or request Game: Honkai Impact 3rd Issue labeled for Honkai Impact 3rd Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants