{"record":{"id":"ae6ad417ff406232","repo":"babalae/better-genshin-impact","slug":"error-ae6ad4","errorCode":null,"errorMessage":"寻找地脉花失败：未在地图上识别到地脉花图标","messagePattern":"寻找地脉花失败：未在地图上识别到地脉花图标","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"BetterGenshinImpact/GameTask/AutoLeyLineOutcrop/AutoLeyLineOutcropTask.cs","lineNumber":857,"sourceCode":"        for (var i = 1; i < positions.Count; i++)\n        {\n            var pos = positions[i];\n            _logger.LogInformation(\"尝试定位地脉花: {Name}\", pos.Name ?? $\"{pos.X},{pos.Y}\");\n            await _tpTask.MoveMapTo(pos.X, pos.Y, MapTypes.Teyvat.ToString());\n            if (await LocateLeyLineOutcrop(type))\n            {\n                return;\n            }\n        }\n\n        await EnsureExitRewardPage();\n        if (_taskParam.UseAdventurerHandbook)\n        {\n            _logger.LogWarning(\"寻找地脉花失败：当前已勾选“不使用冒险之证寻路”，可尝试关闭该选项后重试！\");\n            throw new Exception(\"寻找地脉花失败：未在地图上识别到地脉花图标。当前已勾选“不使用冒险之证寻路”，可尝试关闭该选项后重试！\");\n        }\n\n        throw new Exception(\"寻找地脉花失败：未在地图上识别到地脉花图标\");\n    }\n\n    private async Task<bool> LocateLeyLineOutcrop(string type)\n    {\n        await Delay(500, _ct);\n        double currentZoom;\n        using (var zoomCapture = CaptureToRectArea())\n        {\n            currentZoom = _tpTask.GetBigMapZoomLevel(zoomCapture);\n        }\n        await _tpTask.AdjustMapZoomLevel(currentZoom, 3.0);\n\n        var iconPath = type == \"启示之花\"\n            ? \"Assets/icon/Blossom_of_Revelation.png\"\n            : \"Assets/icon/Blossom_of_Wealth.png\";\n\n        using var ra = CaptureToRectArea();\n        var iconRo = BuildTemplate(iconPath);","sourceCodeStart":839,"sourceCodeEnd":875,"githubUrl":"https://github.com/babalae/better-genshin-impact/blob/a7cb36712dcb409be610257d877fcea3597e9d6b/BetterGenshinImpact/GameTask/AutoLeyLineOutcrop/AutoLeyLineOutcropTask.cs#L839-L875","documentation":"Same end-state as 263 — LocateLeyLineOutcrop found no blossom icon across all positions — but thrown when _taskParam.UseAdventurerHandbook is false. Without the handbook hint, only the generic 'no blossom icon recognized' message is given.","triggerScenarios":"All positions scanned, none matched, EnsureExitRewardPage executed, and _taskParam.UseAdventurerHandbook is false → falls through to the second throw.","commonSituations":"No blossom spawned; recognition failure due to zoom/UI overlay; map panned to wrong tiles.","solutions":["Verify a ley-line blossom is present in the region.","Improve recognition: correct big-map zoom (LocateLeyLineOutcrop adjusts toward 3.0), remove UI overlays.","Enable the adventurer-handbook search path (set UseAdventurerHandbook) to get the handbook fallback."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { await FindLeyLineOutcrop(country, type); }\ncatch (Exception ex) when (ex.Message.Contains(\"寻找地脉花失败\"))\n{\n    _logger.LogWarning(\"未识别到地脉花图标: {Msg}\", ex.Message);\n}","preventionTips":["Verify blossom presence and map zoom before relying on vision recognition.","Use the handbook-based search as a more robust fallback.","Tune the blossom-icon template threshold for your resolution."],"tags":["vision-recognition","ley-line","map"],"backgroundTag":null,"analyzedSha":"a7cb36712dcb409be610257d877fcea3597e9d6b","analyzedAt":"2026-08-13T16:44:57.548Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}