LmeSzinc / AzurLaneAutoScript

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

须臾望月抄活动 刷紧急委托选择B1后会错误选择A1 #3140

Closed Celticwind closed 1 year ago

Celticwind commented 1 year ago

在提问之前...

描述你的问题

在最新的须臾望月抄活动中,Alas在刷紧急委托选项指定B1关卡,但是不知为何打的是A1,截图放下面。

如何复现

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

预期行为

No response

相关 Logs

GEMSFARMING                                    
═══════════════════════════════════════════════════════════════════════════════════
INFO     18:19:10.375 │ Stage name b1 is from event event_20230914_cn              
═══════════════════════════════════════ B1 ════════════════════════════════════════
INFO     18:19:10.389 │ B1                                                         
INFO     18:19:10.391 │ Count: 0                                                   
INFO     18:19:10.404 │ UI get current page                                        
INFO     18:19:10.420 │ [UI] page_commission                                       
INFO     18:19:10.421 │ <<< UI GOTO PAGE_CAMPAIGN_MENU >>>                         
INFO     18:19:10.433 │ Page switch: page_commission -> page_main                  
INFO     18:19:10.436 │ Click (1240,   33) @ GOTO_MAIN                             
INFO     18:19:11.888 │ Page switch: page_main -> page_campaign_menu               
INFO     18:19:11.890 │ Click (1093,  392) @ MAIN_GOTO_CAMPAIGN                    
INFO     18:19:12.177 │ Page arrive: page_campaign_menu                            
INFO     18:19:12.179 │ Event available                                            
INFO     18:19:12.181 │ <<< UI GOTO PAGE_EVENT >>>                                 
INFO     18:19:12.185 │ Page switch: page_campaign_menu -> page_event              
INFO     18:19:12.187 │ Click ( 805,  240) @ CAMPAIGN_MENU_GOTO_EVENT              
INFO     18:19:12.478 │ Page arrive: page_event                                    
INFO     18:19:12.497 │ [Mode_switch_2] ex                                         
INFO     18:19:12.515 │ [Mode_switch_1] hard                                       
INFO     18:19:12.518 │ <<< UI ENSURE INDEX >>>                                    
INFO     18:19:12.550 │ No stage found.                                            
INFO     18:19:12.813 │ No stage found.                                            
INFO     18:19:13.123 │ [campaign 0.020s] ['31', '33', '2']                        
INFO     18:19:13.124 │ [Chapter] 3                                                
INFO     18:19:13.125 │ [Stage] 3-1, 3-3, 2                                        
INFO     18:19:13.126 │ [Index] 3                                                  
INFO     18:19:13.366 │ Click (  48,  371) @ CHAPTER_PREV                          
INFO     18:19:13.535 │ [campaign 0.022s] ['B1', 'B3', 'B2']                       
INFO     18:19:13.536 │ [Chapter] b                                                
INFO     18:19:13.538 │ [Stage] b1, b3, b2                                         
INFO     18:19:13.539 │ [Index] 2                                                  
INFO     18:19:13.577 │ [OCR_OIL 0.024s] 2732                                      
─────────────────────────────────────── B1 ────────────────────────────────────────
INFO     18:19:13.580 │ B1                                                         
INFO     18:19:13.581 │ <<< ENTER MAP >>>                                          
INFO     18:19:13.624 │ Click ( 149,  301) @ b1                                    
INFO     18:19:14.100 │ [Map_clear_percentage] 0.37209302325581395                 
INFO     18:19:14.408 │ [Map_clear_percentage] 0.9767441860465116                  
INFO     18:19:14.411 │ [MAP_CLEAR_ALL_THIS_TIME] False                            
INFO     18:19:14.412 │ [Map_info] 97%, star_1, star_2, star_3, 100_percent_clear, 
         3_stars, threat_safe, clear_mode                                          
INFO     18:19:14.413 │ [StopCondition_MapAchievement] non_stop                    
INFO     18:19:14.414 │ [Fast_Forward] on                                          
INFO     18:19:14.423 │ [Auto_Search] on                                           
INFO     18:19:14.424 │ Click ( 932,  501) @ MAP_PREPARATION                       
INFO     18:19:14.714 │ Handling 2x book setting, mode=prep.                       
INFO     18:19:15.022 │ Using fleet: [1, 2, 0]                                     
INFO     18:19:15.048 │ Hard satisfied: Fleet_1: None, Fleet_2: None, Submarine:   
         None                                                                      
INFO     18:19:15.053 │ Click (1132,  490) @ SUBMARINE_CLEAR                       
INFO     18:19:15.305 │ Click (1136,  332) @ FLEET_2_CLEAR                         
INFO     18:19:15.612 │ Click (1070,  201) @ FLEET_1_CHOOSE                        
INFO     18:19:15.934 │ Current selected: [1]                                      
INFO     18:19:15.935 │ Click (1074,  200) @ FLEET_1_CHOOSE                        
INFO     18:19:16.218 │ Click (1078,  326) @ FLEET_2_CHOOSE                        
INFO     18:19:16.534 │ Current selected: [1]                                      
INFO     18:19:16.535 │ Click (1108,  434) @ FLEET_2_BAR_INDEX_2                   
INFO     18:19:16.835 │ Auto search setting                                        
INFO     18:19:16.837 │ [Fleet_sidebar] 1/3                                        
INFO     18:19:16.839 │ Click (1205,  388) @ FLEET_SIDEBAR_0_2                     
INFO     18:19:17.360 │ [Fleet_sidebar] 3/3                                        
INFO     18:19:17.364 │ [Auto_Search_Setting] fleet1_all_fleet2_standby            
INFO     18:19:17.366 │ Selected to the correct auto search setting                
INFO     18:19:17.368 │ Click (1085,  610) @ FLEET_PREPARATION                     
INFO     18:19:18.315 │ [LevelOcr 0.049s] [18, 0, 0, 100, 0, 0]                    
INFO     18:19:18.316 │ [LEVEL] 18, 0, 0, 100, 0, 0                                
──────────────────────────────────── BATTLE_0 ─────────────────────────────────────
INFO     18:19:18.318 │ BATTLE_0                                                   
INFO     18:19:18.319 │ Auto search moving                                         
INFO     18:19:18.330 │ Fleet: 1, fleet_current_index: 1                           
INFO     18:19:18.381 │ [LevelOcr 0.048s] [18, 0, 0, 100, 0, 0]                    
INFO     18:19:18.383 │ [LEVEL] 18, 0, 0, 100, 0, 0                                
INFO     18:19:18.414 │ [OCR_OIL 0.029s] 2722                                      
INFO     18:19:18.455 │ [OCR_COIN 0.038s] 440765                                   
INFO     18:19:23.675 │ [Loading] 20%                                              
INFO     18:19:23.677 │ Auto search combat loading                                 
INFO     18:19:23.678 │ Screenshot interval set to 1.0s                            
INFO     18:19:28.673 │ Auto Search combat execute                                 
INFO     18:19:33.756 │ Combat auto check timer reached                            
INFO     18:19:48.725 │ Click (1030,  647) @ GET_SHIP                              
INFO     18:19:50.700 │ Click (1049,  646) @ GET_SHIP                              
INFO     18:19:51.699 │ Screenshot interval set to 0.3s                            
INFO     18:19:51.700 │ Auto Search combat status                                  
INFO     18:19:52.899 │ Combat end.                                                
──────────────────────────────────── BATTLE_1 ─────────────────────────────────────
INFO     18:19:52.901 │ BATTLE_1                                                   
INFO     18:19:52.902 │ Auto search moving                                         
INFO     18:19:52.903 │ Fleet: 1, fleet_current_index: 1                           
INFO     18:19:52.955 │ [LevelOcr 0.050s] [18, 0, 0, 100, 0, 0]                    
INFO     18:19:52.958 │ [LEVEL] 18, 0, 0, 100, 0, 0                                
INFO     18:19:52.990 │ [OCR_OIL 0.031s] 2719                                      
INFO     18:19:53.018 │ [OCR_COIN 0.027s] 440783                                   
INFO     18:19:58.338 │ [Loading] 23%                                              
INFO     18:19:58.339 │ Auto search combat loading                                 
INFO     18:19:58.341 │ Screenshot interval set to 1.0s                            
INFO     18:20:03.331 │ Auto Search combat execute                                 
INFO     18:20:09.334 │ Combat auto check timer reached                            
INFO     18:20:23.360 │ Click (1026,  662) @ GET_SHIP                              
INFO     18:20:25.345 │ Click (1026,  661) @ GET_SHIP                              
INFO     18:20:26.338 │ Screenshot interval set to 0.3s                            
INFO     18:20:26.339 │ Auto Search combat status                                  
INFO     18:20:27.252 │ Combat end.                                                
──────────────────────────────────── BATTLE_2 ─────────────────────────────────────
INFO     18:20:27.253 │ BATTLE_2                                                   
INFO     18:20:27.254 │ Auto search moving                                         
INFO     18:20:27.256 │ Fleet: 1, fleet_current_index: 1                           
INFO     18:20:27.306 │ [LevelOcr 0.047s] [18, 0, 0, 100, 0, 0]                    
INFO     18:20:27.308 │ [LEVEL] 18, 0, 0, 100, 0, 0                                
INFO     18:20:27.334 │ [OCR_OIL 0.024s] 2716                                      
INFO     18:20:27.362 │ [OCR_COIN 0.026s] 440798                                   
INFO     18:20:32.366 │ [Loading] 29%                                              
INFO     18:20:32.368 │ Auto search combat loading                                 
INFO     18:20:32.369 │ Screenshot interval set to 1.0s                            
INFO     18:20:37.388 │ Auto Search combat execute                                 
INFO     18:20:43.375 │ Combat auto check timer reached                            
INFO     18:20:54.479 │ Click (1027,  655) @ GET_SHIP                              
INFO     18:20:55.385 │ Screenshot interval set to 0.3s                            
INFO     18:20:55.386 │ Auto Search combat status                                  
INFO     18:20:56.571 │ Combat end.                                                
──────────────────────────────────── BATTLE_3 ─────────────────────────────────────
INFO     18:20:56.573 │ BATTLE_3                                                   
INFO     18:20:56.574 │ Auto search moving                                         
INFO     18:20:56.575 │ Fleet: 1, fleet_current_index: 1                           
INFO     18:20:56.627 │ [LevelOcr 0.050s] [18, 0, 0, 100, 0, 0]                    
INFO     18:20:56.628 │ [LEVEL] 18, 0, 0, 100, 0, 0                                
INFO     18:20:56.652 │ [OCR_OIL 0.023s] 2713                                      
INFO     18:20:56.679 │ [OCR_COIN 0.025s] 440815                                   
INFO     18:21:03.218 │ [Loading] 21%                                              
INFO     18:21:03.220 │ Auto search combat loading                                 
INFO     18:21:03.220 │ Screenshot interval set to 1.0s                            
INFO     18:21:08.219 │ Auto Search combat execute                                 
INFO     18:21:13.220 │ Combat auto check timer reached                            
INFO     18:21:36.267 │ Click (1041,  657) @ GET_SHIP                              
INFO     18:21:38.266 │ Click (1023,  671) @ GET_SHIP                              
INFO     18:21:39.247 │ Screenshot interval set to 0.3s                            
INFO     18:21:39.248 │ Auto Search combat status                                  
INFO     18:21:40.160 │ Combat end.                                                
──────────────────────────────────── BATTLE_4 ─────────────────────────────────────
INFO     18:21:40.163 │ BATTLE_4                                                   
INFO     18:21:40.164 │ Auto search moving                                         
INFO     18:21:40.166 │ Fleet: 1, fleet_current_index: 1                           
INFO     18:21:40.214 │ [LevelOcr 0.046s] [19, 0, 0, 100, 0, 0]                    
INFO     18:21:40.216 │ [LEVEL] 19, 0, 0, 100, 0, 0                                
INFO     18:21:40.239 │ [OCR_OIL 0.022s] 2710                                      
INFO     18:21:40.265 │ [OCR_COIN 0.023s] 440865                                   
INFO     18:21:41.449 │ <<< CAMPAIGN END >>>                                       
INFO     18:21:41.466 │ Pending tasks: ['GemsFarming']                             
INFO     18:21:41.469 │ [Task] GemsFarming (Enable, 2023-09-17 10:18:35)           
INFO     18:21:41.469 │ Continue task `GemsFarming (Enable, 2023-09-17 10:18:35)`

截图

image

我是不会打A1关卡的,看截图A1是打过了,A2\A3的额外3倍奖励还在。

image

可以看到我是打B1的,B1没有额外奖励说明脚本确实是打过B1,但是不知道为何后面会切换到A1去了。 上面的log的BATTLE_4没有战斗数据,B1要打5场,说明这记录的确实是A1的数据。

image

可以看到我选择的确实是B1

还有别的吗?

No response

Celticwind commented 1 year ago

如果点击活动页面进入关卡是B图的话不会触发,正常打B1。但是进入后展示的是A图的话不会切换到B图,直接选A1了。

jutongpan commented 1 year ago

我有遇到同样的问题。我是使用“活动图”,关卡名称填的是“B3”,结果ALAS进了A3。不是总能复现,但已经遇到好几次了。

截取相关的log部分:

INFO     19:28:03.148 │ Wait until 2023-09-17 19:36:00 for task `Event`            
INFO     19:28:03.149 │ Goto main page during wait                                 
INFO     19:28:03.333 │ [Package_name] com.bilibili.azurlane                       
INFO     19:28:03.333 │ App is already running, goto main page                     
INFO     19:28:03.334 │ <<< UI ENSURE >>>                                          
INFO     19:28:03.335 │ UI get current page                                        
INFO     19:28:03.338 │ [UI] page_event                                            
INFO     19:28:03.339 │ Goto page_main                                             
INFO     19:28:03.339 │ <<< UI GOTO PAGE_MAIN >>>                                  
INFO     19:28:03.343 │ Page switch: page_event -> page_main                       
INFO     19:28:03.344 │ Click (1236,   37) @ GOTO_MAIN                             
INFO     19:28:03.638 │ Page arrive: page_main                                     
INFO     19:36:03.686 │ Scheduler: Start task `Event`                              
═══════════════════════════════════════════════════════════════════════════════════
                                       EVENT                                       
═══════════════════════════════════════════════════════════════════════════════════
═══════════════════════════════════════ B3 ════════════════════════════════════════
INFO     19:36:03.737 │ B3                                                         
INFO     19:36:03.737 │ Count: 0                                                   
INFO     19:36:03.742 │ UI get current page                                        
INFO     19:36:03.747 │ [UI] page_main                                             
INFO     19:36:03.748 │ <<< UI GOTO PAGE_CAMPAIGN_MENU >>>                         
INFO     19:36:03.752 │ Page switch: page_main -> page_campaign_menu               
INFO     19:36:03.753 │ Click (1070,  363) @ MAIN_GOTO_CAMPAIGN                    
INFO     19:36:04.025 │ Page arrive: page_campaign_menu                            
INFO     19:36:04.029 │ Event available                                            
INFO     19:36:04.030 │ <<< UI GOTO PAGE_EVENT >>>                                 
INFO     19:36:04.035 │ Page switch: page_campaign_menu -> page_event              
INFO     19:36:04.036 │ Click ( 642,  240) @ CAMPAIGN_MENU_GOTO_EVENT              
INFO     19:36:04.336 │ Page arrive: page_event                                    
INFO     19:36:04.343 │ [Mode_switch_2] ex                                         
INFO     19:36:04.349 │ [Mode_switch_1] hard                                       
INFO     19:36:04.350 │ <<< UI ENSURE INDEX >>>                                    
INFO     19:36:04.368 │ No stage found.                                            
INFO     19:36:04.645 │ No stage found.                                            
INFO     19:36:04.946 │ Loading OCR model: ./bin/cnocr_models/azur_lane            
INFO     19:36:04.973 │ [campaign 0.032s] ['31', '33', '32']                       
INFO     19:36:04.974 │ [Chapter] 3                                                
INFO     19:36:04.974 │ [Stage] 3-1, 3-3, 3-2                                      
INFO     19:36:04.975 │ [Index] 3                                                  
INFO     19:36:05.225 │ Click (  52,  373) @ CHAPTER_PREV                          
INFO     19:36:05.355 │ [campaign 0.016s] ['B1', 'B3', 'B2']                       
INFO     19:36:05.356 │ [Chapter] b                                                
INFO     19:36:05.357 │ [Stage] b1, b3, b2                                         
INFO     19:36:05.358 │ [Index] 2                                                  
INFO     19:36:05.388 │ [OCR_OIL 0.021s] 14673                                     
─────────────────────────────────────── B3 ────────────────────────────────────────
INFO     19:36:05.389 │ B3                                                         
INFO     19:36:05.390 │ Expect emotion reduce: (0, 12)                             
INFO     19:36:05.397 │ Bind task {'TaskBalancer', 'EventGeneral', 'General',      
         'Alas', 'Event'}

可以看到19:36:05.225的时候点击了上一页,从B页面到了A页面,然后打开的其实是A3,但ALAS误识别为B3了。