hgjazhgj / FGO-py

自动爬塔! 自动每周任务! 全自动免配置跨平台的Fate/Grand Order助手.启动脚本,上床睡觉,养肝护发,满加成圣诞了解一下?
http://fgo-py.hgjazhgj.top/
GNU Affero General Public License v3.0
1.53k stars 179 forks source link

选助战界面无法快速选择助战 #40

Closed LiuGengzhe closed 2 years ago

LiuGengzhe commented 2 years ago

说明你发现的bug
在使用【肝!】功能时,即使遇见了符合截图设置的助战,也会忽略她而继续下翻助战页面,甚至会翻到末尾点击列表更新(图2),在经过一段时间的翻助战的操作后,最后会选择到cab 复现步骤
在点击第一个关卡就能进入选择助战界面时点击【肝!】按钮 期待的行为
及时选择符合助战截图(图一)设置的助战 截图/日志
image 图1 image 图2 日志如下 [2022-01-08 20:12:33,396][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe devices [2022-01-08 20:12:38,362][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 get-state [2022-01-08 20:12:38,468][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 wait-for-device [2022-01-08 20:12:38,574][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getprop ro.build.version.sdk [2022-01-08 20:12:56,698][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell ls -l /data/local/tmp/rotationwatcher.jar ; echo ---$?--- [2022-01-08 20:12:57,196][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 push D:\python\Lib\site-packages\airtest\core\android\static\apks\rotationwatcher.jar /data/local/tmp/rotationwatcher.jar [2022-01-08 20:12:57,350][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell chmod 755 /data/local/tmp/rotationwatcher.jar ; echo ---$?--- [2022-01-08 20:12:57,436][INFO] install rotationwacher finished [2022-01-08 20:12:57,438][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell app_process -Djava.class.path=/data/local/tmp/rotationwatcher.jar /data/local/tmp com.example.rotationwatcher.Main [2022-01-08 20:12:58,047][DEBUG] [rotation_server]b'0' [2022-01-08 20:12:58,783][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell wm size [2022-01-08 20:12:58,783][INFO] update orientation None->0 [2022-01-08 20:12:58,783][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell wm size [2022-01-08 20:12:59,319][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getprop ro.sf.lcd_density [2022-01-08 20:12:59,352][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getprop ro.sf.lcd_density [2022-01-08 20:12:59,444][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell dumpsys SurfaceFlinger ; echo ---$?--- [2022-01-08 20:12:59,448][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell dumpsys SurfaceFlinger ; echo ---$?--- [2022-01-08 20:12:59,571][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getevent -p ; echo ---$?--- [2022-01-08 20:12:59,601][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getevent -p ; echo ---$?--- [2022-01-08 20:12:59,817][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getprop ro.product.cpu.abi [2022-01-08 20:12:59,866][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell dumpsys window windows ; echo ---$?--- [2022-01-08 20:12:59,921][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell getprop ro.build.version.sdk [2022-01-08 20:13:00,035][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell ls -l /data/local/tmp/minitouch ; echo ---$?--- [2022-01-08 20:13:00,145][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 push D:\python\Lib\site-packages\airtest\core\android\static\stf_libs\x86\minitouch /data/local/tmp/minitouch [2022-01-08 20:13:00,416][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell chmod 755 /data/local/tmp/minitouch ; echo ---$?--- [2022-01-08 20:13:00,504][INFO] install_minitouch finished [2022-01-08 20:13:00,504][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 forward --no-rebind tcp:19421 localabstract:minitouch_19421 [2022-01-08 20:13:00,579][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell /data/local/tmp/minitouch -n 'minitouch_19421' 2>&1 [2022-01-08 20:13:00,675][DEBUG] [minitouch_server]b'Note: device /dev/input/mouse1 is not supported by libevdev' [2022-01-08 20:13:00,725][DEBUG] [minitouch_server]b'Note: device /dev/input/mice is not supported by libevdev' [2022-01-08 20:13:00,750][DEBUG] [minitouch_server]b'Note: device /dev/input/mouse0 is not supported by libevdev' [2022-01-08 20:13:00,773][DEBUG] [minitouch_server]b'Type B touch device nemuVM Virtual Input (1440x810 with 32 contacts) detected on /dev/input/event5 (score 22111)' [2022-01-08 20:13:00,774][DEBUG] [minitouch_server]b'Note: hard-limiting maximum number of contacts to 10' [2022-01-08 20:13:00,781][DEBUG] minitouch header:b'v 1\n^ 10 1440 810 0\n$ 2848\n' [2022-01-08 20:13:00,781][DEBUG] [minitouch_server]b'Connection established' [2022-01-08 20:13:01,131][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell dumpsys package com.netease.nie.yosemite ; echo ---$?--- [2022-01-08 20:13:01,216][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 forward --no-rebind tcp:16569 localabstract:javacap_16569 [2022-01-08 20:13:01,295][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell pm path com.netease.nie.yosemite ; echo ---$?--- [2022-01-08 20:13:01,608][DEBUG] D:\python\Lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s 127.0.0.1:7555 shell CLASSPATH=/data/app/com.netease.nie.yosemite-1/base.apk exec app_process /system/bin com.netease.nie.yosemite.Capture --scale 100 --socket javacap_16569 -lazy 2>&1 [2022-01-08 20:13:01,916][DEBUG] [javacap_sever]b'Capture server listening on @javacap_16569' [2022-01-08 20:13:02,015][DEBUG] (1, 3, 0, 1440, 810, 0, 0, 0, 1) [2022-01-08 20:13:02,416][DEBUG] 0 [2022-01-08 20:13:02,726][DEBUG] isMainInterface True [2022-01-08 20:13:03,513][DEBUG] 0 [2022-01-08 20:13:03,815][DEBUG] isApEmpty False [2022-01-08 20:13:04,132][DEBUG] 1 [2022-01-08 20:13:04,141][DEBUG] isChooseFriend False [2022-01-08 20:13:04,142][DEBUG] isNoFriend False [2022-01-08 20:13:04,461][DEBUG] 2 [2022-01-08 20:13:04,470][DEBUG] isChooseFriend False [2022-01-08 20:13:04,470][DEBUG] isNoFriend False [2022-01-08 20:13:04,797][DEBUG] 3 [2022-01-08 20:13:04,805][DEBUG] isChooseFriend False [2022-01-08 20:13:04,806][DEBUG] isNoFriend False [2022-01-08 20:13:05,130][DEBUG] isNetworkError False [2022-01-08 20:13:05,138][DEBUG] 4 [2022-01-08 20:13:05,148][DEBUG] isChooseFriend False [2022-01-08 20:13:05,149][DEBUG] isNoFriend False [2022-01-08 20:13:05,481][DEBUG] 5 [2022-01-08 20:13:05,490][DEBUG] isChooseFriend False [2022-01-08 20:13:05,490][DEBUG] isNoFriend False [2022-01-08 20:13:05,818][DEBUG] 6 [2022-01-08 20:13:05,826][DEBUG] isChooseFriend False [2022-01-08 20:13:05,826][DEBUG] isNoFriend False [2022-01-08 20:13:06,221][DEBUG] 7 [2022-01-08 20:13:06,230][DEBUG] isChooseFriend True [2022-01-08 20:13:06,679][DEBUG] isFriendListEnd False [2022-01-08 20:13:07,897][DEBUG] 0 [2022-01-08 20:13:08,139][DEBUG] isNetworkError False [2022-01-08 20:13:08,345][DEBUG] isFriendListEnd False [2022-01-08 20:13:09,571][DEBUG] 0 [2022-01-08 20:13:10,030][DEBUG] isFriendListEnd False [2022-01-08 20:13:11,146][DEBUG] isNetworkError False [2022-01-08 20:13:11,235][DEBUG] 0 [2022-01-08 20:13:11,671][DEBUG] isFriendListEnd False [2022-01-08 20:13:12,893][DEBUG] 0 [2022-01-08 20:13:13,337][DEBUG] isFriendListEnd False [2022-01-08 20:13:14,155][DEBUG] isNetworkError False [2022-01-08 20:13:14,547][DEBUG] 0 [2022-01-08 20:13:14,991][DEBUG] isFriendListEnd False [2022-01-08 20:13:16,222][DEBUG] 0 [2022-01-08 20:13:16,662][DEBUG] isFriendListEnd False [2022-01-08 20:13:17,162][DEBUG] isNetworkError False [2022-01-08 20:13:17,856][DEBUG] 0 [2022-01-08 20:13:18,300][DEBUG] isFriendListEnd False [2022-01-08 20:13:19,541][DEBUG] 0 [2022-01-08 20:13:19,980][DEBUG] isFriendListEnd False [2022-01-08 20:13:20,170][DEBUG] isNetworkError False [2022-01-08 20:13:21,206][DEBUG] 0 [2022-01-08 20:13:21,632][DEBUG] isFriendListEnd False [2022-01-08 20:13:22,835][DEBUG] 0 [2022-01-08 20:13:23,182][DEBUG] isNetworkError False [2022-01-08 20:13:23,260][DEBUG] isFriendListEnd True [2022-01-08 20:13:25,169][DEBUG] 1 [2022-01-08 20:13:25,179][DEBUG] isChooseFriend False [2022-01-08 20:13:25,180][DEBUG] isNoFriend False [2022-01-08 20:13:25,555][DEBUG] 2 [2022-01-08 20:13:25,563][DEBUG] isChooseFriend False [2022-01-08 20:13:25,564][DEBUG] isNoFriend False [2022-01-08 20:13:25,944][DEBUG] 3 [2022-01-08 20:13:25,955][DEBUG] isChooseFriend False [2022-01-08 20:13:25,955][DEBUG] isNoFriend False [2022-01-08 20:13:26,190][DEBUG] isNetworkError False [2022-01-08 20:13:26,308][DEBUG] 4 [2022-01-08 20:13:26,317][DEBUG] isChooseFriend False [2022-01-08 20:13:26,317][DEBUG] isNoFriend False [2022-01-08 20:13:26,670][DEBUG] 5 [2022-01-08 20:13:26,679][DEBUG] isChooseFriend False [2022-01-08 20:13:26,680][DEBUG] isNoFriend False [2022-01-08 20:13:27,031][DEBUG] 6 [2022-01-08 20:13:27,039][DEBUG] isChooseFriend False [2022-01-08 20:13:27,039][DEBUG] isNoFriend False [2022-01-08 20:13:27,439][DEBUG] 7 [2022-01-08 20:13:27,448][DEBUG] isChooseFriend True [2022-01-08 20:13:27,892][DEBUG] isFriendListEnd False [2022-01-08 20:13:29,128][DEBUG] 0 [2022-01-08 20:13:29,199][DEBUG] isNetworkError False [2022-01-08 20:13:29,581][DEBUG] isFriendListEnd False [2022-01-08 20:13:30,809][DEBUG] 0 [2022-01-08 20:13:31,250][DEBUG] find (1415, 398) [2022-01-08 20:13:31,283][INFO] chooseFriend caber_101710171017xx [2022-01-08 20:13:31,571][DEBUG] 0 [2022-01-08 20:13:31,577][DEBUG] isBattleBegin False [2022-01-08 20:13:31,751][DEBUG] 1 [2022-01-08 20:13:31,756][DEBUG] isBattleBegin False [2022-01-08 20:13:31,934][DEBUG] 2

设备信息
mumu模拟器 python 3.9.7 PyQt6 6.2.2
airtest 1.2.4 其他
那个图1的“caber_101710171017xx.png”是我从unused里拿出来的。

LiuGengzhe commented 2 years ago

如果是设置礼装助战,不是像上面设置技能助战,这样的话则是正常的。能够及时挑选礼装助战。

hgjazhgj commented 2 years ago

下个版本会调整识别的参数,此前你可以使用自己制作的助战模板