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

使用MaaToolKit.Extensions的问题 #11

Closed
tsctsc6 opened this issue Oct 24, 2023 · 5 comments
Closed

使用MaaToolKit.Extensions的问题 #11

tsctsc6 opened this issue Oct 24, 2023 · 5 comments

Comments

@tsctsc6
Copy link

tsctsc6 commented Oct 24, 2023

image1

  • 如图所示,无法创建MaaObject
  • 不过我运行你的代码的时候,是没有问题的
  • 请问你有没有什么见解?
@Dissectum
Copy link
Collaborator

Dissectum commented Oct 24, 2023

有很多原因会导致这个错误:

  1. 文件路径不对
  2. 设备连接不上
  3. 没有minitouch (./MaaAgentBinary/minitouch)

建议调用以下方法设置下 maa 的日志路径,看看日志:

    private static void SetFrameworkLog(bool enableDebugMode)
    {
        MaaObject.FrameworkLogDir = GlobalInfo.DebugFullPath;
        MaaObject.DebugMode = enableDebugMode;
    }

@tsctsc6
Copy link
Author

tsctsc6 commented Oct 24, 2023

好的,谢谢

@tsctsc6
Copy link
Author

tsctsc6 commented Oct 24, 2023

  • 这是日志出错部分
    [agent_path=./MaaAgentBinary] | enter
    [2023-10-24 18:52:21.049][INF][Px30224][Tx23139][ControlUnitMgr.cpp][L142][MaaNS::ControllerNS::AdbUnitNs::create_controller_unit] touch_type: MinitouchInput
    [2023-10-24 18:52:21.049][INF][Px30224][Tx23139][ControlUnitMgr.cpp][L167][MaaNS::ControllerNS::AdbUnitNs::create_controller_unit] key_type: TapKeyInput
    [2023-10-24 18:52:21.049][ERR][Px30224][Tx23139][ControlUnitMgr.cpp][L228][MaaNS::ControllerNS::AdbUnitNs::create_controller_unit] Unknown screencap type [screencap_type=0]
  • 但我无从设置“screencap_type”

@Dissectum
Copy link
Collaborator

Dissectum commented Oct 24, 2023 via email

@tsctsc6
Copy link
Author

tsctsc6 commented Oct 24, 2023

原来如此,解决了,谢谢

@tsctsc6 tsctsc6 closed this as completed Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants