Closed minquejoe closed 5 months ago
F:/MaaHatsuboshiTA-win-x86_64-v1.1.2/platform-tools/adb.exe
你的ADB路径有些神秘,似乎不是正确的模拟器ADB路径。一般来说ADB路径如下:
C:/Program Files/Netease/MuMuPlayer-12.0/shell/adb.exe 127.0.0.1:16384
ADB应该是可以用的
F:\MaaHatsuboshiTA-win-x86_64-v1.1.2>F:/MaaHatsuboshiTA-win-x86_64-v1.1.2/platform-tools/adb.exe
Android Debug Bridge version 1.0.41
Version 35.0.1-11580240
Installed as F:\MaaHatsuboshiTA-win-x86_64-v1.1.2\platform-tools\adb.exe
Running on Windows 10.0.19045
...
安卓用的不是模拟器,是一个Docker容器,我看有错的似乎是这里:
[2024-05-30 11:41:28.118][ERR][Px20988][Tx23762][UnitBase.cpp][L65][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] child return error [argv.exec=F:/MaaHatsuboshiTA-win-x86_64-v1.1.2/platform-tools/adb.exe] [argv.args=["-s","192.168.1.104:6603","shell","dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]"]]
你能从日志里推断大致是什么问题吗?
抱歉久等了!为了适配Docker需要您手动修改截图的配置 打开根目录下的interface.json,修改
"controller": [
{
"name": "android",
"type": "Adb"
}
],
为
"controller": [
{
"name": "android",
"type": "Adb",
"Adb": {
"screencap": 196608
}
}
],
您可以尝试一下是否有效!
根据MAAFW开发者的解释,修改截图方式可能导致运行速率大大下降,还是推荐您在使用本软件时用模拟器启动游戏。
还是不行,我捉摸自己琢磨下把
[2024-06-02 12:27:44.298][TRC][Px19884][Tx19024][DeviceInfo.cpp][L54][MaaNS::CtrlUnitNs::DeviceInfo::request_resolution] | leave, 109ms
[2024-06-02 12:27:44.298][DBG][Px19884][Tx19024][DeviceInfo.cpp][L75][MaaNS::CtrlUnitNs::DeviceInfo::request_orientation] | enter
[2024-06-02 12:27:44.301][TRC][Px19884][Tx19024][ChildPipeIOStream.cpp][L100][MaaNS::ChildPipeIOStream::ChildPipeIOStream] [exec_=F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe] [args_=["-s","192.168.1.104:6603","shell","dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]"]] [child_.id()=16352]
[2024-06-02 12:27:44.407][WRN][Px19884][Tx19024][ChildPipeIOStream.cpp][L137][MaaNS::ChildPipeIOStream::release] child exit with 1 [exec_=F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe] [args_=["-s","192.168.1.104:6603","shell","dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]"]] [child_.id()=16352]
[2024-06-02 12:27:44.407][TRC][Px19884][Tx19024][UnitBase.cpp][L59][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] [output.size()=0] [duration=108ms]
[2024-06-02 12:27:44.408][ERR][Px19884][Tx19024][UnitBase.cpp][L65][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] child return error [argv.exec=F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe] [argv.args=["-s","192.168.1.104:6603","shell","dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]"]]
[2024-06-02 12:27:44.409][WRN][Px19884][Tx19024][ChildPipeIOStream.cpp][L137][MaaNS::ChildPipeIOStream::release] child exit with 1 [exec_=F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe] [args_=["-s","192.168.1.104:6603","shell","dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]"]] [child_.id()=16352]
[2024-06-02 12:27:44.409][TRC][Px19884][Tx19024][DeviceInfo.cpp][L75][MaaNS::CtrlUnitNs::DeviceInfo::request_orientation] | leave, 110ms
[2024-06-02 12:27:44.409][DBG][Px19884][Tx19024][Utils/MessageNotifier.hpp][L23][MaaNS::MessageNotifier<void (__cdecl*)(char const *,char const *,void *),void *>::notify] [callback_=0000000000000000] [callback_arg_=0000000000000000] [msg=Controller.ResolutionGot] [details={
"adb": "F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe",
"address": "192.168.1.104:6603",
"orientation": 0,
"resolution": {
"height": 1600,
"width": 900
},
"uuid": "1fd983b32b6803fd"
}] | enter
[2024-06-02 12:27:44.409][TRC][Px19884][Tx19024][Utils/MessageNotifier.hpp][L23][MaaNS::MessageNotifier<void (__cdecl*)(char const *,char const *,void *),void *>::notify] | leave, 0ms
[2024-06-02 12:27:44.409][DBG][Px19884][Tx19024][Utils/MessageNotifier.hpp][L23][MaaNS::MessageNotifier<void (__cdecl*)(char const *,char const *,void *),void *>::notify] [callback_=0000000000000000] [callback_arg_=0000000000000000] [msg=Controller.ConnectSuccess] [details={
"adb": "F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe",
"address": "192.168.1.104:6603",
"orientation": 0,
"resolution": {
"height": 1600,
"width": 900
},
"uuid": "1fd983b32b6803fd"
}] | enter
[2024-06-02 12:27:44.409][TRC][Px19884][Tx19024][Utils/MessageNotifier.hpp][L23][MaaNS::MessageNotifier<void (__cdecl*)(char const *,char const *,void *),void *>::notify] | leave, 0ms
[2024-06-02 12:27:44.409][DBG][Px19884][Tx19024][FastestWay.cpp][L67][MaaNS::CtrlUnitNs::ScreencapFastestWay::init] | enter
[2024-06-02 12:27:44.409][DBG][Px19884][Tx19024][RawByNetcat.cpp][L32][MaaNS::CtrlUnitNs::ScreencapRawByNetcat::init] | enter
[2024-06-02 12:27:44.409][DBG][Px19884][Tx19024][RawByNetcat.cpp][L105][MaaNS::CtrlUnitNs::ScreencapRawByNetcat::request_netcat_address] | enter
[2024-06-02 12:27:44.412][TRC][Px19884][Tx19024][ChildPipeIOStream.cpp][L100][MaaNS::ChildPipeIOStream::ChildPipeIOStream] [exec_=F:/MaaHatsuboshiTA-win-x86_64-v1.1.3/platform-tools/adb.exe] [args_=["-s","192.168.1.104:6603","shell","cat /proc/net/arp | grep : "]] [child_.id()=20628]
[2024-06-02 12:27:44.517][TRC][Px19884][Tx19024][UnitBase.cpp][L59][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] [output.size()=79] [duration=106ms]
[2024-06-02 12:27:44.517][TRC][Px19884][Tx19024][UnitBase.cpp][L61][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] output:
192.168.232.1 0x1 0x2 02:15:b3:00:01:00 * wlan0
[2024-06-02 12:27:44.517][TRC][Px19884][Tx19024][RawByNetcat.cpp][L105][MaaNS::CtrlUnitNs::ScreencapRawByNetcat::request_netcat_address] | leave, 107ms
[2024-06-02 12:27:44.517][DBG][Px19884][Tx19024][SockIOStream.cpp][L10][MaaNS::ServerSockIOFactory::ServerSockIOFactory] [address=192.168.1.104] [port=0] | enter
运行设置:
maa.log: