syfoud / syfoud/Simulated_Scepter

[Bug] 起始区域判断错误

Open
#81 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug / 漏洞
Dominant language
Python
Stars
568
Forks
10
Avg merge
19h 42m
Merged PRs (30d)
48

Description

问题描述

在主控角色颜色为紫色为主时,有概率遇到起始点判断错误,点击无法移动区域进行移动

复现步骤

1.黄泉/银狼/银狼.lv999为主控进入下一区域
2.进入棋盘路径选择且主控为颜色以紫色为主的角色

预期行为

正确判断起始位置

截图或录屏
Image
相关日志
2026-08-20 11:32:06,500 - DEBUG - 当前模式2,找到 23 个匹配
2026-08-20 11:32:07,569 - DEBUG - 角标检测完成,发现 1 个角标
2026-08-20 11:32:07,570 - DEBUG - 检测到 1 个角标
2026-08-20 11:32:07,571 - DEBUG -   reinforce2 sim=0.988 -> 节点9(battle) dist=43.6
2026-08-20 11:32:07,612 - DEBUG - 角色匹配 crop=[55, 63, 92, 104] 得分=0.647
2026-08-20 11:32:07,652 - DEBUG - 角色匹配 crop=[58, 159, 94, 199] 得分=0.627
2026-08-20 11:32:07,695 - DEBUG - 角色匹配 crop=[55, 63, 92, 104] 得分=0.647
2026-08-20 11:32:07,735 - DEBUG - 角色匹配 crop=[58, 159, 94, 199] 得分=0.627
2026-08-20 11:32:07,737 - DEBUG - 当前起点坐标None
2026-08-20 11:32:07,738 - DEBUG -   0: adventure at (1358, 622), 相似度: 0.992
2026-08-20 11:32:07,739 - DEBUG -   1: bugbattle at (1418, 323), 相似度: 0.983
2026-08-20 11:32:07,739 - DEBUG -   2: head at (1644, 521), 相似度: 0.98
2026-08-20 11:32:07,741 - DEBUG -   3: trade at (1475, 425), 相似度: 0.974
2026-08-20 11:32:07,741 - DEBUG -   4: event at (1305, 714), 相似度: 0.918
2026-08-20 11:32:07,742 - DEBUG -   5: event at (1191, 714), 相似度: 0.888
2026-08-20 11:32:07,742 - DEBUG -   6: battle at (1415, 714), 相似度: 0.888
2026-08-20 11:32:07,743 - DEBUG -   7: event at (1248, 617), 相似度: 0.866
2026-08-20 11:32:07,744 - DEBUG -   8: bugevent at (1135, 420), 相似度: 0.866
2026-08-20 11:32:07,744 - DEBUG -   9: battle at (1301, 325), 相似度: 0.863 [角标:reinforce2]
2026-08-20 11:32:07,745 - DEBUG -   10: elite at (1474, 617), 相似度: 0.852
2026-08-20 11:32:07,752 - DEBUG -   11: reward at (1530, 325), 相似度: 0.844
2026-08-20 11:32:07,753 - DEBUG -   12: reward at (1189, 325), 相似度: 0.83
2026-08-20 11:32:07,754 - DEBUG -   13: reward2 at (1533, 516), 相似度: 0.779
2026-08-20 11:32:07,755 - DEBUG -   14: battle at (1244, 422), 相似度: 0.766
2026-08-20 11:32:07,755 - DEBUG -   15: bugevent at (1192, 517), 相似度: 0.761
2026-08-20 11:32:07,756 - DEBUG -   16: battle at (1301, 520), 相似度: 0.72
2026-08-20 11:32:07,757 - DEBUG -   17: elite at (1588, 422), 相似度: 0.705
2026-08-20 11:32:07,758 - DEBUG -   18: trade at (1532, 717), 相似度: 0.695
2026-08-20 11:32:07,766 - DEBUG -   19: elite at (1360, 422), 相似度: 0.672
2026-08-20 11:32:07,767 - DEBUG -   20: bugbattle at (1589, 615), 相似度: 0.605
2026-08-20 11:32:07,768 - DEBUG -   21: bugevent at (1420, 517), 相似度: 0.603
2026-08-20 11:32:07,771 - DEBUG -   22: bugbattle at (1134, 615), 相似度: 0.524
2026-08-20 11:32:07,772 - DEBUG - 过滤boss/head右侧节点后,剩余 23 个匹配
2026-08-20 11:32:07,772 - DEBUG -   0: adventure at (1358, 622), 相似度: 0.992
2026-08-20 11:32:07,773 - DEBUG -   1: bugbattle at (1418, 323), 相似度: 0.983
2026-08-20 11:32:07,775 - DEBUG -   2: head at (1644, 521), 相似度: 0.98
2026-08-20 11:32:07,776 - DEBUG -   3: trade at (1475, 425), 相似度: 0.974
2026-08-20 11:32:07,777 - DEBUG -   4: event at (1305, 714), 相似度: 0.918
2026-08-20 11:32:07,777 - DEBUG -   5: event at (1191, 714), 相似度: 0.888
2026-08-20 11:32:07,778 - DEBUG -   6: battle at (1415, 714), 相似度: 0.888
2026-08-20 11:32:07,778 - DEBUG -   7: event at (1248, 617), 相似度: 0.866
2026-08-20 11:32:07,779 - DEBUG -   8: bugevent at (1135, 420), 相似度: 0.866
2026-08-20 11:32:07,779 - DEBUG -   9: battle at (1301, 325), 相似度: 0.863
2026-08-20 11:32:07,780 - DEBUG -   10: elite at (1474, 617), 相似度: 0.852
2026-08-20 11:32:07,780 - DEBUG -   11: reward at (1530, 325), 相似度: 0.844
2026-08-20 11:32:07,780 - DEBUG -   12: reward at (1189, 325), 相似度: 0.83
2026-08-20 11:32:07,781 - DEBUG -   13: reward2 at (1533, 516), 相似度: 0.779
2026-08-20 11:32:07,781 - DEBUG -   14: battle at (1244, 422), 相似度: 0.766
2026-08-20 11:32:07,782 - DEBUG -   15: bugevent at (1192, 517), 相似度: 0.761
2026-08-20 11:32:07,786 - DEBUG -   16: battle at (1301, 520), 相似度: 0.72
2026-08-20 11:32:07,787 - DEBUG -   17: elite at (1588, 422), 相似度: 0.705
2026-08-20 11:32:07,788 - DEBUG -   18: trade at (1532, 717), 相似度: 0.695
2026-08-20 11:32:07,788 - DEBUG -   19: elite at (1360, 422), 相似度: 0.672
2026-08-20 11:32:07,789 - DEBUG -   20: bugbattle at (1589, 615), 相似度: 0.605
2026-08-20 11:32:07,790 - DEBUG -   21: bugevent at (1420, 517), 相似度: 0.603
2026-08-20 11:32:07,790 - DEBUG -   22: bugbattle at (1134, 615), 相似度: 0.524
2026-08-20 11:32:07,791 - DEBUG - 构建图后的节点 (索引,类型,相似度,中心 x, 中心 y):
2026-08-20 11:32:07,793 - DEBUG -   0: adventure sim=0.992 center=(1382.5,646.0)
2026-08-20 11:32:07,795 - DEBUG -   1: bugbattle sim=0.983 center=(1437.5,350.0)
2026-08-20 11:32:07,796 - DEBUG -   2: head sim=0.980 center=(1667.5,545.5)
2026-08-20 11:32:07,796 - DEBUG -   3: trade sim=0.974 center=(1499.0,451.0)
2026-08-20 11:32:07,797 - DEBUG -   4: event sim=0.918 center=(1328.5,740.5)
2026-08-20 11:32:07,797 - DEBUG -   5: event sim=0.888 center=(1214.5,740.5)
2026-08-20 11:32:07,797 - DEBUG -   6: battle sim=0.888 center=(1434.0,740.5)
2026-08-20 11:32:07,798 - DEBUG -   7: event sim=0.866 center=(1271.5,643.5)
2026-08-20 11:32:07,798 - DEBUG -   8: bugevent sim=0.866 center=(1155.0,447.0)
2026-08-20 11:32:07,798 - DEBUG -   9: battle sim=0.863 center=(1320.0,351.5)
2026-08-20 11:32:07,799 - DEBUG -   10: elite sim=0.852 center=(1493.0,643.5)
2026-08-20 11:32:07,799 - DEBUG -   11: reward sim=0.844 center=(1554.5,351.5)
2026-08-20 11:32:07,800 - DEBUG -   12: reward sim=0.830 center=(1213.5,351.5)
2026-08-20 11:32:07,801 - DEBUG -   13: reward2 sim=0.779 center=(1555.5,545.0)
2026-08-20 11:32:07,801 - DEBUG -   14: battle sim=0.766 center=(1263.0,448.5)
2026-08-20 11:32:07,805 - DEBUG -   15: bugevent sim=0.761 center=(1212.0,544.0)
2026-08-20 11:32:07,806 - DEBUG -   16: battle sim=0.720 center=(1320.0,546.5)
2026-08-20 11:32:07,806 - DEBUG -   17: elite sim=0.705 center=(1607.0,448.5)
2026-08-20 11:32:07,807 - DEBUG -   18: trade sim=0.695 center=(1556.0,743.0)
2026-08-20 11:32:07,808 - DEBUG -   19: elite sim=0.672 center=(1379.0,448.5)
2026-08-20 11:32:07,822 - DEBUG -   20: bugbattle sim=0.605 center=(1608.5,642.0)
2026-08-20 11:32:07,822 - DEBUG -   21: bugevent sim=0.603 center=(1440.0,544.0)
2026-08-20 11:32:07,825 - DEBUG -   22: bugbattle sim=0.524 center=(1153.5,642.0)
2026-08-20 11:32:07,826 - DEBUG - 路径理论期望值:8.880
2026-08-20 11:32:07,827 - DEBUG - 路径理论最小值:7
2026-08-20 11:32:07,827 - DEBUG - 路径理论最大值:14
2026-08-20 11:32:07,829 - DEBUG - 路径极限最大值:26
2026-08-20 11:32:07,830 - DEBUG -
最佳单节点替换:索引=15, 名称=bugevent
2026-08-20 11:32:07,831 - DEBUG -   原类型权重 -> 新类型权重:0.660 -> 1.200 (+0.540)
2026-08-20 11:32:07,831 - DEBUG -   距离起点的最长步数 k=1
2026-08-20 11:32:07,832 - DEBUG -   原始增量 delta=0.540
2026-08-20 11:32:07,833 - DEBUG -   期权调整后增量 (1-0.2)^1 × 0.540 = 0.432
2026-08-20 11:32:07,834 - DEBUG - 替换后路径总权重:9.420 (原权重:8.880)
2026-08-20 11:32:07,834 - DEBUG - 提示:新旧路径节点相同
2026-08-20 11:32:07,835 - DEBUG -   被替换节点:15(bugevent)
2026-08-20 11:32:07,836 - DEBUG -
原路径理论期望值:8.880 (min=7, max=14)
2026-08-20 11:32:07,837 - DEBUG - 新路径理论期望值:9.420 (min=8, max=16)
2026-08-20 11:32:07,899 - DEBUG - 执行操作{'type': 'click', 'x': 1212, 'y': 544, 'force': False},当前队列长度0
2026-08-20 11:32:08,166 - INFO - Neikos496请求:确认移动响应:选择移动目标
2026-08-20 11:32:08,443 - WARNING - 确认移动文本未找到
2026-08-20 11:32:08,821 - INFO - Neikos496触发并执行指令选择移动目标,条件:被动效果
2026-08-20 11:32:08,821 - WARNING - 触发时间限制,距离上次触发0.3775491714477539秒,默认配置间隔为1
2026-08-20 11:32:09,177 - INFO - Neikos496触发并执行指令选择移动目标,条件:被动效果
2026-08-20 11:32:09,178 - WARNING - 触发时间限制,距离上次触发0.7345852851867676秒,默认配置间隔为1
2026-08-20 11:32:09,538 - INFO - Neikos496触发并执行指令选择移动目标,条件:被动效果
2026-08-20 11:32:11,617 - DEBUG - 当前击杀数15
2026-08-20 11:32:11,617 - DEBUG - 清除当前所有操作
2026-08-20 11:32:11,622 - DEBUG - 执行操作{'type': 'keyUp', 'key': 'w', 'force': False},当前队列长度0
2026-08-20 11:32:11,869 - INFO - Neikos496请求:选择移动目标响应:选择移动目标
2026-08-20 11:32:11,917 - INFO - Neikos496请求:点击空白处关闭响应:
2026-08-20 11:32:12,400 - DEBUG - 当前模式2,找到 23 个匹配
2026-08-20 11:32:13,474 - DEBUG - 角标检测完成,发现 1 个角标
2026-08-20 11:32:13,475 - DEBUG - 检测到 1 个角标
2026-08-20 11:32:13,476 - DEBUG -   reinforce2 sim=0.988 -> 节点9(battle) dist=43.6
2026-08-20 11:32:13,519 - DEBUG - 角色匹配 crop=[55, 63, 92, 104] 得分=0.647
2026-08-20 11:32:13,560 - DEBUG - 角色匹配 crop=[58, 159, 94, 199] 得分=0.627
2026-08-20 11:32:13,601 - DEBUG - 角色匹配 crop=[55, 63, 92, 104] 得分=0.647
2026-08-20 11:32:13,642 - DEBUG - 角色匹配 crop=[58, 159, 94, 199] 得分=0.627
2026-08-20 11:32:13,643 - DEBUG - 当前起点坐标None
2026-08-20 11:32:13,644 - DEBUG -   0: adventure at (1358, 622), 相似度: 0.992
2026-08-20 11:32:13,645 - DEBUG -   1: bugbattle at (1418, 323), 相似度: 0.983
2026-08-20 11:32:13,645 - DEBUG -   2: head at (1644, 521), 相似度: 0.979
2026-08-20 11:32:13,649 - DEBUG -   3: trade at (1475, 425), 相似度: 0.974
2026-08-20 11:32:13,650 - DEBUG -   4: event at (1305, 714), 相似度: 0.918
2026-08-20 11:32:13,651 - DEBUG -   5: event at (1191, 714), 相似度: 0.888
2026-08-20 11:32:13,653 - DEBUG -   6: battle at (1415, 714), 相似度: 0.888
2026-08-20 11:32:13,655 - DEBUG -   7: event at (1248, 617), 相似度: 0.866
2026-08-20 11:32:13,657 - DEBUG -   8: bugevent at (1135, 420), 相似度: 0.866
2026-08-20 11:32:13,657 - DEBUG -   9: battle at (1301, 325), 相似度: 0.863 [角标:reinforce2]
2026-08-20 11:32:13,658 - DEBUG -   10: elite at (1474, 617), 相似度: 0.852
2026-08-20 11:32:13,658 - DEBUG -   11: reward at (1530, 325), 相似度: 0.845
2026-08-20 11:32:13,660 - DEBUG -   12: reward at (1189, 325), 相似度: 0.83
2026-08-20 11:32:13,661 - DEBUG -   13: reward2 at (1533, 516), 相似度: 0.779
2026-08-20 11:32:13,662 - DEBUG -   14: battle at (1244, 422), 相似度: 0.766
2026-08-20 11:32:13,663 - DEBUG -   15: battle at (1301, 520), 相似度: 0.72
2026-08-20 11:32:13,663 - DEBUG -   16: elite at (1588, 422), 相似度: 0.705
2026-08-20 11:32:13,664 - DEBUG -   17: trade at (1532, 717), 相似度: 0.695
2026-08-20 11:32:13,666 - DEBUG -   18: elite at (1360, 422), 相似度: 0.672
2026-08-20 11:32:13,669 - DEBUG -   19: bugevent at (1192, 514), 相似度: 0.67
2026-08-20 11:32:13,672 - DEBUG -   20: bugbattle at (1589, 615), 相似度: 0.605
2026-08-20 11:32:13,673 - DEBUG -   21: bugevent at (1420, 517), 相似度: 0.603
2026-08-20 11:32:13,674 - DEBUG -   22: bugbattle at (1134, 615), 相似度: 0.524
2026-08-20 11:32:13,675 - DEBUG - 过滤boss/head右侧节点后,剩余 23 个匹配
2026-08-20 11:32:13,676 - DEBUG -   0: adventure at (1358, 622), 相似度: 0.992
2026-08-20 11:32:13,678 - DEBUG -   1: bugbattle at (1418, 323), 相似度: 0.983
2026-08-20 11:32:13,678 - DEBUG -   2: head at (1644, 521), 相似度: 0.979
2026-08-20 11:32:13,678 - DEBUG -   3: trade at (1475, 425), 相似度: 0.974
2026-08-20 11:32:13,681 - DEBUG -   4: event at (1305, 714), 相似度: 0.918
2026-08-20 11:32:13,682 - DEBUG -   5: event at (1191, 714), 相似度: 0.888
2026-08-20 11:32:13,683 - DEBUG -   6: battle at (1415, 714), 相似度: 0.888
2026-08-20 11:32:13,687 - DEBUG -   7: event at (1248, 617), 相似度: 0.866
2026-08-20 11:32:13,688 - DEBUG -   8: bugevent at (1135, 420), 相似度: 0.866
2026-08-20 11:32:13,689 - DEBUG -   9: battle at (1301, 325), 相似度: 0.863
2026-08-20 11:32:13,689 - DEBUG -   10: elite at (1474, 617), 相似度: 0.852
2026-08-20 11:32:13,689 - DEBUG -   11: reward at (1530, 325), 相似度: 0.845
2026-08-20 11:32:13,691 - DEBUG -   12: reward at (1189, 325), 相似度: 0.83
2026-08-20 11:32:13,692 - DEBUG -   13: reward2 at (1533, 516), 相似度: 0.779
2026-08-20 11:32:13,693 - DEBUG -   14: battle at (1244, 422), 相似度: 0.766
2026-08-20 11:32:13,693 - DEBUG -   15: battle at (1301, 520), 相似度: 0.72
2026-08-20 11:32:13,694 - DEBUG -   16: elite at (1588, 422), 相似度: 0.705
2026-08-20 11:32:13,694 - DEBUG -   17: trade at (1532, 717), 相似度: 0.695
2026-08-20 11:32:13,696 - DEBUG -   18: elite at (1360, 422), 相似度: 0.672
2026-08-20 11:32:13,696 - DEBUG -   19: bugevent at (1192, 514), 相似度: 0.67
2026-08-20 11:32:13,698 - DEBUG -   20: bugbattle at (1589, 615), 相似度: 0.605
2026-08-20 11:32:13,699 - DEBUG -   21: bugevent at (1420, 517), 相似度: 0.603
2026-08-20 11:32:13,699 - DEBUG -   22: bugbattle at (1134, 615), 相似度: 0.524
2026-08-20 11:32:13,703 - DEBUG - 构建图后的节点 (索引,类型,相似度,中心 x, 中心 y):
2026-08-20 11:32:13,704 - DEBUG -   0: adventure sim=0.992 center=(1382.5,646.0)
2026-08-20 11:32:13,705 - DEBUG -   1: bugbattle sim=0.983 center=(1437.5,350.0)
2026-08-20 11:32:13,705 - DEBUG -   2: head sim=0.979 center=(1667.5,545.5)
2026-08-20 11:32:13,706 - DEBUG -   3: trade sim=0.974 center=(1499.0,451.0)
2026-08-20 11:32:13,707 - DEBUG -   4: event sim=0.918 center=(1328.5,740.5)
2026-08-20 11:32:13,709 - DEBUG -   5: event sim=0.888 center=(1214.5,740.5)
2026-08-20 11:32:13,709 - DEBUG -   6: battle sim=0.888 center=(1434.0,740.5)
2026-08-20 11:32:13,710 - DEBUG -   7: event sim=0.866 center=(1271.5,643.5)
2026-08-20 11:32:13,710 - DEBUG -   8: bugevent sim=0.866 center=(1155.0,447.0)
2026-08-20 11:32:13,710 - DEBUG -   9: battle sim=0.863 center=(1320.0,351.5)
2026-08-20 11:32:13,711 - DEBUG -   10: elite sim=0.852 center=(1493.0,643.5)
2026-08-20 11:32:13,712 - DEBUG -   11: reward sim=0.845 center=(1554.5,351.5)
2026-08-20 11:32:13,713 - DEBUG -   12: reward sim=0.830 center=(1213.5,351.5)
2026-08-20 11:32:13,713 - DEBUG -   13: reward2 sim=0.779 center=(1555.5,545.0)
2026-08-20 11:32:13,715 - DEBUG -   14: battle sim=0.766 center=(1263.0,448.5)
2026-08-20 11:32:13,718 - DEBUG -   15: battle sim=0.720 center=(1320.0,546.5)
2026-08-20 11:32:13,719 - DEBUG -   16: elite sim=0.705 center=(1607.0,448.5)
2026-08-20 11:32:13,720 - DEBUG -   17: trade sim=0.695 center=(1556.0,743.0)
2026-08-20 11:32:13,721 - DEBUG -   18: elite sim=0.672 center=(1379.0,448.5)
2026-08-20 11:32:13,721 - DEBUG -   19: bugevent sim=0.670 center=(1212.0,541.0)
2026-08-20 11:32:13,721 - DEBUG -   20: bugbattle sim=0.605 center=(1608.5,642.0)
2026-08-20 11:32:13,722 - DEBUG -   21: bugevent sim=0.603 center=(1440.0,544.0)
2026-08-20 11:32:13,722 - DEBUG -   22: bugbattle sim=0.524 center=(1153.5,642.0)
2026-08-20 11:32:13,723 - DEBUG - 路径理论期望值:8.880
2026-08-20 11:32:13,724 - DEBUG - 路径理论最小值:7
2026-08-20 11:32:13,725 - DEBUG - 路径理论最大值:14
2026-08-20 11:32:13,725 - DEBUG - 路径极限最大值:26
2026-08-20 11:32:13,726 - DEBUG -
最佳单节点替换:索引=19, 名称=bugevent
2026-08-20 11:32:13,727 - DEBUG -   原类型权重 -> 新类型权重:0.660 -> 1.200 (+0.540)
2026-08-20 11:32:13,727 - DEBUG -   距离起点的最长步数 k=1
2026-08-20 11:32:13,727 - DEBUG -   原始增量 delta=0.540
2026-08-20 11:32:13,727 - DEBUG -   期权调整后增量 (1-0.2)^1 × 0.540 = 0.432
2026-08-20 11:32:13,729 - DEBUG - 替换后路径总权重:9.420 (原权重:8.880)
2026-08-20 11:32:13,730 - DEBUG - 提示:新旧路径节点相同
2026-08-20 11:32:13,730 - DEBUG -   被替换节点:19(bugevent)
2026-08-20 11:32:13,732 - DEBUG -
原路径理论期望值:8.880 (min=7, max=14)
2026-08-20 11:32:13,734 - DEBUG - 新路径理论期望值:9.420 (min=8, max=16)
2026-08-20 11:32:13,769 - DEBUG - 执行操作{'type': 'click', 'x': 1212, 'y': 541, 'force': False},当前队列长度0
2026-08-20 11:32:14,046 - INFO - Neikos496请求:确认移动响应:选择移动目标
2026-08-20 11:32:14,328 - WARNING - 确认移动文本未找到
2026-08-20 11:32:14,687 - INFO - Neikos496触发并执行指令选择移动目标,条件:被动效果
完整日志(文件上传)

log_2026-08-20-11-31.txt

操作系统

Windows 10

Python 版本

3.12.7

项目版本 / Commit

1.2.3

Contributor guide

Open the 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.

Research direction

Start by tracing the entry point that logs “当前起点坐标None” and the character-color matching shown in the issue logs. Reproduce the purple-dominant character scenario when entering the path-selection board, then verify that the starting position is detected and movement targets can be clicked correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.