[Bug]: SwitchAccountMultipleMode - 切换账号多模式 切换账号UID识别失败

Open
#3,370 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
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
javascript
Domain
game-dev

Research direction

Start by reproducing SwitchAccountMultipleMode with BetterGI 0.62.0, then inspect ImageRegion.cs at line 302 and BvStatus.cs at line 389, where the UID OCR failure is reported. Trace the ROI used for UID recognition and verify that account switching identifies the UID without the OpenCV exception.

Written by the indexing model from the issue text.

Description

bug
BetterGI 版本 (必填)

0.62.0

脚本名称 (必填)

SwitchAccountMultipleMode - 切换账号多模式

问题描述 (必填)

切换账号UID识别失败

复现步骤 (可选)

No response

日志文件或录屏 (可选)

[07:04:18.870] [ERR] BetterGenshinImpact.GameTask.Common.TaskControl
OCR 识别 UID 异常
OpenCvSharp.OpenCVException: 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows
at OpenCvSharp.Internal.NativeMethods.<>c.<.cctor>b__1687_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userData)
at OpenCvSharp.Internal.NativeMethods.core_Mat_new7(IntPtr mat, Rect roi, IntPtr& returnValue)
at OpenCvSharp.Mat..ctor(Mat m, Rect roi)
at BetterGenshinImpact.GameTask.Model.Area.ImageRegion.Find(RecognitionObject ro, Action`1 successAction, Action failAction) in D:\a\better-genshin-impact\better-genshin-impact\BetterGenshinImpact\GameTask\Model\Area\ImageRegion.cs:line 302
at BetterGenshinImpact.GameTask.Common.BgiVision.Bv.Uid() in D:\a\better-genshin-impact\better-genshin-impact\BetterGenshinImpact\GameTask\Common\BgiVision\BvStatus.cs:line 389

[07:04:18.925] [ERR] BetterGenshinImpact.GameTask.Common.TaskControl
OCR 识别 UID 异常
OpenCvSharp.OpenCVException: 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows
at OpenCvSharp.Internal.NativeMethods.<>c.<.cctor>b__1687_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userData)
at OpenCvSharp.Internal.NativeMethods.core_Mat_new7(IntPtr mat, Rect roi, IntPtr& returnValue)
at OpenCvSharp.Mat..ctor(Mat m, Rect roi)
at BetterGenshinImpact.GameTask.Model.Area.ImageRegion.Find(RecognitionObject ro, Action`1 successAction, Action failAction) in D:\a\better-genshin-impact\better-genshin-impact\BetterGenshinImpact\GameTask\Model\Area\ImageRegion.cs:line 302
at BetterGenshinImpact.GameTask.Common.BgiVision.Bv.Uid() in D:\a\better-genshin-impact\better-genshin-impact\BetterGenshinImpact\GameTask\Common\BgiVision\BvStatus.cs:line 389

其他信息 (可选)

No response

Dominant language
JavaScript
Stars
793
Forks
505
Avg merge
1d 12h
Merged PRs (30d)
68

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 babalae/bettergi-scripts-list

All issues in babalae/bettergi-scripts-list

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.