LmeSzinc / AzurLaneAutoScript

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

大世界前往港口时出现KeyError: (6, 6) #1875

Open Arrest3579 opened 1 year ago

Arrest3579 commented 1 year ago

在提问之前...

描述你的问题

如截圖 連續發生兩三次

如何复现

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

预期行为

No response

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                       OPSISHOP                                                        
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
═══════════════════════════════════════════════════════ OS INIT ═══════════════════════════════════════════════════════
2022-11-16 00:34:35.025 | INFO | OS INIT                                                                               
2022-11-16 00:34:35.040 | INFO | <<< UI ENSURE >>>                                                                     
2022-11-16 00:34:35.041 | INFO | UI get current page                                                                   
2022-11-16 00:34:35.056 | INFO | Unknown ui page                                                                       
2022-11-16 00:34:35.062 | INFO | Click (1239,   38) @ GOTO_MAIN                                                        
2022-11-16 00:34:35.273 | INFO | [UI] page_main                                                                        
2022-11-16 00:34:35.274 | INFO | Goto page_os                                                                          
2022-11-16 00:34:35.276 | INFO | <<< UI GOTO PAGE_OS >>>                                                               
2022-11-16 00:34:35.287 | INFO | Page switch: page_main -> page_campaign_menu                                          
2022-11-16 00:34:35.289 | INFO | Click (1056,  341) @ MAIN_GOTO_CAMPAIGN                                               
2022-11-16 00:34:35.918 | INFO | Page switch: page_campaign_menu -> page_os                                            
2022-11-16 00:34:35.920 | INFO | Click ( 609,  498) @ CAMPAIGN_MENU_GOTO_OS                                            
2022-11-16 00:34:36.773 | INFO | Page arrive: page_os                                                                  
2022-11-16 00:34:36.775 | INFO | <<< ZONE INIT >>>                                                                     
2022-11-16 00:34:38.013 | WARNING | wait_os_map_buttons timeout, assume waited                                         
2022-11-16 00:34:38.015 | INFO | Get zone name                                                                         
2022-11-16 00:34:38.048 | INFO | Loading OCR model: ./bin/cnocr_models/jp                                              
2022-11-16 00:34:38.135 | INFO | [MAP_NAME 0.097s] ペテルブルク                                                        
2022-11-16 00:34:38.138 | INFO | Map name processed: ペテルブルク                                                      
2022-11-16 00:34:38.140 | INFO | [Zone] [3|St. Petersburg]                                                             
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2022-11-16 00:34:38.144 | INFO | AFTER AUTO SEARCH                                                                     
2022-11-16 00:34:38.155 | INFO | No EMP debuff on current fleet                                                        
2022-11-16 00:34:38.170 | INFO | [HP]  98%  92%  98%  98%  98%  98%                                                    
2022-11-16 00:34:38.175 | INFO | [Repair icon] [False, False, False, False, False, False]                              
2022-11-16 00:34:38.178 | INFO | No ship found to be below threshold 40%, continue OS exploration                      
2022-11-16 00:34:38.180 | INFO | Handle after auto search finished, solved=False                                       
2022-11-16 00:34:38.181 | INFO | Current fleet is not afflicted with the low resolve debuff                            
2022-11-16 00:34:38.184 | INFO | Ash beacon status: light                                                              
2022-11-16 00:34:38.206 | INFO | [ASH_COLLECT_STATUS 0.020s] 70/200                                                    
2022-11-16 00:34:38.227 | INFO | [ASH_DAILY_STATUS 0.018s] 170/200                                                     
2022-11-16 00:34:38.229 | INFO | Run auto search, question=True, rescan=False                                          
─────────────────────────────────────────────────── OS AUTO SEARCH ────────────────────────────────────────────────────
2022-11-16 00:34:38.232 | INFO | OS AUTO SEARCH                                                                        
2022-11-16 00:34:38.244 | INFO | Click (1232,  533) @ AUTO_SEARCH_OS_MAP_OPTION_OFF                                    
2022-11-16 00:34:40.239 | INFO | OS auto search finished                                                               
2022-11-16 00:34:40.241 | INFO | Ash beacon status: light                                                              
2022-11-16 00:34:40.265 | INFO | [ASH_COLLECT_STATUS 0.022s] 70/200                                                    
2022-11-16 00:34:40.289 | INFO | [ASH_DAILY_STATUS 0.021s] 170/200                                                     
2022-11-16 00:34:40.293 | INFO | [HP]  98%  92%  98%  98%  98%  98%                                                    
2022-11-16 00:34:40.297 | INFO | [Repair icon] [False, False, False, False, False, False]                              
─────────────────────────────────────────────────── CLEAR QUESTION ────────────────────────────────────────────────────
2022-11-16 00:34:40.302 | INFO | CLEAR QUESTION                                                                        
2022-11-16 00:34:40.352 | INFO | No question mark above current fleet on this radar                                    
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2022-11-16 00:34:40.356 | INFO | AFTER AUTO SEARCH                                                                     
2022-11-16 00:34:40.359 | INFO | No EMP debuff on current fleet                                                        
2022-11-16 00:34:40.364 | INFO | [HP]  98%  92%  98%  98%  98%  98%                                                    
2022-11-16 00:34:40.368 | INFO | [Repair icon] [False, False, False, False, False, False]                              
2022-11-16 00:34:40.371 | INFO | No ship found to be below threshold 40%, continue OS exploration                      
2022-11-16 00:34:40.373 | INFO | Handle after auto search finished, solved=False                                       
════════════════════════════════════════════════════ OS PORT DAILY ════════════════════════════════════════════════════
2022-11-16 00:34:40.376 | INFO | OS PORT DAILY                                                                         
───────────────────────────────────────── OS PORT DAILY IN [3|ST. PETERSBURG] ─────────────────────────────────────────
2022-11-16 00:34:40.379 | INFO | OS PORT DAILY IN [3|ST. PETERSBURG]                                                   
2022-11-16 00:34:40.381 | INFO | <<< GLOBE GOTO: [3|ST. PETERSBURG] >>>                                                
2022-11-16 00:34:40.383 | INFO | Already at target zone                                                                
2022-11-16 00:34:40.420 | INFO | Port route at [1 2]                                                                   
2022-11-16 00:34:40.428 | INFO | [homo_storage] ((10, 7), [(110.307, 103.657), (1012.311, 103.657), (-32.959, 600.567),
(1113.057, 600.567)])                                                                                                  
2022-11-16 00:34:40.520 | INFO |            tile_center: 0.929 (good match)                                            
2022-11-16 00:34:40.532 | INFO | 0.076s      edge_lines: 1 hori, 1 vert                                                
2022-11-16 00:34:40.534 | INFO | Edges:   \   homo_loca: ( 91,  58)                                                    
2022-11-16 00:34:40.538 | INFO |            center_loca: (5, 4)                                                        
2022-11-16 00:34:40.565 | INFO | 0.025s         predict: 43                                                            
2022-11-16 00:34:40.567 | INFO | -- -- -- -- -- --                                                                     
2022-11-16 00:34:40.568 | INFO | -- -- -- -- -- --                                                                     
2022-11-16 00:34:40.569 | INFO | -- -- -- -- -- --                                                                     
2022-11-16 00:34:40.570 | INFO | .. -- -- -- -- --                                                                     
2022-11-16 00:34:40.572 | INFO | .. -- -- -- -- FL                                                                     
2022-11-16 00:34:40.573 | INFO | .. -- -- -- -- --                                                                     
2022-11-16 00:34:40.574 | INFO | .. -- -- -- -- --                                                                     
2022-11-16 00:34:40.575 | INFO | .. -- -- -- -- --                                                                     
2022-11-16 00:34:40.576 | WARNING | Convert radar to local, but target grid not in local view. Assuming camera center  
is current fleet: F5                                                                                                   
2022-11-16 00:34:40.578 | ERROR | KeyError: (6, 6)                                                                     
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\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 = (5, 4)                                                                  │                              │
│ │   fleets = <module.map.map_grids.SelectedGrids object at 0x000001E7CAFE0C48>       │                              │
│ │ location = (1, 2)                                                                  │                              │
│ │     self = <module.os.operation_siren.OperationSiren object at 0x000001E7CAC2FC48> │                              │
│ └────────────────────────────────────────────────────────────────────────────────────┘                              │
│ C:\Users\miori\OneDrive\桌面\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([6, 6])                                                 │                                            │
│ │ self = <module.map_detection.view.View object at 0x000001E7CACE8B48> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
KeyError: (6, 6)                                                                                                       

During handling of the above exception, another exception occurred:                                                    

┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\alas.py:63 in run                                                   │
│                                                                                                                     │
│    60 │   def run(self, command):                                                                                   │
│    61 │   │   try:                                                                                                  │
│    62 │   │   │   self.device.screenshot()                                                                          │
│ >  63 │   │   │   self.__getattribute__(command)()                                                                  │
│    64 │   │   │   return True                                                                                       │
│    65 │   │   except TaskEnd:                                                                                       │
│    66 │   │   │   return True                                                                                       │
│                                                                                                                     │
│ ┌───────────────────────────── locals ─────────────────────────────┐                                                │
│ │ command = 'opsi_shop'                                            │                                                │
│ │       e = KeyError((6, 6))                                       │                                                │
│ │    self = <alas.AzurLaneAutoScript object at 0x000001E78232ED88> │                                                │
│ └──────────────────────────────────────────────────────────────────┘                                                │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\alas.py:289 in opsi_shop                                            │
│                                                                                                                     │
│   286 │                                                                                                             │
│   287 │   def opsi_shop(self):                                                                                      │
│   288 │   │   from module.campaign.os_run import OSCampaignRun                                                      │
│ > 289 │   │   OSCampaignRun(config=self.config, device=self.device).opsi_shop()                                     │
│   290 │                                                                                                             │
│   291 │   def opsi_daily(self):                                                                                     │
│   292 │   │   from module.campaign.os_run import OSCampaignRun                                                      │
│                                                                                                                     │
│ ┌──────────────────────────────── locals ────────────────────────────────┐                                          │
│ │ OSCampaignRun = <class 'module.campaign.os_run.OSCampaignRun'>         │                                          │
│ │          self = <alas.AzurLaneAutoScript object at 0x000001E78232ED88> │                                          │
│ └────────────────────────────────────────────────────────────────────────┘                                          │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\campaign\os_run.py:34 in opsi_shop                           │
│                                                                                                                     │
│   31 │   def opsi_shop(self):                                                                                       │
│   32 │   │   self.load_campaign()                                                                                   │
│   33 │   │   try:                                                                                                   │
│ > 34 │   │   │   self.campaign.os_shop()                                                                            │
│   35 │   │   except ActionPointLimit:                                                                               │
│   36 │   │   │   self.config.opsi_task_delay(ap_limit=True)                                                         │
│   37                                                                                                                │
│                                                                                                                     │
│ ┌────────────────────────────────── locals ──────────────────────────────────┐                                      │
│ │ self = <module.campaign.os_run.OSCampaignRun object at 0x000001E7CACE9F08> │                                      │
│ └────────────────────────────────────────────────────────────────────────────┘                                      │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\operation_siren.py:125 in os_shop                         │
│                                                                                                                     │
│   122 │   │   self.config.task_delay(server_update=True)                                                            │
│   123 │                                                                                                             │
│   124 │   def os_shop(self):                                                                                        │
│ > 125 │   │   self.os_port_daily(mission=False, supply=self.config.OpsiShop_BuySupply)                              │
│   126 │   │   self.config.task_delay(server_update=True)                                                            │
│   127 │                                                                                                             │
│   128 │   def os_meowfficer_farming(self):                                                                          │
│                                                                                                                     │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐                                  │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x000001E7CAC2FC48> │                                  │
│ └────────────────────────────────────────────────────────────────────────────────┘                                  │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\operation_siren.py:40 in os_port_daily                    │
│                                                                                                                     │
│    37 │   │   │   port = self.name_to_zone(port)                                                                    │
│    38 │   │   │   logger.hr(f'OS port daily in {port}', level=2)                                                    │
│    39 │   │   │   self.globe_goto(port)                                                                             │
│ >  40 │   │   │   self.port_goto()                                                                                  │
│    41 │   │   │   self.port_enter()                                                                                 │
│    42 │   │   │   # Deprecated since 2022.01.13, missions are shown only in overview, no                            │
│       longer to be shown at ports.                                                                                  │
│    43 │   │   │   # if mission and mission_success:                                                                 │
│                                                                                                                     │
│ ┌───────────────────────────────────────── locals ──────────────────────────────────────────┐                       │
│ │         mission = False                                                                   │                       │
│ │ mission_success = True                                                                    │                       │
│ │            port = [3|St. Petersburg]                                                      │                       │
│ │           ports = ['St. Petersburg', 'Liverpool', 'Gibraltar', 'NY City']                 │                       │
│ │            self = <module.os.operation_siren.OperationSiren object at 0x000001E7CAC2FC48> │                       │
│ │          supply = True                                                                    │                       │
│ │  supply_success = True                                                                    │                       │
│ └───────────────────────────────────────────────────────────────────────────────────────────┘                       │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\map.py:177 in port_goto                                   │
│                                                                                                                     │
│   174 │   │   """                                                                                                   │
│   175 │   │   for _ in range(3):                                                                                    │
│   176 │   │   │   try:                                                                                              │
│ > 177 │   │   │   │   super().port_goto()                                                                           │
│   178 │   │   │   │   return True                                                                                   │
│   179 │   │   │   except MapWalkError:                                                                              │
│   180 │   │   │   │   pass                                                                                          │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ───────────────────────────────────────┐                             │
│ │ __class__ = <class 'module.os.map.OSMap'>                                           │                             │
│ │         _ = 0                                                                       │                             │
│ │      self = <module.os.operation_siren.OperationSiren object at 0x000001E7CAC2FC48> │                             │
│ └─────────────────────────────────────────────────────────────────────────────────────┘                             │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\fleet.py:416 in port_goto                                 │
│                                                                                                                     │
│   413 │   │   │                                                                                                     │
│   414 │   │   │   # Click way point                                                                                 │
│   415 │   │   │   grid = point_limit(grid, area=(-4, -2, 3, 2))                                                     │
│ > 416 │   │   │   grid = self.convert_radar_to_local(grid)                                                          │
│   417 │   │   │   self.device.click(grid)                                                                           │
│   418 │   │   │                                                                                                     │
│   419 │   │   │   # Wait until arrived                                                                              │
│                                                                                                                     │
│ ┌──────────────────────────────────────── locals ─────────────────────────────────────────┐                         │
│ │ confirm_timer = Timer(limit=0.371/3, count=0/6)                                         │                         │
│ │          grid = (1, 2)                                                                  │                         │
│ │   port_arrive = False                                                                   │                         │
│ │  radar_arrive = False                                                                   │                         │
│ │          self = <module.os.operation_siren.OperationSiren object at 0x000001E7CAC2FC48> │                         │
│ └─────────────────────────────────────────────────────────────────────────────────────────┘                         │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\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 = (5, 4)                                                                  │                              │
│ │   fleets = <module.map.map_grids.SelectedGrids object at 0x000001E7CAFE0C48>       │                              │
│ │ location = (1, 2)                                                                  │                              │
│ │     self = <module.os.operation_siren.OperationSiren object at 0x000001E7CAC2FC48> │                              │
│ └────────────────────────────────────────────────────────────────────────────────────┘                              │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\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([6, 6])                                                 │                                            │
│ │ self = <module.map_detection.view.View object at 0x000001E7CACE8B48> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
KeyError: (6, 6)                                                                                                       
2022-11-16 00:34:40.977 | WARNING | Saving error: ./log/error/1668530080977           

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                       OPSISHOP                                                        
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
═══════════════════════════════════════════════════════ OS INIT ═══════════════════════════════════════════════════════
2022-11-15 23:23:08.164 | INFO | OS INIT                                                                               
2022-11-15 23:23:08.171 | INFO | Already in os map                                                                     
2022-11-15 23:23:08.173 | INFO | <<< ZONE INIT >>>                                                                     
2022-11-15 23:23:08.178 | INFO | Get zone name                                                                         
2022-11-15 23:23:08.244 | INFO | [MAP_NAME 0.047s] ペテルブルク                                                        
2022-11-15 23:23:08.246 | INFO | Map name processed: ペテルブルク                                                      
2022-11-15 23:23:08.249 | INFO | [Zone] [3|St. Petersburg]                                                             
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2022-11-15 23:23:08.252 | INFO | AFTER AUTO SEARCH                                                                     
2022-11-15 23:23:08.263 | INFO | No EMP debuff on current fleet                                                        
2022-11-15 23:23:08.267 | INFO | [HP]  98%  92%  98%  98%  98%  98%                                                    
2022-11-15 23:23:08.273 | INFO | [Repair icon] [False, False, False, False, False, False]                              
2022-11-15 23:23:08.276 | INFO | No ship found to be below threshold 40%, continue OS exploration                      
2022-11-15 23:23:08.278 | INFO | Handle after auto search finished, solved=False                                       
2022-11-15 23:23:08.280 | INFO | Current fleet is not afflicted with the low resolve debuff                            
2022-11-15 23:23:08.283 | INFO | Ash beacon status: light                                                              
2022-11-15 23:23:08.309 | INFO | [ASH_COLLECT_STATUS 0.024s] 70/200                                                    
2022-11-15 23:23:08.332 | INFO | [ASH_DAILY_STATUS 0.021s] 170/200                                                     
2022-11-15 23:23:08.335 | INFO | Run auto search, question=True, rescan=False                                          
─────────────────────────────────────────────────── OS AUTO SEARCH ────────────────────────────────────────────────────
2022-11-15 23:23:08.338 | INFO | OS AUTO SEARCH                                                                        
2022-11-15 23:23:08.351 | INFO | Click (1238,  540) @ AUTO_SEARCH_OS_MAP_OPTION_OFF                                    
2022-11-15 23:23:10.066 | INFO | OS auto search finished                                                               
2022-11-15 23:23:10.069 | INFO | Ash beacon status: light                                                              
2022-11-15 23:23:10.095 | INFO | [ASH_COLLECT_STATUS 0.025s] 70/200                                                    
2022-11-15 23:23:10.117 | INFO | [ASH_DAILY_STATUS 0.019s] 170/200                                                     
2022-11-15 23:23:10.121 | INFO | [HP]  98%  92%  98%  98%  98%  98%                                                    
2022-11-15 23:23:10.124 | INFO | [Repair icon] [False, False, False, False, False, False]                              
─────────────────────────────────────────────────── CLEAR QUESTION ────────────────────────────────────────────────────
2022-11-15 23:23:10.128 | INFO | CLEAR QUESTION                                                                        
2022-11-15 23:23:10.180 | INFO | No question mark above current fleet on this radar                                    
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2022-11-15 23:23:10.184 | INFO | AFTER AUTO SEARCH                                                                     
2022-11-15 23:23:10.187 | INFO | No EMP debuff on current fleet                                                        
2022-11-15 23:23:10.191 | INFO | [HP]  98%  92%  98%  98%  98%  98%                                                    
2022-11-15 23:23:10.194 | INFO | [Repair icon] [False, False, False, False, False, False]                              
2022-11-15 23:23:10.196 | INFO | No ship found to be below threshold 40%, continue OS exploration                      
2022-11-15 23:23:10.198 | INFO | Handle after auto search finished, solved=False                                       
════════════════════════════════════════════════════ OS PORT DAILY ════════════════════════════════════════════════════
2022-11-15 23:23:10.201 | INFO | OS PORT DAILY                                                                         
───────────────────────────────────────── OS PORT DAILY IN [3|ST. PETERSBURG] ─────────────────────────────────────────
2022-11-15 23:23:10.204 | INFO | OS PORT DAILY IN [3|ST. PETERSBURG]                                                   
2022-11-15 23:23:10.205 | INFO | <<< GLOBE GOTO: [3|ST. PETERSBURG] >>>                                                
2022-11-15 23:23:10.207 | INFO | Already at target zone                                                                
2022-11-15 23:23:10.244 | INFO | Port route at [1 2]                                                                   
2022-11-15 23:23:10.251 | INFO | [homo_storage] ((10, 7), [(110.307, 103.657), (1012.311, 103.657), (-32.959, 600.567),
(1113.057, 600.567)])                                                                                                  
2022-11-15 23:23:10.358 | INFO |            tile_center: 0.929 (good match)                                            
2022-11-15 23:23:10.375 | INFO | 0.094s      edge_lines: 1 hori, 1 vert                                                
2022-11-15 23:23:10.377 | INFO | Edges:   \   homo_loca: ( 91,  58)                                                    
2022-11-15 23:23:10.382 | INFO |            center_loca: (5, 4)                                                        
2022-11-15 23:23:10.415 | INFO | 0.030s         predict: 43                                                            
2022-11-15 23:23:10.417 | INFO | -- -- -- -- -- --                                                                     
2022-11-15 23:23:10.418 | INFO | -- -- -- -- -- --                                                                     
2022-11-15 23:23:10.419 | INFO | -- -- -- -- -- --                                                                     
2022-11-15 23:23:10.421 | INFO | .. -- -- -- -- --                                                                     
2022-11-15 23:23:10.422 | INFO | .. -- -- -- -- FL                                                                     
2022-11-15 23:23:10.423 | INFO | .. -- -- -- -- --                                                                     
2022-11-15 23:23:10.424 | INFO | .. -- -- -- -- --                                                                     
2022-11-15 23:23:10.426 | INFO | .. -- -- -- -- --                                                                     
2022-11-15 23:23:10.427 | WARNING | Convert radar to local, but target grid not in local view. Assuming camera center  
is current fleet: F5                                                                                                   
2022-11-15 23:23:10.429 | ERROR | KeyError: (6, 6)                                                                     
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\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 = (5, 4)                                                                  │                              │
│ │   fleets = <module.map.map_grids.SelectedGrids object at 0x0000019E94572B48>       │                              │
│ │ location = (1, 2)                                                                  │                              │
│ │     self = <module.os.operation_siren.OperationSiren object at 0x0000019E919F5348> │                              │
│ └────────────────────────────────────────────────────────────────────────────────────┘                              │
│ C:\Users\miori\OneDrive\桌面\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([6, 6])                                                 │                                            │
│ │ self = <module.map_detection.view.View object at 0x0000019E91A3B508> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
KeyError: (6, 6)                                                                                                       

During handling of the above exception, another exception occurred:                                                    

┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\alas.py:63 in run                                                   │
│                                                                                                                     │
│    60 │   def run(self, command):                                                                                   │
│    61 │   │   try:                                                                                                  │
│    62 │   │   │   self.device.screenshot()                                                                          │
│ >  63 │   │   │   self.__getattribute__(command)()                                                                  │
│    64 │   │   │   return True                                                                                       │
│    65 │   │   except TaskEnd:                                                                                       │
│    66 │   │   │   return True                                                                                       │
│                                                                                                                     │
│ ┌───────────────────────────── locals ─────────────────────────────┐                                                │
│ │ command = 'opsi_shop'                                            │                                                │
│ │       e = KeyError((6, 6))                                       │                                                │
│ │    self = <alas.AzurLaneAutoScript object at 0x0000019EC8962D88> │                                                │
│ └──────────────────────────────────────────────────────────────────┘                                                │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\alas.py:289 in opsi_shop                                            │
│                                                                                                                     │
│   286 │                                                                                                             │
│   287 │   def opsi_shop(self):                                                                                      │
│   288 │   │   from module.campaign.os_run import OSCampaignRun                                                      │
│ > 289 │   │   OSCampaignRun(config=self.config, device=self.device).opsi_shop()                                     │
│   290 │                                                                                                             │
│   291 │   def opsi_daily(self):                                                                                     │
│   292 │   │   from module.campaign.os_run import OSCampaignRun                                                      │
│                                                                                                                     │
│ ┌──────────────────────────────── locals ────────────────────────────────┐                                          │
│ │ OSCampaignRun = <class 'module.campaign.os_run.OSCampaignRun'>         │                                          │
│ │          self = <alas.AzurLaneAutoScript object at 0x0000019EC8962D88> │                                          │
│ └────────────────────────────────────────────────────────────────────────┘                                          │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\campaign\os_run.py:34 in opsi_shop                           │
│                                                                                                                     │
│   31 │   def opsi_shop(self):                                                                                       │
│   32 │   │   self.load_campaign()                                                                                   │
│   33 │   │   try:                                                                                                   │
│ > 34 │   │   │   self.campaign.os_shop()                                                                            │
│   35 │   │   except ActionPointLimit:                                                                               │
│   36 │   │   │   self.config.opsi_task_delay(ap_limit=True)                                                         │
│   37                                                                                                                │
│                                                                                                                     │
│ ┌────────────────────────────────── locals ──────────────────────────────────┐                                      │
│ │ self = <module.campaign.os_run.OSCampaignRun object at 0x0000019E9181DA48> │                                      │
│ └────────────────────────────────────────────────────────────────────────────┘                                      │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\operation_siren.py:125 in os_shop                         │
│                                                                                                                     │
│   122 │   │   self.config.task_delay(server_update=True)                                                            │
│   123 │                                                                                                             │
│   124 │   def os_shop(self):                                                                                        │
│ > 125 │   │   self.os_port_daily(mission=False, supply=self.config.OpsiShop_BuySupply)                              │
│   126 │   │   self.config.task_delay(server_update=True)                                                            │
│   127 │                                                                                                             │
│   128 │   def os_meowfficer_farming(self):                                                                          │
│                                                                                                                     │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐                                  │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x0000019E919F5348> │                                  │
│ └────────────────────────────────────────────────────────────────────────────────┘                                  │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\operation_siren.py:40 in os_port_daily                    │
│                                                                                                                     │
│    37 │   │   │   port = self.name_to_zone(port)                                                                    │
│    38 │   │   │   logger.hr(f'OS port daily in {port}', level=2)                                                    │
│    39 │   │   │   self.globe_goto(port)                                                                             │
│ >  40 │   │   │   self.port_goto()                                                                                  │
│    41 │   │   │   self.port_enter()                                                                                 │
│    42 │   │   │   # Deprecated since 2022.01.13, missions are shown only in overview, no                            │
│       longer to be shown at ports.                                                                                  │
│    43 │   │   │   # if mission and mission_success:                                                                 │
│                                                                                                                     │
│ ┌───────────────────────────────────────── locals ──────────────────────────────────────────┐                       │
│ │         mission = False                                                                   │                       │
│ │ mission_success = True                                                                    │                       │
│ │            port = [3|St. Petersburg]                                                      │                       │
│ │           ports = ['St. Petersburg', 'Liverpool', 'Gibraltar', 'NY City']                 │                       │
│ │            self = <module.os.operation_siren.OperationSiren object at 0x0000019E919F5348> │                       │
│ │          supply = True                                                                    │                       │
│ │  supply_success = True                                                                    │                       │
│ └───────────────────────────────────────────────────────────────────────────────────────────┘                       │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\map.py:177 in port_goto                                   │
│                                                                                                                     │
│   174 │   │   """                                                                                                   │
│   175 │   │   for _ in range(3):                                                                                    │
│   176 │   │   │   try:                                                                                              │
│ > 177 │   │   │   │   super().port_goto()                                                                           │
│   178 │   │   │   │   return True                                                                                   │
│   179 │   │   │   except MapWalkError:                                                                              │
│   180 │   │   │   │   pass                                                                                          │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ───────────────────────────────────────┐                             │
│ │ __class__ = <class 'module.os.map.OSMap'>                                           │                             │
│ │         _ = 0                                                                       │                             │
│ │      self = <module.os.operation_siren.OperationSiren object at 0x0000019E919F5348> │                             │
│ └─────────────────────────────────────────────────────────────────────────────────────┘                             │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\AzurLaneAutoScript\module\os\fleet.py:416 in port_goto                                 │
│                                                                                                                     │
│   413 │   │   │                                                                                                     │
│   414 │   │   │   # Click way point                                                                                 │
│   415 │   │   │   grid = point_limit(grid, area=(-4, -2, 3, 2))                                                     │
│ > 416 │   │   │   grid = self.convert_radar_to_local(grid)                                                          │
│   417 │   │   │   self.device.click(grid)                                                                           │
│   418 │   │   │                                                                                                     │
│   419 │   │   │   # Wait until arrived                                                                              │
│                                                                                                                     │
│ ┌──────────────────────────────────────── locals ─────────────────────────────────────────┐                         │
│ │ confirm_timer = Timer(limit=0.395/3, count=0/6)                                         │                         │
│ │          grid = (1, 2)                                                                  │                         │
│ │   port_arrive = False                                                                   │                         │
│ │  radar_arrive = False                                                                   │                         │
│ │          self = <module.os.operation_siren.OperationSiren object at 0x0000019E919F5348> │                         │
│ └─────────────────────────────────────────────────────────────────────────────────────────┘                         │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\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 = (5, 4)                                                                  │                              │
│ │   fleets = <module.map.map_grids.SelectedGrids object at 0x0000019E94572B48>       │                              │
│ │ location = (1, 2)                                                                  │                              │
│ │     self = <module.os.operation_siren.OperationSiren object at 0x0000019E919F5348> │                              │
│ └────────────────────────────────────────────────────────────────────────────────────┘                              │
│                                                                                                                     │
│ C:\Users\miori\OneDrive\桌面\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([6, 6])                                                 │                                            │
│ │ self = <module.map_detection.view.View object at 0x0000019E91A3B508> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
KeyError: (6, 6)                                                                                                       
2022-11-15 23:23:10.845 | WARNING | Saving error: ./log/error/1668525790845

截图

![Uploading 2022-11-16_00-34-40-230264.png…]() 2022-11-15_23-23-10-059210

还有别的吗?

No response

LmeSzinc commented 1 year ago

应该是消息框挡住了雷达上面的港口图标