LmeSzinc / AzurLaneAutoScript

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

余烬信标中禁用“呼叫支援”无效。 #2231

Closed clarkgap closed 1 year ago

clarkgap commented 1 year ago

在提问之前...

描述你的问题

在打余烬信标时,我没有选择“呼叫支援”功能(因为90%一刀斩),但还是战斗前自动呼叫支援了。

如何复现

选择打满余烬信标+一击即走,关闭呼叫支援,启动余烬信标功能,开始运行。

预期行为

不呼叫支援,直接打信标。

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════
                                       START                                       
═══════════════════════════════════════════════════════════════════════════════════
INFO     10:51:07.042 │ Start scheduler loop: alas                                 
INFO     10:51:07.044 │ [Server] cn                                                
INFO     10:51:07.056 │ Bind task {'General', 'Alas'}                              
INFO     10:51:07.058 │ Pending tasks: ['OpsiAshBeacon', 'OpsiAshAssist']          
INFO     10:51:07.059 │ [Task] OpsiAshBeacon (Enable, 2023-01-23 09:00:00)         
INFO     10:51:07.060 │ Bind task {'General', 'OpsiGeneral', 'OpsiAshBeacon',      
         'Alas'}                                                                   
═════════════════════════════════════ DEVICE ══════════════════════════════════════
INFO     10:51:08.112 │ DEVICE                                                     
INFO     10:51:08.113 │ [AdbBinary]                                                
         D:\AzurLaneAutoScript\toolkit\Lib\site-packages\adbutils\binaries\adb.exe 
INFO     10:51:08.116 │ [AdbClient] AdbClient(127.0.0.1, 5037)                     
INFO     10:51:08.117 │ <<< DETECT DEVICE >>>                                      
INFO     10:51:08.118 │ Here are the available devices, copy to                    
         Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"         
INFO     10:51:08.119 │ emulator-5554                                              
INFO     10:51:08.120 │ Current serial 127.0.0.1:5555 not found but paired device  
         emulator-5554 found. Using serial: emulator-5554                          
INFO     10:51:08.121 │ "emulator-5554" is a `emulator-*` serial, skip adb connect 
INFO     10:51:08.122 │ [AdbDevice] AdbDevice(serial=emulator-5554)                
INFO     10:51:08.123 │ [PackageName] com.bilibili.azurlane                        
INFO     10:51:08.124 │ [Server] cn                                                
INFO     10:51:08.124 │ Screenshot interval set to 0.3s                            
INFO     10:51:08.125 │ Scheduler: Start task `OpsiAshBeacon`                      
═══════════════════════════════════════════════════════════════════════════════════
                                   OPSIASHBEACON                                   
═══════════════════════════════════════════════════════════════════════════════════
INFO     10:51:08.452 │ [Screen_size] 1280x720                                     
INFO     10:51:08.622 │ <<< UI ENSURE >>>                                          
INFO     10:51:08.623 │ UI get current page                                        
INFO     10:51:08.803 │ [UI] page_os                                               
INFO     10:51:08.804 │ Goto page_reward                                           
INFO     10:51:08.805 │ <<< UI GOTO PAGE_REWARD >>>                                
INFO     10:51:08.807 │ Page switch: page_os -> page_main                          
INFO     10:51:08.808 │ Click (1241,   34) @ GOTO_MAIN                             
INFO     10:51:08.809 │ <<< MINITOUCH INIT >>>                                     
INFO     10:51:08.820 │ [Device Orientation] 0 (Normal)                            
INFO     10:51:08.821 │ Reuse forward: ForwardItem(serial='emulator-5554',         
         local='tcp:20145', remote='localabstract:minitouch')                      
INFO     10:51:08.824 │ v 1                                                        
INFO     10:51:08.824 │ ^ 2 32767 32767 0                                          
INFO     10:51:08.825 │ $ 6152                                                     
INFO     10:51:08.826 │ minitouch running on port: 20145, pid: 6152                
INFO     10:51:08.827 │ max_contact: 2; max_x: 32767; max_y: 32767; max_pressure: 0
INFO     10:51:09.803 │ Page switch: page_main -> page_reward                      
INFO     10:51:09.804 │ Click (  19,  184) @ MAIN_GOTO_REWARD                      
INFO     10:51:10.809 │ Page arrive: page_reward                                   
INFO     10:51:10.810 │ <<< META BEACON ATTACK >>>                                 
INFO     10:51:10.811 │ Ensure beacon attack page                                  
INFO     10:51:10.998 │ Click ( 595,  478) @ META_ENTRANCE                         
INFO     10:51:12.289 │ In meta page                                               
INFO     10:51:12.300 │ Meta state:INIT                                            
INFO     10:51:12.339 │ Loading OCR model: ./bin/cnocr_models/azur_lane            
INFO     10:51:12.392 │ [POINT_OCR 0.064s] 200/200                                 
INFO     10:51:12.393 │ Click ( 380,  339) @ META_MAIN_BEACON_ENTRANCE             
INFO     10:51:12.444 │ Select beacon entrance into                                
INFO     10:51:12.740 │ Meta state:INIT                                            
INFO     10:51:13.152 │ Meta state:INIT                                            
INFO     10:51:13.174 │ [POINT_OCR 0.019s] 200/200                                 
INFO     10:51:13.176 │ Click ( 617,  260) @ META_BEGIN_ENTRANCE                   
INFO     10:51:13.227 │ Begin a beacon                                             
INFO     10:51:13.573 │ Meta state:INIT                                            
INFO     10:51:13.950 │ Meta state:INIT                                            
INFO     10:51:14.380 │ Meta state:ATTACKING                                       
INFO     10:51:14.383 │ Click ( 943,  661) @ HELP_ENTER                            
INFO     10:51:15.083 │ Click ( 481,  357) @ HELP_1                                
INFO     10:51:15.337 │ Click ( 670,  356) @ HELP_2                                
INFO     10:51:15.568 │ Click ( 870,  379) @ HELP_3                                
INFO     10:51:15.622 │ Click ( 826,  525) @ HELP_CONFIRM                          
INFO     10:51:16.478 │ In meta details page, should switch to damage page         
INFO     10:51:16.480 │ Click ( 964,  114) @ META_INNER_PAGE_NOT_DAMAGE            
INFO     10:51:16.997 │ In meta details page, should switch to damage page         
INFO     10:51:17.435 │ In meta details page, should switch to damage page         
INFO     10:51:17.889 │ In meta details page, should switch to damage page         
INFO     10:51:18.330 │ In meta details page, should switch to damage page         
INFO     10:51:18.747 │ In meta details page, should switch to damage page         
INFO     10:51:18.748 │ Click ( 966,  111) @ META_INNER_PAGE_NOT_DAMAGE            
INFO     10:51:19.291 │ In meta details page, should switch to damage page         
INFO     10:51:19.676 │ Already in meta damage page                                
INFO     10:51:19.698 │ [META_DAMAGE 0.020s] 0                                     
──────────────────────────────── BEGIN META COMBAT ────────────────────────────────
INFO     10:51:19.700 │ BEGIN META COMBAT                                          
INFO     10:51:19.701 │ Combat preparation.                                        
INFO     10:51:19.739 │ Click (1149,  659) @ ASH_START                             
INFO     10:51:21.380 │ [Automation] ON                                            
INFO     10:51:21.383 │ Click (1101,  635) @ BATTLE_PREPARATION                    
INFO     10:51:21.760 │ [Automation] ON                                            
INFO     10:51:22.101 │ [Automation] ON                                            
INFO     10:51:22.647 │ [Loading] 8%                                               
INFO     10:51:22.649 │ Screenshot interval set to 1.0s                            
INFO     10:51:33.435 │ Combat execute                                             
INFO     10:51:38.449 │ Combat auto check timer reached                            
INFO     10:53:02.073 │ Click (1100,  657) @ BATTLE_STATUS                         
INFO     10:53:02.125 │ Screenshot interval set to 0.3s                            
INFO     10:53:02.126 │ Combat status                                              
INFO     10:53:02.127 │ [expected_end] expected_end                                
INFO     10:53:02.847 │ Click (1082,  667) @ BATTLE_STATUS                         
INFO     10:53:04.285 │ Meta combat finished and in correct page.                  
INFO     10:53:04.286 │ Combat end.                                                
INFO     10:53:04.804 │ Meta state:COMPLETE                                        
INFO     10:53:04.806 │ Click (1148,  677) @ BEACON_REWARD                         
INFO     10:53:04.858 │ Reap meta rewards                                          
INFO     10:53:05.246 │ Pending tasks: ['OpsiAshAssist']                           
INFO     10:53:05.247 │ [Task] OpsiAshAssist (Enable, 2023-02-08 09:00:00)         
INFO     10:53:05.248 │ Switch task `OpsiAshBeacon (Enable, 2023-01-23 09:00:00)`  
         to `OpsiAshAssist (Enable, 2023-02-08 09:00:00)`                          
INFO     10:53:05.250 │ Scheduler: End task `OpsiAshBeacon`                        
INFO     10:53:05.251 │ [Server] cn                                                
INFO     10:53:05.266 │ Bind task {'General', 'Alas'}                              
INFO     10:53:05.267 │ Pending tasks: ['OpsiAshAssist']                           
INFO     10:53:05.268 │ [Task] OpsiAshAssist (Enable, 2023-02-08 09:00:00)         
INFO     10:53:05.269 │ Bind task {'General', 'OpsiGeneral', 'OpsiAshAssist',      
         'Alas'}                                                                   
INFO     10:53:05.275 │ Scheduler: Start task `OpsiAshAssist`                      
═══════════════════════════════════════════════════════════════════════════════════
                                   OPSIASHASSIST                                   
═══════════════════════════════════════════════════════════════════════════════════
INFO     10:53:05.463 │ <<< UI ENSURE >>>                                          
INFO     10:53:05.465 │ UI get current page                                        
INFO     10:53:05.484 │ Unknown ui page                                            
INFO     10:53:05.522 │ [u2.Device] Device(atx_agent_url=http://127.0.0.1:58096)   
INFO     10:53:05.535 │ [Package_name] com.bilibili.azurlane                       
INFO     10:53:05.545 │ [Device Orientation] 0 (Normal)                            
INFO     10:53:05.746 │ Unknown ui page                                            
INFO     10:53:05.753 │ Click (1029,  644) @ GET_ITEMS_1                           
INFO     10:53:06.208 │ Unknown ui page                                            
INFO     10:53:06.210 │ Click (1221,   33) @ GOTO_MAIN                             
INFO     10:53:06.547 │ Unknown ui page                                            
INFO     10:53:07.038 │ [UI] page_main                                             
INFO     10:53:07.039 │ Goto page_reward                                           
INFO     10:53:07.041 │ <<< UI GOTO PAGE_REWARD >>>                                
INFO     10:53:07.052 │ Page switch: page_main -> page_reward                      
INFO     10:53:07.053 │ Click (  22,  169) @ MAIN_GOTO_REWARD                      
INFO     10:53:08.238 │ Page arrive: page_reward                                   
INFO     10:53:08.239 │ <<< META BEACON ASSIST >>>                                 
INFO     10:53:08.240 │ Ensure beacon assist page                                  
INFO     10:53:08.298 │ Click ( 602,  479) @ META_ENTRANCE                         
INFO     10:53:09.057 │ Click ( 394,  348) @ META_MAIN_BEACON_ENTRANCE             
INFO     10:53:09.109 │ In meta page main                                          
INFO     10:53:09.789 │ Click (  87,  679) @ BEACON_LIST                           
INFO     10:53:10.552 │ In beacon assist page                                      
INFO     10:53:11.029 │ [BEACON_REMAIN 0.017s] 3/3                                 
INFO     10:53:11.030 │ Begin find a level 15 meta                                 
INFO     10:53:11.043 │ [BEACON_TIER 0.013s] 15                                    
INFO     10:53:11.045 │ Find a beacon in level:15                                  
──────────────────────────── BEGIN META ASSIST COMBAT ─────────────────────────────
INFO     10:53:11.047 │ BEGIN META ASSIST COMBAT                                   
INFO     10:53:11.048 │ Combat preparation.                                        
INFO     10:53:11.067 │ Click (1159,  661) @ ASH_START                             
INFO     10:53:12.350 │ [Automation] ON                                            
INFO     10:53:12.353 │ Click (1147,  643) @ BATTLE_PREPARATION                    
INFO     10:53:12.666 │ [Automation] ON                                            
INFO     10:53:12.964 │ [Automation] ON                                            
INFO     10:53:13.339 │ [Automation] ON                                            
INFO     10:53:13.799 │ [Loading] 8%                                               
INFO     10:53:13.801 │ Screenshot interval set to 1.0s                            
INFO     10:53:24.727 │ Combat execute                                             
INFO     10:53:29.751 │ Combat auto check timer reached

截图

屏幕截图(505)

还有别的吗?

No response

Zuosizhu commented 1 year ago

https://github.com/LmeSzinc/AzurLaneAutoScript/blob/b0f1f4fae52da8320c72f3429d22aa6491e3774a/module/os_ash/meta.py#L226-L242 https://github.com/LmeSzinc/AzurLaneAutoScript/blob/b0f1f4fae52da8320c72f3429d22aa6491e3774a/module/os_ash/meta.py#L236 由236行可知: 是故意的(自豪脸)。十分正确的决策,最多说算是帮助说明错误,没有说明罢了

LmeSzinc commented 1 year ago

嗯,周大师当年这里写的没问题,如果一刀没打死的话总得有人补刀,不然就永远卡着了。呼叫支援也不需要付出代价,不叫白不叫。