Luhan Xiao
|
c04dab8c05
|
fix(macOS): 为 PlayCover 生息演算 RA1 二倍速识别添加 iOS 模板和降低识别阈值 (#16779)
## 修改内容
为 iOS / PlayCover 差异资源中的 `RelaunchAnchor@RA@RA1-DoubleSpeed`
增加单独的模板匹配阈值:
```json
"RelaunchAnchor@RA@RA1-DoubleSpeed": {
"templThreshold": 0.75
}
```
修改文件:
```text
resource/platform_diff/iOS/resource/tasks.json
```
## 问题背景
在 MacBook Air M4 + PlayCover 环境下执行生息演算 `Reclamation / RelaunchAnchor`
时,RA-1 流程会在部署采集基站后卡在:
```text
RelaunchAnchor@RA@RA1-WaitDoubleSpeed
```
游戏画面右上角实际已经出现二倍速按钮,但模板匹配分数只有约 `0.78`,低于默认阈值时不会进入 `RA1-DoubleSpeed`
点击节点,而是持续停留在 `RA1-WaitDoubleSpeed / DoNothing`。
相关问题背景可参考:#16775、#16778
更完整的问题发现、排查、修改和本地测试闭环见:#16778
## 本地验证
本地先恢复了通用任务文件 `resource/tasks/RA/Reclamation3.json`,只在 iOS 差异文件中加入上述
`templThreshold` 配置后,重新启动 MAA 并测试。
日志中可以看到 iOS 差异资源被加载:
```text
load ../../../../../../../../Applications/MAA.app/Contents/Resources/resource/platform_diff/iOS/resource/template
load ret 1
```
原本卡住的位置可以成功识别并进入 `RA1-DoubleSpeed`:
```text
cur_task":"RelaunchAnchor@RA@RA1-WaitDoubleSpeed"
to_be_recognized":["RelaunchAnchor@RA@RA1-DoubleSpeed","RelaunchAnchor@RA@RA1-WaitDoubleSpeed"]
match_templ | RelaunchAnchor@RA@DoubleSpeed.png [optimized] score: 0.784211 rect: [ 1068, 24, 52, 63 ] roi: [ 1060, 20, 80, 70 ]
analyze | MatchTemplate RelaunchAnchor@RA@RA1-DoubleSpeed
"action":"ClickSelf"
"algorithm":"MatchTemplate"
"score":0.784211
"task":"RA1-DoubleSpeed"
Click with scaled coordinates (1094, 83) 1.5
PlayTools click: (1641, 124)
```
之后流程继续进入后续节点:
```text
RelaunchAnchor@RA@RA1-DeployGatheringBaseWait
RelaunchAnchor@RA@RA1-WaitCost
RelaunchAnchor@RA@RA1-Cost
RelaunchAnchor@RA@RA1-DeployOperatorSwipe
RelaunchAnchor@RA@RA1-DeployOperatorDirection
```
本地游戏内也确认可以正常继续执行,不再卡在 `RA1-WaitDoubleSpeed`。
## 说明
该修改没有改动通用 `resource/tasks/RA/Reclamation3.json`,只对 iOS / PlayCover
平台差异资源生效,用于兼容 PlayCover 环境下二倍速按钮模板匹配分数偏低的问题。
|
2026-05-22 00:57:29 +08:00 |
|
Weiyou Wang
|
7e7feb9599
|
fix: 调低 MacOS PlayCover 下对 InfrastControl 识别的阈值 (#14139)
|
2025-09-17 00:21:20 +08:00 |
|
BxFS
|
39fe954980
|
fix: burden/toil tasks threshold 0.9 -> 0.8 (#12087)
---------
Co-authored-by: Constrat <56174894+Constrat@users.noreply.github.com>
|
2025-03-05 18:42:09 +01:00 |
|
晓丶梦丶仁
|
4b3a247b9a
|
fix: Mac 日服 IS4 识别阈值 (#11979)
fix: mac 日服 IS4 识别阈值
|
2025-02-20 22:58:36 +08:00 |
|
Hao Guan
|
42cddce5c6
|
feat(mac): 开始唤醒支持账号切换 (#11803)
|
2025-02-08 18:52:42 +08:00 |
|
Weiyou Wang
|
fca7ad6a6a
|
fix: 为 ios端降低 Sarkaz@Roguelike@DecreaseBurdenAbandonThought 任务模版匹配的 threshold (#11266)
|
2024-12-01 21:09:20 +08:00 |
|
Hao Guan
|
4d8d31430e
|
fix: 调整iOS萨卡兹肉鸽节点刷新模板识别阈值
|
2024-07-21 22:33:44 +08:00 |
|
Constrat
|
d8acf29140
|
fix: reduced Mizuki@Roguelike@MissionFailedFlag threshold for iOS
fix #7864 temporary fix as #7872 exists
|
2024-01-07 17:04:01 +08:00 |
|
lanhao34
|
02c4d865c5
|
fix: 降低iOS平台中部分模板匹配的阈值 (#6963)
|
2023-10-17 22:51:32 +08:00 |
|
MistEO
|
8366f51b47
|
chore: rename platform resource for iOS
|
2023-08-22 10:11:31 +08:00 |
|