Skip to content

崩坏3仿原神PC端键鼠操控 | An AHK project for Honkai Impact 3 to modify Genshin Impact's default way of Control on PCs

License

Notifications You must be signed in to change notification settings

Spr-Aachen/Genshin-to-Honkai-PC-Control-Modification-Project

Repository files navigation



📢 这个项目已停止维护 📢
This repo is no longer maintained

本项目永久停止更新维护,感谢大家一直以来的支持和鼓励!
This repository is no longer maintained. I would like to thank the people who supported me all the time. Thank you all.

崩坏3仿原神PC端键鼠操控
Genshin to Honkai PC Control Modification Project

Releases Bilibili YouTube

本项目以AHK为基础语言进行编译。由于这仅是一个出自编程菜鸟之手的半成品,是故望乞诸位海涵。干杯! - ( ゜- ゜)つロ
The project is basicly built with AutoHotkey. Please remind that this is a WIP (work in progress) stuff and I'm totally a noob in coding. So... hope you guys won't push me too hard. Cheers!

【注意 Caution】

  1. 请确保客户端为官方提供的PC端而非模拟器
    Please ensure that the client you're using is served by MiHoYo official

  2. 请确保游戏操作设置已重置为默认键位
    Please ensure that the gaming operation settings have been reset to default

  3. 请使用全屏模式游玩以确保自动识别的正常运行
    Please use fullscreen mode in order for Automatic Identification function to run properly


支持与不支持的客户端分辨率如下:( :grey_exclamation: 表示未经测试)
Supported&unsupported client resolution is shown as follows: ( :grey_exclamation: means untested)

分辨率 Resolution 支持 Support
3840 x 2160 ✔️
2560 x 1600
2560 x 1440 ✔️
2560 x 1080 ✔️
1920 x 1080 ✔️
1680 x 1050
1600 x 1024 ✖️
1600 x 900 ✔️
1440 x 900 ✔️
1366 x 768 ✖️
1360 x 768 ✔️
1280 x 720 ✔️
720 x 480 ✖️


若需要其它分辨率支持可以联系我,亦或者提交issue
Contact me if any other resolution need to be supported, or submit an issue


如果您的设备分辨率不在以上支持列表内,可以尝试更改系统分辨率并在游戏中选择对应的全屏模式来使自动识别生效
If your device's screen resolution is not shown in the table above, you can try changing the system resolution and select the corresponding res with fullscreen mode in game settings to make Automatic Identification take effect.

【设定 Configurations】

键位 - 预设
Keymaps - Preset

以下键位会在战斗状态下生效且和原神PC端的默认键位设置较为相近(但注意瞄准模式的设定有所不同)
The following keymaps would take effect in combat, and they're pretty much close to the default settings from Genshin Impact (but mind that there's a little difference between those two's aiming mode)

Q键发动主技能(大招) Q key for main skill
使用方法:点按或长按Q键[可改]
Usage: Press or long press Q key[Adjustable]

E键发动副技能(武器技)/后崩坏书主技能(大招) E key for second skill(weapon skill)/APHO(A Post-Honkai Odyssey) main skill
使用方法:点按或长按E键[可改]
特殊设定:在长按E键进入瞄准模式后,可通过移动鼠标来操控准星
Usage: Press or long press E key[Adjustable]
Extra: After entering the aiming mode by long pressing E key, cross hair can be controled by the mouse-movement

Z键发动人偶技能/后崩坏书白热化状态(月之环) Z key for doll skill/APHO(A Post-Honkai Odyssey) white heat
使用方法:按下Z键[可改]
Usage: Press down (Long press) Z key[Adjustable]

左侧Shift键或鼠标右键发动闪避/冲刺 LShift or RButton for dodging/dashing
使用方法:点击或长按左侧Shift键/鼠标右键[可改]
Usage: Press (Click) or long press LShift/RButton[Adjustable]

鼠标左键发动普攻 LButton for normal attack
使用方法:点击或长按鼠标左键[可改]
Usage: Press (Click) or long press LButton[Adjustable]

尽管已经能自动分辨战斗与其它场景,但在出现意外情况时仍可以通过以下键位进行手动控制
Although the combat scene can be automaticly identified, the following keys can still be needed for manual control especially when exceptions occured

左侧Alt键+鼠标左键以正常使用点击功能 LAlt+LButton for left-click function
使用方法:按住左侧Alt键后点击鼠标左键[不可改]
Usage: Press down (Long press) LAlt and then click LButton[Unadjustable]

鼠标中键管理视角跟随功能 MButton for view-control function management
使用方法:点击鼠标中键[可改]
特殊设定:关闭/激活时屏幕左下角有状态栏提示
Usage: Click MButton[Adjustable]
Extra: Tooltips will show up in the left lower corner of the screen when turning off/turning on the function

F1键暂停/启用程序 F1 key for program suspending/continuing
使用方法:按下F1键[可改]
特殊设定:暂停/启用时屏幕左下角有状态栏提示
Usage: Press down (Long press) F1 key[Adjustable]
Extra: Tooltips will show up in the left lower corner of the screen when suspending/continuing the program

F3键重启程序 F3 key for program reloading
使用方法:按下F3键[可改]
Usage: Press down (Long press) F3 key[Adjustable]

键位 - 更改
Keymaps - Customization

启动界面的键位栏中允许手动更改默认键位且不同控制器的设置如下:
The Keymap Tab which located in the startup interface allows users to customize the default keymap, different controllers should be set up as follows:

键盘 Keyboard
点击框并按下想要的键盘按键(按Del键或Backspace键可清空框)
Click the box and press down the keyboard key you want (pressing Delete or Backspace would set the box to empty)

鼠标 Mouse
点击下拉栏目切换到想要的鼠标按键(选择“无”可置空栏目)
Click the combobox to switch to the mouse button you want (choosing None would set the combobox to null)

手柄 GamePad
暂不支持
Temporarily not supported

功能 - 选项
Functions - Option

启动界面的功能栏中允许手动选择是否启用以下辅助性选项:
The Function Tab which located in the startup interface allows users to choose whether toggle the following options:

管理员权限(默认启用) Run as Admin (Toggled by default)
以管理员身份运行程序
Run program as administrator

全自动识别(默认启用) Automatic Identification (Toggled by default)
使键位仅在战斗场景生效
Let the keymaps only take effect in combat scene

可隐藏光标(默认启用) Cursor Occlusion (Toggled by default)
光标会在战斗场景下自动隐藏,但注意前提是启用了自动识别
Hide cursor automatically while in combat, but mind that this funtion would only work under the premise of toggling the "Automatic Identification"

限制性光标(默认启用) Cursor Restriction (Toggled by default)
战斗场景下会将光标限制于安全区域内以避免触发UI
Restrict cursor in a "safe zone" to avoid toggling the UI buttons

功能 - 调参
Functions - Tuning

启动界面的功能栏中允许手动调节自动识别系统的以下参数:
The Function Tab which located in the startup interface allows users to adjust the following params of Automatic Identification:

正常战斗识别容错率-目标 FT_NormalCombat_Target
在战斗场景中处于高血量状态时的识别区目标的容错百分率
Fault tolerance percentage of target in combat scene without low health alert

正常战斗识别容错率-背景 FT_NormalCombat_Background
在战斗场景中处于高血量状态时的识别区背景的容错百分率
Fault tolerance percentage of background in combat scene without low health alert

濒危战斗识别容错率-目标 FT_DangerCombat_Target
在战斗场景中处于低血量状态时的识别区目标的容错百分率
Fault tolerance percentage of target in combat scene with low health alert

濒危战斗识别容错率-背景 FT_DangerCombat_Background
在战斗场景中处于低血量状态时的识别区背景的容错百分率
Fault tolerance percentage of background in combat scene with low health alert

乐土大厅识别容错率-目标 FT_ElysiumLobby_Target
在往事乐土大厅场景中时的识别区目标的容错百分率
Fault tolerance percentage of target in Elysium Lobby scene

乐土大厅识别容错率-背景 FT_ElysiumLobby_Background
在往事乐土大厅场景中时的识别区背景的容错百分率
Fault tolerance percentage of background in Elysium Lobby scene

附加设定
Addition

  1. 战斗场景内使用快捷键AltTab、WinTab进行窗口切换时会自动暂停游戏,按下F1、F3时也是同理(以启用全自动识别为前提)。需要注意的是,为节省资源占用和提高容错率,在执行快速切换后程序亦会自动暂停,故在切回游戏界面后需手动按下F1键以恢复程序运行。
    While switching or rearranging windows by pressing shortcut AltTab or WinTab, the game would automaticly pause, so as the F1 key and F3 key (Under the premise of toggling the Automatic Identification). Notably, the programm would also suspend automaticly after doing quick switch or arrangement in order to lower the usage of system resources. Therefore, to resume the program manually, you need to press F1 key after switching back to the game.

  2. 新增对往世乐土大厅场景的识别支持(以启用全自动识别为前提)
    New scene supported: Elysium Lobby (Under the premise of toggling the Automatic Identification)

  3. 精简版去掉了除左键(普攻)外的所有战斗键位
    The simplified version removed all the combat keymaps except LButton (which is for normal attack).

  4. 启动界面的设置栏中可以直接重置当前配置
    Current configuration can be reset from the Settings Tab which located in the start-up interface.

  5. 在系统托盘处对图标右键可以在“其它”栏目中直接打开或删除配置文件
    By right-clicking on the tray icon and move to the "Else" section, can the configuration file be directly accessed or deleted.

【缺陷 Bugs】

  1. 目前未知视角缩放的设置键,无法实现该功能
    So far the way to implement camera zooming is still unkown.

  2. 视角跟随功能目前仍有延迟等问题,目前正在寻找更优方案
    The view-control function has several problems like lagging. Been looking for better scheme to solve it.

  3. 部分win11用户反映程序运行并未生效,目前尚未发现问题所在
    Some Windows 11 system users reported that the programm won't work properly. Unfortunately I can't find out the problem.

  4. 全自动识别功能对于硬件性能要求稍高,现已对其进行了数次优化
    The Automatic Identification has a little high demand of hardware performance, though it has been optimized for several times.

  5. 灵敏度(鼠标DPI)无法通过程序调节。虽然通过调教各函数的响应时间参数能够达到类似的效果,但是需要大量的数据采集和调试,这将是个漫长的过程。
    Mouse DPI can't be simply adjusted through programm. Luckily a similar effect can be achieved by tuning each function's time response parameters, but large amount of data and debugging are needed, should be a long way to go.

【测试平台 Tested Devices】

1.Honor Hunter V700

  • Type:NoteBook
  • GPU:GTX 1660Ti
  • CPU:i5-10300H
  • RAM:16G
  • Sys:Win10
  • Res:<=1920*1080

2. (Waiting to add other devices)

【收藏趋势 Stargazers over time】

Stargazers over time

【联系方式 Contact Details】

QQ

倘若大伙儿有什么好的建议欢迎随时叨扰哦~
Please feel free to contact me at any time, any comments and suggestions will be appreciated:)

About

崩坏3仿原神PC端键鼠操控 | An AHK project for Honkai Impact 3 to modify Genshin Impact's default way of Control on PCs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published