-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.py
71 lines (66 loc) · 2.55 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import os
import re
version = "v1.5.15"
def calculate_pc_exe_path(running_path):
return None
config = {
'debug': False, # Optional, default: False
'use_gui': True,
'gui_icon': 'icon.ico',
'ocr': {
'lib': 'rapidocr_openvino'
# 'lib': 'rapidocr_openvino'
},
# required if using feature detection
'template_matching': {
'coco_feature_json': os.path.join('assets', 'result.json'),
'default_horizontal_variance': 0.01,
'default_vertical_variance': 0.01,
'default_threshold': 0.9,
},
'windows': { # required when supporting windows game
'title': re.compile(r'^白荆回廊'),
'exe': 'GateMK-Win64-Shipping.exe',
'calculate_pc_exe_path': calculate_pc_exe_path,
# 'interaction': 'PostMessage',
'can_bit_blt': True, # default false, opengl games does not support bit_blt
'bit_blt_render_full': True
},
'adb': {
'packages': ['com.tencent.gate']
},
'analytics': {
'report_url': 'https://okreport.ok-script.com/report'
},
'git_update': {'sources': [{
'name': 'Global',
'git_url': 'https://github.com/ok-oldking/ok-baijing',
'pip_url': 'https://pypi.org/simple/'
}, {
'name': 'China',
'git_url': 'https://gitee.com/ok-olding/ok_baijing',
'pip_url': 'https://mirrors.cloud.tencent.com/pypi/simple'
}]},
'about': """
<h3>OK白荆</h3>
<p>免费开源软件 <a href="https://github.com/ok-oldking/ok-baijing">https://github.com/ok-oldking/ok-baijing</></p>
<p>报告问题BUG <a href="https://github.com/ok-oldking/ok-baijing/issues/new?assignees=ok-oldking&labels=bug&projects=&template=%E6%8A%A5%E5%91%8Abug-.md&title=%5BBUG%5D">https://github.com/ok-oldking/ok-baijing/issues/new?assignees=ok-oldking&labels=bug&projects=&template=%E6%8A%A5%E5%91%8Abug-.md&title=%5BBUG%5D</></p>
<p>视频演示 <a href="https://www.bilibili.com/video/BV1K7421f7KT/">https://www.bilibili.com/video/BV1K7421f7KT/</a></p>
<p>QQ群:<a href="https://qm.qq.com/q/aGO7eBJ2Uw">594495691</a></p>
""",
'supported_resolution': {
'ratio': '16:9',
'min_size': (1280, 720)
},
'supported_screen_ratio': '16:9',
'screenshots_folder': "screenshots",
'gui_title': 'OK白荆', # Optional
'version': version,
'locale': 'zh_CN',
'onetime_tasks': [ # tasks to execute
['task.DailyTask', 'DailyTask'],
['task.JoinGameTask', 'JoinGameTask'],
], 'trigger_tasks': [
['task.AutoStartCombatTask', 'AutoStartCombatTask'],
]
}