LmeSzinc / AzurLaneAutoScript

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

MuMu国际版 使用 `nemu_opc` 截图方案时报错 Unable to initialize NemuIpc #3790

Open SinCerely023 opened 6 months ago

SinCerely023 commented 6 months ago

在提问之前...

描述你的问题

MuMu模拟器12国际版V3.2.18(2845),使用 nemu_opc 截图方案时报错:

WARNING  12:30:08.268 │ Failed to call nemu_connect, result=0                      
ERROR    12:30:08.270 │ NemuIpcError: Connection failed, please check if           
         nemu_folder is correct and emulator is running                            
ERROR    12:30:08.271 │ Unable to initialize NemuIpc  

重启模拟器、ALAS与PC均未解决。使用 DroidCast_raw 截图方案正常运行。

Windows 11 专业版 22H2 22621.1105 Alas版本:d2088613

如何复现

  1. 安装 MuMu模拟器12国际版
  2. 安装 碧蓝航线 app
  3. 设置 模拟器截图方案 为 nemu_ipc
  4. 启动 ALAS
  5. 出现问题

预期行为

能够正常使用MuMu增专属截图方案 nemu_ipc

相关 Logs

═══════════════════════════════════════════════════════════════════════════════════
                                       START                                       
═══════════════════════════════════════════════════════════════════════════════════
INFO     12:30:06.419 │ Start scheduler loop: alas                                 
INFO     12:30:06.471 │ [Server] cn                                                
INFO     12:30:06.484 │ Bind task ['General', 'Alas']                              
INFO     12:30:06.588 │ Server "####" is available.                              
INFO     12:30:06.591 │ Pending tasks: ['Event2']                                  
INFO     12:30:06.593 │ [Task] Event2 (Enable, 2024-05-04 14:06:00)                
INFO     12:30:06.594 │ Bind task ['General', 'Alas', 'TaskBalancer',              
         'EventGeneral', 'Event2']                                                 
═════════════════════════════════════ DEVICE ══════════════════════════════════════
INFO     12:30:06.931 │ DEVICE                                                     
INFO     12:30:06.932 │ [IS_ON_PHONE_CLOUD] False                                  
INFO     12:30:06.933 │ [AdbBinary] C:\Users\####\Desktop\AzurLaneAutoScript\t
         oolkit\Lib\site-packages\adbutils\binaries\adb.exe                        
INFO     12:30:06.935 │ [AdbClient] AdbClient(127.0.0.1, 5037)                     
INFO     12:30:06.936 │ <<< DETECT DEVICE >>>                                      
INFO     12:30:06.937 │ Here are the available devices, copy to                    
         Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"         
INFO     12:30:06.939 │ No available devices                                       
INFO     12:30:06.946 │ connected to 127.0.0.1:16384                               
INFO     12:30:06.947 │ [AdbDevice] AdbDevice(serial=127.0.0.1:16384)              
INFO     12:30:06.948 │ [PackageName] com.bilibili.azurlane                        
INFO     12:30:06.949 │ [Server] cn                                                
INFO     12:30:07.147 │ [nemud.app_keep_alive] false                               
INFO     12:30:07.148 │ Screenshot interval set to 0.2s                            
INFO     12:30:07.150 │ <<< MINITOUCH INIT >>>                                     
INFO     12:30:07.150 │ Scheduler: Start task `Event2`                             
═══════════════════════════════════════════════════════════════════════════════════
                                      EVENT2                                       
═══════════════════════════════════════════════════════════════════════════════════
INFO     12:30:07.155 │ NemuIpcImpl init, nemu_folder=C:\Program                   
         Files\Netease\MuMuPlayerGlobal-12.0, ipc_dll=C:\Program                   
         Files\Netease\MuMuPlayerGlobal-12.0\shell\sdk\external_renderer_ipc.dll,  
         instance_id=0, display_id=0                                               
WARNING  12:30:07.158 │ Failed to call nemu_connect, result=0                      
ERROR    12:30:07.161 │ NemuIpcError: Connection failed, please check if           
         nemu_folder is correct and emulator is running                            
ERROR    12:30:07.162 │ Emulator info incorrect                                    
───────────────────────────── FIND EMULATOR INSTANCE ──────────────────────────────
INFO     12:30:07.164 │ FIND EMULATOR INSTANCE                                     
INFO     12:30:07.178 │ [Device Orientation] 1 (HOME key on the right)             
INFO     12:30:07.213 │ Create forward: ForwardItem(serial='127.0.0.1:16384',      
         local='tcp:20755', remote='localabstract:minitouch')                      
INFO     12:30:07.217 │ v 1                                                        
INFO     12:30:07.219 │ ^ 10 720 1280 0                                            
INFO     12:30:07.220 │ $ 3431                                                     
INFO     12:30:07.221 │ minitouch running on port: 20755, pid: 3431                
INFO     12:30:07.222 │ max_contact: 10; max_x: 720; max_y: 1280; max_pressure: 0  
INFO     12:30:08.262 │ MuMuPlayer12(serial="127.0.0.1:16384",                     
         name="MuMuPlayerGlobal-12.0-0", path="C:/Program                          
         Files/Netease/MuMuPlayerGlobal-12.0/shell/MuMuPlayer.exe")                
──────────────────────────────── EMULATOR INSTANCE ────────────────────────────────
INFO     12:30:08.264 │ EMULATOR INSTANCE                                          
INFO     12:30:08.265 │ Found emulator instance:                                   
         MuMuPlayer12(serial="127.0.0.1:16384", name="MuMuPlayerGlobal-12.0-0",    
         path="C:/Program                                                          
         Files/Netease/MuMuPlayerGlobal-12.0/shell/MuMuPlayer.exe")                
INFO     12:30:08.266 │ NemuIpcImpl init, nemu_folder=C:/Program                   
         Files/Netease/MuMuPlayerGlobal-12.0, ipc_dll=C:\Program                   
         Files\Netease\MuMuPlayerGlobal-12.0\shell\sdk\external_renderer_ipc.dll,  
         instance_id=0, display_id=0                                               
WARNING  12:30:08.268 │ Failed to call nemu_connect, result=0                      
ERROR    12:30:08.270 │ NemuIpcError: Connection failed, please check if           
         nemu_folder is correct and emulator is running                            
ERROR    12:30:08.271 │ Unable to initialize NemuIpc                               
CRITICAL 12:30:08.272 │ Request human takeover                                     
INFO     12:30:09.242 │ Push notify success

截图

image image

还有别的吗?

No response

LmeSzinc commented 6 months ago

国际版和各种游戏换皮版虽然有 external_renderer_ipc.dll,但是模拟器内核都没有对应的 ipc 方法,只有国内版和明日方舟专版有

SinCerely023 commented 6 months ago

明白啦,感谢!