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

alas在假日航线再现-sp4中不按规则使用潜艇 #2547

Closed 666emmm closed 1 year ago

666emmm commented 1 year ago

在提问之前...

描述你的问题

我设置的是仅boss战使用潜艇,而且已经设置了自律寻敌,但alas每次都会在我进入战斗后自动点一下召唤潜艇的按钮,导致石油浪费,详情视频点击下方b站链接 https://www.bilibili.com/video/BV1i14y1Z7Rr/?share_source=copy_web&vd_source=8e170525bd0d9ff08e531e1186411539

如何复现

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

预期行为

No response

相关 Logs

START                               
═══════════════════════════════════════════════════════════════════
INFO     13:27:36.570 │ Start scheduler loop: alas                 
INFO     13:27:36.573 │ [Server] cn                                
INFO     13:27:36.584 │ Bind task {'General', 'Alas'}              
INFO     13:27:36.586 │ Pending tasks: ['Event']                   
INFO     13:27:36.587 │ [Task] Event (Enable, 2023-05-01 12:38:00) 
INFO     13:27:36.588 │ Bind task {'EventGeneral', 'General',      
         'Alas', 'TaskBalancer', 'Event'}                          
═════════════════════════════ DEVICE ══════════════════════════════
INFO     13:27:37.623 │ DEVICE                                     
INFO     13:27:37.624 │ [AdbBinary] D:\AzurLaneAutoScript\toolkit\L
         ib\site-packages\adbutils\binaries\adb.exe                
INFO     13:27:37.626 │ [AdbClient] AdbClient(127.0.0.1, 5037)     
INFO     13:27:37.627 │ <<< DETECT DEVICE >>>                      
INFO     13:27:37.627 │ Here are the available devices, copy to    
         Alas.Emulator.Serial to use it or set                     
         Alas.Emulator.Serial="auto"                               
INFO     13:27:37.629 │ 127.0.0.1:7555                             
INFO     13:27:37.631 │ already connected to 127.0.0.1:7555        
INFO     13:27:37.632 │ [AdbDevice]                                
         AdbDevice(serial=127.0.0.1:7555)                          
INFO     13:27:37.633 │ [PackageName] com.bilibili.azurlane        
INFO     13:27:37.634 │ [Server] cn                                
INFO     13:27:37.635 │ Screenshot interval set to 0.3s            
INFO     13:27:37.635 │ Scheduler: Start task `Event`              
═══════════════════════════════════════════════════════════════════
                               EVENT                               
═══════════════════════════════════════════════════════════════════
INFO     13:27:37.640 │ Connecting to local emulator, using host   
         192.168.1.5                                               
INFO     13:27:37.641 │ Reverse server listening on                
         192.168.1.5:20609, client can send data to                
         192.168.1.5:20609                                         
INFO     13:27:37.652 │ sdk_ver: 32                                
INFO     13:27:37.683 │ [nc command] ['nc']                        
INFO     13:27:37.911 │ [Screen_size] 1280x720                     
═══════════════════════════════ SP4 ═══════════════════════════════
INFO     13:27:37.987 │ SP4                                        
INFO     13:27:37.988 │ Count: 0                                   
INFO     13:27:38.001 │ UI get current page                        
INFO     13:27:38.005 │ [UI] page_main                             
INFO     13:27:38.007 │ <<< UI GOTO PAGE_CAMPAIGN_MENU >>>         
INFO     13:27:38.039 │ Page switch: page_main ->                  
         page_campaign_menu                                        
INFO     13:27:38.040 │ Click (1064,  352) @ MAIN_GOTO_CAMPAIGN    
INFO     13:27:38.041 │ <<< MINITOUCH INIT >>>                     
INFO     13:27:38.064 │ [Device Orientation] 0 (Normal)            
INFO     13:27:38.065 │ Reuse forward:                             
         ForwardItem(serial='127.0.0.1:7555', local='tcp:20888',   
         remote='localabstract:minitouch')                         
INFO     13:27:38.067 │ v 1                                        
INFO     13:27:38.068 │ ^ 10 1280 720 0                            
INFO     13:27:38.069 │ $ 3991                                     
INFO     13:27:38.069 │ minitouch running on port: 20888, pid: 3991
INFO     13:27:38.070 │ max_contact: 10; max_x: 1280; max_y: 720;  
         max_pressure: 0                                           
INFO     13:27:38.840 │ Page arrive: page_campaign_menu            
INFO     13:27:38.845 │ Event available                            
INFO     13:27:38.846 │ <<< UI GOTO PAGE_EVENT >>>                 
INFO     13:27:38.848 │ Page switch: page_campaign_menu ->         
         page_event                                                
INFO     13:27:38.849 │ Click ( 706,  233) @                       
         CAMPAIGN_MENU_GOTO_EVENT                                  
INFO     13:27:39.444 │ Page arrive: page_event                    
INFO     13:27:39.445 │ <<< UI ENSURE INDEX >>>                    
INFO     13:27:39.481 │ No stage found.                            
INFO     13:27:39.779 │ No stage found.                            
INFO     13:27:40.086 │ Loading OCR model:                         
         ./bin/cnocr_models/azur_lane                              
INFO     13:27:40.146 │ [campaign 0.068s] ['SP1', 'SP4', 'SP2',    
         'SP3']                                                    
INFO     13:27:40.148 │ [Chapter] sp                               
INFO     13:27:40.149 │ [Stage] sp1, sp4, sp2, sp3                 
INFO     13:27:40.151 │ [Index] 1                                  
INFO     13:27:40.181 │ [OCR_OIL 0.023s] 15144                     
─────────────────────────────── SP4 ───────────────────────────────
INFO     13:27:40.183 │ SP4                                        
INFO     13:27:40.184 │ Expect emotion reduce: (12, 0)             
INFO     13:27:40.197 │ Bind task {'EventGeneral', 'General',      
         'Alas', 'TaskBalancer', 'Event'}                          
INFO     13:27:40.199 │ Save config ./config\alas.json,            
         Event.Emotion.Fleet1Value=72,                             
         Event.Emotion.Fleet1Record=datetime.datetime(2023, 5, 1,  
         13, 27, 40), Event.Emotion.Fleet2Value=119,               
         Event.Emotion.Fleet2Record=datetime.datetime(2023, 5, 1,  
         13, 27, 40)                                               
INFO     13:27:40.207 │ [Emotion fleet_1] 72                       
INFO     13:27:40.208 │ [Emotion fleet_2] 119                      
INFO     13:27:40.209 │ <<< ENTER MAP >>>                          
INFO     13:27:40.229 │ Click ( 883,  274) @ sp4                   
INFO     13:27:40.837 │ [Map_clear_percentage] 0.37209302325581395 
INFO     13:27:41.109 │ [Map_clear_percentage] 0.9447674418604651  
INFO     13:27:41.427 │ [Map_clear_percentage] 0.997093023255814   
INFO     13:27:41.428 │ [MAP_CLEAR_ALL_THIS_TIME] False            
INFO     13:27:41.429 │ [Map_info] 99%, star_1, star_2, star_3,    
         100_percent_clear, 3_stars, threat_safe, clear_mode       
INFO     13:27:41.430 │ [StopCondition_MapAchievement] non_stop    
INFO     13:27:41.431 │ [Fast_Forward] on                          
INFO     13:27:41.437 │ [Auto_Search] off                          
INFO     13:27:41.439 │ Click ( 876,  596) @ AUTO_SEARCH_OFF       
INFO     13:27:41.731 │ [Auto_Search] unknown                      
INFO     13:27:42.038 │ [Auto_Search] on                           
INFO     13:27:42.039 │ Click ( 920,  516) @ MAP_PREPARATION       
INFO     13:27:42.925 │ Handling 2x book setting, mode=prep.       
INFO     13:27:42.930 │ Using fleet: [6, 2, 1]                     
INFO     13:27:42.941 │ Hard satisfied: Fleet_1: None, Fleet_2:    
         None, Submarine: None                                     
INFO     13:27:42.943 │ Click (1057,  464) @ SUBMARINE_CHOOSE      
INFO     13:27:43.215 │ Current selected: [1]                      
INFO     13:27:43.217 │ Click (1041,  493) @ SUBMARINE_CHOOSE      
INFO     13:27:43.522 │ Click (1138,  340) @ FLEET_2_CLEAR         
INFO     13:27:43.837 │ Click (1042,  191) @ FLEET_1_CHOOSE        
INFO     13:27:44.156 │ Current selected: []                       
INFO     13:27:44.158 │ Click (1157,  479) @ FLEET_1_BAR_INDEX_6   
INFO     13:27:44.459 │ Click (1050,  327) @ FLEET_2_CHOOSE        
INFO     13:27:44.753 │ Current selected: [6]                      
INFO     13:27:44.754 │ Click (1051,  436) @ FLEET_2_BAR_INDEX_2   
INFO     13:27:45.052 │ Disable auto submarine call                
INFO     13:27:45.053 │ [Fleet_sidebar] 1/3                        
INFO     13:27:45.054 │ Click (1208,  409) @ FLEET_SIDEBAR_0_2     
INFO     13:27:45.706 │ [Fleet_sidebar] 3/3                        
INFO     13:27:45.707 │ [Auto_Search_Setting]                      
         fleet1_all_fleet2_standby, sub_standby                    
INFO     13:27:45.708 │ Selected to the correct auto search setting
INFO     13:27:45.708 │ Auto search setting                        
INFO     13:27:45.710 │ [Fleet_sidebar] 3/3                        
INFO     13:27:45.711 │ [Auto_Search_Setting]                      
         fleet1_all_fleet2_standby, sub_standby                    
INFO     13:27:45.712 │ Selected to the correct auto search setting
INFO     13:27:45.713 │ [Auto_Search_Setting]                      
         fleet1_all_fleet2_standby, sub_standby                    
INFO     13:27:45.714 │ Selected to the correct auto search setting
INFO     13:27:45.715 │ Click (1081,  610) @ FLEET_PREPARATION     
──────────────────────────── BATTLE_0 ─────────────────────────────
INFO     13:27:46.934 │ BATTLE_0                                   
INFO     13:27:46.935 │ Auto search moving                         
INFO     13:27:46.939 │ Fleet: 1, fleet_current_index: 1           
INFO     13:27:46.962 │ [OCR_OIL 0.022s] 15134                     
INFO     13:27:46.991 │ [OCR_COIN 0.029s] 1962                     
INFO     13:27:46.992 │ Reach coin limit                           
INFO     13:27:53.276 │ [Loading] 9%                               
INFO     13:27:53.277 │ Auto search combat loading                 
INFO     13:27:53.278 │ Screenshot interval set to 1.0s            
INFO     13:27:59.272 │ Auto Search combat execute                 
INFO     13:27:59.274 │ <<< EMOTION REDUCE >>>                     
INFO     13:27:59.282 │ Bind task {'EventGeneral', 'General',      
         'Alas', 'TaskBalancer', 'Event'}                          
INFO     13:27:59.284 │ Save config ./config\alas.json,            
         Event.Emotion.Fleet1Value=70,                             
         Event.Emotion.Fleet1Record=datetime.datetime(2023, 5, 1,  
         13, 27, 59), Event.Emotion.Fleet2Value=119,               
         Event.Emotion.Fleet2Record=datetime.datetime(2023, 5, 1,  
         13, 27, 59)                                               
INFO     13:27:59.290 │ [Emotion fleet_1] 70                       
INFO     13:27:59.290 │ [Emotion fleet_2] 119                      
INFO     13:28:00.254 │ Click ( 747,  618) @ SUBMARINE_READY       
INFO     13:28:00.306 │ Call submarine                             
INFO     13:28:01.258 │ Submarine called                           
INFO     13:28:04.292 │ Combat auto check timer reached            
[alas] exited. Reason: Manual stop

截图

image

Snipaste_2023-05-01_13-39-20

还有别的吗?

No response

ec7529a2 commented 1 year ago

潜艇出击方案不在自律寻敌时生效,自律寻敌只使用潜艇自律方案,但alas主动召唤潜艇看上去确实是个问题,建议试一下关闭自律寻敌,出击方案还是仅boss战,看看alas还会不会在道中召唤潜艇 另外,分享b站相关链接时请务必删除跟踪参数,如果你不知道什么是跟踪参数,链接里那个问号以及后面的东西就是

666emmm commented 1 year ago

按你说的方法执行后可以正常出击潜艇了👌