LmeSzinc / StarRailCopilot

崩坏:星穹铁道脚本 | Honkai: Star Rail auto bot (简体中文/繁體中文/English/Español)
GNU General Public License v3.0
3.17k stars 158 forks source link

忘却之庭每日任务中配队识别错误 #208

Closed Scarecrow-ai closed 11 months ago

Scarecrow-ai commented 11 months ago

在提问之前...

描述你的问题

在忘却之庭准备界面将未配置队伍的情况识别为已配置,然后一直等待直至报错。 可能和 #207 是相同错误原因?

如何复现

  1. 在有秘技任务或忘却之庭任务的情况下启动脚本。
  2. 脚本执行到忘却之庭准备页面。
  3. 出现问题。

预期行为

No response

相关 Logs

'''
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                      DAILYQUEST                                                       
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2023-11-27 09:43:48.515 | INFO | [BattlePassTodayQuest] {'time': datetime.datetime(2023, 11, 27, 9, 40, 46), 'quest1': 
'Consume_1_Trailblaze_Power', 'quest2': 'Dispatch_1_assignments', 'quest3': 'Reach_500_on_Daily_Training_Activity',    
'quest4': '', 'total': 4, 'value': 1}                                                                                  
2023-11-27 09:43:48.516 | INFO | [BattlePassTodayQuest expired] False                                                  
══════════════════════════════════════════════════ GET DAILY REWARDS ══════════════════════════════════════════════════
2023-11-27 09:43:48.518 | INFO | GET DAILY REWARDS                                                                     
────────────────────────────────────────────────── DUNGEON TAB GOTO ───────────────────────────────────────────────────
2023-11-27 09:43:48.519 | INFO | DUNGEON TAB GOTO                                                                      
2023-11-27 09:43:48.520 | INFO | <<< UI ENSURE >>>                                                                     
2023-11-27 09:43:48.520 | INFO | UI get current page                                                                   
2023-11-27 09:43:48.521 | INFO | [UI] page_main                                                                        
2023-11-27 09:43:48.522 | INFO | Goto page_guide                                                                       
2023-11-27 09:43:48.523 | INFO | <<< UI GOTO PAGE_GUIDE >>>                                                            
2023-11-27 09:43:48.524 | INFO | Page switch: page_main -> page_guide                                                  
2023-11-27 09:43:48.716 | INFO | Page arrive confirm page_main                                                         
2023-11-27 09:43:48.717 | INFO | Click (1015,   47) @ MAIN_GOTO_GUIDE                                                  
2023-11-27 09:43:50.218 | INFO | Page arrive: page_guide                                                               
2023-11-27 09:43:50.218 | INFO | DungeonTab set to DungeonTab(Daily_Training)                                          
2023-11-27 09:43:50.236 | INFO | [DungeonTab] unknown                                                                  
2023-11-27 09:43:50.314 | INFO | [DungeonTab] DungeonTab(Daily_Training)                                               
2023-11-27 09:43:50.315 | INFO | Tab goto DungeonTab(Daily_Training), wait until loaded                                
2023-11-27 09:43:50.524 | INFO | Daily training loaded                                                                 
2023-11-27 09:43:50.525 | INFO | Getting quest rewards                                                                 
2023-11-27 09:43:50.535 | INFO | Ensure position: left                                                                 
2023-11-27 09:43:50.569 | INFO | Click ( 179,  585) @ DAILY_QUEST_REWARD                                               
2023-11-27 09:43:50.897 | INFO | No more quests to get, have quests uncompleted                                        
2023-11-27 09:43:50.898 | INFO | Getting active point rewards                                                          
2023-11-27 09:43:50.911 | INFO | Click ( 399,  183) @ ACTIVE_POINTS_1_UNLOCK                                           
2023-11-27 09:43:52.014 | INFO | Click ( 870,  574) @ GET_REWARD                                                       
2023-11-27 09:43:52.238 | INFO | No more reward to get                                                                 
2023-11-27 09:43:52.261 | INFO | [Daily activity] 100                                                                  
2023-11-27 09:43:52.264 | INFO | Bind task ['Alas', 'DailyQuest']                                                      
2023-11-27 09:43:52.265 | INFO | Save config ./config\src.json, DailyQuest.DailyStorage.DailyActivity={'time':         
datetime.datetime(2023, 11, 27, 9, 43, 52), 'total': 500, 'value': 100}                                                
2023-11-27 09:43:52.281 | INFO | Daily reward got but not yet claimed                                                  
══════════════════════════════════════════════════ RECOGNIZE QUESTS ═══════════════════════════════════════════════════
2023-11-27 09:43:52.283 | INFO | RECOGNIZE QUESTS                                                                      
2023-11-27 09:43:52.285 | INFO | Recognizing daily quests                                                              
────────────────────────────────────────────────── DUNGEON TAB GOTO ───────────────────────────────────────────────────
2023-11-27 09:43:52.286 | INFO | DUNGEON TAB GOTO                                                                      
2023-11-27 09:43:52.287 | INFO | <<< UI ENSURE >>>                                                                     
2023-11-27 09:43:52.288 | INFO | UI get current page                                                                   
2023-11-27 09:43:52.291 | INFO | [UI] page_guide                                                                       
2023-11-27 09:43:52.292 | INFO | Already at page_guide                                                                 
2023-11-27 09:43:52.293 | INFO | DungeonTab set to DungeonTab(Daily_Training)                                          
2023-11-27 09:43:52.294 | INFO | [DungeonTab] DungeonTab(Daily_Training)                                               
2023-11-27 09:43:52.411 | INFO | Ensure position: left                                                                 
2023-11-27 09:43:52.686 | INFO | [OCR_DAILY_QUEST 0.272s] ['完成1个日常任务', '完成1次「拟造花萼(赤)」',              
'累计施放2次秘技', '完成1次「忘却之庭」', '前往', '前往', '进行中', '前往']                                            
2023-11-27 09:43:52.688 | INFO | [OCR_DAILY_QUEST matched] [DailyQuest(Complete_1_Daily_Mission),                      
DailyQuest(Complete_Calyx_Crimson_1_time), DailyQuest(Use_Technique_2_times),                                          
DailyQuest(Complete_Forgotten_Hall_1_time), DailyQuestState(Go), DailyQuestState(Go), DailyQuestState(In_Progress),    
DailyQuestState(Go)]                                                                                                   
2023-11-27 09:43:52.697 | INFO | Swipe ( 898,  529) -> ( 388,  532)                                                    
2023-11-27 09:43:53.409 | INFO | Ensure position: right                                                                
2023-11-27 09:43:53.742 | INFO | [OCR_DAILY_QUEST 0.331s] ['累计施放2次秘技', '完成1次「忘却之庭」',                   
'累计消灭20个敌人', '使用1件消耗品', '进行中', '前往', '进行中', '已领取']                                             
2023-11-27 09:43:53.744 | INFO | [OCR_DAILY_QUEST matched] [DailyQuest(Use_Technique_2_times),                         
DailyQuest(Complete_Forgotten_Hall_1_time), DailyQuest(Defeat_a_total_of_20_enemies),                                  
DailyQuest(Use_Consumables_1_time), DailyQuestState(In_Progress), DailyQuestState(Go), DailyQuestState(In_Progress),   
DailyQuestState(Claimed)]                                                                                              
2023-11-27 09:43:53.745 | INFO | Daily quests recognition complete                                                     
2023-11-27 09:43:53.746 | INFO | Daily quests: [DailyQuest(Complete_1_Daily_Mission),                                  
DailyQuest(Complete_Calyx_Crimson_1_time), DailyQuest(Use_Technique_2_times),                                          
DailyQuest(Complete_Forgotten_Hall_1_time), DailyQuest(Defeat_a_total_of_20_enemies)]                                  
2023-11-27 09:43:53.750 | INFO | Bind task ['Alas', 'DailyQuest']                                                      
2023-11-27 09:43:53.751 | INFO | Save config ./config\src.json, DailyQuest.DailyStorage.DailyQuest={'time':            
datetime.datetime(2023, 11, 27, 9, 43, 53), 'quest1': 'Complete_1_Daily_Mission', 'quest2':                            
'Complete_Calyx_Crimson_1_time', 'quest3': 'Use_Technique_2_times', 'quest4': 'Complete_Forgotten_Hall_1_time',        
'quest5': 'Defeat_a_total_of_20_enemies', 'quest6': '', 'total': 6, 'value': 1}                                        
══════════════════════════════════════════════════════ DO QUESTS ══════════════════════════════════════════════════════
2023-11-27 09:43:53.766 | INFO | DO QUESTS                                                                             
─────────────────────────────────────────────────── USE TECHNIQUES ────────────────────────────────────────────────────
2023-11-27 09:43:53.767 | INFO | USE TECHNIQUES                                                                        
────────────────────────────────────────────────── DUNGEON TAB GOTO ───────────────────────────────────────────────────
2023-11-27 09:43:53.769 | INFO | DUNGEON TAB GOTO                                                                      
2023-11-27 09:43:53.770 | INFO | <<< UI ENSURE >>>                                                                     
2023-11-27 09:43:53.771 | INFO | UI get current page                                                                   
2023-11-27 09:43:53.774 | INFO | [UI] page_guide                                                                       
2023-11-27 09:43:53.775 | INFO | Already at page_guide                                                                 
2023-11-27 09:43:53.776 | INFO | DungeonTab set to DungeonTab(Survival_Index)                                          
2023-11-27 09:43:53.777 | INFO | [DungeonTab] DungeonTab(Daily_Training)                                               
2023-11-27 09:43:53.786 | INFO | Click ( 366,  102) @ SURVIVAL_INDEX_CLICK                                             
2023-11-27 09:43:53.910 | INFO | [DungeonTab] DungeonTab(Daily_Training)                                               
2023-11-27 09:43:54.285 | INFO | [DungeonTab] unknown                                                                  
2023-11-27 09:43:54.309 | INFO | [DungeonTab] DungeonTab(Survival_Index)                                               
2023-11-27 09:43:54.312 | INFO | Tab goto DungeonTab(Survival_Index), wait until loaded                                
2023-11-27 09:43:55.011 | INFO | Survival index loaded                                                                 
────────────────────────────────────────────────── DUNGEON NAV GOTO ───────────────────────────────────────────────────
2023-11-27 09:43:55.013 | INFO | DUNGEON NAV GOTO                                                                      
2023-11-27 09:43:55.015 | INFO | Dungeon nav goto DungeonNav(Forgotten_Hall)                                           
2023-11-27 09:43:55.307 | INFO | [OCR_DUNGEON_NAV 0.291s] ['双倍', '模拟宇宙', '周期积分/位面饰品', '拟造花萼(金)',   
'经验材料/信用点', '拟造花萼 (赤)', '行迹材料', '凝滞虚影', '角色晋阶材料', '侵蚀隧洞', '遗器']                       
2023-11-27 09:43:55.309 | INFO | [OCR_DUNGEON_NAV matched] [DungeonNav(Simulated_Universe), DungeonNav(Calyx_Golden),  
DungeonNav(Calyx_Crimson), DungeonNav(Stagnant_Shadow), DungeonNav(Cavern_of_Corrosion)]                               
2023-11-27 09:43:55.310 | INFO | [DungeonNavList] 1 - 5                                                                
2023-11-27 09:43:55.313 | INFO | DUNGEON_NAV_LIST selected at DungeonNav(Simulated_Universe)                           
2023-11-27 09:43:55.314 | INFO | DUNGEON_NAV_LIST at top                                                               
2023-11-27 09:43:55.316 | INFO | dungeon_update_simuni                                                                 
2023-11-27 09:43:55.317 | INFO | Update thread start                                                                   
2023-11-27 09:43:55.318 | INFO | Drag ( 234,  552) -> ( 234,  316)                                                     
2023-11-27 09:43:55.320 | INFO | Get simulated universe points                                                         
2023-11-27 09:43:55.348 | INFO | [OCR_SIMUNI_POINT] 0/14000                                                            
2023-11-27 09:43:55.350 | INFO | [OCR_SIMUNI_POINT format] 0/14000 -> (0, 14000, 14000)                                
2023-11-27 09:43:55.351 | INFO | [OCR_SIMUNI_POINT 0.019s] (0, 14000, 14000)                                           
2023-11-27 09:43:55.352 | INFO | [SimulatedUniverse] 0/14000                                                           
2023-11-27 09:43:55.355 | INFO | Bind task ['Alas', 'DailyQuest']                                                      
2023-11-27 09:43:55.357 | INFO | Save config ./config\src.json, Dungeon.DungeonStorage.SimulatedUniverse={'time':      
datetime.datetime(2023, 11, 27, 9, 43, 55), 'total': 14000, 'value': 0}                                                
2023-11-27 09:43:56.272 | INFO | [OCR_DUNGEON_NAV 0.259s] ['拟造化号(亦)', '行迹材料', '凝滞虚影', '角色晋阶材料',   
'侵蚀隧洞', '遗器', '历战余响', '行迹高级材料/光锥', '忘却之庭', '流光余晖']                                           
2023-11-27 09:43:56.274 | INFO | [OCR_DUNGEON_NAV matched] [DungeonNav(Stagnant_Shadow),                               
DungeonNav(Cavern_of_Corrosion), DungeonNav(Echo_of_War), DungeonNav(Forgotten_Hall)]                                  
2023-11-27 09:43:56.275 | INFO | [DungeonNavList] 4 - 7                                                                
2023-11-27 09:43:56.276 | INFO | DungeonNav row Forgotten_Hall stabled                                                 
2023-11-27 09:43:56.277 | INFO | Select row: DungeonNav(Forgotten_Hall)                                                
2023-11-27 09:43:56.278 | INFO | Click ( 176,  587) @ DungeonNav(Forgotten_Hall)                                       
2023-11-27 09:43:56.708 | INFO | Row selected at DungeonNav(Forgotten_Hall)                                            
2023-11-27 09:43:56.709 | INFO | Stage choose DungeonList(The_Last_Vestiges_of_Towering_Citadel)                       
2023-11-27 09:43:56.728 | INFO | Click (1027,  463) @ TELEPORT                                                         
2023-11-27 09:43:59.223 | INFO | Click (  49,  226) @ LAST_VASTIGES_CLICK                                              
2023-11-27 09:44:00.314 | INFO | Click (  79,  222) @ LAST_VASTIGES_CLICK                                              
2023-11-27 09:44:01.111 | INFO | Stage chose at DungeonList(The_Last_Vestiges_of_Towering_Citadel)                     
2023-11-27 09:44:01.112 | INFO | Insight row: ForgottenHallStage(01), index=1                                          
2023-11-27 09:44:01.127 | INFO | [OCR_STAGE 0.007s] ['']                                                               
2023-11-27 09:44:01.128 | INFO | [OCR_STAGE matched] []                                                                
2023-11-27 09:44:01.129 | WARNING | No valid rows loaded into DraggableList(ForgottenHallStageList)                    
2023-11-27 09:44:01.130 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:01.228 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:01.259 | INFO | [OCR_STAGE 0.022s] ['13', '11', '15', '14', '12']                                     
2023-11-27 09:44:01.261 | INFO | [OCR_STAGE matched] [ForgottenHallStage(13), ForgottenHallStage(11),                  
ForgottenHallStage(15), ForgottenHallStage(14), ForgottenHallStage(12)]                                                
2023-11-27 09:44:01.262 | INFO | [ForgottenHallStageList] 11 - 15                                                      
2023-11-27 09:44:01.263 | INFO | Drag ( 111,   47) -> ( 825,   47)                                                     
2023-11-27 09:44:02.077 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:02.237 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:02.268 | INFO | [OCR_STAGE 0.022s] ['13', '11', '10', '12']                                           
2023-11-27 09:44:02.269 | INFO | [OCR_STAGE matched] [ForgottenHallStage(13), ForgottenHallStage(11),                  
ForgottenHallStage(10), ForgottenHallStage(12)]                                                                        
2023-11-27 09:44:02.271 | INFO | [ForgottenHallStageList] 10 - 13                                                      
2023-11-27 09:44:02.272 | INFO | Drag (  94,   41) -> ( 912,   41)                                                     
2023-11-27 09:44:03.148 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:03.318 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:03.350 | INFO | [OCR_STAGE 0.025s] ['11', '08', '10', '12', '09']                                     
2023-11-27 09:44:03.351 | INFO | [OCR_STAGE matched] [ForgottenHallStage(11), ForgottenHallStage(08),                  
ForgottenHallStage(10), ForgottenHallStage(12), ForgottenHallStage(09)]                                                
2023-11-27 09:44:03.353 | INFO | [ForgottenHallStageList] 8 - 12                                                       
2023-11-27 09:44:03.354 | INFO | Drag ( 111,   41) -> ( 880,   41)                                                     
2023-11-27 09:44:04.188 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:04.332 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:04.360 | INFO | [OCR_STAGE 0.020s] ['08', '10', '07', '09']                                           
2023-11-27 09:44:04.361 | INFO | [OCR_STAGE matched] [ForgottenHallStage(08), ForgottenHallStage(10),                  
ForgottenHallStage(07), ForgottenHallStage(09)]                                                                        
2023-11-27 09:44:04.363 | INFO | [ForgottenHallStageList] 7 - 10                                                       
2023-11-27 09:44:04.364 | INFO | Drag (  77,   73) -> ( 903,   73)                                                     
2023-11-27 09:44:05.228 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:05.422 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:05.458 | INFO | [OCR_STAGE 0.027s] ['06', '08', '07', '05']                                           
2023-11-27 09:44:05.459 | INFO | [OCR_STAGE matched] [ForgottenHallStage(06), ForgottenHallStage(08),                  
ForgottenHallStage(07), ForgottenHallStage(05)]                                                                        
2023-11-27 09:44:05.460 | INFO | [ForgottenHallStageList] 5 - 8                                                        
2023-11-27 09:44:05.462 | INFO | Drag ( 131,   41) -> ( 912,   41)                                                     
2023-11-27 09:44:06.298 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:06.433 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:06.466 | INFO | [OCR_STAGE 0.025s] ['03', '06', '07', '04', '05']                                     
2023-11-27 09:44:06.467 | INFO | [OCR_STAGE matched] [ForgottenHallStage(03), ForgottenHallStage(06),                  
ForgottenHallStage(07), ForgottenHallStage(04), ForgottenHallStage(05)]                                                
2023-11-27 09:44:06.468 | INFO | [ForgottenHallStageList] 3 - 7                                                        
2023-11-27 09:44:06.470 | INFO | Drag ( 133,   73) -> ( 831,   73)                                                     
2023-11-27 09:44:07.263 | INFO | Wait until stable: OCR_STAGE                                                          
2023-11-27 09:44:07.425 | INFO | OCR_STAGE stabled                                                                     
2023-11-27 09:44:07.464 | INFO | [OCR_STAGE 0.030s] ['03', '01', '02', '04', '05']                                     
2023-11-27 09:44:07.465 | INFO | [OCR_STAGE matched] [ForgottenHallStage(03), ForgottenHallStage(01),                  
ForgottenHallStage(02), ForgottenHallStage(04), ForgottenHallStage(05)]                                                
2023-11-27 09:44:07.467 | INFO | [ForgottenHallStageList] 1 - 5                                                        
2023-11-27 09:44:07.468 | INFO | Select row: ForgottenHallStage(01)                                                    
2023-11-27 09:44:07.473 | INFO | Click ( 244,  433) @ ForgottenHallStage(01)                                           
2023-11-27 09:44:08.412 | INFO | Row selected at ForgottenHallStage(01)                                                
2023-11-27 09:44:08.433 | INFO | Team already prepared                                                                 
2023-11-27 09:45:07.493 | WARNING | Wait too long                                                                      
2023-11-27 09:45:07.495 | WARNING | Waiting for {'EFFECT_NOTIFICATION', 'SEAT_4', 'SEAT_3', 'ENTRANCE_CHECKED',        
'SEAT_2', 'DUNGEON_ENTER_CHECKED', 'SEAT_1'}                                                                           
2023-11-27 09:45:07.512 | INFO | [Package_name] com.miHoYo.hkrpg                                                       
2023-11-27 09:45:07.513 | ERROR | GameStuckError: Wait too long                                                        
2023-11-27 09:45:07.514 | WARNING | Saving error: ./log/error/1701049507514                                            
'''

截图

2023-11-27_09-45-07-491743

还有别的吗?

No response

LmeSzinc commented 11 months ago

31ae87d05fa6ce4a2363ab995f758fd54ebcbc1d