Skip to content

fix(Component/SwitchSoul): 更新换御魂确认按钮素材 - #1893

Closed
m123711 wants to merge 1 commit into
runhey:devfrom
m123711:fix/switch-soul-confirm-button
Closed

m123711 wants to merge 1 commit into
runhey:devfrom
m123711:fix/switch-soul-confirm-button

Conversation

@m123711

@m123711 m123711 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

问题

游戏更新后,式神录「队伍预设」里点击队伍时弹出的确认框无法被识别:

  • tasks/Component/SwitchSoul/ss/ss_sou_switch_sure.png(换御魂确认弹窗的「确定」)在新界面上匹配失败:
    • 在它自己的 ROI (668,401,180,61) 内分数 0.003;
    • 全图搜索最高也只有 0.645,低于阈值 0.8。
  • 结果:弹窗不会被关掉,流程却继续往下走 → page_shikigami_records → page_main 的返回点击被弹窗全部吃掉 → 反复点击左上角返回 → GameTooManyClickError: Too many click for a button: UI_UI_BACK_YELLOW,任务失败。

现象与 issue #1890 一致(换御魂后卡在式神录、返回键连点)。日志片段:

11:57:10  Click (983,314) @ SS_SOU_SWITCH_2        ← 点队伍,游戏弹出确认框
11:57:11  WARNING Click team 2 failed in group 2   ← 弹窗挡住了队伍按钮
11:57:12  WARNING Click team 2 failed in group 2
11:57:12  Switch soul_one group 2 team 2           ← 兜底也没识别到“确定”,直接往下走
11:57:12  <<< UI GOTO PAGE_MAIN >>>                ← 弹窗此时还开着
11:57:13→11:58:01  点 UI_UI_BACK_YELLOW 共 10 次,全被弹窗吃掉 → GameTooManyClickError

修改

只替换素材 tasks/Component/SwitchSoul/ss/ss_sou_switch_sure.png,从当前版本的游戏截图按现有 ROI 裁剪。

  • 尺寸仍是 180×61、ROI 仍是 (668,401,180,61),因此 ss/image.json 与 assets.py 的声明不需要改动;
  • 不改任何代码、阈值和 ROI。

验证

同一张 1280×720 截图(阈值 0.8):

模板 在 ROI (668,401,180,61) 内 全图最高分 第二峰
修改前 0.003 0.645 ❌ 0.520
修改后 1.000 ✅ 1.000 @ (668,401) 0.733(落在「取消」按钮上,< 0.8,不会误点取消)
  • 弹窗两个按钮实测范围(供核对):取消 (435,405)–(625,470),确定 (665,405)–(840,470);
  • 点击点 = 模板命中框中心 ≈ (758,431),位于新的「确定」按钮内部。

备注

仅更新素材,不改判定逻辑。另一处新界面适配(战斗界面「退出确认」按钮)已由 #1891 处理。

@github-actions

Copy link
Copy Markdown
Contributor

Findings

  • C1 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:无法读取基线提交 ff594d1 的清单正文,无法核对 C1 的具体要求。
    修改:恢复该文件的 GitHub MCP 可读性后,按 C1 规则重新审查。

  • C2 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:清单正文被 GitHub MCP 安全策略拦截,无法确认 C2 的判定依据。
    修改:恢复清单读取权限后,补充 C2 的逐项结论。

  • C3 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:工作区不存在该清单文件,且 GitHub MCP 无法返回正文,无法确认 C3 的判定依据。
    修改:提供基线清单正文后,按 C3 重新核查 PR。

  • C4 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:无法读取 C4 规则,不能据现有素材变更可靠判断其是否通过。
    修改:恢复清单读取后,结合 PR 文件 tasks/Component/SwitchSoul/ss/ss_sou_switch_sure.png 复核 C4。

  • C5 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:清单内容不可访问,无法确认 C5 的检查范围与通过标准。
    修改:恢复清单读取后,依据 C5 逐项补审。

  • C6 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:无法取得 C6 的具体规则,不能将 PR 的单个 PNG 素材变更映射到该条要求。
    修改:提供可读的基线清单后,按 C6 补充定位和验证依据。

  • C7 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:无法读取 C7 规则;当前 GitHub 状态仅显示 Run 检查失败,不能替代清单判定。
    修改:恢复清单读取后,结合失败检查和 PR diff 重新审查 C7。

  • C8 [不确定]
    位置:.github/workflows/shared/review-checklist.md
    原因:清单正文不可访问,无法确认 C8 的要求及其与本次资源替换的关系。
    修改:恢复清单读取后,完成 C8 的独立复核。

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

Generated by PR Review Checklist for #1893 · codex · gpt56 · 9.43 AIC · ⌖ 2.64 AIC · ⊞ 13.2K · ◷

lygone added a commit to lygone/OnmyojiAutoScript that referenced this pull request Oct 10, 2026
 / runhey#1886)

2026-10-10 游戏更新改了 UI 美术,上游同日开了三个素材修复 PR,本提交移植与本库相关的部分。
注意:本库与上游 runhey/master 已长期分叉(共同祖先 2025-11-15;上游多 757 个提交、本库多 1062 个),
故按文件取用,而非合并分支。

--- 取自 runhey#1891(smallwin-jq 退出战斗确认按钮)
- gb/gb_exit_ensure.png 换用其素材(135x63 -> 95x46)
- I_EXIT_ENSURE 的 roi 同步收紧:roi_front=(701,414,95,46)、roi_back=(648,388,220,96)
  (原为固定位置比对 (674,388,135,63);新框完全落在金色"确定"按钮内,并容许弹窗轻微位移)
- gb/image.json 标注元数据同步
- 该 PR 其余 5 个文件只是注释/排序等装饰性改动,未采纳
- 交叉校验:与本地独立截取的同一弹窗素材在重叠区一致性 0.9874

--- 取自 runhey#1892(weirj2016-ai 悬赏封印独立奖励识别图)
- 新增 tasks/WantedQuests/wq/ui_rewardnew.png (239x24) 与规则 I_UI_REWARDNEW (threshold 0.7)
- tasks/base_task.py:ui_get_reward() / ui_reward_appear_click() 增加 reward_image 参数,
  默认仍用通用 I_UI_REWARD,行为不变;悬赏的奖励弹窗与通用那张不同型
- tasks/WantedQuests/script_task.py:两处宝箱奖励调用改为传 reward_image=self.I_UI_REWARDNEW
  本库悬赏探索继承探索任务,其"小纸人奖励"路径仍用通用 I_UI_REWARD(已修),未改动
- 未采用上游的 I_UI_REWARDnew 别名写法(本库类直接继承 assets,用 I_UI_REWARDNEW 即可)

--- 取自 runhey#1893(m123711 换御魂确认按钮)
- tasks/Component/SwitchSoul/ss/ss_sou_switch_sure.png 换用其素材(180x61,与 roi_front 尺寸一致,无代码改动)

--- 取自 runhey#1886(allesgutefy 组队邀请默认勾选框)
- check_and_invite() 点击 I_I_NO_DEFAULT 后 sleep(0.8),避免 UI 状态未刷新导致误判

未采纳:runhey#1885(本库已有 run_task_or_default_general_battle)、runhey#1862 彼世逢魔,
以及 runhey#1872/runhey#1870/runhey#1873/runhey#1847/runhey#1822(对应任务本库未启用)。
旧素材均本地备份为同名 .bak-20261010(未纳入版本库)。
iaunz added a commit to iaunz/OnmyojiAutoScript that referenced this pull request Oct 10, 2026
Merge commit 3e2b8d2 from runhey#1893. Update only the confirmation button PNG; its 180x61 dimensions remain compatible with the existing ROI and threshold declarations.

Validation: PNG decoded successfully, dimensions match assets.py and image.json, and git diff --check passed. No emulator run performed.
@runhey

runhey commented Oct 10, 2026

Copy link
Copy Markdown
Owner
image zhe'l 这里一堆,但是本质都是一个图片,当时谁做这个的时候有问题,全部换成通用的

@runhey

runhey commented Oct 10, 2026

Copy link
Copy Markdown
Owner

@runhey

runhey commented Oct 10, 2026

Copy link
Copy Markdown
Owner

71e3326

@runhey runhey closed this Oct 10, 2026
barnettfan pushed a commit to barnettfan/OnmyojiAutoScript that referenced this pull request Oct 11, 2026
 / runhey#1886)

2026-10-10 游戏更新改了 UI 美术,上游同日开了三个素材修复 PR,本提交移植与本库相关的部分。
注意:本库与上游 runhey/master 已长期分叉(共同祖先 2025-11-15;上游多 757 个提交、本库多 1062 个),
故按文件取用,而非合并分支。

--- 取自 runhey#1891(smallwin-jq 退出战斗确认按钮)
- gb/gb_exit_ensure.png 换用其素材(135x63 -> 95x46)
- I_EXIT_ENSURE 的 roi 同步收紧:roi_front=(701,414,95,46)、roi_back=(648,388,220,96)
  (原为固定位置比对 (674,388,135,63);新框完全落在金色"确定"按钮内,并容许弹窗轻微位移)
- gb/image.json 标注元数据同步
- 该 PR 其余 5 个文件只是注释/排序等装饰性改动,未采纳
- 交叉校验:与本地独立截取的同一弹窗素材在重叠区一致性 0.9874

--- 取自 runhey#1892(weirj2016-ai 悬赏封印独立奖励识别图)
- 新增 tasks/WantedQuests/wq/ui_rewardnew.png (239x24) 与规则 I_UI_REWARDNEW (threshold 0.7)
- tasks/base_task.py:ui_get_reward() / ui_reward_appear_click() 增加 reward_image 参数,
  默认仍用通用 I_UI_REWARD,行为不变;悬赏的奖励弹窗与通用那张不同型
- tasks/WantedQuests/script_task.py:两处宝箱奖励调用改为传 reward_image=self.I_UI_REWARDNEW
  本库悬赏探索继承探索任务,其"小纸人奖励"路径仍用通用 I_UI_REWARD(已修),未改动
- 未采用上游的 I_UI_REWARDnew 别名写法(本库类直接继承 assets,用 I_UI_REWARDNEW 即可)

--- 取自 runhey#1893(m123711 换御魂确认按钮)
- tasks/Component/SwitchSoul/ss/ss_sou_switch_sure.png 换用其素材(180x61,与 roi_front 尺寸一致,无代码改动)

--- 取自 runhey#1886(allesgutefy 组队邀请默认勾选框)
- check_and_invite() 点击 I_I_NO_DEFAULT 后 sleep(0.8),避免 UI 状态未刷新导致误判

未采纳:runhey#1885(本库已有 run_task_or_default_general_battle)、runhey#1862 彼世逢魔,
以及 runhey#1872/runhey#1870/runhey#1873/runhey#1847/runhey#1822(对应任务本库未启用)。
旧素材均本地备份为同名 .bak-20261010(未纳入版本库)。
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