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

MaaFramework支持雷电模拟器吗 #415

Open
Stickboy210 opened this issue Nov 18, 2024 · 40 comments
Open

MaaFramework支持雷电模拟器吗 #415

Stickboy210 opened this issue Nov 18, 2024 · 40 comments

Comments

@Stickboy210
Copy link

用MaaDebugger是可以在雷电模拟器上跑的,但是用MaaPiCli直接跑就会一直识别不到图像,是哪里设置有问题吗()

@MistEO
Copy link
Member

MistEO commented Nov 18, 2024

发下 debug/maa.log

@Stickboy210
Copy link
Author

maa.log
用雷电模拟器的日志是LDPlayer那段,大概19:20-30左右

@Windsland52
Copy link
Member

[2024-11-18 19:23:59.811][DBG][Px9764][Tx38909][FeatureMatcher.cpp][L182][MaaNS::VisionNS::FeatureMatcher::feature_postproc] HomePageDuelList [uid_=300000730] Match: [good_matches.size()=6] [match_points.size()=2134] [param_.distance_ratio=0.6] 
[2024-11-18 19:23:59.811][DBG][Px9764][Tx38909][FeatureMatcher.cpp][L191][MaaNS::VisionNS::FeatureMatcher::feature_postproc] HomePageDuelList [uid_=300000730] Homography is empty 

这段吗

@Stickboy210
Copy link
Author

刚看到,好像前面也有记录

@Windsland52
Copy link
Member

[2024-11-18 19:23:59.811][DBG][Px9764][Tx38909][FeatureMatcher.cpp][L182][MaaNS::VisionNS::FeatureMatcher::feature_postproc] HomePageDuelList [uid_=300000730] Match: [good_matches.size()=6] [match_points.size()=2134] [param_.distance_ratio=0.6] 
[2024-11-18 19:23:59.811][DBG][Px9764][Tx38909][FeatureMatcher.cpp][L191][MaaNS::VisionNS::FeatureMatcher::feature_postproc] HomePageDuelList [uid_=300000730] Homography is empty 

这段吗

好像是特征匹配的正常流程,我再看看

@Stickboy210
Copy link
Author

我现在也有点不确定

@Stickboy210
Copy link
Author

没用过雷电模拟器也会有LDPlayer的记录吗

@Stickboy210
Copy link
Author

[2024-11-18 18:36:48.317][DBG][Px6236][Tx41875][AdbDeviceFinder.cpp][L148][MaaNS::ToolkitNS::AdbDeviceFinder::request_adb_serials] [adb_path=F:/Program/leidian/LDPlayer9/adb.exe] | enter
大概这里?

@Stickboy210
Copy link
Author

这里好像是在连接雷电模拟器的abd

@Windsland52
Copy link
Member

所以你是要连mumu而不是雷电?

@Stickboy210
Copy link
Author

本来是用mumu的,想试试雷电能不能兼容()

@Windsland52
Copy link
Member

正常是没有问题的

@Stickboy210
Copy link
Author

嗯……两个模拟器会互相覆盖之类的吗

@Windsland52
Copy link
Member

Windsland52 commented Nov 18, 2024

嗯……两个模拟器会互相覆盖之类的吗

正常来说,用maafw开发不需要考虑模拟器的问题,只需要考虑游戏不同服务器资源的问题

@Stickboy210
Copy link
Author

你似乎并没有打开雷电的模拟器

[2024-11-18 19:11:18.285][INF][Px9764][Tx23864][AdbDeviceFinder.cpp][L123][MaaNS::ToolkitNS::AdbDeviceFinder::find_emulators] [result=["[emulator.name=MuMuPlayer12] [emulator.process=13352 MuMuPlayerService.exe] ","[emulator.name=MuMuPlayer12] [emulator.process=21604 MuMuPlayer.exe] "]] 

感觉像是我没有连接成功,因为运行命令之后没有输出connect的信息,但是我打开了雷电模拟器,脚本也能够触发翻页的操作,但是没法识别到东西

@Windsland52
Copy link
Member

看了你用雷电成功运行部分(18:40左右)的log,没看出有啥问题,

[cur_task_=HomePage] [list=["HomePageNoName","Bonus","HomePageDuelList","BatterierEmpty","HomePageBot","HomePageSwitch"]]

就是任务一直是匹配不到前面的部分,然后直接匹配 HomePageSwitch

@Windsland52
Copy link
Member

你似乎并没有打开雷电的模拟器

[2024-11-18 19:11:18.285][INF][Px9764][Tx23864][AdbDeviceFinder.cpp][L123][MaaNS::ToolkitNS::AdbDeviceFinder::find_emulators] [result=["[emulator.name=MuMuPlayer12] [emulator.process=13352 MuMuPlayerService.exe] ","[emulator.name=MuMuPlayer12] [emulator.process=21604 MuMuPlayer.exe] "]] 

感觉像是我没有连接成功,因为运行命令之后没有输出connect的信息,但是我打开了雷电模拟器,脚本也能够触发翻页的操作,但是没法识别到东西

能操作就说明adb已经连上了

@Stickboy210
Copy link
Author

@Stickboy210
Copy link
Author

这样吗

@Windsland52
Copy link
Member

是否是预期匹配这个任务HomePageDuelList 的时候没匹配上,我看你用mumu的时候能匹配上

@Stickboy210
Copy link
Author

但是我用MaaDebugger在雷电模拟器运行同样的程序是可以匹配上的

@Stickboy210
Copy link
Author

很奇怪

@Windsland52
Copy link
Member

这个任务必须用FeatureMatch吗,是否可以TemplateMatch

@Stickboy210
Copy link
Author

因为图像会有尺寸变化

@Stickboy210
Copy link
Author

用TemplateMatch估计不行

@Stickboy210
Copy link
Author

bug找不到就别找了()其实不是必须用雷电的

@Windsland52
Copy link
Member

问题基本确定就在这里了吧,那等玛丽佬再看看

@Stickboy210
Copy link
Author

好的,谢谢大佬

@Stickboy210
Copy link
Author

正常运行任务是会输出:
nemu_connect instance_name: ginstance1395122873042857200
on_maafw_notify: Tasker.Task.Starting HomePage
雷电只输出:
on_maafw_notify: Tasker.Task.Starting HomePage

@Windsland52
Copy link
Member

正常运行任务是会输出: nemu_connect instance_name: ginstance1395122873042857200 on_maafw_notify: Tasker.Task.Starting HomePage 雷电只输出: on_maafw_notify: Tasker.Task.Starting HomePage

应该是mumu特有的,我自己用maafw都是用的雷电,没有出现过nemu connect

@Stickboy210
Copy link
Author

哦哦,那我不清楚了

@MistEO
Copy link
Member

MistEO commented Nov 19, 2024

@Stickboy210
Copy link
Author

开了,里面图片是这样的
BatterierEmpty_300000004_2024 11 19-11 07 51 8244004
HomePageBot_300000012_2024 11 19-11 08 12 1815060

@MistEO
Copy link
Member

MistEO commented Nov 19, 2024

那就是雷电给的图片有问题。更新 maafw 到最新版本,还不行给雷电反馈一下,你就说 MAA 他们知道的

@Stickboy210
Copy link
Author

好的我试试

@Stickboy210
Copy link
Author

话说更新要更新哪部分,需要全部重装吗

@Windsland52
Copy link
Member

话说更新要更新哪部分,需要全部重装吗

pip install maafw --upgrade

@Stickboy210
Copy link
Author

还是不行,应该是雷电的问题

@Windsland52
Copy link
Member

还是不行,应该是雷电的问题

那跟雷电的联系吧,不过我平时就用的雷电,到没出啥问题

@Stickboy210
Copy link
Author

好的好的

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

3 participants