mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-04-24 08:25:16 +00:00
try first build
This commit is contained in:
parent
81704f60f0
commit
eb9fa29f21
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@ -45,14 +45,8 @@ jobs:
|
|||||||
(Get-Content config.py) -replace 'version = "v\d+\.\d+\.\d+"', 'version = "${{ steps.tagName.outputs.tag }}"' | Set-Content config.py
|
(Get-Content config.py) -replace 'version = "v\d+\.\d+\.\d+"', 'version = "${{ steps.tagName.outputs.tag }}"' | Set-Content config.py
|
||||||
pyinstaller main.spec
|
pyinstaller main.spec
|
||||||
python -m ok.update.gen_md5 .\dist\bundle
|
python -m ok.update.gen_md5 .\dist\bundle
|
||||||
mv dist/bundle ok-baijing
|
mv dist/bundle ok-ww
|
||||||
7z a -t7z -r "ok-baijing-release-${{ steps.tagName.outputs.tag }}.7z" "ok-baijing"
|
7z a -t7z -r "ok-ww-release-${{ steps.tagName.outputs.tag }}.7z" "ok-ww"
|
||||||
rm -r dist
|
|
||||||
rm -r ok-baijing
|
|
||||||
pyinstaller main_debug.spec
|
|
||||||
python -m ok.update.gen_md5 .\dist\bundle
|
|
||||||
mv dist/bundle ok-baijing
|
|
||||||
7z a -t7z -r "ok-baijing-debug-${{ steps.tagName.outputs.tag }}.7z" "ok-baijing"
|
|
||||||
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
@ -65,9 +59,7 @@ jobs:
|
|||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
body: |
|
body: |
|
||||||
下载release.7z文件然后解压缩后运行, 如果需要查找问题,上传更多日志才需要下载debug版本
|
Updates:
|
||||||
最好使用模拟器运行安卓版,可以挂后台,稳定。PC版游戏可能兼容性较差,无法挂后台。
|
|
||||||
更新内容:
|
|
||||||
${{ steps.changes.outputs.changes }}
|
${{ steps.changes.outputs.changes }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
@ -78,19 +70,11 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./ok-baijing-release-${{ steps.tagName.outputs.tag }}.7z
|
asset_path: ./ok-ww-release-${{ steps.tagName.outputs.tag }}.7z
|
||||||
asset_name: ok-baijing-release-${{ steps.tagName.outputs.tag }}.7z
|
asset_name: ok-ww-release-${{ steps.tagName.outputs.tag }}.7z
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|
||||||
- name: upload-win-debug
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./ok-baijing-debug-${{ steps.tagName.outputs.tag }}.7z
|
|
||||||
asset_name: ok-baijing-debug-${{ steps.tagName.outputs.tag }}.7z
|
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
58
README.md
58
README.md
@ -1,62 +1,24 @@
|
|||||||
#  ok_baijing
|
# 
|
||||||
|
|
||||||
白荆自动漫巡辅助脚本
|
## ok-ww
|
||||||
视频演示 [https://www.bilibili.com/video/BV1K7421f7KT/](https://www.bilibili.com/video/BV1K7421f7KT/)
|
|
||||||
|
|
||||||
[报告BUG](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)
|
Automation for Wuthering waves
|
||||||
|
|
||||||
QQ群594495691 [OK白荆回廊自动漫巡辅助](https://qm.qq.com/q/aGO7eBJ2Uw)
|
* Farm Boss Echo
|
||||||
|
* Auto Combat
|
||||||

|
* Auto Skip Dialogs in Quests
|
||||||
|
|
||||||
* 基于[ok-script](https://github.com/ok-oldking/ok-script)开发, 完全使用OCR文字识别开发
|
|
||||||
* 支持PC版, 以及安卓模拟器或使用adb连接的安卓物理机
|
|
||||||
* 可以指定角色凹指定技能个数, 循环n次, 直到刷到技能
|
|
||||||
* 如果没有刷到技能就, 自动投降新开
|
|
||||||
|
|
||||||
## 使用方法
|
|
||||||
|
|
||||||
### windows版本运行
|
|
||||||
|
|
||||||
1. 从[Github Release](https://github.com/ok-oldking/ok_baijing/releases)下载最新版, 双击运行.exe, 杀毒软件可能会报警,
|
|
||||||
添加安装目录到白名单
|
|
||||||
2. 进入游戏漫巡界面, 设置全部为简化
|
|
||||||

|
|
||||||
3. 先选择窗口, 点击运行
|
|
||||||

|
|
||||||
4. 选择任务运行
|
|
||||||

|
|
||||||
|
|
||||||
### 注意事项
|
### 注意事项
|
||||||
|
|
||||||
* PC版游戏窗口必须处于前台脚本才会运行, 不支持后台挂机
|
* Might not work in system < windows 10
|
||||||
* PC版脚本程序必须右键管理员运行, 否则没有权限点击窗口
|
* Run the exe as Admin, because we need permission to send key and mouse event
|
||||||
* 安卓版支持后台挂机, 最好不要使用管理员运行, 否则可能侦测不到模拟器
|
|
||||||
* 安卓版可以识别主流模拟器, 以及可以通过ADB查找到的设备
|
|
||||||
|
|
||||||
### Python源码运行和开发
|
### Development
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python main.py
|
python main_debug.py
|
||||||
```
|
```
|
||||||
|
|
||||||
* main_debug.py 是开启debug日志的, 以及OverlayView, 并且每次点击都会截图保存在click_screenshot
|
|
||||||
* main_debug_console.py 是未开启gui界面的版本
|
|
||||||
* 默认使用CPU进行OCR, 识别耗时大约300-400ms, 如果要使用GPU, 请参见RapidOCR文档, 安装GPU版依赖
|
|
||||||
|
|
||||||
### 常见的问题
|
|
||||||
|
|
||||||
#### 1. 分辨率支持
|
|
||||||
|
|
||||||
由于都是按窗口百分比计算的, 只支持16:9,1080p,2k,4k都行
|
|
||||||
|
|
||||||
#### 2. 发现Bug怎么办
|
|
||||||
|
|
||||||
可以直接提ISSUE, 附上截图和日志, 日志在logs文件夹, 错误截图在screenshot里
|
|
||||||
|
|
||||||
#### 3. 是否免费
|
|
||||||
|
|
||||||
一直免费, 我还没退坑的话, 就会一直更新
|
|
||||||
|
|
||||||
|
|
||||||
|
13
config.py
13
config.py
@ -16,7 +16,7 @@ config = {
|
|||||||
'debug': False, # Optional, default: False
|
'debug': False, # Optional, default: False
|
||||||
'use_gui': True,
|
'use_gui': True,
|
||||||
'config_folder': 'configs',
|
'config_folder': 'configs',
|
||||||
'gui_icon': get_path_in_package(__file__, 'icon.ico'),
|
'gui_icon': get_path_in_package(__file__, 'icon.png'),
|
||||||
'ocr': {
|
'ocr': {
|
||||||
'lib': 'RapidOCR',
|
'lib': 'RapidOCR',
|
||||||
'inference_num_threads': int(os.cpu_count() / 2)
|
'inference_num_threads': int(os.cpu_count() / 2)
|
||||||
@ -39,19 +39,18 @@ config = {
|
|||||||
'update': {
|
'update': {
|
||||||
'releases_url': 'https://api.github.com/repos/ok-oldking/ok-wuthering-waves/releases?per_page=15',
|
'releases_url': 'https://api.github.com/repos/ok-oldking/ok-wuthering-waves/releases?per_page=15',
|
||||||
'proxy_url': 'https://gh.ok-script.com/',
|
'proxy_url': 'https://gh.ok-script.com/',
|
||||||
'exe_name': 'ok-baijing.exe',
|
'exe_name': 'ok-ww.exe',
|
||||||
'use_proxy': True
|
'use_proxy': True
|
||||||
},
|
},
|
||||||
'about': """
|
'about': """
|
||||||
<h3>OK-WW</h3>
|
<h3>OK-Wuthering-Waves</h3>
|
||||||
<p>免费开源软件 <a href="https://github.com/ok-oldking/ok-baijing">https://github.com/ok-oldking/ok-baijing</></p>
|
<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-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>报告问题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>视频演示 <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>
|
<p>QQ群:<a href="https://qm.qq.com/q/aGO7eBJ2Uw">594495691</a></p>
|
||||||
""",
|
""",
|
||||||
'supported_screen_ratio': '16:9',
|
'supported_screen_ratio': '16:9',
|
||||||
'screenshots_folder': "screenshots",
|
'screenshots_folder': "screenshots",
|
||||||
'gui_title': 'OK-WW', # Optional
|
'gui_title': 'OK-Wuthering-Waves', # Optional
|
||||||
# 'coco_feature_folder': get_path(__file__, 'assets/coco_feature'), # required if using feature detection
|
# '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
|
'log_file': 'logs/ok-script.log', # Optional, auto rotating every day
|
||||||
'error_log_file': 'logs/ok-script_error.log',
|
'error_log_file': 'logs/ok-script_error.log',
|
||||||
|
@ -111,8 +111,8 @@ exe = EXE(
|
|||||||
a.scripts,
|
a.scripts,
|
||||||
[],
|
[],
|
||||||
exclude_binaries=True,
|
exclude_binaries=True,
|
||||||
name='ok-baijing',
|
name='ok-ww',
|
||||||
icon='icon.ico',
|
icon='icon.png',
|
||||||
debug=False,
|
debug=False,
|
||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user