按台账修镜牢: 饰品弹窗兜底、按键扫描码、卡包按体系加分

Browse Source
按 docs/ISSUES.md 处理本机回归后待修/待数据的条目:

- I-06/R-04 开局「获得E.G.O饰品」弹窗死循环: 确认模板连续第 3 次命中起改点
  按钮中心(勾号 +76/1440), 连续 20 次还在就记 [ERROR]、抛 TaskAbort 结束任务
  (上游 continue 跳过了循环计数)。单测执行上游真实 select_init_ego_gift。
- I-05/R-03 键盘寻路 0 成功: 前台按键改发带扫描码和扩展键标志的 keybd_event,
  各模式按住 0.12 秒(上游注释: Unity 6 校验扫描码/扩展键); 连续 3 个节点进不去
  就本次任务停用键盘寻路(方案 B)。MCP key 工具前台同样处理。LCP_KEY_HOLD=0 关。
- I-07/R-02 事件表 6 -> 9 条: 蜘蛛巢、归乡路途两段(拿「归途」), 按 wiki.gg 核对结果;
  全表按本机装的零协 release 2026111301 重新核对唯一性。
- I-13 复查 5992827: 「进入」先模板确认再 OCR(原来每轮都跑一次整屏 OCR);
  选队页重试重新截图; 入场切队失败记 [ERROR] 且本局不再重翻列表。
- R-01/I-08 卡包按体系加分: wiki.gg 122 个卡包(楼层/专属饰品/Featured 分类) +
  零协中文名生成 lc_mcp/data/theme_pack_systems.json(scripts/build_theme_pack_systems.py);
  灰机 wiki 对云端 403、BWIKI 无卡包条目, 中文社区攻略用 codex CLI 联网检索,
  推荐/避开并入表的 community。选卡包时临时加到 AALC 权重上, 按当前难度只看会出现
  的卡包; 审计记 system_bonus。LCP_THEME_PACK_SYSTEMS=0 关。
- 文档: ISSUES/BACKLOG/README 更新, 新增 docs/feedback/2026-11-15/REGRESSION.md
  (本轮回归清单)和 theme-pack-research.md(检索记录)。

单测 703 个全过(Linux)。实机未验。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yws
2026-11-15 01:24:46 +00:00
co-authored by Claude Opus 5.5
parent 599282729c
commit 96a31bc1ae
19 changed files with 2121 additions and 56 deletions
+14 -6
View File
@@ -11,12 +11,13 @@ import sys
from . import killswitch, preflight
from .aalc_engine import bootstrap
from .aalc_patches import (WindowGuard, driver_click_tasks, headless_hdr_warning,
from .aalc_patches import (TaskAbort, WindowGuard, driver_click_tasks, headless_hdr_warning,
install_default_battle_team, install_event_choices, install_exact_team_match,
install_gift_preference, install_robust_set_foreground, install_shop_audit,
install_shop_by_name, install_system_team_selection, install_team_screen_guard,
install_theme_pack_audit,
install_typed_keyboard_road, mirror_progress, stop_driver_click)
install_gift_confirm_guard, install_gift_preference, install_key_hold,
install_robust_set_foreground, install_shop_audit, install_shop_by_name,
install_system_team_selection, install_team_screen_guard,
install_theme_pack_audit, install_theme_pack_systems, install_typed_keyboard_road,
mirror_progress, stop_driver_click)
from .decisions import decisions
from .game_lock import GameBusyError, exclusive_game
@@ -124,6 +125,8 @@ def _run(task, params):
decisions.open() # TaskRunner 给的 .decisions.jsonl; 直接运行时不写
install_exact_team_match(auto, log)
install_robust_set_foreground(screen, log=log)
if not cfg.simulator:
install_key_hold(log=log) # 前台按键带扫描码、各模式按住再松开(ISSUES I-05)
# 日常本(经验/纽本)不翻队伍列表: 队伍是自定义名字时按名字找必然失败,
# 白等 60 秒还会把界面滚乱, 后面 to_battle 就找不到 "进入战斗" 了。
if task in ('daily', 'all'):
@@ -132,12 +135,14 @@ def _run(task, params):
if task in ('mirror', 'all'):
install_system_team_selection(log=log)
install_team_screen_guard(log=log)
install_gift_confirm_guard(log=log) # 「获得E.G.O饰品」点不关时换落点/结束任务(ISSUES I-06)
install_typed_keyboard_road(log=log)
install_gift_preference(log=log)
install_event_choices(log=log)
install_shop_audit(log=log)
install_shop_by_name(log=log) # 装在审计之后(包在外层), 审计才看得到按名字点的那一下
install_theme_pack_audit(log=log)
install_theme_pack_systems(log=log) # 卡包按体系加分(BACKLOG R-01)
install_theme_pack_audit(log=log) # 装在加分之后(包在外层), 审计记得到加分
guard = WindowGuard(screen, cfg, log=log)
guard.start()
restore_path = os.environ.get(RESTORE_ENV)
@@ -165,6 +170,9 @@ def _run(task, params):
'mirror': scheme.Mirror_task,
}[task]()
return mirror_result(task, progress)
except TaskAbort as e:
log('[ERROR] [lc_mcp] 任务中止: %s' % e)
return INCOMPLETE_EXIT
finally:
guard.stop()
retry_monitor.stop()