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

做日程时循环翻页,且日程做的是错的 #132

Open
tohsaka203 opened this issue Aug 6, 2024 · 3 comments
Open

做日程时循环翻页,且日程做的是错的 #132

tohsaka203 opened this issue Aug 6, 2024 · 3 comments
Labels
使用问题 咨询使用功能问题

Comments

@tohsaka203
Copy link

设置如图所示
屏幕截图 2024-08-06 085503

这是截取的日志,我选的应该是生活区、歌赫娜、崔尼帝,实际执行了歌赫娜1次,阿拜多斯2次,然后无限翻页循环,一开始的行为看起来像是把生活区(第二个)当成了第一个

INFO | 2024-08-06 08:53:24 | screenshot_interval set to 0.3
INFO | 2024-08-06 08:53:24 | --------------Init Emulator----------------
INFO | 2024-08-06 08:53:24 | -- BAAS Check Emulator Start --
INFO | 2024-08-06 08:53:24 | -- Emulator Process Nox.exe is running --
INFO | 2024-08-06 08:53:24 | adb port: 62001
INFO | 2024-08-06 08:53:24 | --------------Check ATX install ----------------
INFO | 2024-08-06 08:53:25 | Screen Size (720, 1280)
INFO | 2024-08-06 08:53:25 | Screen Size Ratio: 1.0
INFO | 2024-08-06 08:53:25 | --------Emulator Init Finished----------
INFO | 2024-08-06 08:53:25 | --------Initialization Finished----------
INFO | 2024-08-06 08:53:25 | Starting Blue Archive Auto Script...
INFO | 2024-08-06 08:53:25 | -------------- Start Scheduler ----------------
INFO | 2024-08-06 08:53:25 | Scheduler : {
INFO | 2024-08-06 08:53:25 | pre_task : []
INFO | 2024-08-06 08:53:25 | current_task : lesson
INFO | 2024-08-06 08:53:25 | post_task : []
INFO | 2024-08-06 08:53:25 | }
INFO | 2024-08-06 08:53:25 | current_task: [ lesson ] start
INFO | 2024-08-06 08:53:25 | find main_page_quick-home
INFO | 2024-08-06 08:53:25 | click (1236 , 31 )
INFO | 2024-08-06 08:53:28 | end : main_page
INFO | 2024-08-06 08:53:28 | find : main_page
INFO | 2024-08-06 08:53:28 | click (210 , 655)
INFO | 2024-08-06 08:53:30 | find main_page_home-feature
INFO | 2024-08-06 08:53:30 | click (210 , 655)
INFO | 2024-08-06 08:53:31 | end : lesson_location-select
INFO | 2024-08-06 08:53:31 | tickets: 2
INFO | 2024-08-06 08:53:31 | swipe from ( 940 , 213 ) --> ( 940 , 560 )
INFO | 2024-08-06 08:53:31 | begin schedule in [沙勒生活区]
INFO | 2024-08-06 08:53:31 | find lesson_location-select
INFO | 2024-08-06 08:53:31 | click (937 , 186)
INFO | 2024-08-06 08:53:34 | end : lesson_select-location
INFO | 2024-08-06 08:53:34 | now in page 沙勒业务区
INFO | 2024-08-06 08:53:34 | click (1247 , 360)
INFO | 2024-08-06 08:53:36 | end : lesson_select-location
INFO | 2024-08-06 08:53:36 | now in page 沙勒业务区
INFO | 2024-08-06 08:53:36 | click (1247 , 360)
INFO | 2024-08-06 08:53:37 | end : lesson_select-location
INFO | 2024-08-06 08:53:37 | now in page 沙勒生活区
INFO | 2024-08-06 08:53:37 | find lesson_select-location
INFO | 2024-08-06 08:53:37 | click (1160 , 664)
INFO | 2024-08-06 08:53:40 | end : lesson_all-locations
INFO | 2024-08-06 08:53:40 | schedule status:
available :3 available :2 available :1
available :2 available :1 available :2
done done no activity
INFO | 2024-08-06 08:53:40 | begin schedule in [歌赫娜中央区]
INFO | 2024-08-06 08:53:40 | find lesson_all-locations
INFO | 2024-08-06 08:53:40 | click (1138 , 117)
INFO | 2024-08-06 08:53:41 | end : lesson_select-location
INFO | 2024-08-06 08:53:41 | now in page 沙勒生活区
INFO | 2024-08-06 08:53:41 | click (1247 , 360)
INFO | 2024-08-06 08:53:43 | end : lesson_select-location
INFO | 2024-08-06 08:53:43 | now in page 歌赫娜中央区
INFO | 2024-08-06 08:53:43 | find lesson_select-location
INFO | 2024-08-06 08:53:43 | click (1160 , 664)
INFO | 2024-08-06 08:53:45 | end : lesson_all-locations
INFO | 2024-08-06 08:53:45 | schedule status:
available :3 available :1 available :3
available :2 available :1 available :1
done done no activity
INFO | 2024-08-06 08:53:45 | begin schedule in [千禧年学习区]
INFO | 2024-08-06 08:53:45 | find lesson_all-locations
INFO | 2024-08-06 08:53:45 | click (1138 , 117)
INFO | 2024-08-06 08:53:46 | end : lesson_select-location
INFO | 2024-08-06 08:53:46 | now in page 歌赫娜中央区
INFO | 2024-08-06 08:53:46 | click (1247 , 360) 2 times
INFO | 2024-08-06 08:53:49 | end : lesson_select-location
INFO | 2024-08-06 08:53:50 | now in page 阿拜多斯高等学院
INFO | 2024-08-06 08:53:50 | click (1247 , 360)
INFO | 2024-08-06 08:53:51 | end : lesson_select-location
INFO | 2024-08-06 08:53:51 | now in page 崔尼蒂广场区
INFO | 2024-08-06 08:53:51 | click (32 , 360)
INFO | 2024-08-06 08:53:53 | end : lesson_select-location
INFO | 2024-08-06 08:53:53 | now in page 红冬联邦学院
INFO | 2024-08-06 08:53:53 | click (32 , 360) 2 times
INFO | 2024-08-06 08:53:56 | end : lesson_select-location
INFO | 2024-08-06 08:53:56 | now in page 崔尼蒂广场区
INFO | 2024-08-06 08:53:56 | click (32 , 360)
INFO | 2024-08-06 08:53:58 | end : lesson_select-location
INFO | 2024-08-06 08:53:58 | now in page 阿拜多斯高等学院
INFO | 2024-08-06 08:53:58 | click (1247 , 360)
INFO | 2024-08-06 08:53:59 | end : lesson_select-location
INFO | 2024-08-06 08:53:59 | now in page 歌赫娜中央区
INFO | 2024-08-06 08:53:59 | click (1247 , 360) 2 times
INFO | 2024-08-06 08:54:02 | end : lesson_select-location
INFO | 2024-08-06 08:54:02 | now in page 阿拜多斯高等学院
INFO | 2024-08-06 08:54:02 | click (1247 , 360)
INFO | 2024-08-06 08:54:04 | end : lesson_select-location
INFO | 2024-08-06 08:54:04 | now in page 崔尼蒂广场区
INFO | 2024-08-06 08:54:04 | click (32 , 360)
INFO | 2024-08-06 08:54:06 | end : lesson_select-location
INFO | 2024-08-06 08:54:06 | now in page 红冬联邦学院
INFO | 2024-08-06 08:54:06 | click (32 , 360) 2 times
INFO | 2024-08-06 08:54:09 | end : lesson_select-location
INFO | 2024-08-06 08:54:09 | now in page 崔尼蒂广场区
INFO | 2024-08-06 08:54:09 | click (32 , 360)
INFO | 2024-08-06 08:54:11 | end : lesson_select-location
INFO | 2024-08-06 08:54:11 | now in page 阿拜多斯高等学院
INFO | 2024-08-06 08:54:11 | click (1247 , 360)
INFO | 2024-08-06 08:54:12 | end : lesson_select-location
INFO | 2024-08-06 08:54:12 | now in page 歌赫娜中央区
INFO | 2024-08-06 08:54:12 | click (1247 , 360) 2 times
INFO | 2024-08-06 08:54:15 | end : lesson_select-location
INFO | 2024-08-06 08:54:15 | now in page 阿拜多斯高等学院
INFO | 2024-08-06 08:54:15 | click (1247 , 360)
INFO | 2024-08-06 08:54:17 | end : lesson_select-location
INFO | 2024-08-06 08:54:17 | now in page 崔尼蒂广场区
INFO | 2024-08-06 08:54:17 | click (32 , 360)
INFO | 2024-08-06 08:54:19 | BAAS Exited, Reason : Human Take Over

2024-08-06.09-03-22_compressed.mp4
@pur1fying pur1fying added the 新的议题 新的议题,用于后续提交PR label Aug 8, 2024
@pur1fying
Copy link
Owner

看了下日志,这里点击右翻页后,判断页码仍在前一页
image
对应module/lesson line65,66
image
可以的话请提取出问题时的图像 :
在这两行间插入
cv2.imwrite("img.png", self.latest_img_array)
否则难以判断为什么运行时会出现这样的日志(

注 : 主线图 和 困难图寻路时偶尔也会出现这样的问题,应该和这里是一个原因

@tohsaka203
Copy link
Author

我没找到提取出的图像在哪。程序重启会删掉那句代码,我也不知道它有没有成功运行。

今天第一次运行还是一样,重启了几次后,刚才正常运行了一次,也不知道中间发生了什么,明天再看看

@pur1fying
Copy link
Owner

不能用exe启动, 不然每次都会覆盖, 修改完代码后在安装目录下启动命令行
image
运行命令
"env/Scripts/python.exe" window.py
image

@Kiramei Kiramei added 使用问题 咨询使用功能问题 and removed 新的议题 新的议题,用于后续提交PR labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
使用问题 咨询使用功能问题
Projects
None yet
Development

No branches or pull requests

3 participants