LmeSzinc / AzurLaneAutoScript

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

自动开图时遇见报错 #2794

Open SnowMikuLive opened 1 year ago

SnowMikuLive commented 1 year ago

在提问之前...

描述你的问题

自动开图时,时不时会遇到

如何复现

出击中的主线图,在自动开图时运行一会儿会出现报错并自动退出运行

预期行为

No response

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                      GEMSFARMING                                                      
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2023-06-10 17:11:50.978 | INFO | Stage name campaign_7_2 is from campaign_main                                         
════════════════════════════════════════════════════ CAMPAIGN_7_2 ═════════════════════════════════════════════════════
2023-06-10 17:11:50.990 | INFO | CAMPAIGN_7_2                                                                          
2023-06-10 17:11:50.991 | INFO | Count: 0                                                                              
2023-06-10 17:11:51.000 | INFO | <<< UI ENSURE >>>                                                                     
2023-06-10 17:11:51.001 | INFO | UI get current page                                                                   
2023-06-10 17:11:51.009 | INFO | [UI] page_main                                                                        
2023-06-10 17:11:51.010 | INFO | Goto page_campaign                                                                    
2023-06-10 17:11:51.011 | INFO | <<< UI GOTO PAGE_CAMPAIGN >>>                                                         
2023-06-10 17:11:51.071 | INFO | Page switch: page_main -> page_campaign_menu                                          
2023-06-10 17:11:51.073 | INFO | Click (1079,  338) @ MAIN_GOTO_CAMPAIGN                                               
2023-06-10 17:11:52.583 | INFO | Page switch: page_campaign_menu -> page_campaign                                      
2023-06-10 17:11:52.585 | INFO | Click ( 391,  260) @ CAMPAIGN_MENU_GOTO_CAMPAIGN                                      
2023-06-10 17:11:53.169 | INFO | Page arrive: page_campaign                                                            
2023-06-10 17:11:53.192 | INFO | [Mode_switch_1] hard                                                                  
2023-06-10 17:11:53.195 | INFO | <<< UI ENSURE INDEX >>>                                                               
2023-06-10 17:11:53.241 | INFO | No stage found.                                                                       
2023-06-10 17:11:53.458 | INFO | No stage found.                                                                       
2023-06-10 17:11:53.751 | INFO | Loading OCR model: ./bin/cnocr_models/azur_lane                                       
2023-06-10 17:11:53.801 | INFO | [campaign 0.059s] ['7--2', '7--3', '7--4', '7--1']                                    
2023-06-10 17:11:53.803 | INFO | [Chapter] 7                                                                           
2023-06-10 17:11:53.804 | INFO | [Stage] 7-2, 7-3, 7-4, 7-1                                                            
2023-06-10 17:11:53.805 | INFO | [Index] 7                                                                             
2023-06-10 17:11:53.851 | INFO | [OCR_OIL 0.030s] 9954                                                                 
───────────────────────────────────────────────────────── 7-2 ─────────────────────────────────────────────────────────
2023-06-10 17:11:53.853 | INFO | 7-2                                                                                   
2023-06-10 17:11:53.854 | INFO | <<< ENTER MAP >>>                                                                     
2023-06-10 17:11:53.892 | INFO | Click ( 443,  225) @ 7-2                                                              
2023-06-10 17:11:54.432 | INFO | [Map_clear_percentage] 0.997093023255814                                              
2023-06-10 17:11:54.723 | INFO | [Map_clear_percentage] 0.688953488372093                                              
2023-06-10 17:11:55.003 | INFO | [Map_clear_percentage] 0.997093023255814                                              
2023-06-10 17:11:55.005 | INFO | [MAP_CLEAR_ALL_THIS_TIME] False                                                       
2023-06-10 17:11:55.006 | INFO | [Map_info] 99%, star_1, star_2, star_3, 100_percent_clear, 3_stars, threat_safe,      
clear_mode                                                                                                             
2023-06-10 17:11:55.006 | INFO | [StopCondition_MapAchievement] non_stop                                               
2023-06-10 17:11:55.008 | INFO | [Fast_Forward] on                                                                     
2023-06-10 17:11:55.012 | INFO | [Auto_Search] on                                                                      
2023-06-10 17:11:55.013 | INFO | Click ( 908,  521) @ MAP_PREPARATION                                                  
2023-06-10 17:11:55.950 | INFO | Handling 2x book setting, mode=prep.                                                  
2023-06-10 17:11:56.248 | INFO | Using fleet: [1, 2, 0]                                                                
2023-06-10 17:11:56.260 | INFO | Hard satisfied: Fleet_1: None, Fleet_2: None, Submarine: None                         
2023-06-10 17:11:56.262 | INFO | Click (1121,  322) @ FLEET_2_CLEAR                                                    
2023-06-10 17:11:56.854 | INFO | Click (1059,  203) @ FLEET_1_CHOOSE                                                   
2023-06-10 17:11:57.438 | INFO | Current selected: [1]                                                                 
2023-06-10 17:11:57.439 | INFO | Click (1068,  215) @ FLEET_1_CHOOSE                                                   
2023-06-10 17:11:57.800 | INFO | Click (1062,  343) @ FLEET_2_CHOOSE                                                   
2023-06-10 17:11:58.413 | INFO | Current selected: [1]                                                                 
2023-06-10 17:11:58.415 | INFO | Click (1074,  439) @ FLEET_2_BAR_INDEX_2                                              
2023-06-10 17:11:59.054 | INFO | Auto search setting                                                                   
2023-06-10 17:11:59.057 | INFO | [Fleet_sidebar] 1/3                                                                   
2023-06-10 17:11:59.059 | INFO | Click (1204,  392) @ FLEET_SIDEBAR_0_2                                                
2023-06-10 17:11:59.787 | INFO | [Fleet_sidebar] 3/3                                                                   
2023-06-10 17:11:59.788 | INFO | [Auto_Search_Setting] fleet1_all_fleet2_standby                                       
2023-06-10 17:11:59.789 | INFO | Click ( 937,  198) @ AUTO_SEARCH_SET_STANDBY                                          
2023-06-10 17:12:00.503 | INFO | [Auto_Search_Setting] fleet1_standby_fleet2_all                                       
2023-06-10 17:12:00.505 | INFO | Selected to the correct auto search setting                                           
2023-06-10 17:12:00.507 | INFO | Click (1111,  601) @ FLEET_PREPARATION                                                
2023-06-10 17:12:03.058 | INFO | [LevelOcr 0.054s] [1, 114, 114, 110, 112, 114]                                        
2023-06-10 17:12:03.059 | INFO | [LEVEL] 1, 114, 114, 110, 112, 114                                                    
────────────────────────────────────────────────────── BATTLE_0 ───────────────────────────────────────────────────────
2023-06-10 17:12:03.061 | INFO | BATTLE_0                                                                              
2023-06-10 17:12:03.063 | INFO | Auto search moving                                                                    
2023-06-10 17:12:03.066 | INFO | Fleet: 1, fleet_current_index: 2                                                      
2023-06-10 17:12:03.131 | INFO | [LevelOcr 0.062s] [1, 114, 114, 110, 112, 114]                                        
2023-06-10 17:12:03.133 | INFO | [LEVEL] 1, 114, 114, 110, 112, 114                                                    
2023-06-10 17:12:03.162 | INFO | [OCR_OIL 0.028s] 9944                                                                 
2023-06-10 17:12:03.194 | INFO | [OCR_COIN 0.030s] 25545                                                               
2023-06-10 17:12:06.556 | INFO | Fleet: 2, fleet_current_index: 1                                                      
2023-06-10 17:12:06.608 | INFO | [LevelOcr 0.051s] [99, 97, 80, 110, 53, 56]                                           
2023-06-10 17:12:06.609 | INFO | [LEVEL] 99, 97, 80, 110, 53, 56                                                       
2023-06-10 17:12:10.211 | INFO | [Loading] 7%                                                                          
2023-06-10 17:12:10.213 | INFO | Auto search combat loading                                                            
2023-06-10 17:12:10.215 | INFO | Screenshot interval set to 1.0s                                                       
2023-06-10 17:12:24.165 | INFO | Auto Search combat execute                                                            
2023-06-10 17:12:29.236 | INFO | Combat auto check timer reached                                                       
2023-06-10 17:12:57.280 | INFO | Screenshot interval set to 0.3s                                                       
2023-06-10 17:12:57.281 | INFO | Auto Search combat status                                                             
2023-06-10 17:12:59.304 | INFO | Click (1009,  645) @ GET_SHIP                                                         
2023-06-10 17:13:00.544 | INFO | Click (1050,  638) @ GET_SHIP                                                         
2023-06-10 17:13:08.365 | INFO | Combat end.                                                                           
────────────────────────────────────────────────────── BATTLE_1 ───────────────────────────────────────────────────────
2023-06-10 17:13:08.366 | INFO | BATTLE_1                                                                              
2023-06-10 17:13:08.368 | INFO | Auto search moving                                                                    
2023-06-10 17:13:08.370 | INFO | Fleet: 2, fleet_current_index: 1                                                      
2023-06-10 17:13:08.435 | INFO | [LevelOcr 0.064s] [99, 97, 81, 110, 53, 56]                                           
2023-06-10 17:13:08.438 | INFO | [LEVEL] 99, 97, 81, 110, 53, 56                                                       
2023-06-10 17:13:08.439 | INFO | Position 0 LV.32 Reached                                                              
2023-06-10 17:13:08.464 | INFO | [OCR_OIL 0.025s] 9883                                                                 
2023-06-10 17:13:08.495 | INFO | [OCR_COIN 0.030s] 25556                                                               
2023-06-10 17:13:14.246 | INFO | Click ( 854,  512) @ RETIRE_APPEAR_3                                                  
2023-06-10 17:13:17.007 | INFO | <<< ENHANCEMENT BY TYPE >>>                                                           
2023-06-10 17:13:17.009 | INFO | [Enhance Order] [None]                                                                
2023-06-10 17:13:17.010 | INFO | Favourite=False, Ship Type=None                                                       
2023-06-10 17:13:17.010 | INFO | <<< UI CLICK >>>                                                                      
2023-06-10 17:13:17.021 | INFO | Click (1141,   12) @ DOCK_FILTER                                                      
2023-06-10 17:13:17.918 | INFO | Setting DOCK options,                                                                 
2023-06-10 17:13:17.923 | INFO | [DOCK] sort/level, index/all, faction/all, rarity/all, extra/no_limit                 
2023-06-10 17:13:17.929 | INFO | Setting DOCK options, sort='level', index='all', faction='all', rarity='all',         
extra='enhanceable'                                                                                                    
2023-06-10 17:13:17.938 | INFO | [DOCK] sort/level, index/all, faction/all, rarity/all, extra/no_limit                 
2023-06-10 17:13:17.946 | INFO | Click ( 712,  493) @ FILTER_EXTRA_3_0                                                 
2023-06-10 17:13:18.273 | INFO | [DOCK] sort/level, index/all, faction/all, rarity/all, extra/no_limit                 
2023-06-10 17:13:18.501 | INFO | [DOCK] sort/level, index/all, faction/all, rarity/all, extra/enhanceable              
2023-06-10 17:13:18.513 | INFO | <<< UI CLICK >>>                                                                      
2023-06-10 17:13:18.518 | INFO | Click ( 767,  651) @ DOCK_FILTER_CONFIRM                                              
2023-06-10 17:13:20.773 | INFO | Click ( 159,  148) @ CARD_0_0                                                         
2023-06-10 17:13:21.727 | INFO | Call state function: state_enhance_check                                              
2023-06-10 17:13:21.731 | INFO | DETAIL_SIDE_NAVBAR set to right=4 bottom=4                                            
2023-06-10 17:13:21.732 | INFO | Nav item active: 1 from range (0, 4)                                                  
2023-06-10 17:13:22.896 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:22.898 | INFO | Click (1011,  618) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:22.950 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:23.235 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:23.469 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:23.472 | INFO | Click (1000,  623) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:23.524 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:23.836 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:23.839 | INFO | Material found. Try enhancing...                                                      
2023-06-10 17:13:24.109 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:24.118 | INFO | Click (1176,  618) @ ENHANCE_CONFIRM                                                  
2023-06-10 17:13:24.438 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:24.661 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:25.075 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:25.080 | INFO | Enhancement impossible, ship currently in battle. Swiping to next ship if feasible    
2023-06-10 17:13:25.340 | INFO | Call state function: state_enhance_fail                                               
2023-06-10 17:13:27.450 | INFO | Swipe ( 539,  380) -> ( 273,  385)                                                    
2023-06-10 17:13:28.922 | INFO | New ship detected on swipe                                                            
2023-06-10 17:13:29.159 | INFO | Call state function: state_enhance_check                                              
2023-06-10 17:13:29.161 | INFO | DETAIL_SIDE_NAVBAR set to right=4 bottom=4                                            
2023-06-10 17:13:29.163 | INFO | Nav item active: 1 from range (0, 4)                                                  
2023-06-10 17:13:29.512 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:29.514 | INFO | Click (1036,  623) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:29.566 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:29.779 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:30.071 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:30.075 | INFO | Click (1024,  622) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:30.126 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:30.459 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:30.461 | INFO | Material found. Try enhancing...                                                      
2023-06-10 17:13:30.703 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:30.706 | INFO | Click (1179,  615) @ ENHANCE_CONFIRM                                                  
2023-06-10 17:13:31.088 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:31.320 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:31.323 | INFO | Click (1176,  612) @ ENHANCE_CONFIRM                                                  
2023-06-10 17:13:31.620 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:31.623 | INFO | Enhancement impossible, ship currently in battle. Swiping to next ship if feasible    
2023-06-10 17:13:31.926 | INFO | Call state function: state_enhance_fail                                               
2023-06-10 17:13:34.660 | INFO | Swipe ( 500,  384) -> ( 240,  382)                                                    
2023-06-10 17:13:36.101 | INFO | New ship detected on swipe                                                            
2023-06-10 17:13:36.416 | INFO | Call state function: state_enhance_check                                              
2023-06-10 17:13:36.421 | INFO | DETAIL_SIDE_NAVBAR set to right=4 bottom=4                                            
2023-06-10 17:13:36.423 | INFO | Nav item active: 0 from range (0, 3)                                                  
2023-06-10 17:13:36.753 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:36.756 | INFO | Click ( 983,  617) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:36.810 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:37.046 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:37.371 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:37.373 | INFO | Click (1044,  628) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:37.427 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:37.662 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:37.663 | INFO | Material found. Try enhancing...                                                      
2023-06-10 17:13:37.887 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:37.889 | INFO | Click (1211,  608) @ ENHANCE_CONFIRM                                                  
2023-06-10 17:13:38.234 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:38.236 | INFO | Enhancement impossible, ship currently in battle. Swiping to next ship if feasible    
2023-06-10 17:13:38.499 | INFO | Call state function: state_enhance_fail                                               
2023-06-10 17:13:41.320 | INFO | Swipe ( 553,  295) -> ( 317,  303)                                                    
2023-06-10 17:13:42.814 | INFO | New ship detected on swipe                                                            
2023-06-10 17:13:43.023 | INFO | Call state function: state_enhance_check                                              
2023-06-10 17:13:43.025 | INFO | DETAIL_SIDE_NAVBAR set to right=4 bottom=4                                            
2023-06-10 17:13:43.028 | INFO | Nav item active: 0 from range (0, 3)                                                  
2023-06-10 17:13:43.395 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:43.397 | INFO | Click ( 990,  610) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:43.449 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:43.650 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:43.936 | INFO | Call state function: state_enhance_ready                                              
2023-06-10 17:13:43.939 | INFO | Click (1014,  626) @ ENHANCE_RECOMMEND                                                
2023-06-10 17:13:43.993 | INFO | Set enhancement material by recommendation.                                           
2023-06-10 17:13:44.292 | INFO | Call state function: state_enhance_recommend                                          
2023-06-10 17:13:44.296 | INFO | Material found. Try enhancing...                                                      
2023-06-10 17:13:44.642 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:44.646 | INFO | Click (1209,  627) @ ENHANCE_CONFIRM                                                  
2023-06-10 17:13:44.859 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:45.219 | INFO | Call state function: state_enhance_attempt                                            
2023-06-10 17:13:45.221 | INFO | Click (1168,  623) @ ENHANCE_CONFIRM                                                  
2023-06-10 17:13:45.506 | INFO | Call state function: state_enhance_confirm                                            
2023-06-10 17:13:45.510 | INFO | Enhancement impossible, ship currently in battle. Swiping to next ship if feasible    
2023-06-10 17:13:45.751 | INFO | Call state function: state_enhance_fail                                               
2023-06-10 17:13:48.495 | INFO | Swipe ( 556,  328) -> ( 284,  331)                                                    
2023-06-10 17:14:48.651 | WARNING | Wait too long                                                                      
2023-06-10 17:14:48.653 | WARNING | Waiting for {'ENHANCE_RECOMMEND'}                                                  
2023-06-10 17:14:48.851 | INFO | [Package_name] com.hkmanjuu.azurlane.gp.mc                                            
2023-06-10 17:14:48.853 | ERROR | GameStuckError: Wait too long                                                        
2023-06-10 17:14:48.858 | WARNING | Saving error: ./log/error/1686388488858

截图

ERROR 09:50:08.894 │ KeyError: ()
╭────────────────── Traceback (most recent call last) ───────────────────╮ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\alas.py:68 in run │ │ │ │ 66 │ │ try: │ │ 67 │ │ │ self.device.screenshot() │ │ ❱ 68 │ │ │ self.getattribute(command)() │ │ 69 │ │ │ return True │ │ 70 │ │ except TaskEnd: │ │ │ │ ╭───────────────────────────── locals ─────────────────────────────╮ │ │ │ command = 'main' │ │ │ │ e = KeyError(()) │ │ │ │ self = <alas.AzurLaneAutoScript object at 0x0000000003682F08> │ │ │ ╰──────────────────────────────────────────────────────────────────╯ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\alas.py:339 in main │ │ │ │ 337 │ │ from module.campaign.run import CampaignRun │ │ 338 │ │ CampaignRun(config=self.config, device=self.device).run( │ │ ❱ 339 │ │ │ name=self.config.Campaign_Name, folder=self.config.C │ │ mode=self.config.Campaign_Mode) │ │ 340 │ │ │ 341 │ def main2(self): │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ CampaignRun = <class 'module.campaign.run.CampaignRun'> │ │ │ │ self = <alas.AzurLaneAutoScript object at │ │ │ │ 0x0000000003682F08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\campaign\run.py:340 │ │ in run │ │ │ │ 338 │ │ │ # Run │ │ 339 │ │ │ try: │ │ ❱ 340 │ │ │ │ self.campaign.run() │ │ 341 │ │ │ except ScriptEnd as e: │ │ 342 │ │ │ │ logger.hr('Script end') │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ folder = 'campaign_main' │ │ │ │ mode = 'normal' │ │ │ │ name = 'campaign_11_3' │ │ │ │ self = <module.campaign.run.CampaignRun object at │ │ │ │ 0x000000007FCA8548> │ │ │ │ total = 0 │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\campaign\campaign_bas │ │ e.py:141 in run │ │ │ │ 139 │ │ │ try: │ │ 140 │ │ │ │ if not self.map_is_auto_search: │ │ ❱ 141 │ │ │ │ │ self.execute_a_battle() │ │ 142 │ │ │ │ else: │ │ 143 │ │ │ │ │ self.auto_search_execute_abattle() │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ = 0 │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object at │ │ │ │ 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\campaign\campaign_bas │ │ e.py:100 in execute_abattle │ │ │ │ 98 │ │ for in range(10): │ │ 99 │ │ │ try: │ │ ❱ 100 │ │ │ │ result = self.battlefunction() │ │ 101 │ │ │ │ break │ │ 102 │ │ │ except MapEnemyMoved: │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ = 0 │ │ │ │ prev = 0 │ │ │ │ result = False │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object at │ │ │ │ 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\base\decorator.py:70 │ │ in wrapper │ │ │ │ 68 │ │ │ │ │ │ continue │ │ 69 │ │ │ │ │ │ │ ❱ 70 │ │ │ │ │ return record['func'](self, *args, kwargs) │ │ 71 │ │ │ │ │ │ 72 │ │ │ │ logger.warning(f'No option fits for {name}, usin │ │ func.') │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ args = () │ │ │ │ cls = <class 'module.base.decorator.Config'> │ │ │ │ flag = [True, True] │ │ │ │ func = <function CampaignBase.battle_function at │ │ │ │ 0x00000000A39171F8> │ │ │ │ kwargs = {} │ │ │ │ logger = <Logger alas (INFO)> │ │ │ │ name = 'battle_function' │ │ │ │ record = { │ │ │ │ │ 'options': { │ │ │ │ │ │ 'MAP_CLEAR_ALL_THIS_TIME': False, │ │ │ │ │ │ 'POOR_MAP_DATA': False │ │ │ │ │ }, │ │ │ │ │ 'func': <function CampaignBase.battle_function at │ │ │ │ 0x00000000A39171F8> │ │ │ │ } │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object at │ │ │ │ 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\campaign\campaign_bas │ │ e.py:90 in battle_function │ │ │ │ 88 │ │ func = self.getattribute(func) │ │ 89 │ │ │ │ ❱ 90 │ │ result = func() │ │ 91 │ │ │ │ 92 │ │ return result │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ extra_battle = 0 │ │ │ │ func = <bound method Campaign.battle_0 of │ │ │ │ <campaign.campaign_main.campaign_11_3.Campaign │ │ │ │ object at 0x0000000060E94EC8>> │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign │ │ │ │ object at 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\campaign\campaign_main\campa │ │ ign_11_3.py:79 in battle_0 │ │ │ │ 77 │ │ │ return True │ │ 78 │ │ │ │ ❱ 79 │ │ return self.battle_default() │ │ 80 │ │ │ 81 │ def battle_6(self): │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object at │ │ │ │ 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\campaign\campaign_bas │ │ e.py:15 in battle_default │ │ │ │ 13 │ │ │ 14 │ def battle_default(self): │ │ ❱ 15 │ │ if self.clear_enemy(): │ │ 16 │ │ │ return True │ │ 17 │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object at │ │ │ │ 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\map\map.py:206 in │ │ clear_enemy │ │ │ │ 204 │ │ │ logger.hr('Clear enemy') │ │ 205 │ │ │ self.show_select_grids(grids, kwargs) │ │ ❱ 206 │ │ │ self.clear_chosen_enemy(grids[0]) │ │ 207 │ │ │ return True │ │ 208 │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ grids = <module.map.map_grids.SelectedGrids object at │ │ │ │ 0x00000000A4467148> │ │ │ │ kwargs = {} │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object at │ │ │ │ 0x0000000060E94EC8> │ │ │ │ target = 'default_mode' │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\map\map.py:27 in │ │ clear_chosen_enemy │ │ │ │ 25 │ │ if self.emotion.is_calculate and self.config.Campaign_Us │ │ 26 │ │ │ self.emotion.wait(fleet_index=self.fleet_current_ind │ │ ❱ 27 │ │ self.goto(grid, expected=expected) │ │ 28 │ │ │ │ 29 │ │ self.full_scan() │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ expected = 'combat' │ │ │ │ grid = B2 │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object │ │ │ │ at 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\map\fleet.py:491 in │ │ goto │ │ │ │ 489 │ │ │ │ │ │ self._goto(grids[0], expected='') │ │ 490 │ │ │ │ try: │ │ ❱ 491 │ │ │ │ │ self._goto(node, expected=expected if node │ │ 492 │ │ │ │ except MapWalkError: │ │ 493 │ │ │ │ │ logger.warning('Map walk error.') │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ expected = 'combat' │ │ │ │ location = (1, 1) │ │ │ │ node = (1, 1) │ │ │ │ nodes = [(1, 1)] │ │ │ │ optimize = True │ │ │ │ self = <campaign.campaign_main.campaign_11_3.Campaign object │ │ │ │ at 0x0000000060E94EC8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\map\fleet.py:440 in │ │ _goto │ │ │ │ 438 │ │ │ │ break │ │ 439 │ │ │ │ ❱ 440 │ │ self.map[self.fleet_current].is_fleet = False │ │ 441 │ │ self.map[location].wipe_out() │ │ 442 │ │ self.map[location].is_fleet = True │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ ambushed_retry = Timer(limit=0.751/0.5, count=4/2) │ │ │ │ arrive_checker = False │ │ │ │ arrive_predict = '' │ │ │ │ arrive_timer = Timer(limit=0.0/0.5, count=2/2) │ │ │ │ arrive_unexpected_timer = Timer(limit=0.0/1.5, count=6/6) │ │ │ │ arrived = True │ │ │ │ expected = 'combat' │ │ │ │ extra = 0 │ │ │ │ grid = B2 │ │ │ │ is_portal = False │ │ │ │ location = (1, 1) │ │ │ │ may_submarine_icon = False │ │ │ │ mystery = False │ │ │ │ result = 'combat' │ │ │ │ result_mystery = '' │ │ │ │ self = <campaign.campaign_main.campaign_11_3.C… │ │ │ │ object at 0x0000000060E94EC8> │ │ │ │ walk_timeout = Timer(limit=0.751/20, count=7/0) │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\chaiz\Desktop\AzurLaneAutoScript\module\map\map_base.py:49 in │ │ getitem │ │ │ │ 47 │ │ │ GridInfo: │ │ 48 │ │ """ │ │ ❱ 49 │ │ return self.grids[tuple(item)] │ │ 50 │ │ │ 51 │ def contains(self, item): │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ item = () │ │ │ │ self = <module.map.map_base.CampaignMap object at │ │ │ │ 0x00000000A3922248> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ ╰────────────────────────────────────────────────────────────────────────╯ KeyError: ()
WARNING 09:50:09.187 │ Saving error: ./log/error/1687398609186
INFO 09:50:09.378 │ No provider specified, skip sending

还有别的吗?

No response

LmeSzinc commented 1 year ago

上传这两个文件夹 ./log/error/1687398609186 ./log/error/1686388488858

SnowMikuLive commented 1 year ago

error.zip