LmeSzinc / StarRailCopilot

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

执行每日任务卡在抽卡界面 #337

Open MusherM opened 9 months ago

MusherM commented 9 months ago

在提问之前...

描述你的问题

执行每日任务时会卡在抽卡界面

如何复现

执行每日任务即可稳定复现

预期行为

应该正常执行每日任务

相关 Logs

START                                      
═════════════════════════════════════════════════════════════════════════════════
INFO     08:43:31.085 │ Start scheduler loop: src                                
INFO     08:43:31.088 │ [Lang] cn                                                
INFO     08:43:31.093 │ Bind task ['Alas']                                       
INFO     08:43:31.094 │ Pending tasks: ['DailyQuest', 'Assignment', 'Freebies',  
         'DataUpdate', 'Dungeon', 'Rogue']                                       
INFO     08:43:31.095 │ [Task] DailyQuest (Enable, 2024-02-20 04:00:00)          
INFO     08:43:31.096 │ Bind task ['Alas', 'DailyQuest']                         
════════════════════════════════════ DEVICE ═════════════════════════════════════
INFO     08:43:31.818 │ DEVICE                                                   
INFO     08:43:31.827 │ [AdbBinary]                                              
         C:\Users\Musher\Desktop\StarRailCopilot\toolkit\Lib\site-packages\adbuti
         ls\binaries\adb.exe                                                     
INFO     08:43:31.827 │ [AdbClient] AdbClient(127.0.0.1, 5037)                   
INFO     08:43:31.828 │ <<< DETECT DEVICE >>>                                    
INFO     08:43:31.829 │ Here are the available devices, copy to                  
         Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"       
INFO     08:43:31.831 │ 127.0.0.1:16384                                          
INFO     08:43:31.834 │ already connected to 127.0.0.1:16384                     
INFO     08:43:31.835 │ [AdbDevice] AdbDevice(serial=127.0.0.1:16384)            
INFO     08:43:31.836 │ [Server] CN-Official                                     
INFO     08:43:31.837 │ [PackageName] com.miHoYo.hkrpg                           
INFO     08:43:31.838 │ [Lang] cn                                                
INFO     08:43:31.847 │ [nemud.app_keep_alive] false                             
INFO     08:43:31.848 │ Scheduler: Start task `DailyQuest`                       
═════════════════════════════════════════════════════════════════════════════════
                                   DAILYQUEST                                    
═════════════════════════════════════════════════════════════════════════════════
INFO     08:43:31.859 │ [u2.Device] Device(atx_agent_url=http://127.0.0.1:11086) 
INFO     08:43:31.893 │ [Device Orientation] 1 (HOME key on the right)           
INFO     08:43:31.894 │ [Screen_size] 1280x720                                   
INFO     08:43:31.895 │ <<< SCRCPY SERVER START >>>                              
INFO     08:43:31.898 │ Create server stream                                     
INFO     08:43:32.093 │ b'[server] INFO: Device: HONOR SDY-AN00 (Android 12)\n'  
INFO     08:43:32.095 │ Create video socket                                      
INFO     08:43:32.198 │ Create control socket                                    
INFO     08:43:32.199 │ Fetch device info                                        
INFO     08:43:32.200 │ [Scrcpy Device] SDY-AN00                                 
INFO     08:43:32.201 │ [Scrcpy Resolution] (1280, 720)                          
INFO     08:43:32.202 │ Start video stream loop thread                           
INFO     08:43:32.203 │ Scrcpy server is up                                      
INFO     08:43:32.412 │ [Screen_size] 1280x720                                   
INFO     08:43:32.748 │ [BattlePassWeeklyQuest] {'time': datetime.datetime(2024, 
         2, 20, 4, 12, 54), 'quest1':                                            
         'Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max',     
         'quest2': 'Clear_Stagnant_Shadow_1_times', 'quest3':                    
         'Complete_Echo_of_War_1_times', 'quest4': 'Use_300000_credits',         
         'quest5': 'Synthesize_Consumables_1_times', 'quest6': '', 'quest7': '', 
         'total': 7, 'value': 2}                                                 
INFO     08:43:32.749 │ [BattlePassWeeklyQuest expired] False                    
═══════════════════════════════ GET DAILY REWARDS ═══════════════════════════════
INFO     08:43:32.750 │ GET DAILY REWARDS                                        
─────────────────────────────── DUNGEON TAB GOTO ────────────────────────────────
INFO     08:43:32.751 │ DUNGEON TAB GOTO                                         
INFO     08:43:32.752 │ <<< UI ENSURE >>>                                        
INFO     08:43:32.753 │ UI get current page                                      
INFO     08:43:32.766 │ [UI] page_main                                           
INFO     08:43:32.771 │ acquire_lang_checked                                     
INFO     08:43:32.771 │ <<< UI GOTO PAGE_MAIN >>>                                
INFO     08:43:32.773 │ Page arrive: page_main                                   
INFO     08:43:32.880 │ Page arrive confirm page_main                            
INFO     08:43:32.881 │ check_lang_from_map_plane                                
INFO     08:43:32.882 │ Try ocr in lang cn                                       
INFO     08:43:33.138 │ [OCR_MAP_NAME 0.256s] 「白日梦」酒店-梦境                
INFO     08:43:33.139 │ [CurrentPlane] MapPlane(Penacony_TheReverieDreamscape)   
INFO     08:43:33.140 │ check_lang_from_map_plane matched lang: cn               
INFO     08:43:33.141 │ UI get current page                                      
INFO     08:43:33.142 │ [UI] page_main                                           
INFO     08:43:33.142 │ Goto page_guide                                          
INFO     08:43:33.143 │ <<< UI GOTO PAGE_GUIDE >>>                               
INFO     08:43:33.148 │ Page switch: page_main -> page_guide                     
INFO     08:43:33.268 │ Page arrive confirm page_main                            
INFO     08:43:33.269 │ Click (1011,   44) @ MAIN_GOTO_GUIDE                     
INFO     08:43:33.271 │ <<< MAATOUCH INIT >>>                                    
INFO     08:43:33.397 │ ^ 10 1280 720 255                                        
INFO     08:43:33.398 │ $ 255                                                    
INFO     08:43:33.399 │ MaaTouch stream connected                                
INFO     08:43:33.399 │ max_contact: 10; max_x: 1280; max_y: 720; max_pressure:  
         255                                                                     
INFO     08:43:34.278 │ Page arrive: page_guide                                  
INFO     08:43:34.279 │ DungeonTab set to DungeonTab(Daily_Training)             
INFO     08:43:34.297 │ [DungeonTab] unknown                                     
INFO     08:43:34.376 │ [DungeonTab] unknown                                     
INFO     08:43:34.481 │ [DungeonTab] unknown                                     
INFO     08:43:34.582 │ [DungeonTab] unknown                                     
INFO     08:43:34.681 │ [DungeonTab] unknown                                     
INFO     08:43:34.777 │ [DungeonTab] DungeonTab(Daily_Training)                  
INFO     08:43:34.778 │ Tab goto DungeonTab(Daily_Training), wait until loaded   
INFO     08:43:34.779 │ Daily training loaded                                    
INFO     08:43:34.780 │ Getting quest rewards                                    
INFO     08:43:34.786 │ Ensure position: left                                    
INFO     08:43:34.796 │ No more quests to get, have quests uncompleted           
INFO     08:43:34.797 │ Getting active point rewards                             
INFO     08:43:34.827 │ No more reward to get                                    
INFO     08:43:34.843 │ [Daily activity] 200                                     
INFO     08:43:34.845 │ Bind task ['Alas', 'DailyQuest']                         
INFO     08:43:34.846 │ Save config ./config\src.json,                           
         DailyQuest.DailyStorage.DailyActivity={'time': datetime.datetime(2024,  
         2, 20, 8, 43, 34), 'total': 500, 'value': 200}                          
INFO     08:43:34.850 │ Daily reward got but not yet claimed                     
═══════════════════════════════ RECOGNIZE QUESTS ════════════════════════════════
INFO     08:43:34.851 │ RECOGNIZE QUESTS                                         
INFO     08:43:34.852 │ Recognizing daily quests                                 
─────────────────────────────── DUNGEON TAB GOTO ────────────────────────────────
INFO     08:43:34.853 │ DUNGEON TAB GOTO                                         
INFO     08:43:34.854 │ <<< UI ENSURE >>>                                        
INFO     08:43:34.854 │ UI get current page                                      
INFO     08:43:34.860 │ [UI] page_guide                                          
INFO     08:43:34.861 │ Already at page_guide                                    
INFO     08:43:34.862 │ DungeonTab set to DungeonTab(Daily_Training)             
INFO     08:43:34.863 │ [DungeonTab] DungeonTab(Daily_Training)                  
INFO     08:43:34.865 │ Ensure position: left                                    
INFO     08:43:35.136 │ [OCR_DAILY_QUEST 0.271s] ['派遣1次委托',                 
         '累计消耗120点开拓力', '完成1个日常任务', '累计消灭20个敌人', '信得',   
         '前往', '前往', '前往 ', '进行中']                                      
INFO     08:43:35.138 │ [OCR_DAILY_QUEST matched]                                
         [DailyQuest(Dispatch_1_assignments),                                    
         DailyQuest(Consume_120_Trailblaze_Power),                               
         DailyQuest(Complete_1_Daily_Mission),                                   
         DailyQuest(Defeat_a_total_of_20_enemies), DailyQuestState(Go),          
         DailyQuestState(Go), DailyQuestState(Go), DailyQuestState(In_Progress)] 
INFO     08:43:35.145 │ Swipe ( 846,  410) -> ( 366,  409)                       
INFO     08:43:35.681 │ Ensure position: right                                   
INFO     08:43:35.952 │ [OCR_DAILY_QUEST 0.270s] ['完成1个日常任务',             
         '累计消灭20个敌人', '使用支援角色并获得战斗胜利1次',                    
         '完成1次「模拟宇宙」', '前往', '进行中', '进行中', '前往']              
INFO     08:43:35.953 │ [OCR_DAILY_QUEST matched]                                
         [DailyQuest(Complete_1_Daily_Mission),                                  
         DailyQuest(Defeat_a_total_of_20_enemies),                               
         DailyQuest(Obtain_victory_in_combat_with_Support_Characters_1_times),   
         DailyQuest(Complete_Simulated_Universe_1_times), DailyQuestState(Go),   
         DailyQuestState(In_Progress), DailyQuestState(In_Progress),             
         DailyQuestState(Go)]                                                    
INFO     08:43:35.954 │ Daily quests recognition complete                        
INFO     08:43:35.955 │ Daily quests: [DailyQuest(Dispatch_1_assignments),       
         DailyQuest(Consume_120_Trailblaze_Power),                               
         DailyQuest(Complete_1_Daily_Mission),                                   
         DailyQuest(Defeat_a_total_of_20_enemies),                               
         DailyQuest(Obtain_victory_in_combat_with_Support_Characters_1_times),   
         DailyQuest(Complete_Simulated_Universe_1_times)]                        
INFO     08:43:35.958 │ Bind task ['Alas', 'DailyQuest']                         
INFO     08:43:35.959 │ Save config ./config\src.json,                           
         DailyQuest.DailyStorage.DailyQuest={'time': datetime.datetime(2024, 2,  
         20, 8, 43, 35), 'quest1': 'Dispatch_1_assignments', 'quest2':           
         'Consume_120_Trailblaze_Power', 'quest3': 'Complete_1_Daily_Mission',   
         'quest4': 'Defeat_a_total_of_20_enemies', 'quest5':                     
         'Obtain_victory_in_combat_with_Support_Characters_1_times', 'quest6':   
         'Complete_Simulated_Universe_1_times', 'total': 6, 'value': 0}          
═══════════════════════════════════ DO QUESTS ═══════════════════════════════════
INFO     08:43:35.963 │ DO QUESTS                                                
INFO     08:43:35.964 │ Himeko trial, enemy=2, item=0                            
═══════════════════════════════════ ROUTE RUN ═══════════════════════════════════
INFO     08:43:35.965 │ ROUTE RUN                                                
INFO     08:43:35.966 │ [Route] route.daily.HimekoTrial:route_enemy              
INFO     08:43:35.970 │ Enter Himeko trial                                       
INFO     08:43:35.987 │ <<< UI ENSURE >>>                                        
INFO     08:43:35.988 │ UI get current page                                      
INFO     08:43:35.990 │ [UI] page_guide                                          
INFO     08:43:35.991 │ Goto page_gacha                                          
INFO     08:43:35.992 │ <<< UI GOTO PAGE_GACHA >>>                               
INFO     08:43:35.995 │ Page switch: page_guide -> page_main                     
INFO     08:43:35.996 │ Click (1225,   33) @ GUIDE_CLOSE                         
INFO     08:43:36.787 │ Page switch: page_main -> page_gacha                     
INFO     08:43:36.984 │ Page arrive confirm page_main                            
INFO     08:43:36.985 │ Click ( 938,   43) @ MAIN_GOTO_GACHA                     
INFO     08:43:38.174 │ Page arrive: page_gacha

截图

image

还有别的吗?

每次都会卡在Page arrive: page_gacha,这个page_gacha是否应该是抽卡页面?如果是为何会卡在这里

MusherM commented 9 months ago

https://github.com/LmeSzinc/StarRailCopilot/issues/176 因为尝试做姬子试用,但没有做滑动,如果短时间没有修复计划,是否可以暂时移除姬子试用这个每日任务呢

MusherM commented 9 months ago

现在似乎可以通过关掉每日任务,并在每日副本里设置助战,基本上也能完成每日任务

zhaoqiman commented 8 months ago

有同样的问题。因为有新手卡池,无法正确选择到姬子使用。 目前解决方法可选 1.强行关闭每日任务。 2.卡在抽卡界面时,人工滑动一下左侧卡池。

几乎可以确定是卡池选择的问题,待解决。