Repository navigation
Conversation
Contributor
Findings
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "ab.chatgpt.com"See Network Configuration for more information.
|
Owner
|
给一下你完整的日志,和控制模拟器方式 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Tako 在组队副本列表里查找「愤怒的石距」时失败,最终因滑动被计入连点保护而报错(参考用户侧日志
log/error/1791606393495):原因:
check_zones通过list_find查找列表,而list_find对纯文字列表固定每次只滑动 1 个列表项(tasks/base_task.py里swipe_distance_ratio = 1)。L_TEAM_LIST的列表项高度是size=(216, 61),所以每次只滑 61px(日志中Swipe (238,357) -> (221,297)正好 60px);max_swipe=10次滑动总行程只有 600px,用完后仍未找到,返回 False。修改
tasks/base_task.py:list_find新增swipe_number参数(默认1,不改变其它任务的行为),OCR 列表用它作为每次滑动经过的列表项数量;tasks/Component/GeneralRoom/general_room.py:check_zones调用时传入swipe_number=3。3 × 61px = 183px,正好是 3 个列表项的高度,能让列表底部的「愤怒的石距」完整显示出来;10 次滑动的总行程从 600px 提升到 1820px。验证
用真实的
L_TEAM_LIST计算RuleList.swipe_pos()输出:(183px 是标称距离,
swipe_pos中distance // 2取整后实际为 182px。)备注
只加长滑动距离,不改列表内容、判定逻辑与阈值;
swipe_number默认值为1,因此其它使用list_find的任务行为保持不变。