在提问之前...

  • [X] 我已经搜索了现有的 issues
  • [X] 我在提问题之前至少花费了 5 分钟来思考和准备
  • [X] 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • [X] 我正在使用最新版的 Alas

描述你的问题

希望在因不识别截图内容并请求人工接管前重启一次游戏, 这种错误多半重启一下就能避免。 并且希望次要任务出现错误并不影响主要任务(不能取消的那些)

如何复现

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

预期行为

No response

相关 Logs

──────────────────────────── BATTLE_3 ────────────────────────────
INFO     01:07:19.912 │ BATTLE_3                                  
INFO     01:07:19.913 │ Using function: battle_3                  
INFO     01:07:19.915 │ Is boss: [F2]                             
INFO     01:07:19.916 │ <<< CLEAR BOSS >>>                        
INFO     01:07:19.918 │ Grids: [F2]                               
INFO     01:07:19.919 │ targetEnemyScale:default_mode             
INFO     01:07:19.921 │ Clear enemy: F2                           
INFO     01:07:19.922 │ [Fleet_1: B5] Fleet_2: C3                 
INFO     01:07:19.937 │ Bind task {'General', 'Alas', 'Sos'}      
INFO     01:07:19.938 │ [Emotion fleet_1] 115                     
INFO     01:07:19.939 │ [Emotion fleet_2] 119                     
INFO     01:07:19.941 │ Fleet set to 1                            
INFO     01:07:19.946 │ Fleet: 1, fleet_current_index: 1          
INFO     01:07:19.948 │ In sight: F2                              
INFO     01:07:19.949 │ Focus to: D2                              
INFO     01:07:19.951 │ Map swipe: (0, -1)                        
INFO     01:07:19.954 │ Swipe ( 362,  437) -> ( 354,  575)        
INFO     01:07:20.586 │            tile_center: 0.922 (good match)
INFO     01:07:20.602 │ 0.054s  _   edge_lines: 1 hori, 2 vert    
INFO     01:07:20.604 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:07:20.608 │            center_loca: (3, 1)            
INFO     01:07:20.622 │ Map swipe predict: None (0.012s, no match)
INFO     01:07:20.624 │                 Camera: D2                
INFO     01:07:20.625 │                 Camera: D2                
INFO     01:07:20.657 │ 0.030s         predict: 31                
INFO     01:07:20.659 │ -- -- -- -- -- -- -- --                   
INFO     01:07:20.661 │ -- -- -- 2M 2C BO -- --                   
INFO     01:07:20.663 │ -- -- Fl -- -- -- -- 1E                   
INFO     01:07:20.664 │ -- -- -- -- -- -- -- ..                   
INFO     01:07:20.666 │ Map swipe: (0, 0)                         
INFO     01:07:20.668 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:07:20.669 │ Click ( 885,  351) @ F2                   
INFO     01:07:24.781 │ Arrive F2 (is_fleet)                      
WARNING  01:07:40.738 │ Walk timeout. Retrying.                   
INFO     01:07:40.770 │ 0.030s         predict: 31                
INFO     01:07:40.772 │ -- -- -- -- -- -- -- --                   
INFO     01:07:40.773 │ -- -- -- 2E 2C BO -- --                   
INFO     01:07:40.775 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:07:40.777 │ -- -- -- -- -- -- -- ..                   
INFO     01:07:40.778 │ Ensure edge in sight.                     
WARNING  01:07:41.026 │ Image to detect is not in_map             
WARNING  01:07:41.315 │ Image to detect is not in_map             
WARNING  01:07:41.615 │ Image to detect is not in_map             
WARNING  01:07:41.922 │ Image to detect is not in_map             
WARNING  01:07:42.232 │ Image to detect is not in_map             
WARNING  01:07:42.535 │ Image to detect is not in_map             
WARNING  01:07:42.821 │ Image to detect is not in_map             
INFO     01:07:43.161 │            tile_center: 0.920 (good match)
INFO     01:07:43.178 │ 0.054s  _   edge_lines: 1 hori, 2 vert    
INFO     01:07:43.179 │ Edges: / \   homo_loca: ( 29,  62)        
INFO     01:07:43.182 │            center_loca: (3, 1)            
INFO     01:07:43.184 │                 Camera: D2                
INFO     01:07:43.217 │ 0.031s         predict: 31                
INFO     01:07:43.220 │ -- -- -- -- -- -- -- --                   
INFO     01:07:43.222 │ -- -- -- 2M 2C BO -- --                   
INFO     01:07:43.223 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:07:43.225 │ -- -- -- -- -- -- -- ..                   
INFO     01:07:43.226 │ Fleet set to 1                            
INFO     01:07:43.230 │ Fleet: 1, fleet_current_index: 1          
INFO     01:07:43.232 │ In sight: F2                              
INFO     01:07:43.233 │ Focus to: D2                              
INFO     01:07:43.235 │ Map swipe: (0, 0)                         
INFO     01:07:43.237 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:07:43.239 │ Click ( 873,  352) @ F2                   
WARNING  01:08:03.581 │ Walk timeout. Retrying.                   
INFO     01:08:03.613 │ 0.030s         predict: 31                
INFO     01:08:03.614 │ -- -- -- -- -- -- -- --                   
INFO     01:08:03.616 │ -- -- -- 2M 2C BO -- --                   
INFO     01:08:03.618 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:08:03.619 │ -- -- -- -- -- -- -- ..                   
INFO     01:08:03.621 │ Ensure edge in sight.                     
INFO     01:08:03.913 │            tile_center: 0.922 (good match)
INFO     01:08:03.928 │ 0.053s  _   edge_lines: 1 hori, 2 vert    
INFO     01:08:03.930 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:08:03.934 │            center_loca: (3, 1)            
INFO     01:08:03.936 │                 Camera: D2                
INFO     01:08:03.968 │ 0.030s         predict: 31                
INFO     01:08:03.969 │ -- -- -- -- -- -- -- --                   
INFO     01:08:03.971 │ -- -- -- 2M 2C BO -- --                   
INFO     01:08:03.973 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:08:03.974 │ -- -- -- -- -- -- -- ..                   
INFO     01:08:03.976 │ Fleet set to 1                            
INFO     01:08:03.981 │ Fleet: 1, fleet_current_index: 1          
INFO     01:08:03.983 │ In sight: F2                              
INFO     01:08:03.984 │ Focus to: D2                              
INFO     01:08:03.985 │ Map swipe: (0, 0)                         
INFO     01:08:03.987 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:08:03.990 │ Click ( 920,  348) @ F2                   
WARNING  01:08:24.047 │ Walk timeout. Retrying.                   
INFO     01:08:24.079 │ 0.030s         predict: 31                
INFO     01:08:24.081 │ -- -- -- -- -- -- -- --                   
INFO     01:08:24.082 │ -- -- -- 2M 2C BO -- --                   
INFO     01:08:24.084 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:08:24.086 │ -- -- -- -- -- -- -- ..                   
INFO     01:08:24.087 │ Ensure edge in sight.                     
INFO     01:08:24.379 │            tile_center: 0.922 (good match)
INFO     01:08:24.395 │ 0.054s  _   edge_lines: 1 hori, 2 vert    
INFO     01:08:24.397 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:08:24.402 │            center_loca: (3, 1)            
INFO     01:08:24.403 │                 Camera: D2                
INFO     01:08:24.435 │ 0.030s         predict: 31                
INFO     01:08:24.437 │ -- -- -- -- -- -- -- --                   
INFO     01:08:24.438 │ -- -- -- 2M 2C BO -- --                   
INFO     01:08:24.440 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:08:24.441 │ -- -- -- -- -- -- -- ..                   
INFO     01:08:24.443 │ Fleet set to 1                            
INFO     01:08:24.447 │ Fleet: 1, fleet_current_index: 1          
INFO     01:08:24.449 │ In sight: F2                              
INFO     01:08:24.450 │ Focus to: D2                              
INFO     01:08:24.452 │ Map swipe: (0, 0)                         
INFO     01:08:24.454 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:08:24.456 │ Click ( 875,  348) @ F2                   
WARNING  01:08:44.799 │ Walk timeout. Retrying.                   
INFO     01:08:44.831 │ 0.030s         predict: 31                
INFO     01:08:44.833 │ -- -- -- -- -- -- -- --                   
INFO     01:08:44.834 │ -- -- -- 2M 2C BO -- --                   
INFO     01:08:44.836 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:08:44.837 │ -- -- -- -- -- -- -- ..                   
INFO     01:08:44.839 │ Ensure edge in sight.                     
INFO     01:08:45.142 │            tile_center: 0.922 (good match)
INFO     01:08:45.157 │ 0.053s  _   edge_lines: 1 hori, 2 vert    
INFO     01:08:45.159 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:08:45.163 │            center_loca: (3, 1)            
INFO     01:08:45.165 │                 Camera: D2                
INFO     01:08:45.197 │ 0.031s         predict: 31                
INFO     01:08:45.199 │ -- -- -- -- -- -- -- --                   
INFO     01:08:45.201 │ -- -- -- 2M 2C BO -- --                   
INFO     01:08:45.202 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:08:45.204 │ -- -- -- -- -- -- -- ..                   
INFO     01:08:45.206 │ Fleet set to 1                            
INFO     01:08:45.211 │ Fleet: 1, fleet_current_index: 1          
INFO     01:08:45.212 │ In sight: F2                              
INFO     01:08:45.214 │ Focus to: D2                              
INFO     01:08:45.216 │ Map swipe: (0, 0)                         
INFO     01:08:45.218 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:08:45.220 │ Click ( 880,  365) @ F2                   
WARNING  01:09:05.552 │ Walk timeout. Retrying.                   
INFO     01:09:05.584 │ 0.030s         predict: 31                
INFO     01:09:05.586 │ -- -- -- -- -- -- -- --                   
INFO     01:09:05.587 │ -- -- -- 2M 2C BO -- --                   
INFO     01:09:05.589 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:09:05.590 │ -- -- -- -- -- -- -- ..                   
INFO     01:09:05.592 │ Ensure edge in sight.                     
INFO     01:09:05.895 │            tile_center: 0.922 (good match)
INFO     01:09:05.911 │ 0.054s  _   edge_lines: 1 hori, 2 vert    
INFO     01:09:05.913 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:09:05.917 │            center_loca: (3, 1)            
INFO     01:09:05.919 │                 Camera: D2                
INFO     01:09:05.950 │ 0.030s         predict: 31                
INFO     01:09:05.952 │ -- -- -- -- -- -- -- --                   
INFO     01:09:05.954 │ -- -- -- 2M 2C BO -- --                   
INFO     01:09:05.956 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:09:05.957 │ -- -- -- -- -- -- -- ..                   
INFO     01:09:05.958 │ Fleet set to 1                            
INFO     01:09:05.964 │ Fleet: 1, fleet_current_index: 1          
INFO     01:09:05.965 │ In sight: F2                              
INFO     01:09:05.967 │ Focus to: D2                              
INFO     01:09:05.968 │ Map swipe: (0, 0)                         
INFO     01:09:05.969 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:09:05.971 │ Click ( 884,  373) @ F2                   
WARNING  01:09:26.065 │ Walk timeout. Retrying.                   
INFO     01:09:26.097 │ 0.030s         predict: 31                
INFO     01:09:26.099 │ -- -- -- -- -- -- -- --                   
INFO     01:09:26.101 │ -- -- -- 2M 2C BO -- --                   
INFO     01:09:26.102 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:09:26.104 │ -- -- -- -- -- -- -- ..                   
INFO     01:09:26.105 │ Ensure edge in sight.                     
INFO     01:09:26.348 │            tile_center: 0.922 (good match)
INFO     01:09:26.364 │ 0.053s  _   edge_lines: 1 hori, 2 vert    
INFO     01:09:26.366 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:09:26.369 │            center_loca: (3, 1)            
INFO     01:09:26.371 │                 Camera: D2                
INFO     01:09:26.405 │ 0.032s         predict: 31                
INFO     01:09:26.407 │ -- -- -- -- -- -- -- --                   
INFO     01:09:26.409 │ -- -- -- 2M 2C BO -- --                   
INFO     01:09:26.409 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:09:26.411 │ -- -- -- -- -- -- -- ..                   
INFO     01:09:26.413 │ Fleet set to 1                            
INFO     01:09:26.418 │ Fleet: 1, fleet_current_index: 1          
INFO     01:09:26.419 │ In sight: F2                              
INFO     01:09:26.421 │ Focus to: D2                              
INFO     01:09:26.422 │ Map swipe: (0, 0)                         
INFO     01:09:26.424 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:09:26.427 │ Click ( 874,  389) @ F2                   
WARNING  01:09:46.777 │ Walk timeout. Retrying.                   
INFO     01:09:46.811 │ 0.032s         predict: 31                
INFO     01:09:46.813 │ -- -- -- -- -- -- -- --                   
INFO     01:09:46.815 │ -- -- -- 2M 2C BO -- --                   
INFO     01:09:46.817 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:09:46.818 │ -- -- -- -- -- -- -- ..                   
INFO     01:09:46.820 │ Ensure edge in sight.                     
INFO     01:09:47.115 │            tile_center: 0.922 (good match)
INFO     01:09:47.131 │ 0.054s  _   edge_lines: 1 hori, 2 vert    
INFO     01:09:47.133 │ Edges: / \   homo_loca: ( 30,  61)        
INFO     01:09:47.137 │            center_loca: (3, 1)            
INFO     01:09:47.138 │                 Camera: D2                
INFO     01:09:47.170 │ 0.030s         predict: 31                
INFO     01:09:47.172 │ -- -- -- -- -- -- -- --                   
INFO     01:09:47.174 │ -- -- -- 2M 2C BO -- --                   
INFO     01:09:47.175 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:09:47.177 │ -- -- -- -- -- -- -- ..                   
INFO     01:09:47.178 │ Fleet set to 1                            
INFO     01:09:47.182 │ Fleet: 1, fleet_current_index: 1          
INFO     01:09:47.184 │ In sight: F2                              
INFO     01:09:47.186 │ Focus to: D2                              
INFO     01:09:47.187 │ Map swipe: (0, 0)                         
INFO     01:09:47.189 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:09:47.191 │ Click ( 862,  371) @ F2                   
WARNING  01:10:07.541 │ Walk timeout. Retrying.                   
INFO     01:10:07.573 │ 0.030s         predict: 31                
INFO     01:10:07.574 │ -- -- -- -- -- -- -- --                   
INFO     01:10:07.576 │ -- -- -- 2E 2C BO -- --                   
INFO     01:10:07.578 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:10:07.579 │ -- -- -- -- -- -- -- ..                   
INFO     01:10:07.581 │ Ensure edge in sight.                     
WARNING  01:10:07.834 │ Image to detect is not in_map             
WARNING  01:10:08.127 │ Image to detect is not in_map             
WARNING  01:10:08.432 │ Image to detect is not in_map             
WARNING  01:10:08.727 │ Image to detect is not in_map             
WARNING  01:10:09.042 │ Image to detect is not in_map             
WARNING  01:10:09.341 │ Image to detect is not in_map             
WARNING  01:10:09.643 │ Image to detect is not in_map             
WARNING  01:10:09.937 │ Image to detect is not in_map             
WARNING  01:10:10.227 │ Image to detect is not in_map             
WARNING  01:10:10.538 │ Image to detect is not in_map             
WARNING  01:10:10.837 │ Image to detect is not in_map             
WARNING  01:10:11.145 │ Image to detect is not in_map             
INFO     01:10:11.475 │            tile_center: 0.920 (good match)
INFO     01:10:11.490 │ 0.053s  _   edge_lines: 1 hori, 2 vert    
INFO     01:10:11.492 │ Edges: / \   homo_loca: ( 29,  62)        
INFO     01:10:11.497 │            center_loca: (3, 1)            
INFO     01:10:11.498 │                 Camera: D2                
INFO     01:10:11.529 │ 0.029s         predict: 31                
INFO     01:10:11.531 │ -- -- -- -- -- -- -- --                   
INFO     01:10:11.533 │ -- -- -- 2M 2C BO -- --                   
INFO     01:10:11.534 │ -- -- Fl -- -- FL -- 1E                   
INFO     01:10:11.536 │ -- -- -- -- -- -- -- ..                   
INFO     01:10:11.537 │ Fleet set to 1                            
INFO     01:10:11.543 │ Fleet: 1, fleet_current_index: 1          
INFO     01:10:11.545 │ In sight: F2                              
INFO     01:10:11.546 │ Focus to: D2                              
INFO     01:10:11.548 │ Map swipe: (0, 0)                         
INFO     01:10:11.549 │ Global F2 (camera=D2) -> Local F2         
         (center=D2)                                              
INFO     01:10:11.552 │ Click ( 903,  344) @ F2                   
WARNING  01:10:31.901 │ Walk timeout. Retrying.                   
INFO     01:10:31.940 │ 0.037s         predict: 31                
INFO     01:10:31.941 │ -- -- -- -- -- -- -- --                   
INFO     01:10:31.943 │ -- -- -- -- -- -- -- --                   
INFO     01:10:31.944 │ -- -- -- -- -- -- -- --                   
INFO     01:10:31.945 │ -- -- -- -- -- -- -- ..                   
INFO     01:10:31.947 │ Ensure edge in sight.                     
WARNING  01:10:32.190 │ Image to detect is not in_map             
WARNING  01:10:32.491 │ Image to detect is not in_map             
WARNING  01:10:32.796 │ Image to detect is not in_map             
WARNING  01:10:33.082 │ Image to detect is not in_map             
WARNING  01:10:33.393 │ Image to detect is not in_map             
WARNING  01:10:33.693 │ Image to detect is not in_map             
WARNING  01:10:33.991 │ Image to detect is not in_map             
WARNING  01:10:34.293 │ Image to detect is not in_map             
WARNING  01:10:34.600 │ Image to detect is not in_map             
WARNING  01:10:34.889 │ Image to detect is not in_map             
WARNING  01:10:35.193 │ Image to detect is not in_map             
WARNING  01:10:35.499 │ Image to detect is not in_map             
WARNING  01:10:35.799 │ Image to detect is not in_map             
WARNING  01:10:36.107 │ Image to detect is not in_map             
WARNING  01:10:36.399 │ Image to detect is not in_map             
WARNING  01:10:36.704 │ Image to detect is not in_map             
WARNING  01:10:37.001 │ Image to detect is not in_map             
ERROR    01:10:37.008 │ MapDetectionError: Image to detect is not 
         in_map                                                   
         ╭────────── Traceback (most recent call last) ──────────╮
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\alas.py:63 in run            │
         │                                                       │
         │    61 │   │   try:                                    │
         │    62 │   │   │   self.device.screenshot()            │
         │ ❱  63 │   │   │   self.__getattribute__(command)()    │
         │    64 │   │   │   return True                         │
         │    65 │   │   except TaskEnd:                         │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ command = 'sos'                                   │ │
         │ │       e = MapDetectionError('Image to detect is   │ │
         │ │           not in_map')                            │ │
         │ │    self = <alas.AzurLaneAutoScript object at      │ │
         │ │           0x00000227D6C70CC8>                     │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │ F:\leidian\AlasApp_0.3.7\alas.py:252 in sos           │
         │                                                       │
         │   250 │   def sos(self):                              │
         │   251 │   │   from module.sos.sos import CampaignSos  │
         │ ❱ 252 │   │   CampaignSos(config=self.config, device= │
         │   253 │                                               │
         │   254 │   def war_archives(self):                     │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ CampaignSos = <class                              │ │
         │ │               'module.sos.sos.CampaignSos'>       │ │
         │ │        self = <alas.AzurLaneAutoScript object at  │ │
         │ │               0x00000227D6C70CC8>                 │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\sos\sos.py:208 in run │
         │                                                       │
         │   206 │   │   │   │   name = f'campaign_{self.config. │
         │   207 │   │   │   │   self.config.override(Campaign_N │
         │ ❱ 208 │   │   │   │   super().run(name, folder=folder │
         │   209 │   │   │   │   if self.run_count > 0:          │
         │   210 │   │   │   │   │   continue                    │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ __class__ = <class 'module.sos.sos.CampaignSos'>  │ │
         │ │    folder = 'campaign_sos'                        │ │
         │ │      mode = 'normal'                              │ │
         │ │      name = 'campaign_3_5'                        │ │
         │ │    remain = 3                                     │ │
         │ │      self = <module.sos.sos.CampaignSos object at │ │
         │ │             0x0000022788118148>                   │ │
         │ │     total = 1                                     │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\campaign\run.py:250   │
         │ in run                                                │
         │                                                       │
         │   248 │   │   │   # Run                               │
         │   249 │   │   │   try:                                │
         │ ❱ 250 │   │   │   │   self.campaign.run()             │
         │   251 │   │   │   except ScriptEnd as e:              │
         │   252 │   │   │   │   logger.hr('Script end')         │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ folder = 'campaign_sos'                           │ │
         │ │   mode = 'normal'                                 │ │
         │ │   name = 'campaign_3_5'                           │ │
         │ │   self = <module.sos.sos.CampaignSos object at    │ │
         │ │          0x0000022788118148>                      │ │
         │ │  total = 1                                        │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\campaign\campaign_bas │
         │ e.py:141 in run                                       │
         │                                                       │
         │   139 │   │   │   try:                                │
         │   140 │   │   │   │   if not self.map_is_auto_search: │
         │ ❱ 141 │   │   │   │   │   self.execute_a_battle()     │
         │   142 │   │   │   │   else:                           │
         │   143 │   │   │   │   │   self.auto_search_execute_a_ │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │    _ = 3                                          │ │
         │ │ self = <campaign.campaign_sos.campaign_3_5.Campa… │ │
         │ │        object at 0x00000227881C4548>              │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\campaign\campaign_bas │
         │ e.py:100 in execute_a_battle                          │
         │                                                       │
         │    98 │   │   for _ in range(10):                     │
         │    99 │   │   │   try:                                │
         │ ❱ 100 │   │   │   │   result = self.battle_function() │
         │   101 │   │   │   │   break                           │
         │   102 │   │   │   except MapEnemyMoved:               │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │      _ = 0                                        │ │
         │ │   prev = 3                                        │ │
         │ │ result = False                                    │ │
         │ │   self = <campaign.campaign_sos.campaign_3_5.Cam… │ │
         │ │          object at 0x00000227881C4548>            │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\base\decorator.py:67  │
         │ in wrapper                                            │
         │                                                       │
         │    65 │   │   │   │   │   │   continue                │
         │    66 │   │   │   │   │                               │
         │ ❱  67 │   │   │   │   │   return record['func'](self, │
         │    68 │   │   │   │                                   │
         │    69 │   │   │   │   logger.warning(f'No option fits │
         │       func.')                                         │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │   args = ()                                       │ │
         │ │    cls = <class 'module.base.decorator.Config'>   │ │
         │ │   flag = [True, True]                             │ │
         │ │   func = <function CampaignBase.battle_function   │ │
         │ │          at 0x00000227882380D8>                   │ │
         │ │ kwargs = {}                                       │ │
         │ │ logger = <Logger alas (INFO)>                     │ │
         │ │   name = 'battle_function'                        │ │
         │ │ record = {                                        │ │
         │ │          │   'options': {                         │ │
         │ │          │   │   'MAP_CLEAR_ALL_THIS_TIME':       │ │
         │ │          False,                                   │ │
         │ │          │   │   'POOR_MAP_DATA': False           │ │
         │ │          │   },                                   │ │
         │ │          │   'func': <function                    │ │
         │ │          CampaignBase.battle_function at          │ │
         │ │          0x00000227882380D8>                      │ │
         │ │          }                                        │ │
         │ │   self = <campaign.campaign_sos.campaign_3_5.Cam… │ │
         │ │          object at 0x00000227881C4548>            │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\campaign\campaign_bas │
         │ e.py:90 in battle_function                            │
         │                                                       │
         │    88 │   │   func = self.__getattribute__(func)      │
         │    89 │   │                                           │
         │ ❱  90 │   │   result = func()                         │
         │    91 │   │                                           │
         │    92 │   │   return result                           │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ extra_battle = 0                                  │ │
         │ │         func = <bound method Campaign.battle_3 of │ │
         │ │                <campaign.campaign_sos.campaign_3… │ │
         │ │                object at 0x00000227881C4548>>     │ │
         │ │         self = <campaign.campaign_sos.campaign_3… │ │
         │ │                object at 0x00000227881C4548>      │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\campaign\campaign_sos\campai │
         │ gn_3_5.py:84 in battle_3                              │
         │                                                       │
         │   82 │                                                │
         │   83 │   def battle_3(self):                          │
         │ ❱ 84 │   │   self.fleet_boss.clear_boss()             │
         │   85                                                  │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ self = <campaign.campaign_sos.campaign_3_5.Campa… │ │
         │ │        object at 0x00000227881C4548>              │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\map.py:336 in     │
         │ clear_boss                                            │
         │                                                       │
         │   334 │   │   │   grids = grids.sort('weight', 'cost' │
         │   335 │   │   │   logger.info('Grids: %s' % str(grids │
         │ ❱ 336 │   │   │   self.clear_chosen_enemy(grids[0], e │
         │   337 │   │                                           │
         │   338 │   │   logger.warning('BOSS not detected, tryi │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ grids = <module.map.map_grids.SelectedGrids       │ │
         │ │         object at 0x0000022788B8AF88>             │ │
         │ │  self = <campaign.campaign_sos.campaign_3_5.Camp… │ │
         │ │         object at 0x00000227881C4548>             │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\map.py:27 in      │
         │ clear_chosen_enemy                                    │
         │                                                       │
         │    25 │   │   if self.config.Emotion_CalculateEmotion │
         │    26 │   │   │   self.emotion.wait(fleet_index=self. │
         │ ❱  27 │   │   self.goto(grid, expected=expected)      │
         │    28 │   │                                           │
         │    29 │   │   self.full_scan()                        │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ expected = 'combat_boss'                          │ │
         │ │     grid = F2                                     │ │
         │ │     self = <campaign.campaign_sos.campaign_3_5.C… │ │
         │ │            object at 0x00000227881C4548>          │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\fleet.py:500 in   │
         │ goto                                                  │
         │                                                       │
         │    498 │   │   │   │   │   │   self._goto(node_, expe │
         │        '')                                            │
         │    499 │   │   else:                                  │
         │ ❱  500 │   │   │   self._goto(location, expected=expe │
         │    501 │                                              │
         │    502 │   def find_path_initial(self):               │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ expected = 'combat_boss'                          │ │
         │ │ location = (5, 1)                                 │ │
         │ │ optimize = True                                   │ │
         │ │     self = <campaign.campaign_sos.campaign_3_5.C… │ │
         │ │            object at 0x00000227881C4548>          │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\fleet.py:430 in   │
         │ _goto                                                 │
         │                                                       │
         │    428 │   │   │   │   │   logger.warning('Walk timeo │
         │    429 │   │   │   │   │   self.predict()             │
         │ ❱  430 │   │   │   │   │   self.ensure_edge_insight(s │
         │    431 │   │   │   │   │   break                      │
         │    432                                                │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │        ambushed_retry = Timer(limit=0.0/0.5,      │ │
         │ │                         count=2/2)                │ │
         │ │        arrive_checker = False                     │ │
         │ │        arrive_predict = ''                        │ │
         │ │          arrive_timer = Timer(limit=0.0/0.5,      │ │
         │ │                         count=2/2)                │ │
         │ │ arrive_unexpected_timer Timer(limit=0.0/1.5,      │ │
         │ │                       = count=6/6)                │ │
         │ │               arrived = False                     │ │
         │ │              expected = 'combat_boss'             │ │
         │ │                 extra = 0                         │ │
         │ │                  grid = F2                        │ │
         │ │             is_portal = False                     │ │
         │ │              location = (5, 1)                    │ │
         │ │    may_submarine_icon = False                     │ │
         │ │               mystery = False                     │ │
         │ │                result = 'nothing'                 │ │
         │ │        result_mystery = ''                        │ │
         │ │                  self = <campaign.campaign_sos.c… │ │
         │ │                         object at                 │ │
         │ │                         0x00000227881C4548>       │ │
         │ │          walk_timeout = Timer(limit=25.83/20,     │ │
         │ │                         count=73/0)               │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\camera.py:272 in  │
         │ ensure_edge_insight                                   │
         │                                                       │
         │   270 │   │   │   if len(record) == 0:                │
         │   271 │   │   │   │   if not skip_first_update:       │
         │ ❱ 272 │   │   │   │   │   self.update()               │
         │   273 │   │   │   │   if preset is not None:          │
         │   274 │   │   │   │   │   self.map_swipe(preset)      │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │            preset = None                          │ │
         │ │            record = []                            │ │
         │ │           reverse = False                         │ │
         │ │              self = <campaign.campaign_sos.campa… │ │
         │ │                     object at 0x00000227881C4548> │ │
         │ │ skip_first_update = False                         │ │
         │ │       swipe_limit = (3, 2)                        │ │
         │ │           x_swipe = -3                            │ │
         │ │           y_swipe = -2                            │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\camera.py:230 in  │
         │ update                                                │
         │                                                       │
         │   228 │   │   while 1:                                │
         │   229 │   │   │   try:                                │
         │ ❱ 230 │   │   │   │   success = self._update(camera=c │
         │   231 │   │   │   │   if success:                     │
         │   232 │   │   │   │   │   break                       │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │   allow_error = False                             │ │
         │ │        camera = True                              │ │
         │ │ confirm_timer = Timer(limit=5.486/5, count=17/10) │ │
         │ │          self = <campaign.campaign_sos.campaign_… │ │
         │ │                 object at 0x00000227881C4548>     │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\camera.py:172 in  │
         │ _update                                               │
         │                                                       │
         │   170 │   │   │   │   │   return False                │
         │   171 │   │   │   │   else:                           │
         │ ❱ 172 │   │   │   │   │   raise e                     │
         │   173 │   │   │   elif 'Camera outside map' in str(e) │
         │   174 │   │   │   │   string = str(e)                 │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ camera = True                                     │ │
         │ │   self = <campaign.campaign_sos.campaign_3_5.Cam… │ │
         │ │          object at 0x00000227881C4548>            │ │
         │ ╰───────────────────────────────────────────────────╯ │
         │                                                       │
         │ F:\leidian\AlasApp_0.3.7\module\map\camera.py:120 in  │
         │ _update                                               │
         │                                                       │
         │   118 │   │   │   │   │   and not self.is_in_strategy │
         │   119 │   │   │   │   logger.warning('Image to detect │
         │ ❱ 120 │   │   │   │   raise MapDetectionError('Image  │
         │   121 │   │   │   self.view.load(self.device.image)   │
         │   122 │   │   except MapDetectionError as e:          │
         │                                                       │
         │ ╭───────────────────── locals ──────────────────────╮ │
         │ │ camera = True                                     │ │
         │ │   self = <campaign.campaign_sos.campaign_3_5.Cam… │ │
         │ │          object at 0x00000227881C4548>            │ │
         │ ╰───────────────────────────────────────────────────╯ │
         ╰───────────────────────────────────────────────────────╯
         MapDetectionError: Image to detect is not in_map         
WARNING  01:10:37.810 │ Saving error: ./log/error/1667149837810   
INFO     01:10:37.885 │ No provider specified, skip sending

截图

No response

还有别的吗?

log.txt 2022-10-31_01-10-37-000885 这是完整错误记录

0

哦对了,得补充一下,希望再做一个整合至GUI的错误和警告日志,出现未识别的或是其他问题,但是已经被Alas自动排除了的错误,可直接通过这个选项卡查看。 并且有很明显的提示,就比如Alas全窗口红屏或是直接在Windows通知栏那里飞出一个通知不消失那种这之类的。 这个功能希望和优化人工接管的逻辑这样一起实装,

0

登录凭据的问题,我看b战一直没给我回信,我猜应该全局代理掉线了,到时候b战回邮件了看一下

0

确定了,是全局掉了qwq

0
© 2022 pullanswer.com - All rights reserved.