{"record":{"id":"0c7e8d7be38f6bac","repo":"babalae/better-genshin-impact","slug":"error-0c7e8d","errorCode":null,"errorMessage":"找不到出战角色编号块与当前出战角色标识！","messagePattern":"找不到出战角色编号块与当前出战角色标识！","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"BetterGenshinImpact/GameTask/AutoFight/Model/PartyAvatarSideIndexHelper.cs","lineNumber":237,"sourceCode":"                        }\n                    }\n\n                    // 校验推测结果（编号从 1 开始必定连续）\n                    if (AreNullsAtEnd(indexRectList))\n                    {\n                        var notNullIndexRectList = indexRectList.Where(r => r != default).ToList();\n                        return (notNullIndexRectList, GetAvatarSideIconRectFromIndexRect(notNullIndexRectList, systemInfo));\n                    }\n                    else\n                    {\n                        throw new Exception(\"校验角色列表识别结果失败，角色编号不是连续的！\");\n                    }\n                }\n            }\n            else\n            {\n                // 没有出战角色标识的情况下，直接抛出错误走写死逻辑\n                throw new Exception(\"找不到出战角色编号块与当前出战角色标识！\");\n            }\n        }\n    }\n\n    private static (int, Rect) GetKnownIndexAndRect(List<Rect> indexRectList)\n    {\n        for (int i = 0; i < indexRectList.Count; i++)\n        {\n            if (indexRectList[i] != default)\n            {\n                return (i + 1, indexRectList[i]);\n            }\n        }\n\n        return (-1, default);\n    }\n\n    public static Rect GetAvatarSideIconRectFromIndexRect(Rect indexRect, ISystemInfo systemInfo)","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/babalae/better-genshin-impact/blob/a7cb36712dcb409be610257d877fcea3597e9d6b/BetterGenshinImpact/GameTask/AutoFight/Model/PartyAvatarSideIndexHelper.cs#L219-L255","documentation":"Error \"找不到出战角色编号块与当前出战角色标识！\" thrown in babalae/better-genshin-impact.","triggerScenarios":"识别角色编号块时既没找到出战角色的编号块，也没找到当前出战角色标识，无法推测编号而走写死逻辑前直接抛出。","commonSituations":"右侧角色栏被遮挡、画面过亮导致出战标识（高亮/箭头）识别不到。","solutions":["确保当前处于队伍配置界面且界面完全加载","检查游戏分辨率是否为 16:9","重新打开队伍配置界面后重试"],"exampleFix":"确保右侧队伍栏完整可见、环境较暗后重试；或使用强制指定队伍角色绕过识别。","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7cb36712dcb409be610257d877fcea3597e9d6b","analyzedAt":"2026-08-13T16:44:57.548Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}