0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-06 17:05:54 +00:00
ok-wuthering-waves/config.py
firedcto@gmail.com 8410a8c8c9 first commit
2024-06-11 22:27:53 +08:00

66 lines
2.4 KiB
Python

import os
from ok.util.path import get_path_in_package
from src.task.AutoCombatTask import AutoCombatTask
version = "v1.1.11"
def calculate_pc_exe_path(running_path):
return None
config = {
'debug': False, # Optional, default: False
'use_gui': True,
'config_folder': 'configs',
'gui_icon': get_path_in_package(__file__, 'icon.ico'),
'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',
'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-baijing/releases?per_page=15',
# 'proxy_url': 'https://gh.ok-script.com/',
# 'exe_name': 'ok-baijing.exe',
# 'use_proxy': True
# },
'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_screen_ratio': '16:9',
'screenshots_folder': "screenshots",
'gui_title': 'OK白荆', # 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,
'locale': 'zh_CN',
'onetime_tasks': [ # tasks to execute
], 'trigger_tasks': [
AutoCombatTask()
],
'scenes': [ # scenes to detect
]
}