Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@
},
"interface_version": 2,
"name": "MFABD2",
"title": "MFABD2 | 棕色尘埃2自动化助手(sunyink/MFABD2)v0.0.20 | 游戏版本:20260507 ( Strange Request )",
"title": "MFABD2 | 棕色尘埃2自动化助手(sunyink/MFABD2)v0.0.20 | 游戏版本:20260521 ( Dark Magica )",
"github": "https://github.com/sunyink/MFABD2",
"mirrorchyan_rid": "MFABD2",
"mirrorchyan_multiplatform": true,
Expand Down
30 changes: 28 additions & 2 deletions assets/resource/base/pipeline/Activities.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
"roi": [
320,
145,
602,
843,
422
],
"expected": [
Expand All @@ -432,10 +432,36 @@
"template": [
"Ac_Getbutton.png"
],
"next": [
"Activities_FreeClothing_Ty2_Ck",
"Activities_Index"
]
},
"Activities_FreeClothing_Ty2_Ck": {
"recognition": "ColorMatch",
"roi": "Activities_FreeClothing_Ty2",
"roi_offset": [
-30,
-30,
60,
60
],
"lower": [
0,
139,
230
],
"upper": [
180,
174,
250
],
"connected": true,
"count": 100,
"action": "Click",
"post_delay": 2000,
"next": [
"Activities_FreeClothing_Ty2",
"Activities_FreeClothing_Ty2_Ck",
"Activities_Index"
]
},
Expand Down
42 changes: 28 additions & 14 deletions assets/resource/base/pipeline/StartGame.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"next": [
"[JumpBack]StartGame_LinkError",
"[JumpBack]StartGame_Error_API",
"StartGame_Error_AM",
"StartGame_GameIsMaint",
"StartGame_Logo",
"StartGame_LoadingPage",
"[JumpBack]Global_WaitingForLoading"
Expand Down Expand Up @@ -82,12 +82,12 @@
"StartGame_Update_Data",
"[JumpBack]StartGame_PayFailed",
"StartGame_Error_API",
"StartGame_Error_AM",
"[JumpBack]StartGame_Setup_SoundTurnOff_Start",
"StartGame_TouchStart",
"StartGame_Loading",
"StartGame_LoadingPage",
"[JumpBack]StartGame_ModMsg"
"[JumpBack]StartGame_ModMsg",
"StartGame_GameIsMaint"
],
"focus": "SM.main"
},
Expand Down Expand Up @@ -279,13 +279,35 @@
"next": [
"[JumpBack]StartGame_Update_Data_DownLoading",
"[JumpBack]StartGame_PayFailed",
"StartGame_TouchStart"
"StartGame_TouchStart",
"StartGame_GameIsMaint"
],
"on_error": [
"StartGame_UpdateCloseGame"
],
"focus": "SM.数据下载循环"
},
"StartGame_GameIsMaint": {
"desc": "游戏服务器维护",
"recognition": "OCR",
"roi": [
439,
142,
397,
387
],
"expected": [
"维护和更新",
"无法连接和使用游戏"
Comment on lines +299 to +301
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# 检查 StartGame_Error_AM 节点配置以对比 expected 差异
rg -A 10 -B 2 '"StartGame_Error_AM"' assets/resource/base/pipeline/StartGame.json

Repository: sunyink/MFABD2

Length of output: 1168


🏁 Script executed:

#!/bin/bash
# 读取 StartGame_GameIsMaint 节点以核对 expected/roi/action/next
rg -A 30 -B 2 '"StartGame_GameIsMaint"' assets/resource/base/pipeline/StartGame.json

Repository: sunyink/MFABD2

Length of output: 2376


🏁 Script executed:

#!/bin/bash
# 抓取 StartGame_Error_AM 节点完整配置,核对 expected/roi/action/next 等
rg -A 60 -B 2 '"StartGame_Error_AM"' assets/resource/base/pipeline/StartGame.json

Repository: sunyink/MFABD2

Length of output: 4122


🏁 Script executed:

#!/bin/bash
# 抓取 StartGame_Error_AM 更大范围,确认是否有 roi/action/next
rg -A 80 -B 2 '"StartGame_Error_AM"' assets/resource/base/pipeline/StartGame.json

Repository: sunyink/MFABD2

Length of output: 4935


修正 StartGame_GameIsMaint 的 expected 覆盖范围,避免维护文案识别不一致

  • StartGame_GameIsMaintexpected 仅包含“维护和更新”“无法连接和使用游戏”,但 StartGame_Error_AM 包含“定期维护和更新”“公告事项”。若实际维护页文案包含“定期维护和更新/公告事项”,StartGame_GameIsMaint 可能无法匹配。
  • StartGame_GameIsMaint 配置了较小 roi 且带 action: "StopTask";而 StartGame_Error_AM 未配置 roi/action/next(仅 focus 提示)。同一类“停机/维护”场景可能出现“停止 vs 不停止”的行为差异。
  • 建议统一/扩充 StartGame_GameIsMaintexpected 关键词以覆盖“定期维护和更新/公告事项”,或相应调整/拆分 roi,保证两种维护文案都能走到期望的处理逻辑。
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@assets/resource/base/pipeline/StartGame.json` around lines 300 - 302,
StartGame_GameIsMaint 的 expected 关键词覆盖范围太窄,导致与 StartGame_Error_AM
中的“定期维护和更新/公告事项”不一致并产生不同处理(roi/action/next);请在 StartGame_GameIsMaint 的 expected
中加入“定期维护和更新”和“公告事项”等同类短语,或将其拆分成两个条目并在需要时调整 roi 和 action(比如保留/移除
action:"StopTask" 或同步为 focus 行为),确保所有可能的维护文案都会命中同一处理逻辑并与 StartGame_Error_AM
行为保持一致。

],
"action": "StopTask",
"focus": {
"toast": [
"游戏服务器维护中"
],
"aborted": true
}
},
"StartGame_Loading": {
"desc": "游戏启动中",
"recognition": "OCR",
Expand All @@ -307,7 +329,8 @@
"[JumpBack]StartGame_LinkDown",
"StartGame_TouchStart",
"StartGame_LoadingPage",
"StartGame_Loading"
"StartGame_Loading",
"StartGame_GameIsMaint"
],
"focus": "SM.ORC游戏启动中"
},
Expand Down Expand Up @@ -658,15 +681,6 @@
],
"focus": "ERROR:API。特殊错误,请检查。"
},
"StartGame_Error_AM": {
"recognition": "OCR",
"expected": [
"无法连接和使用游戏",
"定期维护和更新",
"公告事项"
],
"focus": "ERROR:服务端停机公告。特殊错误,请检查。"
},
"StartGame_Special": {
"desc": "另类赛季奖励接收",
"recognition": "OCR",
Expand Down
Loading