[Bug][JP] 仓库记录仪模板 TEMPLATE_STORAGE_LOGGER 与当前图标相似度仅 0.53~0.59,similarity=0.5 时误识别为强化修理箱

Open
#6,195 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by reading storage_logger_use_all() and _storage_item_use() and checking how both scan with TEMPLATE_STORAGE_LOGGER in assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER.gif. Compare the current template with the three logger images described in the issue, then check whether the shared similarity threshold affects other servers. Done means the Japanese server finds only the three loggers and both scans use a consistent threshold.

Written by the indexing model from the issue text.

Description

在提问之前...
  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • 我正在使用最新版的 Alas
描述你的问题

日服,OpsiObscure / OpsiAbyssal 开启 UseLogger。

用 adb 截取的日服仓库画面(1280x720)测试,当前的 assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER.gif 和仓库中 3 个记录仪的相似度只有 0.53~0.59:match_multi(similarity=0.5) 找到 3 个,similarity=0.6 时 0 个。阈值 0.5 太接近,容易误识别其他道具。

2026-10-17 使用记录仪时,用完 3 个之后数量从 1 变回 2,第 4 次点击的其实是「强化修理箱」,进入选择舰船的界面后卡住,60 秒后 GameStuckError。

881ea864d 增加了使用后重新扫描的逻辑,但模板和 similarity=0.5 没有变化(storage_logger_use_all() 和 _storage_item_use() 两处)。

如何复现
  1. 日服,仓库中有记录仪,同时有强化修理箱等道具
  2. 开启 OpsiGeneral.UseLogger,运行 OpsiObscure
  3. log 中 [Storage_logger] 的数量在用完后又增加,点击了其他道具
预期行为

只识别记录仪。

相关 Logs
2026-10-17 15:13:28.653 | INFO | [Storage_logger] 3
2026-10-17 15:13:28.693 | INFO | Click ( 195,  516) @ TEMPLATE_STORAGE_LOGGER
2026-10-17 15:13:30.039 | INFO | [Storage_logger] 2
2026-10-17 15:13:30.051 | INFO | Click ( 216,  521) @ TEMPLATE_STORAGE_LOGGER
2026-10-17 15:13:31.382 | INFO | [Storage_logger] 1
2026-10-17 15:13:31.392 | INFO | Click ( 198,  528) @ TEMPLATE_STORAGE_LOGGER
2026-10-17 15:13:32.693 | INFO | [Storage_logger] 2
2026-10-17 15:13:32.701 | INFO | Click ( 367,  524) @ TEMPLATE_STORAGE_LOGGER
2026-10-17 15:14:32.743 | WARNING | Waiting for {'BOX_USE', 'STORY_CLOSE', 'STORY_SKIP_3', 'STORAGE_USE', ...}
2026-10-17 15:14:32.833 | ERROR | GameStuckError: Wait too long
截图

日服仓库画面(右下 3 个为记录仪):(截图见下方评论)

还有别的吗?

本地修改:从上面的截图切出 3 个记录仪(41x36,紫/金海域坐标记录、塞壬坐标记录)做成新的 3 帧 gif 替换模板,并把 storage_logger_use_all() 的 similarity 改为 0.7。替换后记录仪相似度 1.0,其他格子 ≤ 0.34,match_multi(0.7) 正好找到 3 个。从 2026-11-16 起记录仪都能正常使用([Storage_logger] 3→2→1→0)。新模板见下方评论。

注意:只提高阈值、不换模板的话,旧模板在 0.7 时一个记录仪都找不到。另外 similarity 是所有服务器共用的,直接改成 0.7 可能影响其他服务器;建议更新日服模板,并让 storage_logger_use_all() 和 _storage_item_use() 的重新扫描使用同一个阈值。

Dominant language
Python
Stars
9.8k
Forks
1.2k
Avg merge
18h 42m
Merged PRs (30d)
33

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LmeSzinc/AzurLaneAutoScript

All issues in LmeSzinc/AzurLaneAutoScript

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.