Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在使用安卓真机运行游戏+电脑运行Alas时无法识别委托 #4495

Open
4 tasks done
URITL-Jimmy opened this issue Jan 6, 2025 · 5 comments
Open
4 tasks done
Labels
emulator issue / 模拟器问题 Issues caused by emulator, change emulator instead

Comments

@URITL-Jimmy
Copy link

在提问之前...

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

描述你的问题

使用手机打开游戏,用同一局域网下的电脑运行Alas,手机原始分辨率为25201080,使用scene切换分辨率到1280720,打开游戏。其他功能包括:战术学院、科研、演习、指挥喵、大舰队、主线图、大世界等均能正常使用。只有委托无法正常使用,手机已关闭任何浮窗和遮罩,游戏设置均按教程设置,使用ADB截图、minicouch控制,已打开去除图片色彩抖动,界面如截图所示。

如何复现

1.手机已经打开游戏并在主页,alas列队中下一项为 委托
2.点击启动
3.alas打开侧栏;点击进入军事委托,并且未能识别委托,在一定次数后alas点击 “紧急”并且未能识别委托。
4.alas触发重启app

预期行为

识别委托并自动接取

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════
                                       START                                       
═══════════════════════════════════════════════════════════════════════════════════
INFO     02:20:22.130 │ Start scheduler loop: alas                                 
INFO     02:20:22.172 │ [Server] cn                                                
INFO     02:20:22.188 │ Bind task ['General', 'Alas']                              
INFO     02:20:22.190 │ Pending tasks: ['Restart', 'Commission', 'Tactical',       
         'Research', 'Exercise', 'Meowfficer', 'Guild', 'Reward', 'Freebies',      
         'OpsiExplore', 'OpsiAshBeacon', 'OpsiAbyssal', 'OpsiObscure',             
         'OpsiArchive', 'OpsiAshAssist', 'Main']                                   
INFO     02:20:22.191 │ [Task] Restart (Enable, 2025-01-07 02:06:19)               
INFO     02:20:22.191 │ Bind task ['General', 'Alas', 'Restart']                   
═════════════════════════════════════ DEVICE ══════════════════════════════════════
INFO     02:20:22.479 │ DEVICE                                                     
INFO     02:20:22.480 │ [IS_ON_PHONE_CLOUD] False                                  
INFO     02:20:22.481 │ [AdbBinary] D:\Tools\AzurLaneAutoScript\toolkit\Lib\site-pa
         ckages\adbutils\binaries\adb.exe                                          
INFO     02:20:22.483 │ [AdbClient] AdbClient(127.0.0.1, 5037)                     
INFO     02:20:22.483 │ <<< DETECT DEVICE >>>                                      
INFO     02:20:22.484 │ Here are the available devices, copy to                    
         Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"         
INFO     02:20:22.485 │ 192.168.3.14:5555                                          
INFO     02:20:22.490 │ already connected to 192.168.3.14:5555                     
INFO     02:20:22.491 │ [AdbDevice] AdbDevice(serial=192.168.3.14:5555)            
INFO     02:20:22.491 │ [PackageName] com.bilibili.azurlane                        
INFO     02:20:22.492 │ [Server] cn                                                
───────────────────────────── FIND EMULATOR INSTANCE ──────────────────────────────
INFO     02:20:22.493 │ FIND EMULATOR INSTANCE                                     
WARNING  02:20:22.550 │ No emulator instance with {'serial': '192.168.3.14:5555'}, 
         serial invalid                                                            
INFO     02:20:22.551 │ Screenshot interval set to 0.3s                            
INFO     02:20:22.552 │ <<< MINITOUCH INIT >>>                                     
INFO     02:20:22.552 │ Skip task `Restart` at scheduler start                     
INFO     02:20:22.554 │ Delay task `Restart` to 2025-01-08 00:00:00                
         (server_update='00:00')                                                   
INFO     02:20:22.568 │ Bind task ['General', 'Alas', 'Restart']                   
INFO     02:20:22.569 │ Save config ./config\alas.json,                            
         Restart.Scheduler.NextRun=datetime.datetime(2025, 1, 8, 0, 0)             
INFO     02:20:22.577 │ [Server] cn                                                
INFO     02:20:22.593 │ Bind task ['General', 'Alas']                              
INFO     02:20:22.595 │ Pending tasks: ['Commission', 'Tactical', 'Research',      
         'Exercise', 'Meowfficer', 'Guild', 'Reward', 'Freebies', 'OpsiExplore',   
         'OpsiAshBeacon', 'OpsiAbyssal', 'OpsiObscure', 'OpsiArchive',             
         'OpsiAshAssist', 'Main']                                                  
INFO     02:20:22.596 │ [Task] Commission (Enable, 2025-01-07 01:59:08)            
INFO     02:20:22.597 │ Bind task ['General', 'Alas', 'Commission']                
INFO     02:20:22.599 │ Scheduler: Start task `Commission`                         
═══════════════════════════════════════════════════════════════════════════════════
                                    COMMISSION                                     
═══════════════════════════════════════════════════════════════════════════════════
INFO     02:20:22.603 │ [Device Orientation] 1 (HOME key on the right)             
INFO     02:20:22.604 │ Reuse forward: ForwardItem(serial='192.168.3.14:5555',     
         local='tcp:20526', remote='localabstract:minitouch')                      
INFO     02:20:23.379 │ [Screen_size] 1280x720                                     
INFO     02:20:23.504 │ early_ocr_import call                                      
INFO     02:20:23.506 │ early_ocr_import start                                     
INFO     02:20:23.506 │ <<< UI ENSURE >>>                                          
INFO     02:20:23.508 │ UI get current page                                        
INFO     02:20:23.508 │ Loading OCR dependencies                                   
INFO     02:20:23.537 │ [UI] page_main                                             
INFO     02:20:23.537 │ Goto page_reward                                           
INFO     02:20:23.539 │ <<< UI GOTO PAGE_REWARD >>>                                
ERROR    02:20:23.628 │ MinitouchOccupiedError: Timeout when connecting to         
         minitouch, probably because another connection has been established       
INFO     02:20:23.654 │ Restart ATX                                                
INFO     02:20:23.711 │ Page switch: page_main_white -> page_reward                
INFO     02:20:23.712 │ Click (  18,  227) @ MAIN_GOTO_REWARD_WHITE                
INFO     02:20:24.001 │ early_ocr_import finish                                    
INFO     02:20:24.500 │ <<< MINITOUCH INIT >>>                                     
INFO     02:20:24.540 │ [Device Orientation] 1 (HOME key on the right)             
INFO     02:20:24.541 │ Create forward: ForwardItem(serial='192.168.3.14:5555',    
         local='tcp:20698', remote='localabstract:minitouch')                      
INFO     02:20:24.544 │                                                            
INFO     02:20:24.545 │                                                            
INFO     02:20:25.549 │ v 1                                                        
INFO     02:20:25.550 │ ^ 10 720 1280 0                                            
INFO     02:20:25.551 │ $ 19418                                                    
INFO     02:20:25.551 │ minitouch running on port: 20698, pid: 19418               
INFO     02:20:25.552 │ max_contact: 10; max_x: 720; max_y: 1280; max_pressure: 0  
INFO     02:20:27.397 │ Page arrive: page_reward                                   
INFO     02:20:27.398 │ <<< REWARD RECEIVE >>>                                     
INFO     02:20:27.425 │ Click ( 459,  287) @ REWARD_GOTO_COMMISSION_WHITE          
═════════════════════════════════ COMMISSION SCAN ═════════════════════════════════
INFO     02:20:28.633 │ COMMISSION SCAN                                            
INFO     02:20:28.634 │ Commission_switch set to urgent                            
INFO     02:20:28.635 │ [Commission_switch] unknown                                
INFO     02:20:29.215 │ [Commission_switch] unknown                                
INFO     02:20:29.753 │ [Commission_switch] unknown                                
INFO     02:20:30.320 │ [Commission_switch] unknown                                
INFO     02:20:30.889 │ [Commission_switch] unknown                                
INFO     02:20:31.443 │ [Commission_switch] unknown                                
INFO     02:20:31.995 │ [Commission_switch] unknown                                
INFO     02:20:32.554 │ [Commission_switch] unknown                                
INFO     02:20:33.100 │ [Commission_switch] unknown                                
INFO     02:20:33.653 │ [Commission_switch] unknown                                
INFO     02:20:34.205 │ [Commission_switch] unknown                                
WARNING  02:20:34.206 │ Switch Commission_switch has states evaluated to unknown,  
         asset should be re-verified                                               
INFO     02:20:34.207 │ Click (  57,  258) @ COMMISSION_URGENT                     
INFO     02:20:34.818 │ [Commission_switch] unknown                                
INFO     02:20:35.365 │ [Commission_switch] unknown                                
INFO     02:20:35.911 │ [Commission_switch] unknown                                
INFO     02:20:36.476 │ [Commission_switch] unknown                                
INFO     02:20:36.477 │ Click (  58,  264) @ COMMISSION_URGENT                     
INFO     02:20:37.070 │ [Commission_switch] unknown                                
INFO     02:20:37.611 │ [Commission_switch] unknown                                
INFO     02:20:38.167 │ [Commission_switch] unknown                                
INFO     02:20:38.701 │ [Commission_switch] unknown                                
INFO     02:20:38.702 │ Click (  51,  247) @ COMMISSION_URGENT                     
INFO     02:20:39.328 │ [Commission_switch] unknown                                
INFO     02:20:39.874 │ [Commission_switch] unknown                                
INFO     02:20:40.440 │ [Commission_switch] unknown                                
INFO     02:20:40.974 │ [Commission_switch] unknown                                
INFO     02:20:40.975 │ Click (  47,  252) @ COMMISSION_URGENT                     
INFO     02:20:41.585 │ [Commission_switch] unknown                                
INFO     02:20:42.129 │ [Commission_switch] unknown                                
INFO     02:20:42.708 │ [Commission_switch] unknown                                
INFO     02:20:43.251 │ [Commission_switch] unknown                                
INFO     02:20:43.252 │ Click (  52,  257) @ COMMISSION_URGENT                     
INFO     02:20:43.848 │ [Commission_switch] unknown                                
INFO     02:20:44.392 │ [Commission_switch] unknown                                
INFO     02:20:44.937 │ [Commission_switch] unknown                                
INFO     02:20:45.504 │ [Commission_switch] unknown                                
INFO     02:20:45.505 │ Click (  55,  253) @ COMMISSION_URGENT                     
INFO     02:20:46.090 │ [Commission_switch] unknown                                
INFO     02:20:46.636 │ [Commission_switch] unknown                                
INFO     02:20:47.191 │ [Commission_switch] unknown                                
INFO     02:20:47.741 │ [Commission_switch] unknown                                
INFO     02:20:47.742 │ Click (  59,  236) @ COMMISSION_URGENT                     
INFO     02:20:48.349 │ [Commission_switch] unknown                                
INFO     02:20:48.893 │ [Commission_switch] unknown                                
INFO     02:20:49.465 │ [Commission_switch] unknown                                
INFO     02:20:49.990 │ [Commission_switch] unknown                                
INFO     02:20:49.991 │ Click (  44,  252) @ COMMISSION_URGENT                     
INFO     02:20:50.589 │ [Commission_switch] unknown                                
INFO     02:20:51.124 │ [Commission_switch] unknown                                
INFO     02:20:51.691 │ [Commission_switch] unknown                                
INFO     02:20:52.306 │ [Commission_switch] unknown                                
INFO     02:20:52.308 │ Click (  43,  251) @ COMMISSION_URGENT                     
INFO     02:20:52.926 │ [Commission_switch] unknown                                
INFO     02:20:53.465 │ [Commission_switch] unknown                                
INFO     02:20:54.007 │ [Commission_switch] unknown                                
INFO     02:20:54.550 │ [Commission_switch] unknown                                
INFO     02:20:54.551 │ Click (  41,  265) @ COMMISSION_URGENT                     
INFO     02:20:55.151 │ [Commission_switch] unknown                                
INFO     02:20:55.713 │ [Commission_switch] unknown                                
INFO     02:20:56.263 │ [Commission_switch] unknown                                
INFO     02:20:56.820 │ [Commission_switch] unknown                                
INFO     02:20:56.821 │ Click (  56,  242) @ COMMISSION_URGENT                     
INFO     02:20:57.408 │ [Commission_switch] unknown                                
INFO     02:20:57.969 │ [Commission_switch] unknown                                
INFO     02:20:58.517 │ [Commission_switch] unknown                                
INFO     02:20:59.044 │ [Commission_switch] unknown                                
INFO     02:20:59.046 │ 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 L162 run_process()                                     
                    alas.py L541 loop()                                            
                    alas.py  L69 run()                                             
                    alas.py L190 commission()                                      
              commission.py L587 run()                                             
              commission.py L473 commission_start()                                
              commission.py L282 _commission_scan_all()                            
              commission.py L205 _commission_ensure_mode()                         
                  switch.py L182 set()                                             
                  switch.py  L87 click()                                           
                 control.py  L37 click()                                           
                  device.py L259 handle_control_check()                            
                  device.py L295 click_record_check()                              
                  device.py  L43 show_function_call()                              
WARNING  02:20:59.049 │ Too many click for a button: COMMISSION_URGENT             
WARNING  02:20:59.050 │ History click: ['MAIN_GOTO_REWARD_WHITE',                  
         'REWARD_GOTO_COMMISSION_WHITE', 'COMMISSION_URGENT', 'COMMISSION_URGENT', 
         'COMMISSION_URGENT', 'COMMISSION_URGENT', 'COMMISSION_URGENT',            
         'COMMISSION_URGENT', 'COMMISSION_URGENT', 'COMMISSION_URGENT',            
         'COMMISSION_URGENT', 'COMMISSION_URGENT', 'COMMISSION_URGENT',            
         'COMMISSION_URGENT']                                                      
ERROR    02:20:59.050 │ GameTooManyClickError: Too many click for a button:        
         COMMISSION_URGENT                                                         
WARNING  02:20:59.052 │ Saving error: ./log/error/1736187659052                    
WARNING  02:20:59.347 │ Game stuck, com.bilibili.azurlane will be restarted in 10  
         seconds                                                                   
WARNING  02:20:59.348 │ If you are playing by hand, please stop Alas               
INFO     02:20:59.349 │ Task call: Restart                                         
INFO     02:20:59.357 │ Bind task ['General', 'Alas', 'Commission']                
INFO     02:20:59.358 │ Save config ./config\alas.json,                            
         Restart.Scheduler.NextRun=datetime.datetime(2025, 1, 7, 2, 20, 59),       
         Restart.Scheduler.Enable=True                                             
[alas] exited. Reason: Manual stop

截图

Screenshot_20250107-020747
2025-01-07_02-20-59-044238
log.txt

还有别的吗?

19201080截图为手机截图、1280720为Alas的log文件截图。手机为sony Xperia 5II,颜色模式设置为标准,白平衡默认,未开启深色主题。

@URITL-Jimmy URITL-Jimmy added the bug / 缺陷 Something isn't working label Jan 6, 2025
@URITL-Jimmy
Copy link
Author

补充:使用另一台电脑部署Alas连接这台Sony Xperia 5II仍然无法执行委托命令中的识别。更换另一台红魔8sPro采用同样的方法修改分辨率并连接到Alas可正常执行委托任务。可能是Sony Xperia 5II的显示有问题,附上可以正常执行的红魔8sPro手机的委托界面截图。(我简单看了一下,元素位置没区别,log截图的色彩和两台真机截图的色彩有差别)
b73a080fd0a1b9b687769a89dbc926d1

@LmeSzinc LmeSzinc added emulator issue / 模拟器问题 Issues caused by emulator, change emulator instead and removed bug / 缺陷 Something isn't working labels Jan 9, 2025
@D9Lose
Copy link

D9Lose commented Jan 14, 2025

试试alas的去除手机截图抖动?

@LmeSzinc
Copy link
Owner

你的截图泛白

@RQY233
Copy link

RQY233 commented Jan 24, 2025

我超,我才遇到这个问题,我是x5iii,同一时间我在另一部别的手机上挂就正常,到索尼上就跟你的状况一样

@RQY233
Copy link

RQY233 commented Jan 24, 2025

试试alas的去除手机截图抖动?

我也有这个问题,开那个去抖动也还是会这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emulator issue / 模拟器问题 Issues caused by emulator, change emulator instead
Projects
None yet
Development

No branches or pull requests

4 participants