-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
config.py
127 lines (122 loc) · 5.88 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import os
from pathlib import Path
version = "v5.0.11"
def calculate_pc_exe_path(running_path):
game_exe_folder = Path(running_path).parents[3]
return str(game_exe_folder / "Wuthering Waves.exe")
config = {
'debug': False, # Optional, default: False
'use_gui': True,
'config_folder': 'configs',
'gui_icon': 'icon.png',
'ocr': {
'lib': 'rapidocr_openvino'
},
'start_timeout': 120, # default 60
'wait_until_before_delay': 2, # default 1 , for wait_until() function
# required if using feature detection
'template_matching': {
'coco_feature_json': os.path.join('assets', 'result.json'),
'default_horizontal_variance': 0.002,
'default_vertical_variance': 0.002,
'default_threshold': 0.8,
},
'windows': { # required when supporting windows game
'exe': 'Client-Win64-Shipping.exe',
'calculate_pc_exe_path': calculate_pc_exe_path,
'hwnd_class': 'UnrealWindow',
'interaction': 'PostMessage',
'can_bit_blt': True, # default false, opengl games does not support bit_blt
'bit_blt_render_full': True,
'check_hdr': False,
'force_no_hdr': False,
'check_night_light': True,
'force_no_night_light': True,
'require_bg': True
},
'supported_resolution': {
'ratio': '16:9',
'min_size': (1280, 720)
},
'analytics': {
'report_url': 'http://111.231.71.225/report'
},
'git_update': {'sources': [{
'name': 'Global',
'git_url': 'https://github.com/ok-oldking/ok-wuthering-waves.git',
'pip_url': 'https://pypi.org/simple/'
}, {
'name': '清华大学',
'git_url': 'https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git',
'pip_url': 'https://pypi.tuna.tsinghua.edu.cn/simple'
}, {
'name': 'China',
'git_url': 'https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git',
'pip_url': 'https://pypi.tuna.tsinghua.edu.cn/simple'
}, {
'name': '腾讯云',
'git_url': 'https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git',
'pip_url': 'https://mirrors.cloud.tencent.com/pypi/simple'
}, {
'name': '阿里云',
'git_url': 'https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git',
'pip_url': 'https://mirrors.aliyun.com/pypi/simple'
},
]},
'links': {
'default': {
'github': 'https://github.com/ok-oldking/ok-wuthering-waves',
'discord': 'https://discord.gg/Sy6etyCRed',
'sponsor': 'https://patreon.com/ok_oldking?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink',
'share': 'Download OK-WW from https://github.com/ok-oldking/ok-wuthering-waves/releases/latest',
'faq': 'https://github.com/ok-oldking/ok-wuthering-waves#FAQ'
},
'zh_CN': {
'github': 'https://github.com/ok-oldking/ok-wuthering-waves',
'discord': 'https://discord.gg/Sy6etyCRed',
'sponsor': 'https://afdian.com/a/ok-oldking',
'share': 'OK-WW 腾讯频道下载: https://pd.qq.com/s/75758wrmp 夸克网盘下载:https://pan.quark.cn/s/75b55ef72a34 GitHub下载: https://github.com/ok-oldking/ok-wuthering-waves/releases/latest',
'qq_group': 'https://qm.qq.com/q/ufUCrCEq6A',
'qq_channel': 'https://pd.qq.com/s/1t9xeti1z',
'faq': 'https://gitee.com/ok-olding/ok-wuthering-waves/blob/master/README_cn.md#%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%E8%AF%B7%E6%A3%80%E6%9F%A5',
},
},
'about': """
<h3>OK-WW</h3>
<p>GitHub <a href="https://github.com/ok-oldking/ok-wuthering-waves">https://github.com/ok-oldking/ok-wuthering-waves</></p>
<p>Report a BUG <a href="https://github.com/ok-oldking/ok-wuthering-waves/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-wuthering-waves/issues/new?assignees=ok-oldking&labels=bug&projects=&template=%E6%8A%A5%E5%91%8Abug-.md&title=%5BBUG%5D</></p>
<p>QQ群:<a href="https://qm.qq.com/q/qMezq2IDGU">970523295</a></p>
<p>QQ频道:<a href="https://pd.qq.com/s/75758wrmp">OK-WW</a></p>
<p style="color:red;">
<strong>本软件是免费开源的。</strong> 如果你被收费,请立即退款。请访问QQ频道或GitHub下载最新的官方版本。
</p>
<p style="color:red;">
<strong>本软件仅供个人使用,用于学习Python编程、计算机视觉、UI自动化等。</strong> 请勿将其用于任何营利性或商业用途。
</p>
<p style="color:red;">
<strong>使用本软件可能会导致账号被封。</strong> 请在了解风险后再使用。
</p>
""",
'screenshots_folder': "screenshots",
'gui_title': 'OK-WW', # Optional
# 'coco_feature_folder': get_path(__file__, 'assets/coco_feature'), # required if using feature detection
'log_file': 'logs/ok-ww.log', # Optional, auto rotating every day
'error_log_file': 'logs/ok-ww_error.log',
'launcher_log_file': 'logs/launcher.log',
'launcher_error_log_file': 'logs/launcher_error.log',
'version': version,
'onetime_tasks': [ # tasks to execute
["src.task.IllusiveRealmTask", "IllusiveRealmTask"],
["src.task.FarmEchoTask", "FarmEchoTask"],
["src.task.FarmWorldBossTask", "FarmWorldBossTask"],
["src.task.DiscardEchoTask", "DiscardEchoTask"],
["src.task.DiagnosisTask", "DiagnosisTask"],
], 'trigger_tasks': [
["src.task.AutoCombatTask", "AutoCombatTask"],
["src.task.AutoPickTask", "AutoPickTask"],
["src.task.SkipDialogTask", "AutoDialogTask"],
["src.task.MultiplayerAutoCombatTask", "MultiplayerAutoCombatTask"],
["src.task.MouseResetTask", "MouseResetTask"],
["src.task.AutoLoginTask", "AutoLoginTask"],
]
}