AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

大世界深渊海域报错

Open 24k12315 opened this issue 2 years ago • 1 comments

在提问之前...

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

描述你的问题

大世界深渊海域报错

如何复现

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

预期行为

进入深渊海域之后停止操作,之后报错key error,未带遮挡视野的外观等

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                      OPSIABYSSAL                                                      
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
═══════════════════════════════════════════════════════ OS INIT ═══════════════════════════════════════════════════════
2023-12-07 01:50:44.885 | INFO | OS INIT                                                                               
2023-12-07 01:50:44.907 | INFO | <<< UI ENSURE >>>                                                                     
2023-12-07 01:50:44.908 | INFO | UI get current page                                                                   
2023-12-07 01:50:44.911 | INFO | [UI] page_main                                                                        
2023-12-07 01:50:44.913 | INFO | Goto page_os                                                                          
2023-12-07 01:50:44.914 | INFO | <<< UI GOTO PAGE_OS >>>                                                               
2023-12-07 01:50:44.918 | INFO | Page switch: page_main -> page_campaign_menu                                          
2023-12-07 01:50:44.919 | INFO | Click (1109,  369) @ MAIN_GOTO_CAMPAIGN                                               
2023-12-07 01:50:45.186 | INFO | Page switch: page_campaign_menu -> page_os                                            
2023-12-07 01:50:45.188 | INFO | Click ( 820,  452) @ CAMPAIGN_MENU_GOTO_OS                                            
2023-12-07 01:50:46.092 | INFO | Page arrive: page_os                                                                  
2023-12-07 01:50:46.093 | INFO | <<< ZONE INIT >>>                                                                     
2023-12-07 01:50:46.101 | INFO | Get zone name                                                                         
2023-12-07 01:50:46.186 | INFO | [MAP_NAME 0.061s] NA海域西南B-安全海域                                                
2023-12-07 01:50:46.188 | INFO | Map name processed: NA海域西南B                                                       
2023-12-07 01:50:46.191 | INFO | [Zone] [22|NA Ocean SW Sector B]                                                      
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2023-12-07 01:50:46.193 | INFO | AFTER AUTO SEARCH                                                                     
2023-12-07 01:50:46.210 | INFO | No EMP debuff on current fleet                                                        
2023-12-07 01:50:46.215 | INFO | [HP]  98%  98%  98%  98%  98%  98%                                                    
2023-12-07 01:50:46.221 | INFO | [Repair icon] [False, False, False, False, False, False]                              
2023-12-07 01:50:46.222 | INFO | No ship found to be below threshold 40%, continue OS exploration                      
2023-12-07 01:50:46.224 | INFO | Handle after auto search finished, solved=False                                       
2023-12-07 01:50:46.225 | INFO | Current fleet is not afflicted with the low resolve debuff                            
2023-12-07 01:50:46.228 | INFO | In zone 22, 44, 154, skip running first auto search                                   
2023-12-07 01:50:46.230 | INFO | Ash beacon status: gray                                                               
2023-12-07 01:50:46.266 | INFO | [ASH_COLLECT_STATUS 0.034s] 100/200                                                   
2023-12-07 01:50:46.296 | INFO | [ASH_DAILY_STATUS 0.028s] 200/200                                                     
2023-12-07 01:50:46.298 | INFO | Ash beacon fully collected today                                                      
══════════════════════════════════════════════════ OS CLEAR ABYSSAL ═══════════════════════════════════════════════════
2023-12-07 01:50:46.300 | INFO | OS CLEAR ABYSSAL                                                                      
2023-12-07 01:50:46.301 | INFO | [OpsiNextReset] 2024-01-01 00:00:00                                                   
2023-12-07 01:50:46.302 | INFO | [ResetRemain] 24                                                                      
2023-12-07 01:50:46.336 | INFO | [SHOP_YELLOW_COINS 0.033s] 382283                                                     
2023-12-07 01:50:46.369 | INFO | Keep 1000 AP when CL1 available                                                       
2023-12-07 01:50:46.377 | INFO | Click ( 903,   42) @ ACTION_POINT_REMAIN_OS                                           
2023-12-07 01:50:46.857 | INFO | [Amount_ocr 0.065s] [13401, 44, 0, 1]                                                 
2023-12-07 01:50:46.883 | INFO | [ACTION_POINT_REMAIN 0.025s] 99                                                       
2023-12-07 01:50:46.916 | INFO | Action points: 99(1079), oil: 13401                                                   
2023-12-07 01:50:46.967 | INFO | Bind task {'General', 'OpsiAbyssal', 'Alas', 'OpsiGeneral'}                           
2023-12-07 01:50:46.968 | INFO | Save config ./config\alas.json, Resource.YellowCoin.Value=382283,                     
Resource.YellowCoin.Record=datetime.datetime(2023, 12, 7, 1, 50, 46), Resource.ActionPoint.Value=99,                   
Resource.ActionPoint.Record=datetime.datetime(2023, 12, 7, 1, 50, 46), Resource.ActionPoint.Total=1079                 
2023-12-07 01:50:47.016 | INFO | Having 1000 action points                                                             
2023-12-07 01:50:47.017 | INFO | <<< UI CLICK >>>                                                                      
2023-12-07 01:50:47.025 | INFO | Click ( 484,  557) @ ACTION_POINT_CANCEL                                              
2023-12-07 01:50:47.435 | INFO | <<< OS GET NEXT OBSCURE >>>                                                           
2023-12-07 01:50:47.436 | INFO | Storage enter                                                                         
2023-12-07 01:50:47.452 | INFO | Click ( 831,  656) @ STORAGE_ENTER                                                    
2023-12-07 01:50:48.038 | INFO | <<< STORAGE LOGGER USE ALL >>>                                                        
2023-12-07 01:50:48.219 | INFO | [Storage_logger] 0                                                                    
2023-12-07 01:50:48.221 | INFO | All loggers in storage have been used                                                 
2023-12-07 01:50:48.222 | INFO | <<< STORAGE CHECKOUT ITEM ABYSSAL >>>                                                 
2023-12-07 01:50:48.259 | INFO | [Storage_ABYSSAL] 4                                                                   
2023-12-07 01:50:48.262 | INFO | Click ( 198,  161) @ TEMPLATE_STORAGE_ABYSSAL                                         
2023-12-07 01:50:48.668 | INFO | Click ( 685,  497) @ STORAGE_COORDINATE_CHECKOUT                                      
2023-12-07 01:50:51.089 | INFO | Already selected at ABYSSAL                                                           
2023-12-07 01:50:51.102 | INFO | Click ( 438,  298) @ ZONE_ENTRANCE                                                    
2023-12-07 01:50:51.443 | INFO | Click ( 780,  509) @ POPUP_CONFIRM_GLOBE_ENTER                                        
2023-12-07 01:50:51.757 | INFO | [Amount_ocr 0.064s] [13401, 44, 0, 1]                                                 
2023-12-07 01:50:51.784 | INFO | [ACTION_POINT_REMAIN 0.024s] 99                                                       
2023-12-07 01:50:51.816 | INFO | Action points: 99(1079), oil: 13401                                                   
2023-12-07 01:50:51.861 | INFO | Bind task {'General', 'OpsiAbyssal', 'Alas', 'OpsiGeneral'}                           
2023-12-07 01:50:51.864 | INFO | Click ( 885,  353) @ ACTION_POINT_GRID_3_0                                            
2023-12-07 01:50:52.269 | INFO | Click ( 774,  544) @ ACTION_POINT_USE                                                 
2023-12-07 01:50:52.746 | INFO | [Amount_ocr 0.063s] [13401, 44, 0, 0]                                                 
2023-12-07 01:50:52.771 | INFO | [ACTION_POINT_REMAIN 0.023s] 199                                                      
2023-12-07 01:50:52.807 | INFO | Action points: 199(1079), oil: 13401                                                  
2023-12-07 01:50:52.861 | INFO | Bind task {'General', 'OpsiAbyssal', 'Alas', 'OpsiGeneral'}                           
2023-12-07 01:50:52.863 | INFO | Save config ./config\alas.json, Resource.ActionPoint.Value=199,                       
Resource.ActionPoint.Record=datetime.datetime(2023, 12, 7, 1, 50, 52)                                                  
2023-12-07 01:50:52.872 | INFO | Having enough action points                                                           
2023-12-07 01:50:52.873 | INFO | <<< UI CLICK >>>                                                                      
2023-12-07 01:50:52.875 | INFO | Click ( 427,  544) @ ACTION_POINT_CANCEL                                              
2023-12-07 01:50:53.594 | INFO | Click ( 489,  299) @ ZONE_ENTRANCE                                                    
2023-12-07 01:50:53.911 | INFO | Click ( 787,  520) @ POPUP_CONFIRM_GLOBE_ENTER                                        
2023-12-07 01:50:55.709 | INFO | <<< ZONE INIT >>>                                                                     
2023-12-07 01:50:55.711 | INFO | Get zone name                                                                         
2023-12-07 01:50:55.800 | INFO | [MAP_NAME 0.074s] 陆间海C-深渊海域                                                    
2023-12-07 01:50:55.802 | INFO | Map name processed: 陆间海C                                                           
2023-12-07 01:50:55.804 | INFO | [Zone] [73|Mediterranee C]                                                            
2023-12-07 01:50:55.816 | INFO | [Fleet_Lock] on                                                                       
2023-12-07 01:50:55.821 | INFO | Click (1189,  537) @ OS_FLEET_LOCKED                                                  
2023-12-07 01:50:55.997 | INFO | [Fleet_Lock] off                                                                      
2023-12-07 01:50:56.289 | INFO | <<< QUESTION GOTO >>>                                                                 
2023-12-07 01:50:56.293 | INFO | [homo_storage] ((10, 7), [(110.307, 103.657), (1012.311, 103.657), (-32.959, 600.567),
(1113.057, 600.567)])                                                                                                  
2023-12-07 01:50:56.424 | INFO |            tile_center: 0.920 (good match)                                            
2023-12-07 01:50:56.466 | INFO | 0.134s  _   edge_lines: 11 hori, 7 vert                                               
2023-12-07 01:50:56.467 | INFO | Edges: /_\   homo_loca: ( 54,  58)                                                    
2023-12-07 01:50:56.472 | INFO |            center_loca: (3, 1)                                                        
2023-12-07 01:50:56.505 | INFO | 0.032s         predict: 28                                                            
2023-12-07 01:50:56.506 | INFO | -- -- -- -- -- -- --                                                                  
2023-12-07 01:50:56.507 | INFO | -- -- -- FL -- -- --                                                                  
2023-12-07 01:50:56.508 | INFO | -- -- -- -- -- -- --                                                                  
2023-12-07 01:50:56.509 | INFO | -- -- -- -- -- -- --                                                                  
2023-12-07 01:50:56.576 | INFO |             -- -- --                                                                  
2023-12-07 01:50:56.580 | INFO |       -- -- -- -- -- -- --                                                            
2023-12-07 01:50:56.581 | INFO |    -- -- -- -- -- -- -- -- --                                                         
2023-12-07 01:50:56.583 | INFO |    -- -- -- -- QU -- -- -- --                                                         
2023-12-07 01:50:56.585 | INFO | -- -- -- -- -- -- -- -- -- -- --                                                      
2023-12-07 01:50:56.586 | INFO | -- -- -- -- -- FL -- -- -- -- --                                                      
2023-12-07 01:50:56.587 | INFO | -- -- -- -- -- -- -- -- -- -- --                                                      
2023-12-07 01:50:56.588 | INFO |    -- -- -- -- -- -- -- -- --                                                         
2023-12-07 01:50:56.590 | INFO |    -- -- -- -- -- -- -- -- --                                                         
2023-12-07 01:50:56.591 | INFO |       -- -- -- -- -- -- --                                                            
2023-12-07 01:50:56.593 | INFO |             -- -- --                                                                  
2023-12-07 01:50:56.594 | WARNING | Convert radar to local, but target grid not in local view. Assuming camera center  
is current fleet: D2                                                                                                   
2023-12-07 01:50:56.595 | ERROR | KeyError: (3, -1)                                                                    
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\os\camera.py:150 in convert_radar_to_local                                    │
│                                                                                                                     │
│   147 │   │   │   center = self.view.center_loca                                                                    │
│   148 │   │                                                                                                         │
│   149 │   │   try:                                                                                                  │
│ > 150 │   │   │   local = self.view[np.add(location, center)]                                                       │
│   151 │   │   except KeyError:                                                                                      │
│   152 │   │   │   logger.warning(f'Convert radar to local, but target grid not in local view.                       │
│       '                                                                                                             │
│   153 │   │   │   │   │   │      f'Assuming camera center is current fleet:                                         │
│       {location2node(self.view.center_loca)}')                                                                      │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐                              │
│ │   center = (3, 1)                                                                  │                              │
│ │   fleets = <module.map.map_grids.SelectedGrids object at 0x000001FB21B4FAC8>       │                              │
│ │ location = (0, -2)                                                                 │                              │
│ │     self = <module.os.operation_siren.OperationSiren object at 0x000001FB219E6248> │                              │
│ └────────────────────────────────────────────────────────────────────────────────────┘                              │
│ D:\迅雷下载\AzurLaneAutoScript\module\map_detection\view.py:36 in __getitem__                                       │
│                                                                                                                     │
│    33 │   │   return iter(self.grids.values())                                                                      │
│    34 │                                                                                                             │
│    35 │   def __getitem__(self, item):                                                                              │
│ >  36 │   │   return self.grids[tuple(item)]                                                                        │
│    37 │                                                                                                             │
│    38 │   def __contains__(self, item):                                                                             │
│    39 │   │   return tuple(item) in self.grids                                                                      │
│                                                                                                                     │
│ ┌─────────────────────────────── locals ───────────────────────────────┐                                            │
│ │ item = array([ 3, -1])                                               │                                            │
│ │ self = <module.map_detection.view.View object at 0x000001FB21890448> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
KeyError: (3, -1)                                                                                                      
                                                                                                                       
During handling of the above exception, another exception occurred:                                                    
                                                                                                                       
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\alas.py:70 in run                                                                    │
│                                                                                                                     │
│    67 │   def run(self, command):                                                                                   │
│    68 │   │   try:                                                                                                  │
│    69 │   │   │   self.device.screenshot()                                                                          │
│ >  70 │   │   │   self.__getattribute__(command)()                                                                  │
│    71 │   │   │   return True                                                                                       │
│    72 │   │   except TaskEnd:                                                                                       │
│    73 │   │   │   return True                                                                                       │
│                                                                                                                     │
│ ┌───────────────────────────── locals ─────────────────────────────┐                                                │
│ │ command = 'opsi_abyssal'                                         │                                                │
│ │       e = KeyError((3, -1))                                      │                                                │
│ │    self = <alas.AzurLaneAutoScript object at 0x000001FB71007DC8> │                                                │
│ └──────────────────────────────────────────────────────────────────┘                                                │
│ D:\迅雷下载\AzurLaneAutoScript\alas.py:328 in opsi_abyssal                                                          │
│                                                                                                                     │
│   325 │                                                                                                             │
│   326 │   def opsi_abyssal(self):                                                                                   │
│   327 │   │   from module.campaign.os_run import OSCampaignRun                                                      │
│ > 328 │   │   OSCampaignRun(config=self.config, device=self.device).opsi_abyssal()                                  │
│   329 │                                                                                                             │
│   330 │   def opsi_archive(self):                                                                                   │
│   331 │   │   from module.campaign.os_run import OSCampaignRun                                                      │
│                                                                                                                     │
│ ┌──────────────────────────────── locals ────────────────────────────────┐                                          │
│ │ OSCampaignRun = <class 'module.campaign.os_run.OSCampaignRun'>         │                                          │
│ │          self = <alas.AzurLaneAutoScript object at 0x000001FB71007DC8> │                                          │
│ └────────────────────────────────────────────────────────────────────────┘                                          │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\campaign\os_run.py:99 in opsi_abyssal                                         │
│                                                                                                                     │
│    96 │   def opsi_abyssal(self):                                                                                   │
│    97 │   │   try:                                                                                                  │
│    98 │   │   │   self.load_campaign()                                                                              │
│ >  99 │   │   │   self.campaign.os_abyssal()                                                                        │
│   100 │   │   except ActionPointLimit:                                                                              │
│   101 │   │   │   self.config.opsi_task_delay(ap_limit=True)                                                        │
│   102                                                                                                               │
│                                                                                                                     │
│ ┌────────────────────────────────── locals ──────────────────────────────────┐                                      │
│ │ self = <module.campaign.os_run.OSCampaignRun object at 0x000001FB21A2CD48> │                                      │
│ └────────────────────────────────────────────────────────────────────────────┘                                      │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\os\operation_siren.py:628 in os_abyssal                                       │
│                                                                                                                     │
│   625 │                                                                                                             │
│   626 │   def os_abyssal(self):                                                                                     │
│   627 │   │   while 1:                                                                                              │
│ > 628 │   │   │   self.clear_abyssal()                                                                              │
│   629 │   │   │   self.config.check_task_switch()                                                                   │
│   630 │                                                                                                             │
│   631 │   def os_archive(self):                                                                                     │
│                                                                                                                     │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐                                  │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x000001FB219E6248> │                                  │
│ └────────────────────────────────────────────────────────────────────────────────┘                                  │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\os\operation_siren.py:619 in clear_abyssal                                    │
│                                                                                                                     │
│   616 │   │   │   STORY_OPTION=0                                                                                    │
│   617 │   │   )                                                                                                     │
│   618 │   │   self.zone_init()                                                                                      │
│ > 619 │   │   result = self.run_abyssal()                                                                           │
│   620 │   │   if not result:                                                                                        │
│   621 │   │   │   raise RequestHumanTakeover                                                                        │
│   622                                                                                                               │
│                                                                                                                     │
│ ┌───────────────────────────────────── locals ─────────────────────────────────────┐                                │
│ │ result = True                                                                    │                                │
│ │   self = <module.os.operation_siren.OperationSiren object at 0x000001FB219E6248> │                                │
│ └──────────────────────────────────────────────────────────────────────────────────┘                                │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\os\fleet.py:790 in run_abyssal                                                │
│                                                                                                                     │
│   787 │   │                                                                                                         │
│   788 │   │   while 1:                                                                                              │
│   789 │   │   │   self.device.screenshot()                                                                          │
│ > 790 │   │   │   self.question_goto(has_fleet_step=True)                                                           │
│   791 │   │   │                                                                                                     │
│   792 │   │   │   if self.radar.select(is_enemy=True).filter(is_at_front):                                          │
│   793 │   │   │   │   logger.info('Found boss at front')                                                            │
│                                                                                                                     │
│ ┌──────────────────────────────────────── locals ─────────────────────────────────────────┐                         │
│ │ is_at_front = <function OSFleet.run_abyssal.<locals>.is_at_front at 0x000001FB21A228B8> │                         │
│ │        self = <module.os.operation_siren.OperationSiren object at 0x000001FB219E6248>   │                         │
│ └─────────────────────────────────────────────────────────────────────────────────────────┘                         │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\os\fleet.py:557 in question_goto                                              │
│                                                                                                                     │
│   554 │   │   │   │   grid = point_limit(grid, area=(-4, -2, 3, 2))                                                 │
│   555 │   │   │   │   if has_fleet_step:                                                                            │
│   556 │   │   │   │   │   grid = limit_walk(grid)                                                                   │
│ > 557 │   │   │   │   grid = self.convert_radar_to_local(grid)                                                      │
│   558 │   │   │   │   self.device.click(grid)                                                                       │
│   559 │   │   │   else:                                                                                             │
│   560 │   │   │   │   logger.info('No question mark to goto, stop')                                                 │
│                                                                                                                     │
│ ┌───────────────────────────────────────── locals ─────────────────────────────────────────┐                        │
│ │           grid = (0, -2)                                                                 │                        │
│ │          grids = <module.map.map_grids.SelectedGrids object at 0x000001FB218F3648>       │                        │
│ │ has_fleet_step = True                                                                    │                        │
│ │           self = <module.os.operation_siren.OperationSiren object at 0x000001FB219E6248> │                        │
│ └──────────────────────────────────────────────────────────────────────────────────────────┘                        │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\os\camera.py:155 in convert_radar_to_local                                    │
│                                                                                                                     │
│   152 │   │   │   logger.warning(f'Convert radar to local, but target grid not in local view.                       │
│       '                                                                                                             │
│   153 │   │   │   │   │   │      f'Assuming camera center is current fleet:                                         │
│       {location2node(self.view.center_loca)}')                                                                      │
│   154 │   │   │   center = self.view.center_loca                                                                    │
│ > 155 │   │   │   local = self.view[np.add(location, center)]                                                       │
│   156 │   │                                                                                                         │
│   157 │   │   logger.info('Radar %s -> Local %s (fleet=%s)' % (                                                     │
│   158 │   │   │   str(location),                                                                                    │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐                              │
│ │   center = (3, 1)                                                                  │                              │
│ │   fleets = <module.map.map_grids.SelectedGrids object at 0x000001FB21B4FAC8>       │                              │
│ │ location = (0, -2)                                                                 │                              │
│ │     self = <module.os.operation_siren.OperationSiren object at 0x000001FB219E6248> │                              │
│ └────────────────────────────────────────────────────────────────────────────────────┘                              │
│                                                                                                                     │
│ D:\迅雷下载\AzurLaneAutoScript\module\map_detection\view.py:36 in __getitem__                                       │
│                                                                                                                     │
│    33 │   │   return iter(self.grids.values())                                                                      │
│    34 │                                                                                                             │
│    35 │   def __getitem__(self, item):                                                                              │
│ >  36 │   │   return self.grids[tuple(item)]                                                                        │
│    37 │                                                                                                             │
│    38 │   def __contains__(self, item):                                                                             │
│    39 │   │   return tuple(item) in self.grids                                                                      │
│                                                                                                                     │
│ ┌─────────────────────────────── locals ───────────────────────────────┐                                            │
│ │ item = array([ 3, -1])                                               │                                            │
│ │ self = <module.map_detection.view.View object at 0x000001FB21890448> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
KeyError: (3, -1)                                                                                                      
2023-12-07 01:50:57.102 | WARNING | Saving error: ./log/error/1701885057102

截图

2023-12-07_01-50-56-289338

还有别的吗?

2023-12-06_18-07-14-893033 log.txt

24k12315 avatar Dec 06 '23 18:12 24k12315

删除你的Alas,在此处下载:https://github.com/LmeSzinc/AzurLaneAutoScript/releases

LmeSzinc avatar Dec 08 '23 09:12 LmeSzinc