问题描述
MaaEnd 脚本从 ADB 模式切换为 Win32 后,如果隐藏的模拟器配置仍保留原来的 Emulator.Id,运行时仍可能选择 ADB Controller,随后因为 MaaEnd Adapter 没有在 Win32 模式初始化模拟器而失败。
复现步骤
- 创建 MaaEnd 插件脚本。
- 将
Game.ControllerType 设置为 Adb。
- 选择有效的
Emulator.Id 和 Emulator.Index 并保存。
- 再把
Game.ControllerType 切换为 Win32。
- 不手动清除已隐藏的模拟器字段,保存后启动自动代理。
实际结果
运行计划仍可能根据 Emulator.Id != "-" 选择 ADB Controller,但 MaaEnd Adapter 在 Win32 模式不会初始化 emulator manager,最终出现类似提示:
当前 controller 需要 ADB,请在脚本管理页选择模拟器
部分配置还可能在任务开始前被要求选择模拟器实例,即使当前已选择 Win32。
预期结果
Game.ControllerType = "Win32" 时应稳定选择 Win32 Controller,残留且不可见的 Emulator.Id / Emulator.Index 不应改变 Controller 类型或触发 ADB 校验。
从 ADB 切换到 Win32 后应可直接运行;也可以在切换或保存时清理不再适用的模拟器字段。
环境
automas-maaend-adapter: dev @ 2acb9ee827e653779e3ce143b8d3c418e259c167
automas-script-maafw: 0.1.2 / main @ aef1fb79571f39f10ecc9bea15922b1ba581897e
- AUTO-MAS dev_v2 @
34a36add877080eafca037e7a026e1ee7d0cff94
- Python 3.12
问题描述
MaaEnd 脚本从 ADB 模式切换为 Win32 后,如果隐藏的模拟器配置仍保留原来的
Emulator.Id,运行时仍可能选择 ADB Controller,随后因为 MaaEnd Adapter 没有在 Win32 模式初始化模拟器而失败。复现步骤
Game.ControllerType设置为Adb。Emulator.Id和Emulator.Index并保存。Game.ControllerType切换为Win32。实际结果
运行计划仍可能根据
Emulator.Id != "-"选择 ADB Controller,但 MaaEnd Adapter 在 Win32 模式不会初始化 emulator manager,最终出现类似提示:部分配置还可能在任务开始前被要求选择模拟器实例,即使当前已选择 Win32。
预期结果
Game.ControllerType = "Win32"时应稳定选择 Win32 Controller,残留且不可见的Emulator.Id/Emulator.Index不应改变 Controller 类型或触发 ADB 校验。从 ADB 切换到 Win32 后应可直接运行;也可以在切换或保存时清理不再适用的模拟器字段。
环境
automas-maaend-adapter: dev @2acb9ee827e653779e3ce143b8d3c418e259c167automas-script-maafw: 0.1.2 / main @aef1fb79571f39f10ecc9bea15922b1ba581897e34a36add877080eafca037e7a026e1ee7d0cff94