feat(AutoCoffeePro): 添加 NanallyPro 和 LacrimosaPro 自动化游戏模式 - #363
Draft
xiaoao114511 wants to merge 1 commit into
Draft
feat(AutoCoffeePro): 添加 NanallyPro 和 LacrimosaPro 自动化游戏模式#363xiaoao114511 wants to merge 1 commit into
xiaoao114511 wants to merge 1 commit into
Conversation
- 新增 NanallyPro(自动点击锤子)和 LacrimosaPro(检测并服务顾客果汁)两个 CustomAction - 新增 4 个 Pipeline JSON 文件,含 OCR/TemplateMatch 识别节点 - 新增主编排器 AutoCoffeePro CustomAction - 新增 2 个任务配置文件及可选项 - 更新 interface.json 注册新任务 - 更新 5 个语言文件的界面文案
Contributor
审查者指南(Reviewer's Guide)实现了一个新的 AutoCoffeePro 编排器 CustomAction,以及 NanallyPro 和 LacrimosaPro 模式动作、共享工具和背景差分识别,并将它们接入 Maa 的流水线(pipelines)、任务以及界面/本地化元数据中,以支持完整的自动化游戏循环。 AutoCoffeePro 编排玩法循环的时序图sequenceDiagram
participant Pipeline_AutoCoffeeProRun as AutoCoffeeProRun
participant AutoCoffeeProAction as AutoCoffeePro
participant Context as Context
participant Controller as controller
participant NanallyProAction as NanallyPro
participant LacrimosaProAction as LacrimosaPro
Pipeline_AutoCoffeeProRun->>AutoCoffeeProAction: run(context, argv)
AutoCoffeeProAction->>Context: tasker.controller
AutoCoffeeProAction->>AutoCoffeeProAction: parse argv.custom_action_param
loop rounds 1..max_rounds
AutoCoffeeProAction->>Context: run_recognition(level_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
AutoCoffeeProAction->>Context: run_recognition(start_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
alt mode == nanally
AutoCoffeeProAction->>Context: run_action("NanallyProRun")
Context->>NanallyProAction: run(context, argv)
NanallyProAction->>Context: run_recognition(hammer_recognition_node, get_image(controller))
NanallyProAction->>Controller: post_touch_down/up (click_rect_multiple)
else mode == lacrimosa
AutoCoffeeProAction->>Context: run_action("LacrimosaProRun")
Context->>LacrimosaProAction: run(context, argv)
LacrimosaProAction->>Context: run_recognition(juice_recognition_node, get_image(controller))
LacrimosaProAction->>Context: run_recognition(glasses_recognition_node, get_image(controller))
LacrimosaProAction->>Context: run_recognition(tomato_recognition_node, get_image(controller))
LacrimosaProAction->>Controller: post_touch_down/up (click_rect_multiple)
end
AutoCoffeeProAction->>Context: run_recognition(exit_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
AutoCoffeeProAction->>Context: run_recognition(success_node/fail_node, get_image(controller))
alt fail detected
AutoCoffeeProAction->>Context: run_recognition(retry_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
else success or fallback
AutoCoffeeProAction->>Context: run_recognition(finish_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
end
end
AutoCoffeeProAction-->>Pipeline_AutoCoffeeProRun: RunResult(success)
文件级变更
技巧与命令(Tips and commands)与 Sourcery 交互
自定义你的体验访问你的 dashboard 以:
获取帮助Original review guide in EnglishReviewer's GuideImplements a new AutoCoffeePro orchestrator CustomAction plus NanallyPro and LacrimosaPro mode actions, shared utilities and background-diff recognition, and wires them into Maa pipelines, tasks, and interface/locale metadata to support a full automated gameplay loop. Sequence diagram for AutoCoffeePro orchestrated gameplay loopsequenceDiagram
participant Pipeline_AutoCoffeeProRun as AutoCoffeeProRun
participant AutoCoffeeProAction as AutoCoffeePro
participant Context as Context
participant Controller as controller
participant NanallyProAction as NanallyPro
participant LacrimosaProAction as LacrimosaPro
Pipeline_AutoCoffeeProRun->>AutoCoffeeProAction: run(context, argv)
AutoCoffeeProAction->>Context: tasker.controller
AutoCoffeeProAction->>AutoCoffeeProAction: parse argv.custom_action_param
loop rounds 1..max_rounds
AutoCoffeeProAction->>Context: run_recognition(level_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
AutoCoffeeProAction->>Context: run_recognition(start_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
alt mode == nanally
AutoCoffeeProAction->>Context: run_action("NanallyProRun")
Context->>NanallyProAction: run(context, argv)
NanallyProAction->>Context: run_recognition(hammer_recognition_node, get_image(controller))
NanallyProAction->>Controller: post_touch_down/up (click_rect_multiple)
else mode == lacrimosa
AutoCoffeeProAction->>Context: run_action("LacrimosaProRun")
Context->>LacrimosaProAction: run(context, argv)
LacrimosaProAction->>Context: run_recognition(juice_recognition_node, get_image(controller))
LacrimosaProAction->>Context: run_recognition(glasses_recognition_node, get_image(controller))
LacrimosaProAction->>Context: run_recognition(tomato_recognition_node, get_image(controller))
LacrimosaProAction->>Controller: post_touch_down/up (click_rect_multiple)
end
AutoCoffeeProAction->>Context: run_recognition(exit_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
AutoCoffeeProAction->>Context: run_recognition(success_node/fail_node, get_image(controller))
alt fail detected
AutoCoffeeProAction->>Context: run_recognition(retry_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
else success or fallback
AutoCoffeeProAction->>Context: run_recognition(finish_node, get_image(controller))
AutoCoffeeProAction->>Controller: post_touch_down/up (click_rect_multiple)
end
end
AutoCoffeeProAction-->>Pipeline_AutoCoffeeProRun: RunResult(success)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联内容
变更摘要
NanallyPro/LacrimosaPro两个 Python CustomActionAutoCoffeeProCustomActioninterface.json注册新任务,更新 5 个 locale 文件验证
Summary by Sourcery
添加一个新的 AutoCoffeePro 编排器,以及配套的自定义动作/工具,用基于识别的流水线和任务配置来自动化两种游戏模式。
New Features:
Enhancements:
Original summary in English
Summary by Sourcery
Add a new AutoCoffeePro orchestrator and supporting custom actions/utilities to automate two game modes with recognition-based pipelines and task configs.
New Features:
Enhancements: