MaaXYZ / MAABH3

《崩坏3》小助手 | A one-click tool for the daily tasks of Honkai Impact.
GNU Affero General Public License v3.0
117 stars 10 forks source link

蓝叠5 Hyper-V扫描不到ADB #12

Closed Weicoz closed 11 months ago

Weicoz commented 1 year ago

提示如下

MAA BH3 CLI,
Github: https://github.com/MaaAssistantArknights/MAABH3

Usage: MAABH3_CLI.exe [adb_path] [adb_address] [task_name]...

Modify config.json to configure tasks.

Welcome to come and create a GUI for us! :)

MaaFramework Version: v1.1.0
MAABH3 Version: v0.4.5

Scanning for Devices...
No Devices Found
dongwlin commented 1 year ago

请上传debug目录下maa.log

dongwlin commented 1 year ago

@MistEO

Weicoz commented 1 year ago

maa.log

Weicoz commented 1 year ago

日志里面写着 scmd=["C:\Program Files\BlueStacks_nxt\HD-Adb.exe","connect","127.0.0.1:5575" unable to connect to 127.0.0.1:5575: cannot connect to 127.0.0.1:5575: 由于目标计算机积极拒绝,无法连接。 (10061) 但是我蓝叠5的ADB端口是55332

Weicoz commented 1 year ago

或者希望能有一个方法或者配置能直接配置ADB的IP与端口

MistEO commented 1 year ago

蓝叠的端口每次启动都不一样,要单独给他写个扫描的逻辑,还没做。你可以先手动改改 config.json 来配端口

Weicoz commented 1 year ago

config.json 要怎么改,有样板吗

dongwlin commented 1 year ago

我当时接入toolkit的时候改的太屎了,没考虑到这种情况,如果toolkit没扫到端口,就拿不到adb_config,所以config.json里配置端口也没用。不如试试把蓝叠的端口改成5555,这样toolkit可以扫描到。我晚点再改改cli的逻辑

Weicoz commented 1 year ago

hyper-v的蓝叠好像不支持自定义端口的,但是我电脑又要开hyper-v。。。

可以考虑读取蓝叠的配置文件里的端口去动态获取

dongwlin commented 11 months ago

现在可以手动输入设备信息了