Skip to content

fix:自动生态农场优化#1077

Merged
MistEO merged 45 commits intoMaaEnd:mainfrom
jwtggg:AutoEcoFarm1
Mar 7, 2026
Merged

fix:自动生态农场优化#1077
MistEO merged 45 commits intoMaaEnd:mainfrom
jwtggg:AutoEcoFarm1

Conversation

@jwtggg
Copy link
Contributor

@jwtggg jwtggg commented Mar 7, 2026

新功能:
1、增加开始任务前清理背包的功能,进入帝江号打开仓库然后点击一键存放,将包里的杂物放入仓库
修改内容:
1、优化任务描述,能够更清晰地提示用户配置队伍、布置农场,增加任务成功率
bug修复:
1、修复了大幅度转视角节点的起点不在屏幕中间的问题

Summary by Sourcery

在修复大幅度相机旋转导致的视口问题的同时,优化 AutoEcoFarm 任务流程和引导体验。

新功能:

  • 新增可选的任务前步骤:在开始 AutoEcoFarm 运行前,先打开舰船仓库并自动存入杂项物品,以清理背包。

错误修复:

  • 修复大幅相机旋转滑动节点的起始位置问题,现在视角将从屏幕中心开始。

增强改进:

  • 优化 AutoEcoFarm 的任务描述和本地化文案,更好地引导用户配置队伍与布局农场,从而提升任务成功率。
  • 更新 AutoEcoFarm 的流水线流程,包括增加专门的准备阶段以及调整滑动至目标的行为,以提升自动化的稳定性与可靠性。
Original summary in English

Summary by Sourcery

Optimize the AutoEcoFarm task flow and guidance while fixing viewport issues for large camera rotations.

New Features:

  • Add an optional pre-task step to clean the inventory by opening the ship warehouse and auto-storing miscellaneous items before starting AutoEcoFarm runs.

Bug Fixes:

  • Fix the starting position of large camera-rotation swipe nodes so that the viewpoint now begins from the screen center.

Enhancements:

  • Refine AutoEcoFarm task descriptions and localization strings to better guide users in configuring teams and arranging the farm, improving task success rate.
  • Update the AutoEcoFarm pipelines, including a dedicated preparation stage and adjusted swipe-to-target behavior, to make the automation more reliable.

jwtggg added 30 commits March 1, 2026 19:35
fix2:因为win32前台的DXGI_DesktopDup_Window方式有bug,将screencap参数改成PrintWindow
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我在这里给出了一些整体性的反馈:

  • 请确认新的 AutoEcoFarmPrepare.json 流水线已经正确接入到 AutoEcoFarm.json 以及所有相关的任务入口点中,这样准备步骤(清空库存)就能始终在主农场逻辑之前按预期顺序执行。
  • 由于你在多个本地化文件中添加或修改了任务描述,请再次检查各语言之间的 key 和占位符是否一致,避免在某些语言环境中出现回退字符串或不匹配的文案。
  • 对于 AutoEcoFarmSwipeToTarget.json 中修复的滑动 / 视角旋转问题,建议显式记录或约束预期的起始屏幕中心参考(例如使用归一化坐标),以避免在未来相机或分辨率处理发生变化时再次引入回归问题。
提供给 AI 代理的提示
Please address the comments from this code review:

## Overall Comments
- Verify that the new `AutoEcoFarmPrepare.json` pipeline is properly wired into `AutoEcoFarm.json` and any relevant task entry points so the preparation step (clearing inventory) always runs in the intended order before the main farm logic.
- Since you added new/changed task descriptions across multiple locale files, double‑check that the keys and placeholders are consistent between languages so that the UI does not show fallback or mismatched strings in some locales.
- For the swipe/turn‑view bug fix in `AutoEcoFarmSwipeToTarget.json`, consider explicitly documenting or constraining the expected starting screen center reference (e.g., normalized coordinates) to avoid future regressions when camera or resolution handling changes.

Sourcery 对开源项目是免费的——如果你觉得我们的评审对你有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈持续改进评审质量。
Original comment in English

Hey - I've left some high level feedback:

  • Verify that the new AutoEcoFarmPrepare.json pipeline is properly wired into AutoEcoFarm.json and any relevant task entry points so the preparation step (clearing inventory) always runs in the intended order before the main farm logic.
  • Since you added new/changed task descriptions across multiple locale files, double‑check that the keys and placeholders are consistent between languages so that the UI does not show fallback or mismatched strings in some locales.
  • For the swipe/turn‑view bug fix in AutoEcoFarmSwipeToTarget.json, consider explicitly documenting or constraining the expected starting screen center reference (e.g., normalized coordinates) to avoid future regressions when camera or resolution handling changes.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Verify that the new `AutoEcoFarmPrepare.json` pipeline is properly wired into `AutoEcoFarm.json` and any relevant task entry points so the preparation step (clearing inventory) always runs in the intended order before the main farm logic.
- Since you added new/changed task descriptions across multiple locale files, double‑check that the keys and placeholders are consistent between languages so that the UI does not show fallback or mismatched strings in some locales.
- For the swipe/turn‑view bug fix in `AutoEcoFarmSwipeToTarget.json`, consider explicitly documenting or constraining the expected starting screen center reference (e.g., normalized coordinates) to avoid future regressions when camera or resolution handling changes.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

"_AutoEcoFarmPrepareStart": {
"doc": "开始任务前的准备工作",
"next": [
"_AutoEcoFarmPrepareClearBagStart",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式化一下,可以 pnpm format 或者用 vscode。还有其他几个文件也是

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改好了

@MistEO MistEO merged commit 2fde60a into MaaEnd:main Mar 7, 2026
16 checks passed
MistEO pushed a commit that referenced this pull request Mar 9, 2026
MistEO pushed a commit that referenced this pull request Mar 9, 2026
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

Successfully merging this pull request may close these issues.

2 participants