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

“短猫相接”功能无法召唤潜艇 #3115

Closed Azunyan15 closed 1 year ago

Azunyan15 commented 1 year ago

在提问之前...

描述你的问题

%%%%%%%%%%%%%%%%%%%%%% 9月21日编辑:

原问题表述有误

问题:在关闭游戏设置中“X #消耗时潜艇出击”后,Alas在执行“短猫相接”功能时,没有按照Alas内“呼叫潜艇”设置正常召唤潜艇,而是直接开启了自律。

在进入目标海域后,应该首先执行order - submarine support。此功能未能执行,而是直接进行auto search

%%%%%%%%%%%%%%%%%%%%%%

原问题:

“短猫相接”功能中无法自动召唤潜艇。同时,由于没有召唤潜艇,该功能会无视运行间隔继续进行。

如何复现

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

预期行为

Get zone name
INFO 01:37:55.863 │ [MAP_NAME 0.049s] NA海域深处G-安全海域
INFO 01:37:55.865 │ Map name processed: NA海域深处G
INFO 01:37:55.866 │ [Zone] [158|NA Ocean Depths G]
INFO 01:37:55.867 │ <<< FLEET SET TO 1 >>>
INFO 01:37:55.882 │ It is fleet 1 already
INFO 01:37:55.883 │ Run auto search, question=True, rescan=full

在进入目标海域后,应该首先执行order - submarine support。此功能未能执行,而是直接进行auto search

相关 Logs

START                                                         
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
INFO     01:37:38.522 │ Start scheduler loop: alas                                                                    
INFO     01:37:38.525 │ [Server] cn                                                                                   
INFO     01:37:38.538 │ Bind task {'Alas', 'General'}                                                                 
INFO     01:37:38.541 │ Pending tasks: ['OpsiMeowfficerFarming', 'OpsiHazard1Leveling']                               
INFO     01:37:38.542 │ [Task] OpsiMeowfficerFarming (Enable, 2020-01-01 00:00:00)                                    
INFO     01:37:38.543 │ Bind task {'Alas', 'OpsiMeowfficerFarming', 'OpsiGeneral', 'General'}                         
═══════════════════════════════════════════════════════ DEVICE ═══════════════════════════════════════════════════════
INFO     01:37:39.764 │ DEVICE                                                                                        
INFO     01:37:39.765 │ [IS_ON_PHONE_CLOUD] False                                                                     
INFO     01:37:39.766 │ [AdbBinary]                                                                                   
         D:\Nonsense\AlasApp_0.3.8_cn\AzurLaneAutoScript\toolkit\Lib\site-packages\adbutils\binaries\adb.exe          
INFO     01:37:39.769 │ [AdbClient] AdbClient(127.0.0.1, 5037)                                                        
INFO     01:37:39.770 │ <<< DETECT DEVICE >>>                                                                         
INFO     01:37:39.771 │ Here are the available devices, copy to Alas.Emulator.Serial to use it or set                 
         Alas.Emulator.Serial="auto"                                                                                  
INFO     01:37:39.772 │ emulator-5554                                                                                 
INFO     01:37:39.773 │ Current serial 127.0.0.1:5555 not found but paired device emulator-5554 found. Using serial:  
         emulator-5554                                                                                                
INFO     01:37:39.774 │ "emulator-5554" is a `emulator-*` serial, skip adb connect                                    
INFO     01:37:39.775 │ [AdbDevice] AdbDevice(serial=emulator-5554)                                                   
INFO     01:37:39.776 │ [PackageName] com.bilibili.azurlane                                                           
INFO     01:37:39.777 │ [Server] cn                                                                                   
INFO     01:37:39.778 │ Screenshot interval set to 0.3s                                                               
INFO     01:37:39.779 │ Scheduler: Start task `OpsiMeowfficerFarming`                                                 
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                OPSIMEOWFFICERFARMING                                                 
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
INFO     01:37:39.782 │ Create forward: ForwardItem(serial='emulator-5554', local='tcp:20171', remote='tcp:53516')    
INFO     01:37:39.869 │ [Screen_size] 1280x720                                                                        
══════════════════════════════════════════════════════ OS INIT ═══════════════════════════════════════════════════════
INFO     01:37:39.979 │ OS INIT                                                                                       
INFO     01:37:40.013 │ <<< UI ENSURE >>>                                                                             
INFO     01:37:40.014 │ UI get current page                                                                           
INFO     01:37:40.022 │ [UI] page_main                                                                                
INFO     01:37:40.023 │ Goto page_os                                                                                  
INFO     01:37:40.024 │ <<< UI GOTO PAGE_OS >>>                                                                       
INFO     01:37:40.026 │ Page switch: page_main -> page_campaign_menu                                                  
INFO     01:37:40.027 │ Click (1087,  371) @ MAIN_GOTO_CAMPAIGN                                                       
INFO     01:37:40.028 │ <<< MINITOUCH INIT >>>                                                                        
INFO     01:37:40.039 │ [Device Orientation] 0 (Normal)                                                               
INFO     01:37:40.040 │ Create forward: ForwardItem(serial='emulator-5554', local='tcp:20761',                        
         remote='localabstract:minitouch')                                                                            
INFO     01:37:40.043 │ v 1                                                                                           
INFO     01:37:40.044 │ ^ 2 32767 32767 0                                                                             
INFO     01:37:40.045 │ $ 5716                                                                                        
INFO     01:37:40.045 │ minitouch running on port: 20761, pid: 5716                                                   
INFO     01:37:40.046 │ max_contact: 2; max_x: 32767; max_y: 32767; max_pressure: 0                                   
INFO     01:37:40.645 │ Page switch: page_campaign_menu -> page_os                                                    
INFO     01:37:40.646 │ Click ( 703,  429) @ CAMPAIGN_MENU_GOTO_OS                                                    
INFO     01:37:42.763 │ Page arrive: page_os                                                                          
INFO     01:37:42.765 │ <<< ZONE INIT >>>                                                                             
INFO     01:37:42.771 │ Get zone name                                                                                 
INFO     01:37:42.815 │ Loading OCR model: ./bin/cnocr_models/cnocr                                                   
INFO     01:37:42.901 │ [MAP_NAME 0.101s] NY                                                                          
INFO     01:37:42.902 │ Map name processed: NY                                                                        
INFO     01:37:42.903 │ [Zone] [0|NY City]                                                                            
───────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
INFO     01:37:42.905 │ AFTER AUTO SEARCH                                                                             
INFO     01:37:42.924 │ No EMP debuff on current fleet                                                                
INFO     01:37:42.929 │ [HP]  98%  98%  98%  96%  98%  98%                                                            
INFO     01:37:42.935 │ [Repair icon] [False, False, False, False, False, False]                                      
INFO     01:37:42.937 │ No ship found to be below threshold 0%, continue OS exploration                               
INFO     01:37:42.938 │ Handle after auto search finished, solved=False                                               
INFO     01:37:42.940 │ Current fleet is not afflicted with the low resolve debuff                                    
INFO     01:37:42.942 │ Ash beacon status: gray                                                                       
INFO     01:37:42.958 │ Loading OCR model: ./bin/cnocr_models/azur_lane                                               
INFO     01:37:43.021 │ [ASH_COLLECT_STATUS 0.078s] 0/200                                                             
INFO     01:37:43.045 │ [ASH_DAILY_STATUS 0.022s] 200/200                                                             
INFO     01:37:43.046 │ Ash beacon fully collected today                                                              
INFO     01:37:43.048 │ Run auto search, question=True, rescan=False                                                  
─────────────────────────────────────────────────── OS AUTO SEARCH ───────────────────────────────────────────────────
INFO     01:37:43.050 │ OS AUTO SEARCH                                                                                
INFO     01:37:43.064 │ Click (1246,  536) @ AUTO_SEARCH_OS_MAP_OPTION_OFF                                            
INFO     01:37:45.008 │ OS auto search finished                                                                       
INFO     01:37:45.011 │ [HP]  98%  98%  98%  96%  98%  98%                                                            
INFO     01:37:45.014 │ [Repair icon] [False, False, False, False, False, False]                                      
─────────────────────────────────────────────────── CLEAR QUESTION ───────────────────────────────────────────────────
INFO     01:37:45.016 │ CLEAR QUESTION                                                                                
INFO     01:37:45.072 │             -- -- --                                                                          
INFO     01:37:45.073 │       -- -- -- -- -- -- --                                                                    
INFO     01:37:45.074 │    -- -- -- -- -- -- -- -- --                                                                 
INFO     01:37:45.074 │    -- -- -- -- -- -- -- -- --                                                                 
INFO     01:37:45.075 │ -- -- -- -- -- -- -- -- -- -- --                                                              
INFO     01:37:45.076 │ -- -- -- -- -- FL -- -- -- -- --                                                              
INFO     01:37:45.077 │ -- -- -- -- -- -- -- -- -- -- --                                                              
INFO     01:37:45.078 │    -- -- -- -- -- -- -- -- --                                                                 
INFO     01:37:45.079 │    -- -- -- -- -- -- -- -- --                                                                 
INFO     01:37:45.079 │       -- -- -- -- -- -- --                                                                    
INFO     01:37:45.080 │             -- -- --                                                                          
INFO     01:37:45.081 │ No question mark above current fleet on this radar                                            
───────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
INFO     01:37:45.083 │ AFTER AUTO SEARCH                                                                             
INFO     01:37:45.085 │ No EMP debuff on current fleet                                                                
INFO     01:37:45.089 │ [HP]  98%  98%  98%  96%  98%  98%                                                            
INFO     01:37:45.092 │ [Repair icon] [False, False, False, False, False, False]                                      
INFO     01:37:45.093 │ No ship found to be below threshold 0%, continue OS exploration                               
INFO     01:37:45.094 │ Handle after auto search finished, solved=False                                               
═══════════════════════════════════════ OS MEOWFFICER FARMING, HAZARD_LEVEL=5 ════════════════════════════════════════
INFO     01:37:45.095 │ OS MEOWFFICER FARMING, HAZARD_LEVEL=5                                                         
INFO     01:37:45.096 │ [OpsiNextReset] 2023-10-01 02:00:00                                                           
INFO     01:37:45.097 │ [ResetRemain] 17                                                                              
INFO     01:37:45.098 │ Not close to OpSi reset                                                                       
INFO     01:37:45.099 │ [Task cooling down] None                                                                      
INFO     01:37:45.100 │ [OpsiNextReset] 2023-10-01 02:00:00                                                           
INFO     01:37:45.101 │ [ResetRemain] 17                                                                              
INFO     01:37:45.102 │ [OpsiNextReset] 2023-10-01 02:00:00                                                           
INFO     01:37:45.103 │ [OpsiExplore] (False, datetime.datetime(2023, 9, 2, 16, 30, 53))                              
INFO     01:37:45.103 │ Not in OpsiExplore, able to do OpsiDaily                                                      
INFO     01:37:45.104 │ [OS_ACTION_POINT_PRESERVE] 1500                                                               
INFO     01:37:45.132 │ [SHOP_YELLOW_COINS 0.027s] 121571                                                             
INFO     01:37:45.142 │ Click ( 896,   40) @ ACTION_POINT_REMAIN_OS                                                   
INFO     01:37:46.260 │ [Amount_ocr 0.059s] [11302, 0, 35, 4]                                                         
INFO     01:37:46.281 │ [ACTION_POINT_REMAIN 0.020s] 190                                                              
INFO     01:37:46.283 │ Action points: 190(2340), oil: 11302                                                          
INFO     01:37:46.284 │ Having enough action points                                                                   
INFO     01:37:46.285 │ <<< UI CLICK >>>                                                                              
INFO     01:37:46.294 │ Click ( 461,  564) @ ACTION_POINT_CANCEL                                                      
═════════════════════════════════════════ OS MEOWFFICER FARMING, ZONE_ID=158 ═════════════════════════════════════════
INFO     01:37:46.504 │ OS MEOWFFICER FARMING, ZONE_ID=158                                                            
INFO     01:37:46.505 │ <<< GLOBE GOTO: [158|NA OCEAN DEPTHS G] >>>                                                   
INFO     01:37:46.516 │ Click (1016,  677) @ MAP_GOTO_GLOBE                                                           
INFO     01:37:49.199 │ Swipe ( 485,  432) -> ( 539,  381)                                                            
INFO     01:37:50.706 │ Loading OS globe map                                                                          
INFO     01:37:51.040 │ [homo_storage] ((4, 3), [(445, 180), (879, 180), (376, 497), (963, 497)])                     
INFO     01:37:51.185 │           globe_center: (413.0, 962.0)                                                        
INFO     01:37:51.186 │ 0.144s      similarity: 0.500                                                                 
INFO     01:37:51.187 │ [Globe_center] 0                                                                              
INFO     01:37:51.188 │ Globe focus_to: 158                                                                           
INFO     01:37:51.191 │ Swipe ( 509,  419) -> ( 171,  299)                                                            
INFO     01:37:52.064 │           globe_center: (721.0, 1090.0)                                                       
INFO     01:37:52.065 │ 0.153s      similarity: 0.530                                                                 
INFO     01:37:52.067 │ [Globe_center] 23                                                                             
INFO     01:37:52.068 │ Click ( 910,  442) @ ZONE_158                                                                 
INFO     01:37:52.637 │           globe_center: (995.0, 1102.0)                                                       
INFO     01:37:52.638 │ 0.147s      similarity: 0.517                                                                 
INFO     01:37:52.640 │ [Globe_center] 158                                                                            
INFO     01:37:52.934 │           globe_center: (1119.0, 1108.0)                                                      
INFO     01:37:52.935 │ 0.146s      similarity: 0.449                                                                 
INFO     01:37:52.937 │ [Globe_center] 155                                                                            
INFO     01:37:53.239 │           globe_center: (1119.0, 1108.0)                                                      
INFO     01:37:53.240 │ 0.141s      similarity: 0.412                                                                 
INFO     01:37:53.242 │ [Globe_center] 155                                                                            
INFO     01:37:53.526 │           globe_center: (1119.0, 1108.0)                                                      
INFO     01:37:53.527 │ 0.140s      similarity: 0.376                                                                 
INFO     01:37:53.528 │ [Globe_center] 155                                                                            
INFO     01:37:53.530 │ [Globe_pinned] [158|NA Ocean Depths G]                                                        
INFO     01:37:53.538 │ Already selected at SAFE                                                                      
INFO     01:37:53.550 │ Click ( 483,  301) @ ZONE_ENTRANCE                                                            
INFO     01:37:55.801 │ <<< ZONE INIT >>>                                                                             
INFO     01:37:55.802 │ Get zone name                                                                                 
INFO     01:37:55.863 │ [MAP_NAME 0.049s] NA海域深处G-安全海域                                                        
INFO     01:37:55.865 │ Map name processed: NA海域深处G                                                               
INFO     01:37:55.866 │ [Zone] [158|NA Ocean Depths G]                                                                
INFO     01:37:55.867 │ <<< FLEET SET TO 1 >>>                                                                        
INFO     01:37:55.882 │ It is fleet 1 already                                                                         
INFO     01:37:55.883 │ Run auto search, question=True, rescan=full                                                   
─────────────────────────────────────────────────── OS AUTO SEARCH ───────────────────────────────────────────────────
INFO     01:37:55.886 │ OS AUTO SEARCH                                                                                
INFO     01:37:55.898 │ Click (1233,  539) @ AUTO_SEARCH_OS_MAP_OPTION_OFF                                            
INFO     01:37:59.134 │ Click (1231,  541) @ AUTO_SEARCH_OS_MAP_OPTION_OFF                                            
INFO     01:38:02.431 │ Click (1244,  543) @ AUTO_SEARCH_OS_MAP_OPTION_OFF                                            
INFO     01:38:13.078 │ [Loading] 3%                                                                                  
INFO     01:38:13.079 │ [battle_count] 1                                                                              
INFO     01:38:13.079 │ Auto search combat loading

截图

屏幕截图(1494) 屏幕截图(1496)

还有别的吗?

No response

cloudchina commented 1 year ago

右上角,有个小地图的圆圈,圆圈的左上角有个order样图标,要在里面勾选设置消耗行动力为0时自动召唤潜艇吧,但是这样有个问题,如果你刷侵蚀1的话,也会召唤潜艇,同时在打完所有之后会弹出一个对话框,无法处理会报错(这是之前的问题,后面不知道有无修复)。你看主页的推荐设置里是关闭了自动召唤潜艇的,我记得。

MrQMou commented 1 year ago

右上角,有个小地图的圆圈,圆圈的左上角有个order样图标,要在里面勾选设置消耗行动力为0时自动召唤潜艇吧,但是这样有个问题,如果你刷侵蚀1的话,也会召唤潜艇,同时在打完所有之后会弹出一个对话框,无法处理会报错(这是之前的问题,后面不知道有无修复)。你看主页的推荐设置里是关闭了自动召唤潜艇的,我记得。

alas的设置建议里面是要求大世界“关闭自动召唤潜艇”的。 我个人也遇到了这个bug,具体表现为设置为短猫海域为侵蚀五且打开召唤潜艇时,不会召唤潜艇。但是将短猫海域设置为侵蚀三其余设置不变,反而可以正常召唤潜艇