From 482759718dd00b8ab5c385f0992be0053e56757f Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Fri, 16 Oct 2026 11:02:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E6=88=90=E8=84=9A=E6=9C=AC:=20?= =?UTF-8?q?=E8=BF=9B=E4=B8=BB=E7=95=8C=E9=9D=A2=E5=90=8E=E8=AF=BB=E7=8B=82?= =?UTF-8?q?=E6=B0=94=E4=B9=9F=E5=8A=A0=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2026-10-16 11:00 那次实跑暴露: 刚进主界面时底栏还在淡入, 单次 read_lunacy() 常常返回 None(日志里就是"合成前狂气(OCR): None"), 那样合成前后的相对比对 就白做了 —— 校验写了等于没写。改成最多重试 4 次、每次隔 3 秒。 顺带用今天四次实测读数核对了体力账本, 确认模型没错: 09:58 13 -> 10:04 14 (+1 / 6 分钟) 10:04 14 -> 10:44 21 (+7 / 40 分钟 = 每 5.7 分钟 1 点) 10:45 合成消耗 20 -> 剩 1 11:01 4 (1 + 16 分钟 x 1/5.82) 所以 14:03 那轮预计换到 1 个模块(不是之前口算的 2 个 —— 那个基线取错了, 取了合成前的 21, 没扣掉同一次消耗掉的 20)。 全套 263/263 通过。 --- scripts/convert_modules.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/convert_modules.py b/scripts/convert_modules.py index 1a98c01..69657b3 100644 --- a/scripts/convert_modules.py +++ b/scripts/convert_modules.py @@ -474,7 +474,14 @@ def main(argv=None): log('[warn] 客户区没能调到 1600x900(现为 %s), OCR 可能不稳定' % (got_size,)) time.sleep(3) - lunacy_before = read_lunacy() + # 刚进主界面时底栏还在淡入, 单次读常常是 None(实测 11:01 那次), 那样 + # 合成前后的相对比对就白做了。这里也重试几次。 + lunacy_before = None + for _ in range(4): + lunacy_before = read_lunacy() + if lunacy_before is not None: + break + time.sleep(3) log('合成前狂气(OCR, 作相对比对用): %s' % lunacy_before) enk = read_enkephalin()