LmeSzinc / AzurLaneAutoScript

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

跳过刷委托转而执行侵蚀1(石油判断问题?无法确认日志是否这个意思) #1998

Closed familior closed 1 year ago

familior commented 1 year ago

在提问之前...

描述你的问题

不太确定是否是bug,还是优先级的问题。 但观察到,石油限制,但当前石油为254,而设置的停止条件是低于150油,理应继续执行 2022-12-13 16:20:14.569 | INFO | [OCR_OIL 0.032s] 254
2022-12-13 16:20:14.572 | INFO | <<< TRIGGERED STOP CONDITION: OIL LIMIT >>>
截图_20221213162859 满足刷委托的条件,但会自动跳过刷委托转而执行侵蚀1。

如何复现

  1. 选择刷紧急委托和侵蚀1
  2. 启动
  3. 先找2-4的地图,然后退出转去执行刷侵蚀1
  4. 出现问题

预期行为

心情足够时候刷紧急委托,心情不足后,转而刷侵蚀1

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                         START                                                         
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2022-12-13 16:20:06.657 | INFO | Start scheduler loop: alas                                                            
2022-12-13 16:20:06.661 | INFO | [Server] cn                                                                           
2022-12-13 16:20:06.680 | INFO | Bind task {'Alas', 'General'}                                                         
2022-12-13 16:20:06.805 | INFO | Server "波茨坦公告" is available.                                                     
2022-12-13 16:20:06.809 | INFO | Pending tasks: ['GemsFarming', 'OpsiHazard1Leveling']                                 
2022-12-13 16:20:06.811 | INFO | [Task] GemsFarming (Enable, 2020-01-01 00:00:00)                                      
2022-12-13 16:20:06.814 | INFO | Bind task {'EventGeneral', 'Alas', 'General', 'TaskBalancer', 'GemsFarming'}          
═══════════════════════════════════════════════════════ DEVICE ════════════════════════════════════════════════════════
2022-12-13 16:20:08.156 | INFO | DEVICE                                                                                
2022-12-13 16:20:08.159 | INFO | [AdbBinary] D:\Program Files                                                          
(Green)\AzurLaneAutoScript\toolkit\Lib\site-packages\adbutils\binaries\adb.exe                                         
2022-12-13 16:20:08.163 | INFO | [AdbClient] AdbClient(127.0.0.1, 5037)                                                
2022-12-13 16:20:08.166 | INFO | <<< DETECT DEVICE >>>                                                                 
2022-12-13 16:20:08.168 | INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set         
Alas.Emulator.Serial="auto"                                                                                            
2022-12-13 16:20:08.171 | INFO | emulator-5554                                                                         
2022-12-13 16:20:08.173 | INFO | Current serial 127.0.0.1:5555 not found but paired device emulator-5554 found. Using  
serial: emulator-5554                                                                                                  
2022-12-13 16:20:08.175 | INFO | [AdbDevice] AdbDevice(serial=emulator-5554)                                           
2022-12-13 16:20:08.178 | INFO | [PackageName] com.bilibili.azurlane                                                   
2022-12-13 16:20:08.180 | INFO | [Server] cn                                                                           
2022-12-13 16:20:08.182 | INFO | Screenshot interval set to 0.3s                                                       
2022-12-13 16:20:08.185 | INFO | Scheduler: Start task `GemsFarming`                                                   
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                      GEMSFARMING                                                      
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2022-12-13 16:20:08.191 | INFO | Connecting to local emulator, using host 172.16.85.125                                
2022-12-13 16:20:08.203 | INFO | Reverse server listening on 172.16.85.125:20156, client can send data to              
172.16.85.125:20156                                                                                                    
2022-12-13 16:20:08.213 | INFO | [nc command] ['nc']                                                                   
2022-12-13 16:20:08.357 | INFO | [Screen_size] 1280x720                                                                
════════════════════════════════════════════════════ CAMPAIGN_2_4 ═════════════════════════════════════════════════════
2022-12-13 16:20:08.448 | INFO | CAMPAIGN_2_4                                                                          
2022-12-13 16:20:08.450 | INFO | Count: 0                                                                              
2022-12-13 16:20:08.470 | INFO | <<< UI ENSURE >>>                                                                     
2022-12-13 16:20:08.472 | INFO | UI get current page                                                                   
2022-12-13 16:20:08.483 | INFO | [UI] page_main                                                                        
2022-12-13 16:20:08.485 | INFO | Goto page_campaign                                                                    
2022-12-13 16:20:08.488 | INFO | <<< UI GOTO PAGE_CAMPAIGN >>>                                                         
2022-12-13 16:20:08.607 | INFO | Page switch: page_main -> page_campaign_menu                                          
2022-12-13 16:20:08.609 | INFO | Click (1092,  324) @ MAIN_GOTO_CAMPAIGN                                               
2022-12-13 16:20:08.612 | INFO | <<< MINITOUCH INIT >>>                                                                
2022-12-13 16:20:08.622 | INFO | [Device Orientation] 0 (Normal)                                                       
2022-12-13 16:20:08.625 | INFO | Reuse forward: ForwardItem(serial='emulator-5554', local='tcp:20734',                 
remote='localabstract:minitouch')                                                                                      
2022-12-13 16:20:08.631 | INFO | v 1                                                                                   
2022-12-13 16:20:08.634 | INFO | ^ 2 32767 32767 0                                                                     
2022-12-13 16:20:08.636 | INFO | $ 16130                                                                               
2022-12-13 16:20:08.638 | INFO | minitouch running on port: 20734, pid: 16130                                          
2022-12-13 16:20:08.640 | INFO | max_contact: 2; max_x: 32767; max_y: 32767; max_pressure: 0                           
2022-12-13 16:20:09.362 | INFO | Page switch: page_campaign_menu -> page_campaign                                      
2022-12-13 16:20:09.402 | INFO | Click ( 380,  400) @ CAMPAIGN_MENU_GOTO_CAMPAIGN                                      
2022-12-13 16:20:10.244 | INFO | Page arrive: page_campaign                                                            
2022-12-13 16:20:10.282 | INFO | [Mode_switch_1] hard                                                                  
2022-12-13 16:20:10.285 | INFO | <<< UI ENSURE INDEX >>>                                                               
2022-12-13 16:20:10.332 | INFO | No stage found.                                                                       
2022-12-13 16:20:10.845 | INFO | Loading OCR model: ./bin/cnocr_models/azur_lane                                       
2022-12-13 16:20:10.936 | INFO | [campaign 0.109s] ['12--1', '12--3', '12--2', '12--4']                                
2022-12-13 16:20:10.940 | INFO | [Chapter] 12                                                                          
2022-12-13 16:20:10.943 | INFO | [Stage] 12-1, 12-3, 12-2, 12-4                                                        
2022-12-13 16:20:10.946 | INFO | [Index] 12                                                                            
2022-12-13 16:20:11.201 | INFO | Click (  47,  370) @ CHAPTER_PREV                                                     
2022-12-13 16:20:11.447 | INFO | Click (  54,  371) @ CHAPTER_PREV                                                     
2022-12-13 16:20:11.700 | INFO | Click (  48,  368) @ CHAPTER_PREV                                                     
2022-12-13 16:20:11.943 | INFO | Click (  55,  364) @ CHAPTER_PREV                                                     
2022-12-13 16:20:12.185 | INFO | Click (  48,  362) @ CHAPTER_PREV                                                     
2022-12-13 16:20:12.465 | INFO | Click (  51,  374) @ CHAPTER_PREV                                                     
2022-12-13 16:20:12.690 | INFO | Click (  55,  374) @ CHAPTER_PREV                                                     
2022-12-13 16:20:12.947 | INFO | Click (  50,  377) @ CHAPTER_PREV                                                     
2022-12-13 16:20:13.189 | INFO | Click (  55,  375) @ CHAPTER_PREV                                                     
2022-12-13 16:20:13.417 | INFO | Click (  50,  371) @ CHAPTER_PREV                                                     
2022-12-13 16:20:13.879 | INFO | No stage found.                                                                       
2022-12-13 16:20:14.186 | INFO | No stage found.                                                                       
2022-12-13 16:20:14.525 | INFO | [campaign 0.041s] ['2--2', '2--3', '2--1', '2--4']                                    
2022-12-13 16:20:14.528 | INFO | [Chapter] 2                                                                           
2022-12-13 16:20:14.530 | INFO | [Stage] 2-2, 2-3, 2-1, 2-4                                                            
2022-12-13 16:20:14.532 | INFO | [Index] 2                                                                             
2022-12-13 16:20:14.569 | INFO | [OCR_OIL 0.032s] 254                                                                  
2022-12-13 16:20:14.572 | INFO | <<< TRIGGERED STOP CONDITION: OIL LIMIT >>>                                           
2022-12-13 16:20:14.576 | INFO | Delay task `GemsFarming` to 2022-12-13 19:28:56 (minute=(120, 240))                   
2022-12-13 16:20:14.597 | INFO | Bind task {'EventGeneral', 'Alas', 'General', 'TaskBalancer', 'GemsFarming'}          
2022-12-13 16:20:14.600 | INFO | Save config ./config\alas.json, GemsFarming.Scheduler.NextRun=datetime.datetime(2022, 
12, 13, 19, 28, 56)                                                                                                    
2022-12-13 16:20:14.614 | INFO | Scheduler: End task `GemsFarming`                                                     
2022-12-13 16:20:14.617 | INFO | [Server] cn                                                                           
2022-12-13 16:20:14.638 | INFO | Bind task {'Alas', 'General'}                                                         
2022-12-13 16:20:14.644 | INFO | Pending tasks: ['OpsiHazard1Leveling']                                                
2022-12-13 16:20:14.646 | INFO | [Task] OpsiHazard1Leveling (Enable, 2020-01-01 00:00:00)                              
2022-12-13 16:20:14.648 | INFO | Bind task {'OpsiHazard1Leveling', 'Alas', 'OpsiGeneral', 'General'}                   
2022-12-13 16:20:14.659 | INFO | Scheduler: Start task `OpsiHazard1Leveling`                                           
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                  OPSIHAZARD1LEVELING                                                  
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2022-12-13 16:20:15.129 | INFO | Bind task {'OpsiHazard1Leveling', 'Alas', 'OpsiGeneral', 'General'}                   
2022-12-13 16:20:15.132 | INFO | Save config ./config\alas.json, OpsiMeowfficerFarming.Scheduler.Enable=True           
═══════════════════════════════════════════════════════ OS INIT ═══════════════════════════════════════════════════════
2022-12-13 16:20:15.142 | INFO | OS INIT                                                                               
2022-12-13 16:20:15.173 | INFO | <<< UI ENSURE >>>                                                                     
2022-12-13 16:20:15.176 | INFO | UI get current page                                                                   
2022-12-13 16:20:15.184 | INFO | [UI] page_campaign                                                                    
2022-12-13 16:20:15.186 | INFO | Goto page_os                                                                          
2022-12-13 16:20:15.188 | INFO | <<< UI GOTO PAGE_OS >>>                                                               
2022-12-13 16:20:15.209 | INFO | Page switch: page_campaign -> page_campaign_menu                                      
2022-12-13 16:20:15.212 | INFO | Click (  70,   62) @ BACK_ARROW                                                       
2022-12-13 16:20:15.693 | INFO | Page switch: page_campaign_menu -> page_os                                            
2022-12-13 16:20:15.695 | INFO | Click ( 697,  389) @ CAMPAIGN_MENU_GOTO_OS                                            
2022-12-13 16:20:17.066 | INFO | Page arrive: page_os                                                                  
2022-12-13 16:20:17.068 | INFO | <<< ZONE INIT >>>                                                                     
2022-12-13 16:20:17.079 | INFO | Get zone name                                                                         
2022-12-13 16:20:17.131 | INFO | Loading OCR model: ./bin/cnocr_models/cnocr                                           
2022-12-13 16:20:17.235 | INFO | [MAP_NAME 0.121s] 西大陆架D-安全海域                                                  
2022-12-13 16:20:17.238 | INFO | Map name processed: 西大陆架D                                                         
2022-12-13 16:20:17.243 | INFO | [Zone] [44|West Continental Shelf D]                                                  
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2022-12-13 16:20:17.247 | INFO | AFTER AUTO SEARCH                                                                     
2022-12-13 16:20:17.268 | INFO | No EMP debuff on current fleet                                                        
2022-12-13 16:20:17.276 | INFO | [HP]  98%  98%  98%  98%  98%  98%                                                    
2022-12-13 16:20:17.282 | INFO | [Repair icon] [False, False, False, False, False, False]                              
2022-12-13 16:20:17.285 | INFO | No ship found to be below threshold 0%, continue OS exploration                       
2022-12-13 16:20:17.288 | INFO | Handle after auto search finished, solved=False                                       
2022-12-13 16:20:17.291 | INFO | Current fleet is not afflicted with the low resolve debuff                            
2022-12-13 16:20:17.295 | INFO | In zone 22, 44, 154, skip running first auto search                                   
2022-12-13 16:20:17.298 | INFO | Ash beacon status: gray                                                               
2022-12-13 16:20:17.334 | INFO | [ASH_COLLECT_STATUS 0.033s] 0/200                                                     
2022-12-13 16:20:17.365 | INFO | [ASH_DAILY_STATUS 0.027s] 200/200                                                     
2022-12-13 16:20:17.369 | INFO | Ash beacon fully collected today                                                      
════════════════════════════════════════════════ OS HAZARD 1 LEVELING ═════════════════════════════════════════════════
2022-12-13 16:20:17.373 | INFO | OS HAZARD 1 LEVELING                                                                  
2022-12-13 16:20:17.375 | INFO | [OS_ACTION_POINT_PRESERVE] 200                                                        
2022-12-13 16:20:17.411 | INFO | [SHOP_YELLOW_COINS 0.033s] 110386                                                     
2022-12-13 16:20:17.468 | INFO | [MAP_NAME 0.054s] 西大陆架D-安全海域                                                  
2022-12-13 16:20:17.471 | INFO | Map name processed: 西大陆架D                                                         
2022-12-13 16:20:17.474 | INFO | [Zone] [44|West Continental Shelf D]                                                  
2022-12-13 16:20:17.476 | INFO | <<< UI CLICK >>>                                                                      
2022-12-13 16:20:17.925 | INFO | Click ( 897,   34) @ ACTION_POINT_REMAIN_OS                                           
2022-12-13 16:20:19.188 | INFO | [Amount_ocr 0.071s] [254, 59, 4, 1]                                                   
2022-12-13 16:20:19.213 | INFO | [ACTION_POINT_REMAIN 0.022s] 136                                                      
2022-12-13 16:20:19.216 | INFO | Action points: 136(1616), oil: 254                                                    
2022-12-13 16:20:19.219 | INFO | Having enough action points                                                           
2022-12-13 16:20:19.222 | INFO | <<< UI CLICK >>>                                                                      
2022-12-13 16:20:19.236 | INFO | Click ( 421,  549) @ ACTION_POINT_CANCEL                                              
══════════════════════════════════════════ OS HAZARD 1 LEVELING, ZONE_ID=44 ═══════════════════════════════════════════
2022-12-13 16:20:19.862 | INFO | OS HAZARD 1 LEVELING, ZONE_ID=44                                                      
2022-12-13 16:20:19.864 | INFO | <<< FLEET SET TO 4 >>>                                                                
2022-12-13 16:20:19.905 | INFO | It is fleet 4 already                                                                 
───────────────────────────────────────────────── RUN STRATEGY SEARCH ─────────────────────────────────────────────────
2022-12-13 16:20:19.909 | INFO | RUN STRATEGY SEARCH                                                                   
2022-12-13 16:20:19.911 | INFO | <<< STRATEGIC SEARCH START >>>                                                        
2022-12-13 16:20:19.913 | INFO | Strategic search enter                                                                
2022-12-13 16:20:19.916 | INFO | Click (1239,  607) @ STRATEGIC_SEARCH_MAP_OPTION_OFF                                  
2022-12-13 16:20:20.577 | INFO | Strategic search set option                                                           
2022-12-13 16:20:20.580 | INFO | [zone_mode] repeat                                                                    
2022-12-13 16:20:20.582 | INFO | [encounter_merchant] stop                                                             
2022-12-13 16:20:20.585 | INFO | STRATEGIC_SEARCH_SCROLL_AREA set to 0.5                                               
2022-12-13 16:20:20.587 | INFO | [STRATEGIC_SEARCH_SCROLL_AREA] 0.00 (34.5-35.0)/(193-70)                              
2022-12-13 16:20:20.590 | INFO | Swipe ( 904,  314) -> ( 908,  378)                                                    
2022-12-13 16:20:21.185 | INFO | [STRATEGIC_SEARCH_SCROLL_AREA] 0.51 (98.0-35.5)/(193-71)                              
2022-12-13 16:20:21.201 | INFO | [encounter_device] stop                                                               
2022-12-13 16:20:21.203 | INFO | STRATEGIC_SEARCH_SCROLL_AREA set to 1.0                                               
2022-12-13 16:20:21.206 | INFO | [STRATEGIC_SEARCH_SCROLL_AREA] 0.51 (98.0-35.5)/(193-71)                              
2022-12-13 16:20:21.209 | INFO | Swipe ( 906,  370) -> ( 903,  528)                                                    
2022-12-13 16:20:21.860 | INFO | [STRATEGIC_SEARCH_SCROLL_AREA] 1.00 (157.0-35.5)/(193-71)                             
2022-12-13 16:20:21.873 | INFO | [auto_submit] on                                                                      
2022-12-13 16:20:21.874 | INFO | Strategic search confirm                                                              
2022-12-13 16:20:21.879 | INFO | Click ( 785,  524) @ POPUP_CONFIRM_STRATEGIC_SEARCH

截图

image

还有别的吗?

LmeSzinc commented 1 year ago

保留石油的数值默认是1000,且不能过低。Alas 内没有对石油不足的处理,出现了石油不足的弹窗就会卡死,如果还开了红脸出击就会直接点确认买油,所以主要靠预防

familior commented 1 year ago

停止条件里的“石油低于X后停止”的X不能设置得比1000小吗? 截图_20221214130524

LmeSzinc commented 1 year ago

是的