LmeSzinc / AzurLaneAutoScript

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

Warning message : Too many click for a button: FLEET_1_CHOOSE #3864

Open angelo42645 opened 4 weeks ago

angelo42645 commented 4 weeks ago

Before you asking

Describe the bug

Hello, Thank you for this script, it is very usefull and must have been a lot of work.

My issue is : everything works except when I use "event" or "farm" options. Alas gets stuck at selecting fleet 1 > too many clicks and then restarts the game.

I guess I need to make him go out of this loop but i am no programmer. Or maybe I dont understand something.

Please help me

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

No response

Relevant log output

INFO     13:28:44.049 │ 1-4                                                        
INFO     13:28:44.053 │ Expect emotion reduce: (8, 0)                              
INFO     13:28:44.109 │ Bind task ['General', 'Alas', 'Main']                      
INFO     13:28:44.114 │ Save config ./config\alas.json,                            
         Main.Emotion.Fleet1Value=119,                                             
         Main.Emotion.Fleet1Record=datetime.datetime(2024, 6, 8, 13, 28, 44),      
         Main.Emotion.Fleet2Value=119,                                             
         Main.Emotion.Fleet2Record=datetime.datetime(2024, 6, 8, 13, 28, 44)       
INFO     13:28:44.143 │ [Emotion fleet_1] 119                                      
INFO     13:28:44.146 │ [Emotion fleet_2] 119                                      
INFO     13:28:44.149 │ <<< ENTER MAP >>>                                          
INFO     13:28:44.220 │ Click ( 762,  210) @ 1-4                                   
INFO     13:28:45.802 │ [Map_clear_percentage] 0.997093023255814                   
INFO     13:28:46.140 │ [Map_clear_percentage] 0.997093023255814                   
INFO     13:28:46.452 │ [Map_clear_percentage] 0.997093023255814                   
INFO     13:28:46.456 │ [MAP_CLEAR_ALL_THIS_TIME] False                            
INFO     13:28:46.459 │ [Map_info] 99%, star_1, star_2, star_3, 100_percent_clear, 
         3_stars, threat_safe, clear_mode                                          
INFO     13:28:46.463 │ [StopCondition_MapAchievement] non_stop                    
INFO     13:28:46.466 │ [Fast_Forward] on                                          
INFO     13:28:46.481 │ [Auto_Search] on                                           
INFO     13:28:46.483 │ Click ( 989,  530) @ MAP_PREPARATION                       
INFO     13:28:47.976 │ Handling 2x book setting, mode=prep.                       
INFO     13:28:48.991 │ Map do not have 2x book setting                            
INFO     13:28:48.994 │ Using fleet: [1, 0, 0]                                     
INFO     13:28:49.099 │ Hard satisfied: Fleet_1: None, Fleet_2: None, Submarine:   
         None                                                                      
INFO     13:28:49.111 │ Click (1036,  222) @ FLEET_1_CHOOSE                        
INFO     13:28:52.258 │ Click (1033,  223) @ FLEET_1_CHOOSE                        
INFO     13:28:55.474 │ Click (1036,  216) @ FLEET_1_CHOOSE                        
INFO     13:28:58.778 │ Click (1023,  210) @ FLEET_1_CHOOSE                        
INFO     13:29:02.689 │ Click (1022,  229) @ FLEET_1_CHOOSE                        
INFO     13:29:05.760 │ Click (1042,  210) @ FLEET_1_CHOOSE                        
INFO     13:29:08.911 │ Click (1028,  239) @ FLEET_1_CHOOSE                        
INFO     13:29:12.121 │ Click (1025,  216) @ FLEET_1_CHOOSE                        
INFO     13:29:15.726 │ Click (1030,  215) @ FLEET_1_CHOOSE                        
INFO     13:29:19.132 │ Click (1018,  224) @ FLEET_1_CHOOSE                        
INFO     13:29:22.382 │ Click (1040,  225) @ FLEET_1_CHOOSE                        
INFO     13:29:25.588 │ 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 L152 run_process()                               
                          alas.py L535 loop()                                      
                          alas.py  L68 run()                                       
                          alas.py L343 main()                                      
                           run.py L387 run()                                       
                 campaign_base.py L125 run()                                       
                 map_operation.py L175 enter_map()                                 
         map_fleet_preparation.py L343 fleet_preparation()                         
         map_fleet_preparation.py L267 ensure_to_be()                              
         map_fleet_preparation.py L175 open()                                      
                       control.py  L37 click()                                     
                        device.py L232 handle_control_check()                      
                        device.py L268 click_record_check()                        
                        device.py  L40 show_function_call()                        
WARNING  13:29:25.598 │ Too many click for a button: FLEET_1_CHOOSE                
WARNING  13:29:25.601 │ History click: ['1-4', 'MAP_PREPARATION', 'FLEET_1_CHOOSE',
         'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE',   
         'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE',   
         'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE', 'FLEET_1_CHOOSE']                     
ERROR    13:29:25.605 │ GameTooManyClickError: Too many click for a button:        
         FLEET_1_CHOOSE                                                            
WARNING  13:29:25.609 │ Saving error: ./log/error/1717846165609                    
WARNING  13:29:26.178 │ Game stuck, com.YoStarEN.AzurLane will be restarted in 10  
         seconds                                                                   
WARNING  13:29:26.182 │ If you are playing by hand, please stop Alas               
INFO     13:29:26.185 │ Task call: Restart                                         
INFO     13:29:26.225 │ Bind task ['General', 'Alas', 'Main']                      
INFO     13:29:26.228 │ Save config ./config\alas.json,                            
         Restart.Scheduler.NextRun=datetime.datetime(2024, 6, 8, 13, 29, 26),      
         Restart.Scheduler.Enable=True                                             
INFO     13:29:36.246 │ Scheduler: End task `Main`                                 
INFO     13:29:36.251 │ [Server] en                                                
INFO     13:29:36.309 │ Bind task ['General', 'Alas']                              
INFO     13:29:36.314 │ Pending tasks: ['Restart', 'Main']                         
INFO     13:29:36.317 │ [Task] Restart (Enable, 2024-06-08 13:29:26)               
INFO     13:29:36.318 │ Bind task ['General', 'Alas', 'Restart']                   
INFO     13:29:36.331 │ Scheduler: Start task `Restart`

Screenshots

No response

Anything else?

No response

LmeSzinc commented 4 weeks ago

buy command level boost pack go lvl70 and clear 5-4

angelo42645 commented 4 weeks ago

I did not understand your answer

Is it because I am too low level ?

angelo42645 commented 4 weeks ago

Thanks for your answer anyway

LmeSzinc commented 3 weeks ago

yes, game systems need to be unlocked before running and that's the fastest way to unlock