mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-04-24 08:25:16 +00:00
68 lines
2.5 KiB
Python
68 lines
2.5 KiB
Python
import os
|
|
|
|
from ok.util.path import get_path_in_package
|
|
from src.task.AutoCombatTask import AutoCombatTask
|
|
from src.task.FarmEchoTask import FarmEchoTask
|
|
from src.task.SkipDialogTask import AutoDialogTask
|
|
|
|
version = "v1.1.11"
|
|
|
|
|
|
def calculate_pc_exe_path(running_path):
|
|
return running_path
|
|
|
|
|
|
config = {
|
|
'debug': False, # Optional, default: False
|
|
'use_gui': True,
|
|
'config_folder': 'configs',
|
|
'gui_icon': get_path_in_package(__file__, 'icon.png'),
|
|
'ocr': {
|
|
'lib': 'RapidOCR',
|
|
'inference_num_threads': int(os.cpu_count() / 2)
|
|
},
|
|
# required if using feature detection
|
|
'template_matching': {
|
|
'coco_feature_json': os.path.join('assets', 'result.json'),
|
|
'default_horizontal_variance': 0,
|
|
'default_vertical_variance': 0,
|
|
'default_threshold': 0.9,
|
|
},
|
|
'windows': { # required when supporting windows game
|
|
'exe': 'Client-Win64-Shipping.exe',
|
|
'calculate_pc_exe_path': calculate_pc_exe_path,
|
|
'can_bit_blt': False # default false, opengl games does not support bit_blt
|
|
},
|
|
'analytics': {
|
|
'report_url': 'https://okreport.ok-script.com/report'
|
|
},
|
|
'update': {
|
|
'releases_url': 'https://api.github.com/repos/ok-oldking/ok-wuthering-waves/releases?per_page=15',
|
|
'proxy_url': 'https://gh.ok-script.com/',
|
|
'exe_name': 'ok-ww.exe',
|
|
'use_proxy': True
|
|
},
|
|
'about': """
|
|
<h3>OK-Wuthering-Waves</h3>
|
|
<p>免费开源软件 <a href="https://github.com/ok-oldking/ok-wuthering-waves">https://github.com/ok-oldking/ok-wuthering-waves</></p>
|
|
<p>报告问题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-baijing/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/aGO7eBJ2Uw">594495691</a></p>
|
|
""",
|
|
'supported_screen_ratio': '16:9',
|
|
'screenshots_folder': "screenshots",
|
|
'gui_title': 'OK-Wuthering-Waves', # Optional
|
|
# 'coco_feature_folder': get_path(__file__, 'assets/coco_feature'), # required if using feature detection
|
|
'log_file': 'logs/ok-script.log', # Optional, auto rotating every day
|
|
'error_log_file': 'logs/ok-script_error.log',
|
|
'version': version,
|
|
'onetime_tasks': [ # tasks to execute
|
|
FarmEchoTask()
|
|
], 'trigger_tasks': [
|
|
AutoCombatTask(),
|
|
AutoDialogTask()
|
|
],
|
|
'scenes': [ # scenes to detect
|
|
|
|
]
|
|
}
|