AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

使用共斗活动刷图碰到委托需要执行会报错

Open co2ffee opened this issue 2 years ago • 7 comments

在提问之前...

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

描述你的问题

使用共斗活动刷图的时候如果存在需要执行委托任务,调度器会报错并停止运行

如何复现

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

预期行为

No response

相关 Logs

INFO     19:42:29.614 │ RAID_20240328_HARD                                         
INFO     19:42:29.615 │ Count: 5                                                   
INFO     19:42:29.616 │ <<< UI ENSURE >>>                                          
INFO     19:42:29.617 │ UI get current page                                        
INFO     19:42:29.632 │ [UI] page_rpg_stage                                        
INFO     19:42:29.633 │ Already at page_rpg_stage                                  
INFO     19:42:29.634 │ RPG raid already at rightmost                              
INFO     19:42:29.635 │ <<< RAID EXECUTE >>>                                       
INFO     19:42:29.636 │ Expect emotion reduce: (2, 0)                              
INFO     19:42:29.647 │ Bind task ['General', 'Alas', 'TaskBalancer',              
         'EventGeneral', 'Raid']                                                   
INFO     19:42:29.648 │ Save config ./config\alas2.json,                           
         Raid.Emotion.Fleet1Value=150,                                             
         Raid.Emotion.Fleet1Record=datetime.datetime(2024, 4, 6, 19, 42, 29),      
         Raid.Emotion.Fleet2Value=119,                                             
         Raid.Emotion.Fleet2Record=datetime.datetime(2024, 4, 6, 19, 42, 29)       
INFO     19:42:29.676 │ [Emotion fleet_1] 150                                      
INFO     19:42:29.676 │ [Emotion fleet_2] 119                                      
INFO     19:42:29.678 │ Click ( 491,  117) @ RPG_RAID_HARD                         
INFO     19:42:30.194 │ Click (1128,  604) @ RAID_FLEET_PREPARATION                
INFO     19:42:30.809 │ Combat preparation.                                        
INFO     19:42:30.812 │ [Automation] ON                                            
INFO     19:42:30.831 │ [OCR_OIL 0.018s] 17454                                     
INFO     19:42:30.836 │ Click (1197,  636) @ BATTLE_PREPARATION                    
INFO     19:42:31.108 │ [Automation] ON                                            
INFO     19:42:36.538 │ <<< EMOTION REDUCE >>>                                     
INFO     19:42:36.551 │ Bind task ['General', 'Alas', 'TaskBalancer',              
         'EventGeneral', 'Raid']                                                   
INFO     19:42:36.553 │ Save config ./config\alas2.json,                           
         Raid.Emotion.Fleet1Value=148,                                             
         Raid.Emotion.Fleet1Record=datetime.datetime(2024, 4, 6, 19, 42, 36),      
         Raid.Emotion.Fleet2Value=119,                                             
         Raid.Emotion.Fleet2Record=datetime.datetime(2024, 4, 6, 19, 42, 36)       
INFO     19:42:36.576 │ [Emotion fleet_1] 148                                      
INFO     19:42:36.577 │ [Emotion fleet_2] 119                                      
INFO     19:42:36.578 │ Combat execute                                             
INFO     19:42:41.646 │ Combat auto check timer reached                            
INFO     19:45:36.822 │ Function calls:                                            
                   <string>   L1 <module>                                          
                   spawn.py L105 spawn_main()                                      
                   spawn.py L118 _main()                                           
                 process.py L297 _bootstrap()                                      
                 process.py  L99 run()                                             
         process_manager.py L151 run_process()                                     
                    alas.py L514 loop()                                            
                    alas.py  L68 run()                                             
                    alas.py L367 raid()                                            
                     run.py L124 run()                                             
                    raid.py L326 raid_execute_once()                               
                  combat.py L513 combat()                                          
                  combat.py L236 combat_execute()                                  
                  device.py L124 screenshot()                                      
                  device.py L170 stuck_record_check()                              
                  device.py  L41 show_function_call()                              
WARNING  19:45:36.826 │ Wait too long                                              
WARNING  19:45:36.826 │ Waiting for {'PAUSE', 'GET_ITEMS_1', 'BATTLE_STATUS_A',    
         'BATTLE_STATUS_D', 'GET_ITEMS_3', 'BATTLE_STATUS_C', 'BATTLE_STATUS_CF',  
         'COMBAT_AUTO_150', 'BATTLE_STATUS_B', 'GAME_TIPS',                        
         'AUTOMATION_CONFIRM_CHECK', 'POPUP_CANCEL', 'COMBAT_AUTO', 'STORY_CLOSE', 
         'STORY_SKIP_3', 'COMBAT_AUTO_133', 'BATTLE_STATUS_S', 'GET_ITEMS_2'}      
INFO     19:45:36.885 │ [Package_name] com.bilibili.blhx.m4399                     
ERROR    19:45:36.886 │ GameStuckError: Wait too long                              
WARNING  19:45:36.887 │ Saving error: ./log/error/1712403936887                    
WARNING  19:45:37.054 │ Game stuck, com.bilibili.blhx.m4399 will be restarted in 10
         seconds                                                                   
WARNING  19:45:37.056 │ If you are playing by hand, please stop Alas               
INFO     19:45:37.056 │ Task call: Restart                                         
INFO     19:45:37.068 │ Bind task ['General', 'Alas', 'TaskBalancer',              
         'EventGeneral', 'Raid']                                                   
INFO     19:45:37.069 │ Save config ./config\alas2.json,                           
         Restart.Scheduler.NextRun=datetime.datetime(2024, 4, 6, 19, 45, 37),      
         Restart.Scheduler.Enable=True                                             
INFO     19:45:47.119 │ Scheduler: End task `Raid`                                 
CRITICAL 19:45:47.120 │ Task `Raid` failed 3 or more times.                        
CRITICAL 19:45:47.120 │ Possible reason #1: You haven't used it correctly. Please  
         read the help text of the options.                                        
CRITICAL 19:45:47.121 │ Possible reason #2: There is a problem with this task.     
         Please contact developers or try to fix it yourself.                      
CRITICAL 19:45:47.122 │ Request human takeover                                     
INFO     19:45:47.123 │ No provider specified, skip sending                        

截图

No response

还有别的吗?

No response

co2ffee avatar Apr 06 '24 12:04 co2ffee

发截图,渠道服不保证能用

Air111 avatar Apr 06 '24 13:04 Air111

1

co2ffee avatar Apr 06 '24 15:04 co2ffee

问题都出现在队列中存在任务的情况下,队列没有任务可以正常运行

co2ffee avatar Apr 06 '24 15:04 co2ffee

#3588

另外发截图是指发./log/error/xxx里的截图

Air111 avatar Apr 06 '24 18:04 Air111

2024-04-07_08-58-20-987754

co2ffee avatar Apr 07 '24 13:04 co2ffee

#3588

INFO 19:42:36.578 │ Combat execute INFO 19:42:41.646 │ Combat auto check timer reached INFO 19:45:36.822 │ Function calls:

你的问题跟其他任务没有关系,是因为战斗时间超过180秒了。绝大多数战斗限时都在3分钟内,这次活动5分钟是特殊。虽然我觉得在一场能持续5分钟的战斗中因为等待超过3分钟而判定"Wait too long"不太合适,但也无伤大雅。关键lme觉得不是问题,那这边就不会解决这个问题。

你再仔细观察一下,到底是战斗时间太久的时候还是存在任务的时候会出现。

Air111 avatar Apr 07 '24 14:04 Air111

战斗超时,调整你的配对

LmeSzinc avatar Apr 08 '24 16:04 LmeSzinc