Skip to content

Commit

Permalink
修复无C盘情况下本地文件储存报错问题;新增角色夏沃蕾、闲云、嘉明的参考配置
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeathyTomas committed Feb 2, 2024
1 parent 3285d42 commit feb0872
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@

### 如果你需要直接运行 python 程序

1. Python 3.7~3.10 (作者开发环境 Python 3.10.9,onnxruntime 暂不支持 3.11)。
1. Python 3.7~3.11 (作者开发环境 Python 3.11.4,onnxruntime 暂不支持 3.12)。
2. 必备的Python包:
1. PySide6,GUI 框架
2. pynput,监听游戏窗口内鼠标操作
3. pywin32,获取设备分辨率、缩放信息,用于兼容不同分辨率
4. pyqtdarktheme,GUI 样式
5. ppocr-onnx,paddleocr 使用 onnx 模型接口
5. rapidocr-onnxruntime,paddleocr 使用 onnx 模型接口

### 使用打包好的 exe 程序

Expand All @@ -48,9 +48,9 @@

## 使用教程

1. 打开游戏,使用`ALT+ENTER`使游戏窗口切换为窗口模式(顶部出现标题栏,因为全屏状态下评分结果贴图无法置顶。),或手动在设置-图像-显示模式中调整为窗口模式。现已支持自定义窗口模式,支持窗口16:10, 16:9, 3:2分辨率,**请确定游戏窗口化打开且不要最小化,在工具启动后也不要移动游戏窗口,否则捕捉窗口定位错误会使识别出错**
1. 打开游戏,手动在设置-图像-显示模式中调整为窗口模式。现已支持自定义窗口模式,支持窗口16:10, 16:9, 3:2分辨率,**请确定游戏窗口化打开且不要最小化,在工具启动后也不要移动游戏窗口,否则捕捉窗口定位错误会使识别出错**

2. 方式1:运行打包好的程序。解压压缩包完成后,找到并用管理员模式运行 keqing.exe(必须,否则程序运行中无法监听游戏中的鼠标操作)。
2. 方式1:运行打包好的程序。解压压缩包完成后,找到并用**管理员**模式运行 keqing.exe(必须,否则程序运行中无法监听游戏中的鼠标操作)。

![keqing.exe](https://raw.githubusercontent.com/SkeathyTomas/img/main/img/20220805144258.png)

Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def on_release(key):

def main():
global myappid
myappid = 'v0.7.3'
myappid = 'v0.7.4'

# 任务栏图标问题
try:
Expand Down
2 changes: 1 addition & 1 deletion app.spec
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ coll = COLLECT(
strip=False,
upx=True,
upx_exclude=[],
name='keqing-0.7.3',
name='keqing-0.7.4',
)
7 changes: 4 additions & 3 deletions doc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'''个人数据另外储存'''
import json, os, shutil

username = os.getlogin()
folder = 'C:/Users/' + username + '/Documents/keqing'
folder = os.path.expanduser('~/Documents')
folder = folder + '/keqing'
character_path = folder + '/character.json'
archive_path = folder + '/archive.json'

Expand All @@ -26,7 +26,8 @@
with open(archive_path, 'w', encoding = 'utf-8') as fp:
artifacts = {'背包':{}, '角色': {}}
json.dump(artifacts, fp, ensure_ascii = False)
# 数据文件夹不不存在则复制、新建相关数据文件

# 数据文件夹不存在则复制、新建相关数据文件
else:
os.makedirs(folder)
shutil.copy('src/character.json', character_path)
Expand Down
2 changes: 1 addition & 1 deletion location.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

x_initial_B, y_initial_B, x_offset_B, y_offset_B = (144 / 1920 * w_width + w_left, (293 - 36) / 1080 * w_hight + SCALE * 24 + w_top, 142 / 1920 * w_width, 168 / 1080 * w_hight)
x_left_B, x_right_B, y_top_B, y_bottom_B = (39 / 1920 * w_width + w_left, 166 / 1920 * w_width + w_left, (162 - 36) / 1080 * w_hight + SCALE * 24 + w_top, (315 - 36) / 1080 * w_hight + SCALE * 24 + w_top)
x_grab_B, y_grab_B, w_grab_B, h_grab_B = (1464 / 1920 * w_width + w_left, (147 - 36) / 1080 * w_hight + SCALE * 24 + w_top, 413 / 1920 * w_width, 378 / 1080 * w_hight)
x_grab_B, y_grab_B, w_grab_B, h_grab_B = (1460 / 1920 * w_width + w_left, (147 - 36) / 1080 * w_hight + SCALE * 24 + w_top, 413 / 1920 * w_width, 378 / 1080 * w_hight)
row_B, col_B = (5, 4)

# 3:2窗口模式
Expand Down

0 comments on commit feb0872

Please sign in to comment.