LmeSzinc / AzurLaneAutoScript

Azur Lane bot (CN/EN/JP/TW) 碧蓝航线脚本 | 无缝委托科研,全自动大世界
https://alas.azurlane.cloud
GNU General Public License v3.0
6.98k stars 838 forks source link

夜神模拟器在黑屏状态下大概率无法进行commission任务 #2163

Open LivP0810 opened 1 year ago

LivP0810 commented 1 year ago

在提问之前...

描述你的问题

使用夜神模拟器最新版,在黑屏状态下进行commission任务,alas大概率会无法滑动界面(?),执行任务失败

如何复现

  1. 前往 '...'
  2. 点击 '....'
  3. 滑动到 '....'
  4. 出现问题

预期行为

alas正确地在黑屏状态下(电脑长时间无人工操作,黑屏以保护屏幕,并且电脑未处于休眠状态)执行commission,正如其在同样状态下正确地执行了dorm和research任务那样。error_1.zip文件中记录了alas尝试三次执行commission并失败了。

相关 Logs

No response

截图

error_1.zip

还有别的吗?

No response

LmeSzinc commented 1 year ago

模拟器滑动滑不动,确认你的模拟器设置60帧,游戏设置60帧,实际运行在60帧

2023-01-23 01:20:22.257 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:22.262 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:22.272 | INFO | COMMISSION_SCROLL_AREA set to 1                                                       
2023-01-23 01:20:22.281 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:22.293 | INFO | Swipe (1258,  324) -> (1257,  437)                                                    
2023-01-23 01:20:23.044 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:23.647 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:24.571 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:24.577 | INFO | Swipe (1260,  328) -> (1259,  435)                                                    
2023-01-23 01:20:25.272 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:26.119 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:26.742 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:26.746 | INFO | Swipe (1260,  333) -> (1256,  442)                                                    
2023-01-23 01:20:27.401 | INFO | [COMMISSION_SCROLL_AREA] 0.02 (252.51497005988023-250.5)/(599-501)                    
2023-01-23 01:20:28.282 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:28.922 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:28.926 | INFO | Swipe (1254,  325) -> (1256,  433)                                                    
2023-01-23 01:20:29.973 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:30.643 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:31.503 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:31.508 | INFO | Swipe (1256,  324) -> (1259,  433)                                                    
2023-01-23 01:20:32.220 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:32.652 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:33.084 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:33.089 | INFO | Swipe (1259,  331) -> (1260,  438)                                                    
2023-01-23 01:20:33.812 | INFO | [COMMISSION_SCROLL_AREA] 0.04 (252.16129032258064-248.0)/(599-496)                    
2023-01-23 01:20:34.345 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:34.816 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:34.823 | INFO | Swipe (1254,  332) -> (1256,  442)                                                    
2023-01-23 01:20:35.613 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.3320079522863-251.5)/(599-503)                     
2023-01-23 01:20:36.284 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:36.922 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:36.929 | INFO | Swipe (1258,  330) -> (1254,  439)                                                    
2023-01-23 01:20:37.492 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:38.332 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:38.994 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:38.999 | INFO | Swipe (1256,  327) -> (1255,  439)                                                    
2023-01-23 01:20:39.566 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:40.062 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:40.693 | INFO | [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)                                 
2023-01-23 01:20:40.699 | INFO | Swipe (1260,  326) -> (1258,  441)                                                    
2023-01-23 01:20:43.669 | INFO | [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)                                 
2023-01-23 01:20:43.999 | INFO | [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)                                 
2023-01-23 01:20:44.342 | INFO | [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)                                 
2023-01-23 01:20:44.348 | INFO | Swipe (1254,  366) -> (1256,  440)                                                    
2023-01-23 01:20:44.871 | INFO | [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)                                 
2023-01-23 01:20:45.297 | INFO | [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)                                 
2023-01-23 01:20:45.913 | INFO | [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)                                 
2023-01-23 01:20:45.919 | WARNING | Too many click for a button: COMMISSION_SCROLL_AREA                                
2023-01-23 01:20:45.924 | WARNING | History click: ['COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA',                
'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA',                
'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA',                
'COMMISSION_SCROLL_AREA', 'COMMISSION_SCROLL_AREA']                                                                    
2023-01-23 01:20:45.933 | ERROR | GameTooManyClickError: Too many click for a button: COMMISSION_SCROLL_AREA           
2023-01-23 01:20:45.938 | WARNING | Saving error: ./log/error/1674408045937    
LivP0810 commented 1 year ago

模拟器设置60帧,游戏设置60帧;实际运行时,委托界面滑动时为40-60帧 电脑性能还可以,符合“截图时一般电脑耗时约0.5s”的描述 该问题只在黑屏时出现,在亮屏时几乎从不出现

LivP0810 commented 1 year ago

夜神模拟器在黑屏状态下大概率无法进行commission任务 #2163 log_1.zip 可能问题不是出在commission任务上,而是出在alas在黑屏状态下的处理方式。新的压缩包中包含了另一个错误例子:黑屏状态下,alas在处理主线图任务时出现了Too many click for a button: MAP_SWIPE_0_0的错误,并在尝试重启游戏,再次进行该操作而失败三次后,中止了运行。三个文件夹分别含有三次失败的error log。part_of_log.txt文件中包含了在第三次重启后,alas先成功运行了commission任务,然后又在主线图任务上失败。此次alas在黑屏状态下成功运行commission任务,使我更加确信alas并非在设计时没有被考虑在黑屏状态下运行,而是仅仅含有某些缺陷。

LivP0810 commented 1 year ago

device.txt 看了https://github.com/LmeSzinc/AzurLaneAutoScript/issues/1810#issuecomment-1304751148 ,之后,我附上刚刚另做的性能测试结果,之前是aScreenCap_nc+minitouch,这次测试后改为DroidCast_raw+minitouch

wosiwq commented 1 year ago

哥 如果你的电脑黑屏和亮屏没有区别 那为什么你会觉得alas会有区别呢 你都能看到黑屏之后报错的截图也能截图出游戏画面了 说明有可能是你电脑的策略问题 在黑屏时自动降低了性能来减少功耗降低发热 为什么会是alas的问题

LmeSzinc commented 1 year ago

嗯,如果你是笔记本电脑的话,长时间闲置可能进入待机/休眠/低功耗模式等等,导致卡顿,需要检查你的系统设置/电源选项这些来防止。