Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello,识别stage会被上方奖励弹窗遮挡 #18

Closed
zsppp opened this issue Feb 16, 2021 · 6 comments
Closed

Hello,识别stage会被上方奖励弹窗遮挡 #18

zsppp opened this issue Feb 16, 2021 · 6 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@zsppp
Copy link

zsppp commented Feb 16, 2021

问题:奖励弹窗太多,导致下一次战斗第一回合无法正确识别Stage
临时修改:给select函数加了threshold,无法识别的情况下默认Stage为1,StageTotal为3

@hgjazhgj
Copy link
Owner

来了来了,有这种事
是仅无法正确识别Stage,还是Stage和StageTotal都被遮挡了
有没有相关截图
另外我印象中奖励弹窗是不会在剧情和战斗时出现的....

@zsppp
Copy link
Author

zsppp commented Feb 16, 2021

是Stage和StageTotal都被遮挡了,每日任务和每周任务的弹窗会积攒太多一个个弹,然后下一场战斗都开始了还没弹完
一般是每天的前几场战斗出现,明天再试试出来截图

select的逻辑是获取匹配度最接近的,我参考compare加了个threshold

@hgjazhgj
Copy link
Owner

修了,你自己测试一下吧

@zsppp
Copy link
Author

zsppp commented Feb 16, 2021

1

啊,首先膜拜大佬的代码。
感觉threshold可以调到0.5(因为有背景干扰
我加了打印今天看到stage被遮挡的情况下matchTemplate的值都是0.9以上,所以threshold调高点没关系啦

@hgjazhgj
Copy link
Owner

明白了,会在下次更新时作出调整

@hgjazhgj
Copy link
Owner

我终于复现了这个问题
这个问题仅在每周一周常任务和日常任务同时刷新且周常任务命中较多并下一场战斗是由"继续战斗"引导的情形下发生
也真亏你能发现...

@hgjazhgj hgjazhgj added bug Something isn't working enhancement New feature or request labels Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants