{"record":{"id":"1d72b66a7356b156","repo":"babalae/better-genshin-impact","slug":"error-1d72b6","errorCode":null,"errorMessage":"寻找地脉花失败：未在地图上识别到地脉花图标。当前已勾选“不使用冒险之证寻路”，可尝试关闭该选项后重试！","messagePattern":"寻找地脉花失败：未在地图上识别到地脉花图标。当前已勾选“不使用冒险之证寻路”，可尝试关闭该选项后重试！","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"BetterGenshinImpact/GameTask/AutoLeyLineOutcrop/AutoLeyLineOutcropTask.cs","lineNumber":854,"sourceCode":"            return;\n        }\n\n        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\";","sourceCodeStart":836,"sourceCodeEnd":872,"githubUrl":"https://github.com/babalae/better-genshin-impact/blob/a7cb36712dcb409be610257d877fcea3597e9d6b/BetterGenshinImpact/GameTask/AutoLeyLineOutcrop/AutoLeyLineOutcropTask.cs#L836-L872","documentation":"Thrown at the end of FindLeyLineOutcrop after every candidate map position was checked and LocateLeyLineOutcrop found no blossom icon on the big map. This variant fires specifically when _taskParam.UseAdventurerHandbook is set, and the message advises turning off the 'do not use adventurer handbook for pathing' option.","triggerScenarios":"FindLeyLineOutcrop iterated all positions for the country/type, called MoveMapTo + LocateLeyLineOutcrop for each, none returned true, EnsureExitRewardPage ran, and _taskParam.UseAdventurerHandbook evaluated true.","commonSituations":"No ley-line blossom is currently spawned in the scanned area; map zoom too far/in wrong so the blossom icon template isn't matched; the user enabled '不使用冒险之证寻路' which removes the handbook fallback.","solutions":["Confirm a ley-line blossom actually exists in-game in the target region (open challenges may be exhausted).","Turn OFF the '不使用冒险之证寻路' option as the message suggests, so the handbook-based search is attempted.","Check the big-map zoom level and template matching threshold so the blossom icon is recognizable.","Switch country/type or wait for a blossom to refresh."],"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    // optionally retry once with UseAdventurerHandbook toggled\n}","preventionTips":["Confirm a blossom is spawned in-game before running the task.","Keep the big map at a zoom where the blossom icon template matches.","When the no-handbook option is enabled, expect this failure mode and provide a retry that re-enables the handbook path."],"tags":["vision-recognition","ley-line","config","map"],"backgroundTag":null,"analyzedSha":"a7cb36712dcb409be610257d877fcea3597e9d6b","analyzedAt":"2026-08-13T16:44:57.548Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}