Compare commits
69
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4a42bcfaf | ||
|
|
58cd78cd9c | ||
|
|
13c038a175 | ||
|
|
8a9495b185 | ||
|
|
46b5af01cd | ||
|
|
e2de126687 | ||
|
|
7eafbdd651 | ||
|
|
2902cf5dbf | ||
|
|
a6e987e796 | ||
|
|
e1ebb09648 | ||
|
|
625fdcd250 | ||
|
|
4e5d63ac6c | ||
|
|
fa8e1dce8e | ||
|
|
0a98024bfa | ||
|
|
4e0b349d38 | ||
|
|
9432a0762b | ||
|
|
e73f850e21 | ||
|
|
5548150973 | ||
|
|
b61cd17852 | ||
|
|
1712254b9a | ||
|
|
7e29d23ee1 | ||
|
|
65e418acbb | ||
|
|
156dc98f4f | ||
|
|
6a8ba0e4bc | ||
|
|
ce35d6191e | ||
|
|
324f9d23b8 | ||
|
|
3959645351 | ||
|
|
c70d3778f1 | ||
|
|
e0f2f41fe9 | ||
|
|
e14c0fb942 | ||
|
|
071808571a | ||
|
|
8adc3c231b | ||
|
|
6fd8b8d386 | ||
|
|
0616535260 | ||
|
|
322e51fcf2 | ||
|
|
6d4a00789d | ||
|
|
43e7b034ff | ||
|
|
21f84473ba | ||
|
|
c4c499c48e | ||
|
|
b8bbe3acf5 | ||
|
|
b3089908ca | ||
|
|
d722156925 | ||
|
|
482759718d | ||
|
|
b9e1837877 | ||
|
|
8638599785 | ||
|
|
667096bc09 | ||
|
|
cc831081f4 | ||
|
|
4b606f5ede | ||
|
|
ad7a362f9d | ||
|
|
d1e31f535e | ||
|
|
5742622ead | ||
|
|
18829e0d33 | ||
|
|
66c64c169f | ||
|
|
ac6264eeb3 | ||
|
|
1816a05168 | ||
|
|
e0ca4b33a9 | ||
|
|
27a2eb9a1b | ||
|
|
1031aca7de | ||
|
|
5818130c35 | ||
|
|
2190f57abe | ||
|
|
6b129ddba3 | ||
|
|
0153414fba | ||
|
|
c93b753d30 | ||
|
|
ffd66a95ad | ||
|
|
aebedbcec8 | ||
|
|
3547d9c43f | ||
|
|
073e407346 | ||
|
|
6cd0b2742a | ||
|
|
bb549c0265 |
@@ -65,6 +65,39 @@ codex mcp add limbus --env PYTHONUTF8=1 -- D:\lc-mcp\vendor\aalc\.venv\Scripts\p
|
|||||||
直接 stdio 模式会在导入 AALC 前隔离日志,并统一使用 UTF-8,避免日志破坏 JSON-RPC 或中文乱码。
|
直接 stdio 模式会在导入 AALC 前隔离日志,并统一使用 UTF-8,避免日志破坏 JSON-RPC 或中文乱码。
|
||||||
模板识别会根据当前客户区的 16:9 画面比例临时缩放,匹配结束后恢复内存中的原配置。
|
模板识别会根据当前客户区的 16:9 画面比例临时缩放,匹配结束后恢复内存中的原配置。
|
||||||
|
|
||||||
|
后台操作且需要保留系统鼠标位置时,在 AALC `config.yaml` 使用
|
||||||
|
`background_click: true` 和 `win_input_type: window_move`,然后重启常驻服务。
|
||||||
|
此模式临时移动透明游戏窗口以对齐 Unity 的指针位置,释放后恢复位置,
|
||||||
|
不调用系统鼠标移动或前台激活。`background` 模式仅发送客户区鼠标消息;
|
||||||
|
部分 Unity 界面仍读取系统指针位置,实测标题页按钮需使用 `window_move`。
|
||||||
|
战斗按键有按下/释放间隔;隐藏启动后可用 `show_game_background` 恢复渲染。
|
||||||
|
|
||||||
|
## 可选:任务流使用罗技驱动鼠标输入
|
||||||
|
|
||||||
|
驱动接入代码已随仓库提交:`lc_mcp/driver_input.py`、`lc_mcp/aalc_patches.py`、
|
||||||
|
`lc_mcp/aalc_task.py`,回归测试在 `tests/test_driver_input.py`。
|
||||||
|
**仓库不包含 `logitech.driver.dll`、罗技驱动安装包或 `logitech.test.py`。**
|
||||||
|
需要在 Windows 目标机安装配套驱动并提供 DLL;仅拉取本仓库不能启用这套输入。
|
||||||
|
|
||||||
|
在启动 MCP 服务的进程环境中设置(路径替换为本机实际位置):
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$env:LCP_DRIVER_INPUT = '1'
|
||||||
|
$env:LCP_LOGITECH_DLL = 'E:\罗技键鼠驱动\logitech.driver.dll'
|
||||||
|
# 可选,目录需已存在:
|
||||||
|
$env:LCP_DRIVER_TRACE = "$env:USERPROFILE\lc_mcp\driver-input.log"
|
||||||
|
```
|
||||||
|
|
||||||
|
`LCP_DRIVER_INPUT` 默认关闭,DLL 路径未设置时默认使用上面的 E 盘路径。
|
||||||
|
服务已经运行时,需要让服务以这些环境变量重新启动;只给 SSH bridge 设置无效。
|
||||||
|
任务子进程必须在物理 console 会话内,且关闭“提高指针精确度”。预检失败会记录原因,
|
||||||
|
继续使用原输入后端,不修改系统设置。驱动模式会移动真实系统光标并尝试激活游戏;
|
||||||
|
激活或坐标转换失败时拒绝本次点击。
|
||||||
|
|
||||||
|
接管范围是 `run_task` 的鼠标点击(含空白点击、`all` 和游戏重启后的点击)。
|
||||||
|
模拟器不接管;拖拽、滚动、键盘以及 MCP 的独立 `click` 工具仍使用原后端。
|
||||||
|
当前回归验证覆盖软件接线和异常处理,DLL、实际驱动及游戏响应需在 Windows 实机核验。
|
||||||
|
|
||||||
## 工具
|
## 工具
|
||||||
|
|
||||||
| 工具 | 说明 |
|
| 工具 | 说明 |
|
||||||
@@ -75,6 +108,7 @@ codex mcp add limbus --env PYTHONUTF8=1 -- D:\lc-mcp\vendor\aalc\.venv\Scripts\p
|
|||||||
| `find_image` / `click_image(name, threshold, model)` | AALC 模板图匹配,适合没有文字的按钮 |
|
| `find_image` / `click_image(name, threshold, model)` | AALC 模板图匹配,适合没有文字的按钮 |
|
||||||
| `list_images(prefix)` | 列出模板图,如 `battle/`、`mirror/` |
|
| `list_images(prefix)` | 列出模板图,如 `battle/`、`mirror/` |
|
||||||
| `screenshot` | 窗口截图(`~/lc_mcp/shots`,只保留最近 30 张) |
|
| `screenshot` | 窗口截图(`~/lc_mcp/shots`,只保留最近 30 张) |
|
||||||
|
| `show_game_background` | 显示/恢复游戏窗口,不激活前台;完整任务运行中拒绝此操作 |
|
||||||
| `click(x,y,times)` / `keypress` / `type_text` | 低层输入(窗口客户区坐标) |
|
| `click(x,y,times)` / `keypress` / `type_text` | 低层输入(窗口客户区坐标) |
|
||||||
| `drag(from_x,from_y,to_x,to_y,duration)` | 保持左键按下并缓慢拖动,适用于卡包;默认 1 秒,范围 0.1–10 秒;坐标以 `get_state` 的客户区截图为准 |
|
| `drag(from_x,from_y,to_x,to_y,duration)` | 保持左键按下并缓慢拖动,适用于卡包;默认 1 秒,范围 0.1–10 秒;坐标以 `get_state` 的客户区截图为准 |
|
||||||
| `run_task(task, …)` | `all` / `daily(exp,thread)` / `reward` / `enkephalin(times)` / `mirror(count)` |
|
| `run_task(task, …)` | `all` / `daily(exp,thread)` / `reward` / `enkephalin(times)` / `mirror(count)` |
|
||||||
@@ -87,15 +121,56 @@ codex mcp add limbus --env PYTHONUTF8=1 -- D:\lc-mcp\vendor\aalc\.venv\Scripts\p
|
|||||||
|
|
||||||
`state` 只反映任务子进程的退出码。AALC 在单次战斗失败(例如日志里的
|
`state` 只反映任务子进程的退出码。AALC 在单次战斗失败(例如日志里的
|
||||||
`超出最大尝试次数,未能进入战斗`)后仍会继续跑完并正常退出,所以 `task_status`
|
`超出最大尝试次数,未能进入战斗`)后仍会继续跑完并正常退出,所以 `task_status`
|
||||||
会把日志尾部的 `[ERROR]`/异常行放进 `errors` 字段:**看到 `succeeded` 也要先看 `errors`。**
|
会扫描整份任务日志,把最后 3 条 `[ERROR]`/异常行放进 `errors` 字段:
|
||||||
|
**看到 `succeeded` 也要先看 `errors`。** 任务退出后的首次查询会缓存扫描结果,后续查询不再扫描日志。
|
||||||
|
|
||||||
### 实验:编队列表滑动补丁(默认关闭)
|
任务运行中如果 `task_status` 带 `stall` 字段,说明 AALC 在原地空转(例如选中了空队伍,
|
||||||
|
编队人数检查一直刷屏)。它不会自己报错退出,应当 `stop_task` 后重跑。
|
||||||
|
|
||||||
AALC 基类允许适配器覆盖 `mouse_swipe_for_team_scroll`“以规避队伍拖拽判定”,上游只有 MuMu 实现了。
|
### 任务进程里的保护
|
||||||
`lc_mcp/aalc_input_patch.py` 在 Windows 前台/后台适配器上补了一个最小版本:几何与行程沿用 AALC 的
|
|
||||||
`build_windows_scroll_swipe_plan`(不改变 Windows 翻页标定),脱离段后保持 0.1 秒、松手前停稳 0.5 秒。
|
`run_task` 启动的任务子进程在调用 AALC 之前会做三件事,都不改 `vendor/aalc` 源码:
|
||||||
是否真有队伍被拖乱的问题尚无实机证据,所以默认不启用。验证方法:给常驻服务设置环境变量
|
|
||||||
`LCP_TEAM_SCROLL_PATCH=1` 后重启服务,跑一次需要选队的日常任务,核对选中的队伍、编队人数以及 `task_status` 的 `errors`。
|
- **配置预检**:发现下列问题就直接拒绝启动(退出码 3,原因写在 `errors` 里):
|
||||||
|
- 镜牢队伍的 `sinner_order` 全是 0:这会让 AALC 选出空队伍,然后无限重试编队;
|
||||||
|
- `set_lunacy_to_enkephalin` 不为 0:体力不足时会花狂气换体力。确需使用时设 `LCP_ALLOW_LUNACY=1`;
|
||||||
|
- `set_win_size` 加上标题栏后放不进当前桌面:窗口会被压扁成非 16:9。
|
||||||
|
- **队伍名精确匹配**:AALC 按子串找队伍,`TEAMS #1` 会命中 `TEAMS #10`。补丁要求编号完全相同。
|
||||||
|
- **窗口比例守护**:每 15 秒检查一次客户区。RDP 重连后窗口被拉伸时,自动调回 `set_win_size` 对应的 16:9 尺寸。
|
||||||
|
|
||||||
|
## 无人值守
|
||||||
|
|
||||||
|
有两套独立的自动化,按需要各自启用:
|
||||||
|
|
||||||
|
### 1. 刷取循环(打关卡)
|
||||||
|
|
||||||
|
`scripts/auto_cycle.py` 每次跑一轮,流程是:刷材料(daily)→ 镜牢(`--mirror N`)→ 把队内人格升级、同步到 `--target`。
|
||||||
|
AALC 卡死时,脚本会停掉任务并重跑一次。每轮在 `~/lc_mcp/cycles/` 写一份 `cycle_*.log` 和一份 `cycle_*.json` 报告。
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# 先手动跑一轮确认
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe scripts\auto_cycle.py --mirror 1
|
||||||
|
# 再注册计划任务: 每 1 分钟的会话看门狗 + 每 N 小时一轮
|
||||||
|
powershell -ExecutionPolicy Bypass -File scripts\install_unattended.ps1 -EveryHours 2.5 -Mirror 1
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 只需挂机攒模块(不打任何关卡)
|
||||||
|
|
||||||
|
`scripts/convert_modules.py` 到点自己启动游戏 → 把体力合成为模块 → 关掉游戏。
|
||||||
|
每 4 小时一轮,用 `scripts/install_convert_task.ps1` 注册。
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe scripts\convert_modules.py # 手动跑一次
|
||||||
|
powershell -ExecutionPolicy Bypass -File scripts\install_convert_task.ps1 -EveryHours 4
|
||||||
|
```
|
||||||
|
|
||||||
|
看历史:`python scripts/modules_status.py`
|
||||||
|
|
||||||
|
**⚠️ 挂机值守前先读 [`docs/WATCH.md`](docs/WATCH.md)** —— 那里记着环境事实、
|
||||||
|
界面坐标、狂气的三道防线、六种已知失败模式及处置,以及几条踩过的坑
|
||||||
|
(比如 OCR 会把 `LUNACY` 读成 `UNACY`,曾让整条狂气防线静默失效)。
|
||||||
|
|
||||||
|
`scripts/levelup.py` 和 `auto_cycle.py` 里的坐标都按 1600×900 客户区书写,运行时会按实际客户区大小缩放。
|
||||||
|
|
||||||
## 环境变量
|
## 环境变量
|
||||||
|
|
||||||
@@ -104,7 +179,8 @@ AALC 基类允许适配器覆盖 `mouse_swipe_for_team_scroll`“以规避队伍
|
|||||||
| `AALC_DIR` | `vendor/aalc` | 使用其他位置的 AALC 源码 |
|
| `AALC_DIR` | `vendor/aalc` | 使用其他位置的 AALC 源码 |
|
||||||
| `LCP_PORT` | 8765 | 服务/bridge 端口 |
|
| `LCP_PORT` | 8765 | 服务/bridge 端口 |
|
||||||
| `LCP_KEEP_SHOTS` | 30 | 截图保留张数 |
|
| `LCP_KEEP_SHOTS` | 30 | 截图保留张数 |
|
||||||
| `LCP_TEAM_SCROLL_PATCH` | 未设置 | 设为 `1` 启用实验性的编队列表滑动补丁 |
|
| `LCP_ALLOW_LUNACY` | 未设置 | 设为 `1` 时允许预检放行 `set_lunacy_to_enkephalin` 不为 0 的配置 |
|
||||||
|
| `LC_PY` | 当前解释器 | `levelup.py`/`auto_cycle.py` 调用 MCP 用的 Python |
|
||||||
|
|
||||||
## 开发 / 测试
|
## 开发 / 测试
|
||||||
|
|
||||||
@@ -131,7 +207,7 @@ vendor\aalc\.venv\Scripts\python.exe -X utf8 scripts\jev_client.py <private-conf
|
|||||||
镜牢执行器的场景规则只适用于镜牢,推进主线时应提供主线观察和规则。
|
镜牢执行器的场景规则只适用于镜牢,推进主线时应提供主线观察和规则。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python -m unittest discover -s tests # 不需要 Windows/AALC (FakeEngine)
|
python -m unittest discover -s tests -t tests # 不需要 Windows/AALC (FakeEngine)
|
||||||
python -m lc_mcp.server --stdio --fake # 假引擎手动调试协议
|
python -m lc_mcp.server --stdio --fake # 假引擎手动调试协议
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
+172
@@ -0,0 +1,172 @@
|
|||||||
|
# 待开发计划(BACKLOG)
|
||||||
|
|
||||||
|
按「收益 / 风险」排序。每条都带**证据**和**验收标准**,云端改完直接照着验。
|
||||||
|
最近一次实测记录见 [`feedback/2026-11-14/README.md`](feedback/2026-11-14/README.md),
|
||||||
|
接口与队名表见 [`feedback/2026-11-14/HANDOVER.md`](feedback/2026-11-14/HANDOVER.md)。
|
||||||
|
|
||||||
|
图例:P0 = 现在是坏的/每天都在浪费;P1 = 明显影响质量;P2 = 打磨。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P0-1 商店「必买 / 必卖 / 公式合成」清单恒为空
|
||||||
|
|
||||||
|
**现状**:`tasks/mirror/__init__.py` 用旧路径加载模板:
|
||||||
|
|
||||||
|
```python
|
||||||
|
must_purchase_path = "./assets/images/share/mirror/shop/must_purchase"
|
||||||
|
```
|
||||||
|
|
||||||
|
实际图片在 `./assets/images/default/share/mirror/shop/must_purchase/`(5 张:`carmilla`、`homeward`、
|
||||||
|
`lithograph`、`phlebotomy_pack`、`piece_of_relationship`),`assets/images/share` 根本不存在。
|
||||||
|
运行时实测:
|
||||||
|
|
||||||
|
```
|
||||||
|
must_purchase 0
|
||||||
|
must_be_abandoned 0
|
||||||
|
fusion_result 0
|
||||||
|
```
|
||||||
|
|
||||||
|
后果:`in_shop.py:157` 的购买循环、`:564` 的废弃识别、公式合成全部空转。2026-11-14 进店 51 秒、
|
||||||
|
打印了三次「开始购买必买项」却没买一件。
|
||||||
|
|
||||||
|
**目标**:三个清单按当前 `path_manager` 的图片根(`default/share`、`dark/share`…)加载,且支持中英文资源目录。
|
||||||
|
|
||||||
|
**验收**:
|
||||||
|
|
||||||
|
- [ ] `python -c "import tasks.mirror as m; print(len(m.must_purchase), len(m.must_be_abandoned), len(m.fusion_result))"` → `5 19 31`
|
||||||
|
- [ ] 单测覆盖:清单非空、路径含 `default/share`、`dark` 主题下也能解析
|
||||||
|
- [ ] 实机进店日志能看到真正的购买动作(`购买` 后出现 `ego_gift_get_confirm`),且余额变化
|
||||||
|
|
||||||
|
**涉及**:`tasks/mirror/__init__.py`(`vendor`!)→ 若要遵守「不改 vendor」,就在 `lc_mcp/aalc_patches.py`
|
||||||
|
里于 import 后重建这三个列表,并加一条注释说明上游路径缺陷。
|
||||||
|
|
||||||
|
**风险**:低。纯路径/清单;不改判定逻辑。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P0-2 镜牢走位被配置降级成「只按 ↑」
|
||||||
|
|
||||||
|
**现状**:`config.yaml` 里 `mirror_keyboard_navigation: true` + `mirror_keyboard_simple_pathfinding: true`,
|
||||||
|
`mirror.py:1128` 因此走 `search_road_simple_keyboard()`:每层按两次 ↑ 进最上面的节点,不看节点类型。
|
||||||
|
Dijkstra 那套(`search_road.py:735`,代价 event 1 / shop 2 / battle 4 / boss·focused 6 / risky 7)完全没跑。
|
||||||
|
|
||||||
|
**目标**(二选一,云端定):
|
||||||
|
|
||||||
|
- A:默认改用 Dijkstra,只在检测到「鼠标拖地图卡死」时降级为简单键盘;
|
||||||
|
- B:保留简单键盘,但把「↑ 的第一个节点」换成「按节点类型挑可达节点」。
|
||||||
|
|
||||||
|
**验收**:
|
||||||
|
|
||||||
|
- [ ] 一局里至少 3 层,日志能打印每层选中的节点类型与理由
|
||||||
|
- [ ] 事件/商店节点占比 ≥ 现状(对比 11-14 这局:3 层只进过 1 次商店)
|
||||||
|
- [ ] 不出现寻路卡死(连续 60 s 无 `enter_assets` 即算失败,应回退简单键盘)
|
||||||
|
|
||||||
|
**涉及**:`tasks/mirror/search_road.py`、`tasks/mirror/mirror.py:1128`、`config.yaml` 默认值(`assets/config/config.example.yaml`)
|
||||||
|
|
||||||
|
**风险**:中。`simple_pathfinding` 当初是为了规避鼠标拖拽卡死加的,去掉要有回退开关。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P1-3 饰品三选一加「体系优先」
|
||||||
|
|
||||||
|
**现状**:`mirror.py:1360 acquire_ego_gift()` 只看两件事——是不是白棉花、是不是「已持有」,
|
||||||
|
然后拿第一张。**完全不看 `team_system`**。
|
||||||
|
|
||||||
|
**目标**:可配置的关键词优先表(例如流血队:`流血 / 出血 / 血迹`),命中则加权;仍旧排除已持有与白棉花。
|
||||||
|
|
||||||
|
**验收**:
|
||||||
|
|
||||||
|
- [ ] 单测:给定候选文本列表 + 体系,选出预期那一张(含「全部已持有」「全是白棉花」边界)
|
||||||
|
- [ ] 实机:流血队一局里,三选一命中体系关键词的比例 > 0(日志统计)
|
||||||
|
- [ ] 关闭该配置时行为与现在完全一致(可回滚)
|
||||||
|
|
||||||
|
**涉及**:`tasks/mirror/mirror.py`、`lc_mcp/aalc_patches.py`(建议做成可配置关键词表,放 `config.yaml` 或独立 yaml)
|
||||||
|
|
||||||
|
**风险**:中。OCR 有误读(`震颐`/`沉论`/`编#16`),关键词要容忍错字。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P1-4 事件选项策略可配
|
||||||
|
|
||||||
|
**现状**:`mirror.py:1230 event_handling()` 固定策略——能点「判定 / check」就点,然后**永远点第一个选项**,
|
||||||
|
最后找 `continue/继续`。跟体系、跟当前血量都无关。
|
||||||
|
|
||||||
|
**目标**:支持一张「事件 → 选项」表(JSON/YAML),未收录的退回「第一个选项」。
|
||||||
|
|
||||||
|
**验收**:
|
||||||
|
|
||||||
|
- [ ] 表里命中的事件按配置点;未命中的行为不变
|
||||||
|
- [ ] 单测:事件文本 → 选项索引映射,含缺省分支
|
||||||
|
- [ ] 至少录入 5 个高频事件(可从 `docs/mirror_dungeon_speedrun_notes.md` 的既有结论里抄)
|
||||||
|
|
||||||
|
**涉及**:`tasks/mirror/mirror.py`、新增数据文件(建议 `lc_mcp/data/event_choices.yaml`,不要塞进 vendor)
|
||||||
|
|
||||||
|
**风险**:低-中。选项点错可能拿不到奖励,但不会卡死。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P1-5 选队补丁的鲁棒性
|
||||||
|
|
||||||
|
**现状**:`_select_team_by_name()` 精确匹配 + 4 轮翻页。已知薄弱点:
|
||||||
|
|
||||||
|
- OCR 误读(实测把「震颤」读成「震颐」、「沉沦」读成「沉论」、「编队#16」读成「编#16」)
|
||||||
|
- 队名带后缀(「流血队」「流血(X)」)会失配
|
||||||
|
- 只按「顶栏名字」确认,若顶栏字号变化会误判
|
||||||
|
|
||||||
|
**目标**:别名表 + 归一化(去空格/全半角/常见误读)+ 失败时输出候选列表便于排查。
|
||||||
|
|
||||||
|
**验收**:
|
||||||
|
|
||||||
|
- [ ] 把队名临时改成「流血队」也能选中(别名/前缀匹配,仍需唯一)
|
||||||
|
- [ ] 误读样本(`震颐`→`震颤`、`沉论`→`沉沦`)能正确归一
|
||||||
|
- [ ] 失败日志里打印「这一屏看到了哪些名字」,而不是只说没找到
|
||||||
|
|
||||||
|
**涉及**:`lc_mcp/aalc_patches.py`、`tests/test_system_team_selection.py`
|
||||||
|
|
||||||
|
**风险**:低。只是匹配变宽,需保证「唯一命中」才点,避免选错队。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P2-6 商店必买清单本地化
|
||||||
|
|
||||||
|
**现状**:必买靠 5 张**英文/图标模板**;汉化后商店里的名称是中文,模板匹配靠图标尚可,但新增饰品无法覆盖。
|
||||||
|
|
||||||
|
**目标**:支持「饰品中文名 → 优先级」的配置表,OCR 命中即买;模板作为兜底。
|
||||||
|
|
||||||
|
**验收**:单测 + 实机一局至少一次由名字命中的购买。
|
||||||
|
|
||||||
|
**涉及**:`lc_mcp/aalc_patches.py`(包一层购买判定)、新增数据文件。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P2-7 观测饰品按体系自动勾选
|
||||||
|
|
||||||
|
**现状**:`observe_ego_gift_selected` 要人在 AALC 界面一个个勾;没勾就等于关闭观测。
|
||||||
|
|
||||||
|
**目标**:按 `team_system` 自动勾一组默认饰品(可覆盖),并在开跑前写回配置。
|
||||||
|
|
||||||
|
**验收**:`config.yaml` 里 `observe_ego_gift_selected` 与体系匹配;日志打印勾了哪些。
|
||||||
|
|
||||||
|
**涉及**:`lc_mcp/aalc_task.py`(apply_overrides 类似机制)、`app/observe_ego_gift_selection.py` 的序列化格式(只读参考)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## P2-8 决策审计日志
|
||||||
|
|
||||||
|
**现状**:选队/卡包/饰品/商店的决策只散落在 DEBUG 日志里,事后要人肉 grep。
|
||||||
|
|
||||||
|
**目标**:每局写一份 `~/lc_mcp/runs/<task>.decisions.jsonl`:时间、阶段、画面摘要、候选、选中项、理由。
|
||||||
|
|
||||||
|
**验收**:一局结束后能直接统计「卡包选择理由 ×N」「三选一命中体系 ×N」「商店购买 ×N」。
|
||||||
|
|
||||||
|
**涉及**:`lc_mcp/aalc_patches.py`、`lc_mcp/tasks.py`(结果归档)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 已知但暂不做的
|
||||||
|
|
||||||
|
| 项 | 原因 |
|
||||||
|
|---|---|
|
||||||
|
| 让 AALC 原生支持自定义队名 | 要改 `vendor/aalc`,submodule 升级会丢;补丁层已够用 |
|
||||||
|
| 自动识别「哪支队是流血队」 | 图像/文本都不可靠,靠命名约定(见 HANDOVER 第 4 节)更稳 |
|
||||||
|
| 改 `mirror_dungeon_speedrun_notes.md` 的路线结论 | 那是人工速通笔记,和 AALC 的自动寻路是两套,别混 |
|
||||||
+232
@@ -0,0 +1,232 @@
|
|||||||
|
# 值守说明(挂机合成模块)
|
||||||
|
|
||||||
|
用户要求:**不打任何关卡**,只挂机等体力恢复、把体力合成成模块,合成完关掉游戏。
|
||||||
|
目标账号:LV 042 / NO. V894413125。**狂气(Lunacy)一分不许花。**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 一、自动化构成
|
||||||
|
|
||||||
|
| 计划任务 | 节奏 | 作用 |
|
||||||
|
|---|---|---|
|
||||||
|
| `LcMCPConvertModules` | 每 4 小时 | 启动游戏 → 合成模块 → 关掉游戏 |
|
||||||
|
| `LcKeepDisplay` | 每 1 分钟 | 会话掉到 `Disc` 时把显示挂回 console |
|
||||||
|
| `LcMCPServer` | 登录时 | lc-mcp 的 TCP 服务(`127.0.0.1:8765`) |
|
||||||
|
| `LcMCPDailyCycle` | **已禁用** | 刷关卡用,本次明确不开 |
|
||||||
|
|
||||||
|
脚本入口:`scripts/convert_modules.py`
|
||||||
|
报告:`~/lc_mcp/modules/convert_*.json`,日志:`~/lc_mcp/modules/convert.log`
|
||||||
|
|
||||||
|
值守时跑这两个:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
python scripts/modules_status.py # 看历史: 每轮结果 / 模组变化 / 狂气那一栏
|
||||||
|
python scripts/audit_runs.py # 体检: 日志与报告交叉核对, 揪出可疑记录
|
||||||
|
```
|
||||||
|
|
||||||
|
`audit_runs.py` 退出码 0 = 全部吻合。它检查"每份报告都有对应的开始行、时间关系
|
||||||
|
成立、耗时和结果文本一致", 外加识别 mock 残留(同一秒扎堆、内容自相矛盾)。
|
||||||
|
**异常行先过它一遍再下结论** —— 手敲 PowerShell 核对很容易把"数据没问题"误判成
|
||||||
|
"数据有问题"(我第一次就 6 条全误报,见第八节)。
|
||||||
|
|
||||||
|
## 二、体力账本(实测标定)
|
||||||
|
|
||||||
|
* 兑换率:**20 点体力 = 1 个模块**
|
||||||
|
* 上限:126
|
||||||
|
* **恢复速度不是恒定的** —— 实测轨迹:
|
||||||
|
|
||||||
|
| 时间 | 读数 | 区间速度 |
|
||||||
|
|---|---|---|
|
||||||
|
| 10-16 09:58 | 13 | |
|
||||||
|
| 10-16 10:44 | 21 | 5.8 分钟/点 |
|
||||||
|
| 10-16 11:11 | 6 | 5.0 分钟/点 |
|
||||||
|
| 10-16 14:04 | 34 | 6.2 分钟/点 |
|
||||||
|
| 10-16 18:04 | 54 | 6.0 分钟/点 |
|
||||||
|
| 10-16 22:04 | 54 | 5.9 分钟/点 |
|
||||||
|
| **10-17 02:31** | **19** | **53 分钟/点** ⚠️ |
|
||||||
|
| 10-17 06:04 | 54 | 6.0 分钟/点 |
|
||||||
|
| 10-17 10:04 | 54 | 6.0 分钟/点 |
|
||||||
|
|
||||||
|
一整天稳定在 ~6 分钟 1 点(和标称一致),只有 10-16 22:05 → 10-17 02:31 那一段
|
||||||
|
掉到 53 分钟/点,之后又恢复正常 —— **像是临时的,不是稳态**。具体机制没查清
|
||||||
|
(面板上 `1 Enkephalin recovered in ...` 的倒计时当时显示得很长),不猜,记下来。
|
||||||
|
|
||||||
|
* **对排程的影响:不用改。** 4 小时一轮本来就会遇到"不够 20 点"的轮次,那种情况
|
||||||
|
脚本按"本轮无需合成"正常收工(退出码 0),不是失败。而且恢复慢的时候离 126 上限
|
||||||
|
更远,更不会浪费。
|
||||||
|
* 反过来说:**别拿"6 分钟 1 点"去推算某一轮能换几个** —— 会算错(实测错过一次:
|
||||||
|
按 6 分钟/点推算 02:31 该有 49 点,实际 19 点)。
|
||||||
|
|
||||||
|
实测对账(2026-10-16):
|
||||||
|
|
||||||
|
```
|
||||||
|
09:58 13
|
||||||
|
10:04 14 +1 / 6 分钟
|
||||||
|
10:44 21 +7 / 40 分钟
|
||||||
|
10:45 合成消耗 20 → 剩 1
|
||||||
|
11:01 4 1 + 16 分钟
|
||||||
|
```
|
||||||
|
|
||||||
|
## 三、界面流程与坐标(1600x900 基准,`lc_ui` 负责换算到实际客户区)
|
||||||
|
|
||||||
|
```
|
||||||
|
主界面底栏模组图标 (390,805)
|
||||||
|
→ Charge Enkephalin 面板
|
||||||
|
页签 [Modules] (619,283) / [Use Lunacy] (797,283) ⛔ / [Use Boxes] (957,283)
|
||||||
|
数量 » 取最大 (1019,413)
|
||||||
|
确认 Confirm (943,671) 取消 Cancel (656,670)
|
||||||
|
```
|
||||||
|
|
||||||
|
判定是否停在免费合成页签:优先识别问句 **`Would you like to assemble Enkephalin Modules?`**,
|
||||||
|
兑换区的体力条 `x/126` 作为备用信号。判不出来就不合成。
|
||||||
|
|
||||||
|
## 四、狂气的三道防线
|
||||||
|
|
||||||
|
1. **只点 `Modules` 页签**。`USE_LUNACY_TAB` 常量只用于"确认没点到它"。
|
||||||
|
2. **AST 测试盯着**:任何 `click()` 传入该坐标都会让测试失败(`test_convert_modules.py`)。
|
||||||
|
3. **配置禁止购买**:`set_lunacy_to_enkephalin: 0`。前后 OCR 读数只作为核查线索,
|
||||||
|
数字是像素艺术字,可能有多种稳定误读,读数相同或落在已知集合里都不能证明没消费。
|
||||||
|
|
||||||
|
> ⛔ **第 3 道防线曾经整条哑掉**(2026-10-16 发现)。OCR 把标签 `LUNACY` 读成
|
||||||
|
> `UNACY`(首字母被吃掉),而代码写的是 `'LUNACY' in text` —— `UNACY` 不包含
|
||||||
|
> `LUNACY`,于是每次都被判成"读不到",静默跳过比对。
|
||||||
|
> **同屏的体力读数一直正常**,所以只看日志很容易以为是画面没渲染好。
|
||||||
|
> 现在认词根 `NACY`,并在标签完全读不出时按位置兜底(底栏 y 775~815、x<700
|
||||||
|
> 最靠左的短文本)。
|
||||||
|
>
|
||||||
|
> 教训:**"读不到 → 跳过"这种降级路径,必须能看出它到底跑没跑过。**
|
||||||
|
|
||||||
|
## 五、环境事实(2026-10-16 核实)
|
||||||
|
|
||||||
|
* **系统不会睡眠**:`STANDBYIDLE` AC/DC 均为 0;近 3 天无睡眠事件;已连续运行 62.4 小时
|
||||||
|
* 磁盘:C: 55 GB 可用,D: 138 GB 可用
|
||||||
|
* 网络:直连可用(`ProxyEnable=0`,Clash 6789 未运行)。Steam 商店页超时属区域限制,
|
||||||
|
不影响游戏 —— 游戏自己 `CONNECTING` 后能进主界面
|
||||||
|
* Steam:有自启项;实测启动游戏 exe 会自己把 Steam 拉起来
|
||||||
|
* 会话:`console` 会话存活;断线会被 `LcKeepDisplay` 在 1 分钟内挂回
|
||||||
|
* **今天断线 2 次**(09:48、10:30),看门狗两次都成功挂回 —— 断线不是小概率,
|
||||||
|
所以 `ensure_display()` 那层自检是必要的
|
||||||
|
|
||||||
|
### 关键配置(必须保持,改前先备份到 `~/lc_mcp/config.yaml.bak-<日期>`)
|
||||||
|
|
||||||
|
| 配置项 | 值 | 为什么不能动 |
|
||||||
|
|---|---|---|
|
||||||
|
| `set_lunacy_to_enkephalin` | `0` | AALC 从不购买狂气 —— 防线最底层 |
|
||||||
|
| `daily_task` | `false` | AALC 层面也不跑日常本;就算被误触发也只会跑空 |
|
||||||
|
| `set_win_size` | `900` | 1600x900,模板匹配的前提(720 会让识别退化) |
|
||||||
|
| `win_input_type` | `window_move` | 点击方式,换别的 Unity 会忽略 |
|
||||||
|
|
||||||
|
存档备份:`~/lc_mcp/config.yaml.bak-20261013`
|
||||||
|
|
||||||
|
## 六、任务配置与时间预算
|
||||||
|
|
||||||
|
`LcMCPConvertModules` 的动作与设置(2026-10-16 逐项核实):
|
||||||
|
|
||||||
|
```
|
||||||
|
Execute : D:\lc-mcp\vendor\aalc\.venv\Scripts\pythonw.exe
|
||||||
|
Arguments : -X utf8 "D:\lc-mcp\scripts\convert_modules.py"
|
||||||
|
WorkingDir : D:\lc-mcp
|
||||||
|
LogonType : Interactive # 会话断开(不是注销)时仍在跑
|
||||||
|
RunLevel : Limited # 非提权
|
||||||
|
多实例 : IgnoreNew # 不会和上一轮重叠
|
||||||
|
时间上限 : PT15M
|
||||||
|
错过就补跑 : True
|
||||||
|
Interval : PT4H # 10:03 / 14:03 / 18:03 / 22:03 / 02:03 / 06:03
|
||||||
|
```
|
||||||
|
|
||||||
|
**时间预算**(最坏情况加起来仍在上限内):
|
||||||
|
|
||||||
|
| 阶段 | 上限 |
|
||||||
|
|---|---|
|
||||||
|
| `launch_game` 等进程出现 | 240 s |
|
||||||
|
| `wait_main_menu` 等主界面 | 300 s |
|
||||||
|
| 读狂气/体力 + 合成 + 关游戏 | ~80 s |
|
||||||
|
| **合计** | **~10.3 分钟** < 15 分钟 ✅ |
|
||||||
|
|
||||||
|
> 万一游戏要下载大更新(实测有过 1.62 GB),会超过 15 分钟被任务强杀,游戏留在
|
||||||
|
> 内存里;下一轮 `launch_game` 会发现它已在运行并继续,不会卡死。
|
||||||
|
|
||||||
|
## 七、已知失败模式与处置
|
||||||
|
|
||||||
|
| 现象 | 原因 | 处置 |
|
||||||
|
|---|---|---|
|
||||||
|
| 截图全黑、OCR 空白 | RDP 断开把显示表面拆了 | 开跑前 `ensure_display()` 自检并跑看门狗 |
|
||||||
|
| 客户区变成 1278x719 | RDP 重连改了窗口 | 开跑前 `ensure_window_size(1600,900)` |
|
||||||
|
| 连不上 8765 | 服务没起来 | `ensure_server()` 自己拉起并等就绪 |
|
||||||
|
| 报"模组没变" | 可能已达上限,也可能界面没响应 | 关掉面板重开重试一次,仍不变才报 |
|
||||||
|
| 读不到体力 | 底栏还在淡入 | 重试 4 次;仍读不到就跳过(退出码 0),不贸然点合成 |
|
||||||
|
| 游戏停在副本里 | 上一轮被打断 | 下一轮 `back_init_menu` 会自行带回主界面 |
|
||||||
|
| **下一轮读到的"合成前"比上一轮"合成后"少** | **最常见的原因是人自己升阶用掉了**(2026-10-17 确认过一次:22:05 换到 35,06:04 读到 33,用户确认是他升阶用了) | `audit_runs.py` 会报"模组数比上一轮少 —— 若是人工升阶用掉的属正常; 否则要查"。**先问人,再查代码** |
|
||||||
|
| 模组数**自己变多** | 自动化之外的来源 | 真反常,值得看一眼 |
|
||||||
|
| **报"确认不在 Modules 页签"、整轮没换到** | **OCR 把相邻几行合并成一个元素,把判据里的 `x/126` 吞了**(2026-10-16 18:03 实测:`Enkephalin Module Owned 31` 的框变成 w=351 h=38,体力条消失) | 已改成认面板问句 `Would you like to assemble Enkephalin Modules?`(单独成行、不会被合并),体力条留作备用信号 |
|
||||||
|
|
||||||
|
> **判据要选"语义明确且不易被 OCR 破坏"的文本。** 数字加斜杠的片段最容易被行合并
|
||||||
|
> 吃掉,而一整句问话不会。这条和 `LUNACY`→`UNACY` 是同一个教训的两面:
|
||||||
|
> 前者是 OCR 截断词首,后者是 OCR 吞并整行。
|
||||||
|
|
||||||
|
### ⛔ 狂气判据的坑(2026-10-16 22:03 误报一次)
|
||||||
|
|
||||||
|
最初写的是"合成前后读数不同 = 被消费"。**这个假设是错的。**
|
||||||
|
|
||||||
|
真值 6636 被 OCR 读过 **6636 / 9699 / 6388 / 8859** 四种样子 —— 误读根本不固定。
|
||||||
|
所以"前后不同"区分不了"真变了"和"换了个误读法"。22:03 那次前读 6636、后读 9699、
|
||||||
|
复读还是 9699,于是报了违规并让整轮 FAIL,**但那一轮只点了模组图标和面板内的
|
||||||
|
`»` / `确认`,根本没碰 `Use Lunacy` 页签**。
|
||||||
|
|
||||||
|
现在的判据(`lunacy_verdict()`):
|
||||||
|
|
||||||
|
| 情况 | 结论 |
|
||||||
|
|---|---|
|
||||||
|
| 前后一致 | 没变 |
|
||||||
|
| 前后读数都在已知读法集合里 | 按已知 OCR 抖动处理,不单凭此告警 |
|
||||||
|
| 变化涉及已知集合以外的读数 | 需人工核查,包括新余额变回集合内读数的情况 |
|
||||||
|
|
||||||
|
取数时标签和余额来自同一帧;读完 5 帧后取唯一众数,至少出现 2 次,平票则返回未知。
|
||||||
|
这能减少偶发误读,不能消除系统性误读。
|
||||||
|
|
||||||
|
**守不住的部分就承认守不住,别拿一个会误报的判据充数** —— 误报会让人去查一笔
|
||||||
|
根本没发生的消费,比"没检测到"更糟。
|
||||||
|
|
||||||
|
真正的防线是结构性的:只点 `Modules` 页签 + `Use Lunacy` 坐标被 AST 测试盯着 +
|
||||||
|
`set_lunacy_to_enkephalin: 0`。OCR 比对只是旁证。
|
||||||
|
|
||||||
|
## 八、日志噪音约定
|
||||||
|
|
||||||
|
`convert.log` 是值守时要看的**真实运行记录**,不允许被测试污染。
|
||||||
|
测试通过 `QuietLogMixin` 把 `log()` 静音;判断方法是跑完测试看行数有没有变。
|
||||||
|
|
||||||
|
已经被污染过两次,塞进来的都是**看着像真出事**的行,很能误导人:
|
||||||
|
|
||||||
|
* `MCP 服务(8765)未监听, 尝试拉起` / `等服务就绪超时(0s)`
|
||||||
|
* `桌面未在出图(BitBlt 失败), 跑看门狗把显示挂回 console` / `看门狗执行失败: powershell not found`
|
||||||
|
|
||||||
|
**怎么分辨**(值守时看到异常行先做这一步):
|
||||||
|
|
||||||
|
1. **同一秒扎堆** —— 真实一轮至少跑几十秒,几行全在 `HH:MM:SS` 同一秒就是测试
|
||||||
|
2. **内容自相矛盾** —— 比如"powershell not found",而 powershell 明明在
|
||||||
|
3. **对不上报告** —— 去 `~/lc_mcp/modules/` 找同一时刻的 `convert_*.json`;
|
||||||
|
真实的运行一定有报告,且 `elapsed_s` 不为 0
|
||||||
|
|
||||||
|
确认是残留就直接删掉,别让它留在"病史"里。
|
||||||
|
|
||||||
|
> ⚠️ 第 3 条要注意时间对应关系:**日志的结论行写在一轮结束时,报告的 `started`
|
||||||
|
> 是开始时**,两者天然差一个 `elapsed_s`。正确的关系是
|
||||||
|
> `报告.started + elapsed ≈ 日志结论时刻`(实测 6/6 吻合)。
|
||||||
|
> 直接拿两个时间戳比会全部"对不上",反而误判成异常 —— 我自己第一次就这么错过了。
|
||||||
|
|
||||||
|
### 交叉核对脚本(可直接抄)
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$dir = "$env:USERPROFILE\lc_mcp\modules"
|
||||||
|
$runs = Get-Content "$dir\convert.log" -Encoding UTF8 | Where-Object { $_ -match '=== ' } |
|
||||||
|
ForEach-Object { if ($_ -match '^\[(.+?)\]\s*===\s*(.+?)\s*\((\w+)\), 耗时 (\d+)s ===') {
|
||||||
|
[pscustomobject]@{ end=[datetime]$Matches[1]; result=$Matches[2]; secs=[int]$Matches[4] } } }
|
||||||
|
Get-ChildItem "$dir\convert_*.json" | ForEach-Object {
|
||||||
|
$r = Get-Content $_.FullName -Encoding UTF8 | ConvertFrom-Json
|
||||||
|
$expect = ([datetime]$r.started).AddSeconds($r.elapsed_s)
|
||||||
|
$m = $runs | Where-Object { [math]::Abs(($_.end - $expect).TotalSeconds) -lt 5 } | Select-Object -First 1
|
||||||
|
if ($m -and $m.secs -eq $r.elapsed_s) { "OK $($r.started)" } else { "MISMATCH $($_.Name)" }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# 2026-10-02 测试产物归档
|
||||||
|
|
||||||
|
这些文件是 **2026-10-02 那轮会话**产生并遗留在仓库根目录、一直未被提交的
|
||||||
|
测试产物。2026-10-13 按用户要求归档到这个位置,让测试代码与结果
|
||||||
|
跟对应的日期记录放在一起,仓库根目录不再散落未跟踪文件。
|
||||||
|
|
||||||
|
## 内容
|
||||||
|
|
||||||
|
| 文件 | 说明 |
|
||||||
|
|---|---|
|
||||||
|
| `TEST_REPORT.md` | 当轮测试报告 |
|
||||||
|
| `validation-output.txt` | 单测运行输出(`test_click_text_second_hit` / `test_get_state` / `test_missing_text_does_not_click` / `test_ocr_confidence_filter` / `test_ocr_error_does_not_click` / `test_protocol_discovery_and_all_input_tools` 等) |
|
||||||
|
| `validation-results.json` | 上式的结构化结果 |
|
||||||
|
| `live-service-results.json` | 对**常驻服务**(非 FakeEngine)的实测结果 |
|
||||||
|
| `sdk-client-results.json` | SDK 客户端实测结果 |
|
||||||
|
| `tests/live_services_v05.py` | 常驻服务实测脚本 |
|
||||||
|
| `tests/validation_v05.py` | 校验脚本(v0.5) |
|
||||||
|
| `validation-artifacts/ocr-synthetic.png` | OCR 合成测试图 |
|
||||||
|
| `validation-artifacts/run-original.vbs` | 复现用启动脚本 |
|
||||||
|
|
||||||
|
## 两点说明
|
||||||
|
|
||||||
|
1. **这些不是本次无人值守部署(10-04 / 10-05)的产物。** 那两天的记录在
|
||||||
|
`docs/feedback/2026-10-04/` 与 `docs/feedback/2026-10-05/`。
|
||||||
|
2. `tests/*.py` 归档到这里是为了保留证据链,**它们不在 `tests/` 目录下
|
||||||
|
就不会被 `python -m unittest discover -s tests` 收集**。若希望它们
|
||||||
|
参与常规测试,需要移回 `tests/` 并确认通过。
|
||||||
|
|
||||||
|
## 相关提交
|
||||||
|
|
||||||
|
- `docs/feedback/2026-10-04/README.md` — 无人值守部署:6 个失败根因 + 自愈看门狗
|
||||||
|
- `docs/feedback/2026-10-05/PITFALLS.md` — 自动化实战:14 个坑
|
||||||
|
- `docs/feedback/2026-10-05/logs/` — 20 份任务日志 + 服务/看门狗日志
|
||||||
@@ -0,0 +1,135 @@
|
|||||||
|
# lc-mcp 测试报告
|
||||||
|
|
||||||
|
测试日期:2026-10-02(Asia/Hong_Kong)。
|
||||||
|
|
||||||
|
仓库:https://git.lingll.icu/yws/lc-mcp
|
||||||
|
|
||||||
|
测试提交:`8d24276511e2f007a758b180cba7167e58aca090`,main,服务版本 0.5.0。
|
||||||
|
|
||||||
|
## 结论
|
||||||
|
|
||||||
|
基础 MCP 连接和远端 OCR 可用,但当前版本不能判定为可以可靠操作真实游戏。Windows 默认截图启动脚本存在可复现的 VBScript 编译错误;参数缺失会导致意外点击;输入和工具错误可能被报告为成功。应优先修复这三类问题,再做实际游戏闭环测试。
|
||||||
|
|
||||||
|
当前仓库实现独立的屏幕 OCR 和桌面输入,没有找到 AALC 的 API 调用、配置、依赖或游戏状态集成。是否来自 AALC 的设计或早期代码,无法从本次仓库内容确定。
|
||||||
|
|
||||||
|
## 环境与范围
|
||||||
|
|
||||||
|
- Windows 本机;服务使用已安装的 Python 3.8.6。
|
||||||
|
- 官方 MCP Python SDK 1.30.0 客户端运行于独立 Python 3.12.14 虚拟环境。
|
||||||
|
- 远端 OCR 使用仓库默认地址,上传内容仅为生成的测试 PNG。
|
||||||
|
- 输入测试使用 mock 或模拟底层调用失败,没有向真实桌面发送点击、按键或文字。
|
||||||
|
- 没有检测到正在运行的 LimbusCompany/AALC 进程。实际游戏窗口、战斗、奖励结算和 AALC 联动均未验证。
|
||||||
|
- Linux uinput 检查使用模拟依赖复现 Python 错误,并核对上游数据类型;没有 Linux 内核或 macOS 实机测试。
|
||||||
|
- Windows VBScript 使用相同生成表达式、隔离文件路径,通过 `cscript.exe` 编译检查。没有覆盖或运行现有 LcMCP 计划任务。
|
||||||
|
- 仅新增测试和报告文件,没有修改原有实现、提交或推送代码。
|
||||||
|
|
||||||
|
## 测试结果
|
||||||
|
|
||||||
|
| 检查 | 结果 | 证据 |
|
||||||
|
|---|---|---|
|
||||||
|
| 自带测试 | 3 组全部通过 | mock 动作、扫描码表、stdio 往返 |
|
||||||
|
| Python 编译检查 | 通过 | `python -m compileall -q .` |
|
||||||
|
| 独立测试 | 22 项:11 通过、9 断言失败、2 运行异常 | `validation-results.json`;失败项是边界行为复现,不代表 11 个独立缺陷 |
|
||||||
|
| 官方 SDK 连接 | 通过 | initialize、ping、tools/list;识别 9 个工具 |
|
||||||
|
| SDK 模拟输入 | 通过 | move、中文 type_text |
|
||||||
|
| 远端 OCR | 通过 | 正确识别“开始 测试”和“TEST 123”;置信度 0.944、0.960 |
|
||||||
|
| OCR 延迟 | 单次 19.515 秒 | 仅一次请求,不能视为稳定性能或游戏图像准确率 |
|
||||||
|
| Windows 截图启动脚本 | 失败 | VBScript 编译器错误:语句未结束;退出码 1 |
|
||||||
|
| SendInput 初始化 | 通过 | 只加载后端,没有发送输入 |
|
||||||
|
| Interception 初始化 | 环境不满足 | 本机未找到 interception.dll;没有安装驱动或重启 |
|
||||||
|
|
||||||
|
正常语义流程的模拟测试覆盖:OCR 置信度过滤、文字子串和大小写匹配、中心坐标计算、第二候选点击、文字找不到时不点击、OCR 失败时不点击、截图失败透传、文字出现和消失等待。
|
||||||
|
|
||||||
|
## 主要发现
|
||||||
|
|
||||||
|
### 1. Windows 截图启动脚本无法编译(P1)
|
||||||
|
|
||||||
|
位置:[platform/win.py:20](D:/codex/tmp/lc-mcp-test/platform/win.py:20)。
|
||||||
|
|
||||||
|
生成的脚本在 VBScript 字符串内部直接使用单个双引号包围 PowerShell 脚本路径,提前结束了字符串。VBScript 需要将字符串内部双引号写为两个双引号。
|
||||||
|
|
||||||
|
复现产物为 `validation-artifacts/run-original.vbs`。执行 `cscript.exe //nologo <该文件>` 返回 1,报“Microsoft VBScript 编译器错误:语句未结束”。
|
||||||
|
|
||||||
|
影响:使用默认生成脚本的新部署不能启动截图任务,进而阻断 screenshot、get_state 和依赖 OCR 的工具。已有自定义修正脚本的机器需单独验证;代码仅在文件不存在时生成脚本,更新 Python 代码也不会自动刷新旧脚本。
|
||||||
|
|
||||||
|
### 2. 必需参数没有运行时校验,可能意外点击(P1)
|
||||||
|
|
||||||
|
位置:[lc_mcp.py:117](D:/codex/tmp/lc-mcp-test/lc_mcp.py:117)、[lc_mcp.py:131](D:/codex/tmp/lc-mcp-test/lc_mcp.py:131)。
|
||||||
|
|
||||||
|
- `click({})` 被默认值转换为点击 `(0,0)`,返回 `ok=true`。官方 SDK 客户端复现相同行为。
|
||||||
|
- `click_text({})` 使用空字符串匹配所有 OCR 项,并点击第一个文字中心。
|
||||||
|
- `index=99` 静默选择最后一个候选;`index=-1` 也选择最后一个候选。这是当前行为,接口没有说明索引越界规则。
|
||||||
|
|
||||||
|
影响:客户端遗漏参数或模型选择错误索引时,服务仍可能执行桌面输入。建议在任何截图和输入之前校验必需参数、非空文字、索引整数和范围。
|
||||||
|
|
||||||
|
### 3. MCP 工具错误标记位置错误,客户端读成成功(P1)
|
||||||
|
|
||||||
|
位置:[lc_mcp.py:221](D:/codex/tmp/lc-mcp-test/lc_mcp.py:221)。
|
||||||
|
|
||||||
|
调用 `move({"x":"invalid","y":6})` 时,服务把 `isError=true` 放在 JSON-RPC 顶层,而不是 `result` 内部。官方 SDK 接收到文本里的 `ok=false`,但 `CallToolResult.isError` 实际为 false。
|
||||||
|
|
||||||
|
普通 `ok=false` 返回路径没有设置 `result.isError`;未知工具也返回普通文本结果。
|
||||||
|
|
||||||
|
工具执行错误应在 `result.isError` 中表达;未知工具和无效参数可用 JSON-RPC 错误。这与 [MCP 2024-11-05 Tools 规范](https://modelcontextprotocol.io/specification/2024-11-05/server/tools)不符。
|
||||||
|
|
||||||
|
### 4. SendInput 注入失败仍返回成功(P1)
|
||||||
|
|
||||||
|
位置:[backends/sendinput_win.py:54](D:/codex/tmp/lc-mcp-test/backends/sendinput_win.py:54)、[backends/sendinput_win.py:87](D:/codex/tmp/lc-mcp-test/backends/sendinput_win.py:87)。
|
||||||
|
|
||||||
|
模拟 `SendInput` 返回 0 后,`keypress('p')` 仍返回 `ok=true`。点击和文字输入也不检查注入数量;移动不检查 SetCursorPos 结果。
|
||||||
|
|
||||||
|
影响:服务返回成功不代表目标应用收到输入。需要检查底层调用结果,并在游戏环境用后续状态验证动作效果。本次没有实机验证游戏对 SendInput 的接受程度。
|
||||||
|
|
||||||
|
### 5. 等待 timeout 不约束内部截图和网络请求(P2)
|
||||||
|
|
||||||
|
位置:[lc_mcp.py:43](D:/codex/tmp/lc-mcp-test/lc_mcp.py:43)、[lc_mcp.py:140](D:/codex/tmp/lc-mcp-test/lc_mcp.py:140)。
|
||||||
|
|
||||||
|
用模拟时钟将一次 OCR 请求设为 30 秒,`wait_for_text(timeout=1)` 需要 31.2 秒才结束。请求固定使用 30 秒超时;截图也有自己的超时,外层没有传递剩余时间。
|
||||||
|
|
||||||
|
应使用单调时钟和剩余预算约束内部操作,避免短等待变成长阻塞。
|
||||||
|
|
||||||
|
### 6. 输入后端初始化失败同时禁用了截图(P2)
|
||||||
|
|
||||||
|
位置:[lc_mcp.py:171](D:/codex/tmp/lc-mcp-test/lc_mcp.py:171)。
|
||||||
|
|
||||||
|
截图提供者与输入后端共用一个 try/except。设置一个不存在的输入后端后,`screenshot` 返回 `'NoneType' object has no attribute 'grab'`,尽管截图提供者此前已成功创建。
|
||||||
|
|
||||||
|
应分别初始化和报告截图、输入能力;仅观察屏幕的工具不应依赖输入后端可用。
|
||||||
|
|
||||||
|
### 7. Linux uinput 后端存在确定的 Python 错误(P1,限该后端)
|
||||||
|
|
||||||
|
位置:[backends/uinput_linux.py:28](D:/codex/tmp/lc-mcp-test/backends/uinput_linux.py:28)、[backends/uinput_linux.py:72](D:/codex/tmp/lc-mcp-test/backends/uinput_linux.py:72)。
|
||||||
|
|
||||||
|
- `keypress('enter')` 引用未定义的 `KEY_ENTER`,抛 NameError。
|
||||||
|
- `_ensure()` 对 uinput 的元组常量执行 `KEY_Z + 1` 和 range,抛 TypeError。
|
||||||
|
- 其他输入路径引用未在模块作用域导入的 REL_X、BTN_LEFT 等常量;代码还缺少 time 导入。
|
||||||
|
|
||||||
|
前两项已通过隔离测试复现,后两项为源码检查。uinput 的事件描述符类型已核对 [python-uinput 上游实现](https://raw.githubusercontent.com/tuomasjjrasanen/python-uinput/master/src/__init__.py)。
|
||||||
|
|
||||||
|
### 8. Interception 实现与上游公开 API 不一致(待实机确认)
|
||||||
|
|
||||||
|
位置:[backends/interception_win.py:91](D:/codex/tmp/lc-mcp-test/backends/interception_win.py:91)。
|
||||||
|
|
||||||
|
代码调用 interception_open_device/interception_close_device,但 [上游公开头文件](https://raw.githubusercontent.com/oblitum/Interception/master/library/interception.h)没有这两个接口。上游设备总数为 20,代码扫描到 64,且硬件 ID 被按 ASCII 文本解释。
|
||||||
|
|
||||||
|
这是源码与上游接口比对发现,本机缺少 DLL,未测试实际加载的 DLL 是否为提供这些接口的定制版本。部署前应明确支持的 DLL 版本并用真实设备验证。
|
||||||
|
|
||||||
|
### 9. 畸形 JSON 使服务退出(P2,健壮性)
|
||||||
|
|
||||||
|
向 stdio 发送 `{ invalid json }` 后,服务直接关闭 stdout 并退出,没有返回 JSON-RPC parse error。这会断开客户端连接。有效请求的正常流程不受本测试影响。
|
||||||
|
|
||||||
|
## 复现文件
|
||||||
|
|
||||||
|
- [独立测试脚本](D:/codex/tmp/lc-mcp-test/tests/test_validation.py)
|
||||||
|
- [OCR 和 VBScript 检查脚本](D:/codex/tmp/lc-mcp-test/tests/test_live_services.py)
|
||||||
|
- [官方 SDK 客户端脚本](D:/codex/tmp/lc-mcp-sdk-client-test.py)(放在仓库外,避免仓库的 platform 包影响客户端标准库导入)
|
||||||
|
- [逐项测试结果](D:/codex/tmp/lc-mcp-test/validation-results.json)
|
||||||
|
- [OCR、VBScript 与后端初始化结果](D:/codex/tmp/lc-mcp-test/live-service-results.json)
|
||||||
|
- [官方 SDK 返回结果](D:/codex/tmp/lc-mcp-test/sdk-client-results.json)
|
||||||
|
- [生成的 OCR 测试图](D:/codex/tmp/lc-mcp-test/validation-artifacts/ocr-synthetic.png)
|
||||||
|
|
||||||
|
执行服务端测试:`python tests/test_dev.py`、`python tests/test_validation.py`、`python tests/test_live_services.py`。后者需要 Pillow、Windows 字体和网络;当前本机已有所需图像依赖。独立验证脚本当前返回非零是预期结果,因为其断言要求服务拒绝错误输入并正确报告失败。
|
||||||
|
|
||||||
|
## 下一步
|
||||||
|
|
||||||
|
先修复 Windows 脚本生成、参数校验、MCP 错误返回和底层输入结果检查,再准备可观察的游戏窗口,逐步验证“截图 → OCR → 正确候选 → 单次输入 → 新截图确认”。真实游戏测试需要运行机器和窗口状态;本次结果不包含战斗自动化成功率或 AALC 集成验证。
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"remote_ocr": {
|
||||||
|
"url": "http://35.212.193.150:8599/",
|
||||||
|
"seconds": 19.515,
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"text": "开始 测试",
|
||||||
|
"x": 37,
|
||||||
|
"y": 39,
|
||||||
|
"w": 230,
|
||||||
|
"h": 59,
|
||||||
|
"score": 0.944
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "TEST 123",
|
||||||
|
"x": 40,
|
||||||
|
"y": 143,
|
||||||
|
"w": 226,
|
||||||
|
"h": 47,
|
||||||
|
"score": 0.96
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"error": null,
|
||||||
|
"input": "D:\\codex\\tmp\\lc-mcp-test\\validation-artifacts\\ocr-synthetic.png"
|
||||||
|
},
|
||||||
|
"windows_vbs": {
|
||||||
|
"returncode": 1,
|
||||||
|
"stdout": "",
|
||||||
|
"stderr": "D:\\codex\\tmp\\lc-mcp-test\\validation-artifacts\\run-original.vbs(1, 93) Microsoft VBScript 编译器错误: 语句未结束\r\n\r\n",
|
||||||
|
"script": "CreateObject(\"WScript.Shell\").Run \"powershell.exe -NoProfile -ExecutionPolicy Bypass -File \"D:\\codex\\tmp\\lc-mcp-test\\validation-artifacts\\nonexistent-test-job.ps1\"\", 0, False\n"
|
||||||
|
},
|
||||||
|
"sendinput_initialization": {
|
||||||
|
"ok": true
|
||||||
|
},
|
||||||
|
"interception_initialization": {
|
||||||
|
"ok": false,
|
||||||
|
"error": "Could not find module 'interception.dll' (or one of its dependencies). Try using the full path with constructor syntax."
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
{
|
||||||
|
"sdk_version": "1.30.0",
|
||||||
|
"initialize": {
|
||||||
|
"meta": null,
|
||||||
|
"protocolVersion": "2024-11-05",
|
||||||
|
"capabilities": {
|
||||||
|
"experimental": null,
|
||||||
|
"logging": null,
|
||||||
|
"prompts": null,
|
||||||
|
"resources": null,
|
||||||
|
"tools": {
|
||||||
|
"listChanged": false
|
||||||
|
},
|
||||||
|
"completions": null,
|
||||||
|
"tasks": null
|
||||||
|
},
|
||||||
|
"serverInfo": {
|
||||||
|
"name": "lc-mcp",
|
||||||
|
"title": null,
|
||||||
|
"version": "0.5.0",
|
||||||
|
"websiteUrl": null,
|
||||||
|
"icons": null
|
||||||
|
},
|
||||||
|
"instructions": null
|
||||||
|
},
|
||||||
|
"ping": "PASS",
|
||||||
|
"tools": [
|
||||||
|
"get_state",
|
||||||
|
"click_text",
|
||||||
|
"wait_for_text",
|
||||||
|
"wait_for_text_gone",
|
||||||
|
"screenshot",
|
||||||
|
"click",
|
||||||
|
"move",
|
||||||
|
"keypress",
|
||||||
|
"type_text"
|
||||||
|
],
|
||||||
|
"calls": [
|
||||||
|
{
|
||||||
|
"name": "move",
|
||||||
|
"arguments": {
|
||||||
|
"x": 5,
|
||||||
|
"y": 6
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"meta": null,
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "{\"ok\": true, \"backend\": \"mock\"}",
|
||||||
|
"annotations": null,
|
||||||
|
"meta": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"structuredContent": null,
|
||||||
|
"isError": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "type_text",
|
||||||
|
"arguments": {
|
||||||
|
"text": "测试"
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"meta": null,
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "{\"ok\": true, \"typed\": \"测试\", \"backend\": \"mock\"}",
|
||||||
|
"annotations": null,
|
||||||
|
"meta": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"structuredContent": null,
|
||||||
|
"isError": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "move",
|
||||||
|
"arguments": {
|
||||||
|
"x": "invalid",
|
||||||
|
"y": 6
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"meta": null,
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "{\"ok\": false, \"error\": \"invalid literal for int() with base 10: 'invalid'\"}",
|
||||||
|
"annotations": null,
|
||||||
|
"meta": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"structuredContent": null,
|
||||||
|
"isError": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "click",
|
||||||
|
"arguments": {},
|
||||||
|
"result": {
|
||||||
|
"meta": null,
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "{\"ok\": true, \"clicked\": [0, 0], \"backend\": \"mock\"}",
|
||||||
|
"annotations": null,
|
||||||
|
"meta": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"structuredContent": null,
|
||||||
|
"isError": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "unknown",
|
||||||
|
"arguments": {},
|
||||||
|
"result": {
|
||||||
|
"meta": null,
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "{\"ok\": false, \"error\": \"unknown tool unknown\"}",
|
||||||
|
"annotations": null,
|
||||||
|
"meta": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"structuredContent": null,
|
||||||
|
"isError": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
"""Use only generated images; never send screenshots or desktop input."""
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
sys.path.insert(0, str(ROOT))
|
||||||
|
import lc_mcp as app
|
||||||
|
from PIL import Image, ImageDraw, ImageFont
|
||||||
|
|
||||||
|
out = ROOT / 'validation-artifacts'
|
||||||
|
out.mkdir(exist_ok=True)
|
||||||
|
results = {}
|
||||||
|
image = Image.new('RGB', (900, 300), 'white')
|
||||||
|
draw = ImageDraw.Draw(image)
|
||||||
|
font = ImageFont.truetype('C:/Windows/Fonts/msyh.ttc', 52)
|
||||||
|
draw.text((40, 30), '开始 测试', font=font, fill='black')
|
||||||
|
draw.text((40, 130), 'TEST 123', font=font, fill='black')
|
||||||
|
path = out / 'ocr-synthetic.png'
|
||||||
|
image.save(str(path))
|
||||||
|
start = time.monotonic()
|
||||||
|
items, error = app.ocr_image(str(path))
|
||||||
|
results['remote_ocr'] = {'url': app.OCR_URL, 'seconds': round(time.monotonic() - start, 3),
|
||||||
|
'items': items, 'error': error, 'input': str(path)}
|
||||||
|
print(json.dumps({'remote_ocr': results['remote_ocr']}, ensure_ascii=True), flush=True)
|
||||||
|
|
||||||
|
# Exact script-generation expression from platform/win.py, with isolated paths.
|
||||||
|
job = str(out / 'nonexistent-test-job.ps1')
|
||||||
|
vbs = out / 'run-original.vbs'
|
||||||
|
vbs.write_text('CreateObject("WScript.Shell").Run "powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%s"", 0, False\n' % job, encoding='utf-8')
|
||||||
|
r = subprocess.run(['cscript.exe', '//nologo', str(vbs)], capture_output=True, timeout=10)
|
||||||
|
results['windows_vbs'] = {'returncode': r.returncode,
|
||||||
|
'stdout': r.stdout.decode('mbcs', errors='replace'), 'stderr': r.stderr.decode('mbcs', errors='replace'),
|
||||||
|
'script': vbs.read_text(encoding='utf-8')}
|
||||||
|
print(json.dumps({'windows_vbs': results['windows_vbs']}, ensure_ascii=True), flush=True)
|
||||||
|
for name in ('sendinput', 'interception'):
|
||||||
|
try:
|
||||||
|
backend = app.get_input_backend(name, 'win')
|
||||||
|
results[name + '_initialization'] = {'ok': True}
|
||||||
|
except Exception as e:
|
||||||
|
results[name + '_initialization'] = {'ok': False, 'error': str(e)}
|
||||||
|
(ROOT / 'live-service-results.json').write_text(json.dumps(results, ensure_ascii=False, indent=2), encoding='utf-8')
|
||||||
|
print(json.dumps(results, ensure_ascii=True), flush=True)
|
||||||
@@ -0,0 +1,251 @@
|
|||||||
|
"""Independent validation; no real desktop inputs are sent.
|
||||||
|
|
||||||
|
Run: python tests/test_validation.py
|
||||||
|
Failures assert the intended behavior and reproduce defects in the tested revision.
|
||||||
|
"""
|
||||||
|
import contextlib
|
||||||
|
import io
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
import queue
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import tempfile
|
||||||
|
import threading
|
||||||
|
import unittest
|
||||||
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
sys.path.insert(0, str(ROOT))
|
||||||
|
import lc_mcp as app
|
||||||
|
from backends.mock import MockBackend
|
||||||
|
|
||||||
|
ITEMS = [
|
||||||
|
{'text': '开始', 'x': 100, 'y': 200, 'w': 80, 'h': 40, 'score': .99},
|
||||||
|
{'text': '开始战斗', 'x': 300, 'y': 400, 'w': 100, 'h': 50, 'score': .95},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
class Provider:
|
||||||
|
def grab(self):
|
||||||
|
return {'ok': True, 'path': 'synthetic.png'}
|
||||||
|
|
||||||
|
|
||||||
|
class Peer:
|
||||||
|
def __init__(self, extra_env=None):
|
||||||
|
env = dict(os.environ, INPUT_BACKEND='mock', PYTHONIOENCODING='utf-8')
|
||||||
|
env.update(extra_env or {})
|
||||||
|
self.p = subprocess.Popen([sys.executable, str(ROOT / 'lc_mcp.py')],
|
||||||
|
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
|
text=True, encoding='utf-8', env=env)
|
||||||
|
self.q = queue.Queue()
|
||||||
|
def pump():
|
||||||
|
for line in self.p.stdout:
|
||||||
|
self.q.put(line)
|
||||||
|
self.q.put(None)
|
||||||
|
threading.Thread(target=pump, daemon=True).start()
|
||||||
|
|
||||||
|
def send(self, obj):
|
||||||
|
self.p.stdin.write(json.dumps(obj, ensure_ascii=True) + '\n')
|
||||||
|
self.p.stdin.flush()
|
||||||
|
line = self.q.get(timeout=5)
|
||||||
|
return json.loads(line) if line else None
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
if self.p.poll() is None:
|
||||||
|
self.p.kill()
|
||||||
|
self.p.communicate(timeout=5)
|
||||||
|
|
||||||
|
|
||||||
|
class HealthyPaths(unittest.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
self.b = MockBackend()
|
||||||
|
self.s = app.MCPServer('win', Provider(), self.b)
|
||||||
|
|
||||||
|
def test_text_coordinates(self):
|
||||||
|
self.assertEqual(app.calc_click('开始', ITEMS)[0], {'text': '开始', 'x': 140, 'y': 220})
|
||||||
|
|
||||||
|
def test_substring_case_insensitive(self):
|
||||||
|
items = [dict(ITEMS[0], text='Start Battle')]
|
||||||
|
self.assertEqual(len(app.calc_click('START', items)), 1)
|
||||||
|
|
||||||
|
def test_get_state(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
self.assertEqual(self.s.call('get_state', {})['items'], ITEMS)
|
||||||
|
|
||||||
|
def test_click_text_second_hit(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
self.s.call('click_text', {'text': '开始', 'index': 1})
|
||||||
|
self.assertEqual(self.b.log[-1]['x'], 350)
|
||||||
|
self.assertEqual(self.b.log[-1]['y'], 425)
|
||||||
|
|
||||||
|
def test_missing_text_does_not_click(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
self.assertFalse(self.s.call('click_text', {'text': '不存在'})['ok'])
|
||||||
|
self.assertEqual(self.b.log, [])
|
||||||
|
|
||||||
|
def test_ocr_error_does_not_click(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(None, 'service unavailable')):
|
||||||
|
self.assertFalse(self.s.call('click_text', {'text': '开始'})['ok'])
|
||||||
|
self.assertEqual(self.b.log, [])
|
||||||
|
|
||||||
|
def test_screenshot_error_propagates(self):
|
||||||
|
with patch.object(self.s.provider, 'grab', return_value={'ok': False, 'error': 'capture fail'}):
|
||||||
|
self.assertEqual(self.s.call('get_state', {})['error'], 'capture fail')
|
||||||
|
|
||||||
|
def test_wait_present(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
self.assertTrue(self.s.call('wait_for_text', {'text': '开始', 'timeout': 1})['present'])
|
||||||
|
|
||||||
|
def test_wait_absent(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=([], None)):
|
||||||
|
result = self.s.call('wait_for_text_gone', {'text': '开始', 'timeout': 1})
|
||||||
|
self.assertTrue(result['ok'])
|
||||||
|
self.assertFalse(result['present'])
|
||||||
|
|
||||||
|
def test_ocr_confidence_filter(self):
|
||||||
|
payload = {'ok': True, 'items': ITEMS + [dict(ITEMS[0], score=.1)]}
|
||||||
|
response = contextlib.closing(io.BytesIO(json.dumps(payload).encode('utf-8')))
|
||||||
|
with tempfile.TemporaryDirectory() as tmp, patch.object(app.urllib.request, 'urlopen', return_value=response):
|
||||||
|
path = Path(tmp) / 'image.png'
|
||||||
|
path.write_bytes(b'fixture')
|
||||||
|
items, error = app.ocr_image(str(path))
|
||||||
|
self.assertIsNone(error)
|
||||||
|
self.assertEqual(len(items), 2)
|
||||||
|
|
||||||
|
def test_protocol_discovery_and_all_input_tools(self):
|
||||||
|
p = Peer()
|
||||||
|
try:
|
||||||
|
response = p.send({'jsonrpc': '2.0', 'id': 1, 'method': 'initialize', 'params': {}})
|
||||||
|
self.assertEqual(response['result']['serverInfo']['name'], 'lc-mcp')
|
||||||
|
response = p.send({'jsonrpc': '2.0', 'id': 2, 'method': 'tools/list'})
|
||||||
|
self.assertEqual(len(response['result']['tools']), 9)
|
||||||
|
for name, args in [('click', {'x': 10, 'y': 20}), ('move', {'x': 5, 'y': 6}),
|
||||||
|
('keypress', {'key': 'p'}), ('type_text', {'text': '开始'})]:
|
||||||
|
r = p.send({'jsonrpc': '2.0', 'id': 3, 'method': 'tools/call', 'params': {'name': name, 'arguments': args}})
|
||||||
|
self.assertTrue(json.loads(r['result']['content'][0]['text'])['ok'])
|
||||||
|
finally:
|
||||||
|
p.close()
|
||||||
|
|
||||||
|
|
||||||
|
class RequiredBehavior(unittest.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
self.b = MockBackend()
|
||||||
|
self.s = app.MCPServer('win', Provider(), self.b)
|
||||||
|
|
||||||
|
def test_missing_click_coordinates_rejected(self):
|
||||||
|
result = self.s.call('click', {})
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
self.assertEqual(self.b.log, [])
|
||||||
|
|
||||||
|
def test_missing_click_text_rejected(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
result = self.s.call('click_text', {})
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
self.assertEqual(self.b.log, [])
|
||||||
|
|
||||||
|
def test_out_of_range_index_rejected(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
result = self.s.call('click_text', {'text': '开始', 'index': 99})
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
|
||||||
|
def test_negative_index_rejected(self):
|
||||||
|
with patch.object(app, 'ocr_image', return_value=(ITEMS, None)):
|
||||||
|
result = self.s.call('click_text', {'text': '开始', 'index': -1})
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
|
||||||
|
def test_wait_timeout_honored(self):
|
||||||
|
clock = [0.0]
|
||||||
|
def slow_ocr(_):
|
||||||
|
clock[0] += 30
|
||||||
|
return None, 'network timeout'
|
||||||
|
def sleep(seconds):
|
||||||
|
clock[0] += seconds
|
||||||
|
with patch.object(app.time, 'time', side_effect=lambda: clock[0]), \
|
||||||
|
patch.object(app.time, 'sleep', side_effect=sleep), \
|
||||||
|
patch.object(app, 'ocr_image', side_effect=slow_ocr):
|
||||||
|
self.s.call('wait_for_text', {'text': '开始', 'timeout': 1})
|
||||||
|
self.assertLessEqual(clock[0], 1.1, 'one-second deadline took %.1f seconds' % clock[0])
|
||||||
|
|
||||||
|
def test_tool_exception_sets_result_iserror(self):
|
||||||
|
p = Peer()
|
||||||
|
try:
|
||||||
|
r = p.send({'jsonrpc': '2.0', 'id': 1, 'method': 'tools/call',
|
||||||
|
'params': {'name': 'move', 'arguments': {'x': 'invalid', 'y': 1}}})
|
||||||
|
self.assertTrue(r['result'].get('isError', False), r)
|
||||||
|
finally:
|
||||||
|
p.close()
|
||||||
|
|
||||||
|
def test_unknown_tool_returns_protocol_error(self):
|
||||||
|
p = Peer()
|
||||||
|
try:
|
||||||
|
r = p.send({'jsonrpc': '2.0', 'id': 1, 'method': 'tools/call',
|
||||||
|
'params': {'name': 'unknown', 'arguments': {}}})
|
||||||
|
self.assertIn('error', r, r)
|
||||||
|
finally:
|
||||||
|
p.close()
|
||||||
|
|
||||||
|
def test_invalid_json_keeps_server_alive(self):
|
||||||
|
p = Peer()
|
||||||
|
try:
|
||||||
|
p.p.stdin.write('{ invalid json }\n')
|
||||||
|
p.p.stdin.flush()
|
||||||
|
line = p.q.get(timeout=5)
|
||||||
|
self.assertIsNotNone(line, 'server closes stdout and exits without JSON-RPC parse error')
|
||||||
|
self.assertEqual(json.loads(line)['error']['code'], -32700)
|
||||||
|
finally:
|
||||||
|
p.close()
|
||||||
|
|
||||||
|
def test_sendinput_failed_injection_is_reported(self):
|
||||||
|
from backends.sendinput_win import SendInputBackend
|
||||||
|
b = SendInputBackend.__new__(SendInputBackend)
|
||||||
|
with patch.object(b, '_send_input', return_value=0):
|
||||||
|
r = b.keypress('p')
|
||||||
|
self.assertFalse(r['ok'], r)
|
||||||
|
|
||||||
|
def test_uinput_key_constants_in_scope(self):
|
||||||
|
from backends.uinput_linux import UinputBackend
|
||||||
|
b = UinputBackend.__new__(UinputBackend)
|
||||||
|
with patch.object(b, '_key'):
|
||||||
|
r = b.keypress('enter')
|
||||||
|
self.assertTrue(r['ok'])
|
||||||
|
|
||||||
|
def test_uinput_device_events_are_valid(self):
|
||||||
|
import types
|
||||||
|
from backends.uinput_linux import UinputBackend
|
||||||
|
fake = types.SimpleNamespace(Device=lambda events: object())
|
||||||
|
names = ['KEY_A', 'KEY_Z', 'KEY_ENTER', 'KEY_ESC', 'KEY_SPACE', 'KEY_TAB', 'KEY_F4',
|
||||||
|
'KEY_LEFTCTRL', 'KEY_LEFTSHIFT', 'KEY_LEFTALT', 'KEY_BACKSPACE',
|
||||||
|
'REL_X', 'REL_Y', 'BTN_LEFT', 'BTN_RIGHT']
|
||||||
|
for i, name in enumerate(names):
|
||||||
|
setattr(fake, name, (1, i + 30))
|
||||||
|
b = UinputBackend.__new__(UinputBackend)
|
||||||
|
b._ctx = None
|
||||||
|
with patch.dict(sys.modules, {'uinput': fake}):
|
||||||
|
self.assertIsNotNone(b._ensure())
|
||||||
|
|
||||||
|
|
||||||
|
class Result(unittest.TextTestResult):
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
self.records = []
|
||||||
|
|
||||||
|
def addSuccess(self, test):
|
||||||
|
super().addSuccess(test)
|
||||||
|
self.records.append({'test': test.id(), 'status': 'PASS'})
|
||||||
|
|
||||||
|
def addFailure(self, test, err):
|
||||||
|
super().addFailure(test, err)
|
||||||
|
self.records.append({'test': test.id(), 'status': 'FAIL', 'detail': self._exc_info_to_string(err, test)})
|
||||||
|
|
||||||
|
def addError(self, test, err):
|
||||||
|
super().addError(test, err)
|
||||||
|
self.records.append({'test': test.id(), 'status': 'ERROR', 'detail': self._exc_info_to_string(err, test)})
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
suite = unittest.defaultTestLoader.loadTestsFromModule(sys.modules[__name__])
|
||||||
|
result = unittest.TextTestRunner(verbosity=2, resultclass=Result).run(suite)
|
||||||
|
(ROOT / 'validation-results.json').write_text(json.dumps(result.records, ensure_ascii=False, indent=2), encoding='utf-8')
|
||||||
|
sys.exit(0 if result.wasSuccessful() else 1)
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1 @@
|
|||||||
|
CreateObject("WScript.Shell").Run "powershell.exe -NoProfile -ExecutionPolicy Bypass -File "D:\codex\tmp\lc-mcp-test\validation-artifacts\nonexistent-test-job.ps1"", 0, False
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
test_click_text_second_hit (__main__.HealthyPaths) ... ok
|
||||||
|
test_get_state (__main__.HealthyPaths) ... ok
|
||||||
|
test_missing_text_does_not_click (__main__.HealthyPaths) ... ok
|
||||||
|
test_ocr_confidence_filter (__main__.HealthyPaths) ... ok
|
||||||
|
test_ocr_error_does_not_click (__main__.HealthyPaths) ... ok
|
||||||
|
test_protocol_discovery_and_all_input_tools (__main__.HealthyPaths) ... ok
|
||||||
|
test_screenshot_error_propagates (__main__.HealthyPaths) ... ok
|
||||||
|
test_substring_case_insensitive (__main__.HealthyPaths) ... ok
|
||||||
|
test_text_coordinates (__main__.HealthyPaths) ... ok
|
||||||
|
test_wait_absent (__main__.HealthyPaths) ... ok
|
||||||
|
test_wait_present (__main__.HealthyPaths) ... ok
|
||||||
|
test_invalid_json_keeps_server_alive (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_missing_click_coordinates_rejected (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_missing_click_text_rejected (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_negative_index_rejected (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_out_of_range_index_rejected (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_sendinput_failed_injection_is_reported (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_tool_exception_sets_result_iserror (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_uinput_device_events_are_valid (__main__.RequiredBehavior) ... ERROR
|
||||||
|
test_uinput_key_constants_in_scope (__main__.RequiredBehavior) ... ERROR
|
||||||
|
test_unknown_tool_returns_protocol_error (__main__.RequiredBehavior) ... FAIL
|
||||||
|
test_wait_timeout_honored (__main__.RequiredBehavior) ... FAIL
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
ERROR: test_uinput_device_events_are_valid (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 226, in test_uinput_device_events_are_valid
|
||||||
|
self.assertIsNotNone(b._ensure())
|
||||||
|
File "D:\codex\tmp\lc-mcp-test\backends\uinput_linux.py", line 28, in _ensure
|
||||||
|
*[key for key in range(KEY_A, KEY_Z + 1)],
|
||||||
|
TypeError: can only concatenate tuple (not "int") to tuple
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
ERROR: test_uinput_key_constants_in_scope (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 211, in test_uinput_key_constants_in_scope
|
||||||
|
r = b.keypress('enter')
|
||||||
|
File "D:\codex\tmp\lc-mcp-test\backends\uinput_linux.py", line 72, in keypress
|
||||||
|
mapping = {'enter': KEY_ENTER, 'esc': KEY_ESC, 'space': KEY_SPACE,
|
||||||
|
NameError: name 'KEY_ENTER' is not defined
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_invalid_json_keeps_server_alive (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 195, in test_invalid_json_keeps_server_alive
|
||||||
|
self.assertIsNotNone(line, 'server closes stdout and exits without JSON-RPC parse error')
|
||||||
|
AssertionError: unexpectedly None : server closes stdout and exits without JSON-RPC parse error
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_missing_click_coordinates_rejected (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 139, in test_missing_click_coordinates_rejected
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
AssertionError: True is not false : {'ok': True, 'clicked': [0, 0], 'backend': 'mock'}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_missing_click_text_rejected (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 145, in test_missing_click_text_rejected
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
AssertionError: True is not false : {'ok': True, 'clicked': [140, 220], 'backend': 'mock', 'on': '��ʼ'}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_negative_index_rejected (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 156, in test_negative_index_rejected
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
AssertionError: True is not false : {'ok': True, 'clicked': [350, 425], 'backend': 'mock', 'on': '��ʼս��'}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_out_of_range_index_rejected (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 151, in test_out_of_range_index_rejected
|
||||||
|
self.assertFalse(result['ok'], result)
|
||||||
|
AssertionError: True is not false : {'ok': True, 'clicked': [350, 425], 'backend': 'mock', 'on': '��ʼս��'}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_sendinput_failed_injection_is_reported (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 205, in test_sendinput_failed_injection_is_reported
|
||||||
|
self.assertFalse(r['ok'], r)
|
||||||
|
AssertionError: True is not false : {'ok': True, 'key': 'p', 'backend': 'sendinput'}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_tool_exception_sets_result_iserror (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 176, in test_tool_exception_sets_result_iserror
|
||||||
|
self.assertTrue(r['result'].get('isError', False), r)
|
||||||
|
AssertionError: False is not true : {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{"ok": false, "error": "invalid literal for int() with base 10: \'invalid\'"}'}]}, 'isError': True}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_unknown_tool_returns_protocol_error (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 185, in test_unknown_tool_returns_protocol_error
|
||||||
|
self.assertIn('error', r, r)
|
||||||
|
AssertionError: 'error' not found in {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{"ok": false, "error": "unknown tool unknown"}'}]}} : {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{"ok": false, "error": "unknown tool unknown"}'}]}}
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
FAIL: test_wait_timeout_honored (__main__.RequiredBehavior)
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "tests\test_validation.py", line 169, in test_wait_timeout_honored
|
||||||
|
self.assertLessEqual(clock[0], 1.1, 'one-second deadline took %.1f seconds' % clock[0])
|
||||||
|
AssertionError: 31.2 not less than or equal to 1.1 : one-second deadline took 31.2 seconds
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Ran 22 tests in 0.886s
|
||||||
|
|
||||||
|
FAILED (failures=9, errors=2)
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_click_text_second_hit",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_get_state",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_missing_text_does_not_click",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_ocr_confidence_filter",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_ocr_error_does_not_click",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_protocol_discovery_and_all_input_tools",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_screenshot_error_propagates",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_substring_case_insensitive",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_text_coordinates",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_wait_absent",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.HealthyPaths.test_wait_present",
|
||||||
|
"status": "PASS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_invalid_json_keeps_server_alive",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 195, in test_invalid_json_keeps_server_alive\n self.assertIsNotNone(line, 'server closes stdout and exits without JSON-RPC parse error')\nAssertionError: unexpectedly None : server closes stdout and exits without JSON-RPC parse error\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_missing_click_coordinates_rejected",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 139, in test_missing_click_coordinates_rejected\n self.assertFalse(result['ok'], result)\nAssertionError: True is not false : {'ok': True, 'clicked': [0, 0], 'backend': 'mock'}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_missing_click_text_rejected",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 145, in test_missing_click_text_rejected\n self.assertFalse(result['ok'], result)\nAssertionError: True is not false : {'ok': True, 'clicked': [140, 220], 'backend': 'mock', 'on': '开始'}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_negative_index_rejected",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 156, in test_negative_index_rejected\n self.assertFalse(result['ok'], result)\nAssertionError: True is not false : {'ok': True, 'clicked': [350, 425], 'backend': 'mock', 'on': '开始战斗'}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_out_of_range_index_rejected",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 151, in test_out_of_range_index_rejected\n self.assertFalse(result['ok'], result)\nAssertionError: True is not false : {'ok': True, 'clicked': [350, 425], 'backend': 'mock', 'on': '开始战斗'}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_sendinput_failed_injection_is_reported",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 205, in test_sendinput_failed_injection_is_reported\n self.assertFalse(r['ok'], r)\nAssertionError: True is not false : {'ok': True, 'key': 'p', 'backend': 'sendinput'}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_tool_exception_sets_result_iserror",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 176, in test_tool_exception_sets_result_iserror\n self.assertTrue(r['result'].get('isError', False), r)\nAssertionError: False is not true : {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{\"ok\": false, \"error\": \"invalid literal for int() with base 10: \\'invalid\\'\"}'}]}, 'isError': True}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_uinput_device_events_are_valid",
|
||||||
|
"status": "ERROR",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 226, in test_uinput_device_events_are_valid\n self.assertIsNotNone(b._ensure())\n File \"D:\\codex\\tmp\\lc-mcp-test\\backends\\uinput_linux.py\", line 28, in _ensure\n *[key for key in range(KEY_A, KEY_Z + 1)],\nTypeError: can only concatenate tuple (not \"int\") to tuple\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_uinput_key_constants_in_scope",
|
||||||
|
"status": "ERROR",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 211, in test_uinput_key_constants_in_scope\n r = b.keypress('enter')\n File \"D:\\codex\\tmp\\lc-mcp-test\\backends\\uinput_linux.py\", line 72, in keypress\n mapping = {'enter': KEY_ENTER, 'esc': KEY_ESC, 'space': KEY_SPACE,\nNameError: name 'KEY_ENTER' is not defined\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_unknown_tool_returns_protocol_error",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 185, in test_unknown_tool_returns_protocol_error\n self.assertIn('error', r, r)\nAssertionError: 'error' not found in {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{\"ok\": false, \"error\": \"unknown tool unknown\"}'}]}} : {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{\"ok\": false, \"error\": \"unknown tool unknown\"}'}]}}\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test": "__main__.RequiredBehavior.test_wait_timeout_honored",
|
||||||
|
"status": "FAIL",
|
||||||
|
"detail": "Traceback (most recent call last):\n File \"tests\\test_validation.py\", line 169, in test_wait_timeout_honored\n self.assertLessEqual(clock[0], 1.1, 'one-second deadline took %.1f seconds' % clock[0])\nAssertionError: 31.2 not less than or equal to 1.1 : one-second deadline took 31.2 seconds\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# Interception 输入改动
|
||||||
|
|
||||||
|
**2026-10-03 已撤销:Interception 驱动已卸载,系统过滤器恢复为 kbdclass/mouclass;驱动服务和系统驱动文件均已确认不存在。仓库已恢复上游输入实现。下文仅保留历史记录,不应再执行安装步骤。卸载需要重启才能完全生效。**
|
||||||
|
|
||||||
|
2026-10-02,基础提交 `a4b27f9`,AALC 固定提交 `7452fad5a45a0fadb59a753fafbf40434d987c19`。
|
||||||
|
|
||||||
|
已拉取最新仓库和 AALC 子模块。本地新增 Interception 驱动后端,MCP 直接输入和 `run_task` 子进程共享适配逻辑;AALC 的 `auto.init_input()` 重初始化后也保持使用此后端。
|
||||||
|
|
||||||
|
修改文件:
|
||||||
|
|
||||||
|
- `lc_mcp/physical_input.py`:上游 DLL 的 ctypes 接口、设备发现、发送结果检查、虚拟桌面坐标、游戏前台焦点确认、按键和按钮释放、AALC 输入绑定。
|
||||||
|
- `lc_mcp/aalc_engine.py` 与 `lc_mcp/aalc_task.py`:在服务及任务进程中安装物理输入适配。
|
||||||
|
- `scripts/install_interception.ps1`:固定上游 v1.0.1 包与 SHA256;支持 WhatIf;管理员安装驱动;不自动重启。
|
||||||
|
- `tests/test_physical_input.py`:驱动 ABI、设备选择、发送失败、坐标、扩展键、释放、AALC 重初始化与 MCP 错误返回测试。
|
||||||
|
- `README.md`:部署和输入行为说明。
|
||||||
|
|
||||||
|
所有鼠标点击、移动、拖拽、滚轮和按键均通过 Interception 的 `interception_send` 发送,每次发送一个 stroke,检查实际发送数量。驱动/DLL/键鼠不可用时失败,不回退到其他输入方式。中文等文字通过剪贴板加驱动 Ctrl+V 粘贴。
|
||||||
|
|
||||||
|
复用 AALC 的窗口客户区到桌面坐标转换;恢复并确认窗口焦点后再换算坐标。覆盖 AALC 输入初始化,同时保留输入锁、交互门、暂停与监控路径。没有修改 vendor/aalc 源码或 config.yaml。
|
||||||
|
|
||||||
|
验证:Python 3.12.14 完整 unittest discovery 共 32 项通过,编译检查与 git diff --check 通过。PowerShell 语法解析无错误,技能静态检查报告 safe=true。输入验证使用模拟驱动,没有发送真实游戏输入。
|
||||||
|
|
||||||
|
历史 v0.5 的两个本地测试脚本已保留为 `tests/validation_v05.py` 和 `tests/live_services_v05.py`,避免被新版 unittest 自动发现。旧报告和结果保留为历史记录。
|
||||||
|
|
||||||
|
本机安装状态:已从上游下载并校验 Interception v1.0.1,Windows 管理员安装器输出“Interception successfully installed. You must reboot for it to take effect.”。键盘和鼠标设备类 UpperFilters 已加入对应驱动。
|
||||||
|
|
||||||
|
安装日志:[lc-mcp-driver-install.log](D:/codex/tmp/lc-mcp-driver-install.log)。安装结果:[lc-mcp-driver-install-result.json](D:/codex/tmp/lc-mcp-driver-install-result.json)。
|
||||||
|
|
||||||
|
待环境步骤:重启 Windows 后驱动才会生效;实际游戏输入尚未验证。新仓库的 AALC 运行依赖需在其 Python >=3.12 环境准备好(README 的 uv sync 步骤);本次没有安装 AALC 的全部 GUI/OCR 依赖或启动常驻服务。正常服务会移动桌面光标并使用前台游戏窗口。
|
||||||
|
|
||||||
|
本地改动尚未提交或推送。
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
# Jev deployment and live mirror controller feedback (2026-10-03)
|
||||||
|
|
||||||
|
This is a live deployment record, not a completed speedrun claim. Run
|
||||||
|
`mirror_20261003_142030` started at `2026-10-03T14:20:30.186+08:00`.
|
||||||
|
The timer includes English UI compatibility work and all interruptions.
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
- Updated main from `97eca20` to `95ae060`, preserving local AALC files.
|
||||||
|
- Restarted `LcMCPServer` and validated a fresh MCP session, screenshot/OCR,
|
||||||
|
and idle AALC task state. The desktop's old exposed transport stayed closed;
|
||||||
|
fresh subprocess MCP sessions work without another desktop restart.
|
||||||
|
- The runtime launcher now imports the repository controller and matching
|
||||||
|
modules instead of retaining an older independent script copy.
|
||||||
|
- Configured the actual `jev-1.13-free` choice endpoint at
|
||||||
|
`https://opencode.ai/zen/v1/systemone`. Credentials stay in private runtime
|
||||||
|
configuration and are excluded from this repository and feedback.
|
||||||
|
- An isolated identical route probe took 5468 ms with curl and 1859 ms with
|
||||||
|
urllib. Switched the live configuration to urllib. Actual subsequent route
|
||||||
|
calls included 1313 and 1484 ms; there are also slow requests and timeouts.
|
||||||
|
The isolated probe is not counted as a live game decision.
|
||||||
|
|
||||||
|
## Live findings and repairs
|
||||||
|
|
||||||
|
1. The restarted Steam game uses English labels. Added controller-side label
|
||||||
|
compatibility for entry, gift selection, event choices, judgement and
|
||||||
|
confirmation boundaries. Preserve the original OCR text for diagnostics.
|
||||||
|
2. `Receive` incorrectly matched the old substring check for `REC`, causing
|
||||||
|
unnecessary event advancement. Match the recording label exactly.
|
||||||
|
3. English OCR merges adjacent `Very High` labels. Derive separate explicit
|
||||||
|
rate spans; normalization is idempotent and does not invent a high rate
|
||||||
|
where OCR only says low or normal.
|
||||||
|
4. English event outcome text was offered as clickable choices. Exclude
|
||||||
|
`check`, `gain` and E.G.O Gift description lines from event buttons.
|
||||||
|
5. Repeated generic confirmation requests added API latency. Execute a sole
|
||||||
|
validated confirmation directly. Route and branch choices still use Jev.
|
||||||
|
6. Route and sinner API requests now contain current relevant observations,
|
||||||
|
rather than unrelated entry, fusion and party setup requirements.
|
||||||
|
7. Sinner candidates are constrained to the explicitly highest visible rate;
|
||||||
|
explicit OCR rates precede ambiguous colour-only candidates. The log saves
|
||||||
|
the provider's scored candidate scope. Zeros outside that scope represent
|
||||||
|
constraints, not extra probabilities returned by the API.
|
||||||
|
8. Initial candidate pruning caused a probability-set validation error. Fixed
|
||||||
|
the adaptation between scoped provider probabilities and router validation,
|
||||||
|
and added an integration regression test.
|
||||||
|
9. An enabled Commence button initially competed with sinner selection, causing
|
||||||
|
repeated selection. An enabled judgement button now takes priority.
|
||||||
|
10. Enter sometimes fails on event judgement. Added the actual observed button
|
||||||
|
as its mouse fallback. The original fallback list omitted judgement.
|
||||||
|
11. A changing event video clock reset repeat detection. Ignore both colon and
|
||||||
|
decimal clock formats when detecting unsuccessful confirmations.
|
||||||
|
12. After combat, OCR read the map heading as `Exploring Floor` or
|
||||||
|
`Exploring FloorT` without a valid digit. The old normalizer failed to mark
|
||||||
|
this as a map, so P/Enter batches continued on the map for several minutes.
|
||||||
|
Recognize the map heading independently of its floor number and retain
|
||||||
|
the previously known floor. Added a regression against continuing battle.
|
||||||
|
13. Shop OCR splits Enhance/Gifts and reads the skill panel as SkillsOwned.
|
||||||
|
Normalize those labels and truncated Replace Outis's Skil.
|
||||||
|
14. The keyword panel has a second Refresh button. Stock refresh now uses the
|
||||||
|
leftmost validated Refresh, rather than overwriting it with keyword refresh.
|
||||||
|
15. English skill payment uses Confirm instead of Purchase. Only offer payment
|
||||||
|
after verifying the exact requested skill pair, with Enter and a mouse fallback.
|
||||||
|
16. Full-screen OCR omitted the orange Purchased badge despite successful payment.
|
||||||
|
This caused attempts to reopen the same skill slot. Added a small observed
|
||||||
|
label template and a regression for both a bought and an empty slot.
|
||||||
|
17. A sole validated skill option or stock refresh executes without an extra
|
||||||
|
provider call. Store exit uses Enter, then the observed-button fallback.
|
||||||
|
18. Added English server-error/Retry labels and Cost/resource reward anchors.
|
||||||
|
A server-error modal excludes the reward buttons behind it.
|
||||||
|
19. Added `show_game_background`, using SW_SHOWNOACTIVATE. Live recovery returned
|
||||||
|
visible=true and foreground_changed=false after a hidden game restart.
|
||||||
|
20. Code inspection showed AALC BackgroundInput.set_mouse_pos moves the actual
|
||||||
|
system cursor. MCP background clicks and drags now send client mouse messages
|
||||||
|
directly. Unity's title modal did not respond to messages alone; the deployed
|
||||||
|
`window_move` mode aligns an invisible game window with the existing cursor,
|
||||||
|
waits for input processing and restores position without activation.
|
||||||
|
Closing the error modal and clicking TOUCH TO START both responded in the
|
||||||
|
real game. Battle and title-drag completion with this new mode remain unverified.
|
||||||
|
|
||||||
|
## Progress verified so far
|
||||||
|
|
||||||
|
- Entry blessings: base 1, 3 and 10; no enhanced blessings.
|
||||||
|
- Starter gifts: Barbed Lasso and Fluorescent Lamp.
|
||||||
|
- Actual Battery and permitted Thunderbranch obtained.
|
||||||
|
- Floor 1 pack: Nest, Workshop, and Technology, with Talisman Bundle in the
|
||||||
|
displayed clear rewards. One pack refresh was used before finding it.
|
||||||
|
- Kept the user's seven-character preset and used Enter to enter combat.
|
||||||
|
- First battle completed, then two event nodes completed. At 15:27 the
|
||||||
|
controller entered another battle using its P/Enter macro.
|
||||||
|
- Floor 1 shop: actual Thunderbranch++ verified after payments of 75 and 150
|
||||||
|
(balance 590 -> 515 -> 365). Actual Outis 2->3 verified after paying 75
|
||||||
|
(balance 365 -> 290 and visible Purchased badge).
|
||||||
|
- No final reward or dungeon completion has been verified in this record.
|
||||||
|
The preceding interruptions do not qualify as a successful fast run.
|
||||||
|
|
||||||
|
The controller sends background game inputs. There is one game executor;
|
||||||
|
root interventions occur only after it hands off or stops. Battle batches
|
||||||
|
use P/Enter, and deterministic confirmations and event advancement avoid
|
||||||
|
per-key model decisions. Each action and timing remains in the private
|
||||||
|
runtime JSONL log; no provider key is written into it.
|
||||||
|
|
||||||
|
## Connection failure and recovery boundary
|
||||||
|
|
||||||
|
- At the next Floor 1 post-combat reward, repeated CONNECTING and server-error
|
||||||
|
retries prevented further progress. The controller handed off at 16:13:42.
|
||||||
|
- Restarted the client without resetting `mirror_20261003_142030`, its timer or
|
||||||
|
the verified inventory flags. Saved the pre-restart run/context privately.
|
||||||
|
- The title login still failed after restart and a further actual button retry.
|
||||||
|
Player.log reports: `Curl error 35: Cert verify failed` and
|
||||||
|
`UnityTls error code: 7`. This is an observed failure, not a proven root cause.
|
||||||
|
- The game's proxy log identifies www.limbuscompanyapi.com. Independent HTTPS
|
||||||
|
probes using the existing local proxy and direct connection both timed out
|
||||||
|
after 10 seconds. No game API response or restored dungeon was verified.
|
||||||
|
- At 16:48 the game was still showing its login server-error modal. The mirror
|
||||||
|
controller remains stopped; no new dungeon or reward claim was fabricated.
|
||||||
|
The user was asked whether they can restore a successful game login.
|
||||||
|
- Validation: 171 unit/regression tests passed in 11.297 seconds. Live evidence
|
||||||
|
covers title-modal input and no-activation window recovery, not a completed run.
|
||||||
|
- Credentials, proxy configuration, full screenshots with account identifiers,
|
||||||
|
and untracked AALC changes are excluded from this upload.
|
||||||
|
- `mirror_20261003_142030-actions.jsonl` contains the real current-run action
|
||||||
|
choices, engine attribution, probabilities and timings. Raw OCR, screenshots,
|
||||||
|
private configuration and arbitrary action arguments are omitted. Test-run
|
||||||
|
records and other runs are excluded; controller step numbers can restart
|
||||||
|
after a resume and are not a unique action identifier.
|
||||||
@@ -0,0 +1,500 @@
|
|||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "wait", "at": "2026-10-03T14:35:07", "finished_at": "2026-10-03T14:35:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T14:35:10", "finished_at": "2026-10-03T14:35:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1156, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "wait", "at": "2026-10-03T14:35:12", "finished_at": "2026-10-03T14:35:13", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1219, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T14:35:14", "finished_at": "2026-10-03T14:35:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1140, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T14:35:17", "finished_at": "2026-10-03T14:35:17", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1234, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "requires_analysis", "at": "2026-10-03T14:35:30", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 11078, "decision_ms": 11078, "ocr_ms": 1156, "confidence": 0.18, "probabilities": {"requires_analysis": 0.59, "wait": 0.41}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "event_advance", "at": "2026-10-03T14:36:33", "finished_at": "2026-10-03T14:36:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1391, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "event_advance", "at": "2026-10-03T14:36:37", "finished_at": "2026-10-03T14:36:38", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1781, "action_ms": 1907, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "wait", "at": "2026-10-03T14:36:40", "finished_at": "2026-10-03T14:36:41", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1172, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T14:36:42", "finished_at": "2026-10-03T14:36:43", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 906, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T14:36:45", "finished_at": "2026-10-03T14:36:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1531, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "wait", "at": "2026-10-03T14:36:47", "finished_at": "2026-10-03T14:36:48", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1422, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T14:36:50", "finished_at": "2026-10-03T14:36:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1172, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "requires_analysis", "at": "2026-10-03T14:37:05", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 12750, "decision_ms": 12750, "ocr_ms": 1359, "confidence": 0.1, "probabilities": {"requires_analysis": 0.55, "wait": 0.45}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "select_startup_battery", "at": "2026-10-03T14:41:42", "finished_at": "2026-10-03T14:41:43", "state": "running", "decision_engine": "jev", "jev_ms": 1828, "decision_ms": 1828, "ocr_ms": 2531, "action_ms": 297, "confidence": 0.84, "probabilities": {"requires_analysis": 0, "select_startup_battery": 0.9, "wait": 0.1}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "at": "2026-10-03T14:42:00", "state": "requires_decision", "decision_engine": "executor", "ocr_ms": 2282}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "confirm_startup_battery", "at": "2026-10-03T14:44:20", "finished_at": "2026-10-03T14:44:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1859, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T14:44:23", "finished_at": "2026-10-03T14:44:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2750, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "modal_confirm", "at": "2026-10-03T14:44:26", "finished_at": "2026-10-03T14:44:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1688, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "requires_analysis", "at": "2026-10-03T14:44:34", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 5656, "decision_ms": 5656, "ocr_ms": 1359, "confidence": 0.5, "probabilities": {"wait": 0.14, "route_d": 0.07, "requires_analysis": 0.6, "route_s": 0.05, "route_w": 0.14}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "wait", "at": "2026-10-03T14:48:06", "finished_at": "2026-10-03T14:48:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2625, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T14:48:09", "finished_at": "2026-10-03T14:48:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2640, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "wait", "at": "2026-10-03T14:48:13", "finished_at": "2026-10-03T14:48:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2500, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "requires_analysis", "at": "2026-10-03T14:48:19", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 2797, "decision_ms": 2797, "ocr_ms": 2453, "confidence": 0.09, "probabilities": {"wait": 0.45, "requires_analysis": 0.55}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "button_71", "at": "2026-10-03T14:50:09", "finished_at": "2026-10-03T14:50:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2359, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T14:50:12", "finished_at": "2026-10-03T14:50:13", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2766, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "wait", "at": "2026-10-03T14:50:16", "finished_at": "2026-10-03T14:50:17", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2859, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T14:50:20", "finished_at": "2026-10-03T14:50:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2703, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T14:50:23", "finished_at": "2026-10-03T14:50:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2578, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "wait", "at": "2026-10-03T14:50:27", "finished_at": "2026-10-03T14:50:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2578, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T14:50:31", "finished_at": "2026-10-03T14:50:32", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2797, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "wait", "at": "2026-10-03T14:50:35", "finished_at": "2026-10-03T14:50:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2843, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "wait", "at": "2026-10-03T14:50:38", "finished_at": "2026-10-03T14:50:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2609, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "wait", "at": "2026-10-03T14:50:42", "finished_at": "2026-10-03T14:50:43", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2563, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "wait", "at": "2026-10-03T14:50:46", "finished_at": "2026-10-03T14:50:46", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2453, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "wait", "at": "2026-10-03T14:50:49", "finished_at": "2026-10-03T14:50:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2547, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "wait", "at": "2026-10-03T14:50:55", "finished_at": "2026-10-03T14:50:55", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 4437, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "battle", "at": "2026-10-03T14:50:57", "finished_at": "2026-10-03T14:51:44", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1672, "action_ms": 46469, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "battle", "at": "2026-10-03T14:51:46", "finished_at": "2026-10-03T14:52:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1359, "action_ms": 45641, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "battle", "at": "2026-10-03T14:52:33", "finished_at": "2026-10-03T14:53:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 875, "action_ms": 31328, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "at": "2026-10-03T14:53:20", "state": "requires_decision", "decision_engine": "executor", "ocr_ms": 1172}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "skip_dialog", "at": "2026-10-03T14:57:30", "finished_at": "2026-10-03T14:57:30", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1609, "action_ms": 282, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T14:57:32", "finished_at": "2026-10-03T14:57:32", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "event_advance", "at": "2026-10-03T14:57:35", "finished_at": "2026-10-03T14:57:36", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1766, "action_ms": 1829, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "event_advance", "at": "2026-10-03T14:57:38", "finished_at": "2026-10-03T14:57:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1297, "action_ms": 1844, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T14:57:42", "finished_at": "2026-10-03T14:57:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "event_advance", "at": "2026-10-03T14:57:44", "finished_at": "2026-10-03T14:57:46", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1282, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "event_advance", "at": "2026-10-03T14:57:48", "finished_at": "2026-10-03T14:57:49", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1265, "action_ms": 1812, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "wait", "at": "2026-10-03T14:57:51", "finished_at": "2026-10-03T14:57:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "wait", "at": "2026-10-03T14:57:53", "finished_at": "2026-10-03T14:57:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1297, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "wait", "at": "2026-10-03T14:57:56", "finished_at": "2026-10-03T14:57:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1266, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "event_advance", "at": "2026-10-03T14:57:58", "finished_at": "2026-10-03T14:58:00", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1297, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "wait", "at": "2026-10-03T14:58:02", "finished_at": "2026-10-03T14:58:02", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "wait", "at": "2026-10-03T14:58:04", "finished_at": "2026-10-03T14:58:05", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1297, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "wait", "at": "2026-10-03T14:58:06", "finished_at": "2026-10-03T14:58:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1250, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "wait", "at": "2026-10-03T14:58:09", "finished_at": "2026-10-03T14:58:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "wait", "at": "2026-10-03T14:58:11", "finished_at": "2026-10-03T14:58:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "requires_analysis", "at": "2026-10-03T14:58:27", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 13469, "decision_ms": 13469, "ocr_ms": 1282, "confidence": 0.42, "probabilities": {"wait": 0.29, "requires_analysis": 0.71}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "event_3", "at": "2026-10-03T15:00:39", "finished_at": "2026-10-03T15:00:40", "state": "running", "decision_engine": "jev", "jev_ms": 3515, "decision_ms": 3515, "ocr_ms": 1344, "action_ms": 1594, "confidence": 0.62, "probabilities": {"wait": 0.03, "event_3": 0.7, "requires_analysis": 0.17, "event_7": 0.06, "event_scroll": 0.04}, "model": "jev-1.13-free", "action_tool": "click_text"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T15:00:43", "finished_at": "2026-10-03T15:00:43", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1781, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "event_finish", "at": "2026-10-03T15:00:45", "finished_at": "2026-10-03T15:00:47", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1187, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "event_finish", "at": "2026-10-03T15:00:48", "finished_at": "2026-10-03T15:00:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1343, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "event_finish", "at": "2026-10-03T15:00:52", "finished_at": "2026-10-03T15:00:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "event_finish", "at": "2026-10-03T15:00:55", "finished_at": "2026-10-03T15:00:57", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1329, "action_ms": 1812, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "event_finish", "at": "2026-10-03T15:00:59", "finished_at": "2026-10-03T15:01:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1329, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "event_finish", "at": "2026-10-03T15:01:02", "finished_at": "2026-10-03T15:01:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 1844, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "event_finish", "at": "2026-10-03T15:01:06", "finished_at": "2026-10-03T15:01:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1391, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "event_finish", "at": "2026-10-03T15:01:10", "finished_at": "2026-10-03T15:01:11", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "event_finish", "at": "2026-10-03T15:01:13", "finished_at": "2026-10-03T15:01:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "wait", "at": "2026-10-03T15:01:17", "finished_at": "2026-10-03T15:01:17", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "wait", "at": "2026-10-03T15:01:19", "finished_at": "2026-10-03T15:01:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "event_finish", "at": "2026-10-03T15:01:22", "finished_at": "2026-10-03T15:01:23", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1453, "action_ms": 1829, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "event_finish", "at": "2026-10-03T15:01:25", "finished_at": "2026-10-03T15:01:27", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1109, "action_ms": 1813, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "event_finish", "at": "2026-10-03T15:01:28", "finished_at": "2026-10-03T15:01:30", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1313, "action_ms": 1812, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "wait", "at": "2026-10-03T15:01:32", "finished_at": "2026-10-03T15:01:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1406, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "wait", "at": "2026-10-03T15:01:34", "finished_at": "2026-10-03T15:01:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1343, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "wait", "at": "2026-10-03T15:01:37", "finished_at": "2026-10-03T15:01:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "wait", "at": "2026-10-03T15:01:39", "finished_at": "2026-10-03T15:01:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "wait", "at": "2026-10-03T15:01:42", "finished_at": "2026-10-03T15:01:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1343, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "requires_analysis", "at": "2026-10-03T15:01:49", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 4782, "decision_ms": 4782, "ocr_ms": 1312, "confidence": 0.29, "probabilities": {"wait": 0.35, "requires_analysis": 0.65}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "event_finish", "at": "2026-10-03T15:02:40", "finished_at": "2026-10-03T15:02:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1391, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "event_finish", "at": "2026-10-03T15:02:43", "finished_at": "2026-10-03T15:02:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1203, "action_ms": 1844, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "event_finish", "at": "2026-10-03T15:02:47", "finished_at": "2026-10-03T15:02:48", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1188, "action_ms": 1829, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "event_finish", "at": "2026-10-03T15:02:50", "finished_at": "2026-10-03T15:02:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1125, "action_ms": 296, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T15:02:52", "finished_at": "2026-10-03T15:02:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 937, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "event_advance", "at": "2026-10-03T15:02:54", "finished_at": "2026-10-03T15:02:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1547, "action_ms": 1812, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "event_advance", "at": "2026-10-03T15:02:58", "finished_at": "2026-10-03T15:02:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1250, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "wait", "at": "2026-10-03T15:03:01", "finished_at": "2026-10-03T15:03:02", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1250, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "wait", "at": "2026-10-03T15:03:03", "finished_at": "2026-10-03T15:03:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1297, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "wait", "at": "2026-10-03T15:03:06", "finished_at": "2026-10-03T15:03:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1265, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "wait", "at": "2026-10-03T15:03:08", "finished_at": "2026-10-03T15:03:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1266, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "wait", "at": "2026-10-03T15:03:10", "finished_at": "2026-10-03T15:03:11", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1266, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "event_advance", "at": "2026-10-03T15:03:13", "finished_at": "2026-10-03T15:03:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1234, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "event_advance", "at": "2026-10-03T15:03:16", "finished_at": "2026-10-03T15:03:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "wait", "at": "2026-10-03T15:03:20", "finished_at": "2026-10-03T15:03:21", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1313, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "wait", "at": "2026-10-03T15:03:22", "finished_at": "2026-10-03T15:03:23", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1266, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "wait", "at": "2026-10-03T15:03:25", "finished_at": "2026-10-03T15:03:25", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1516, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "wait", "at": "2026-10-03T15:03:27", "finished_at": "2026-10-03T15:03:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "event_advance", "at": "2026-10-03T15:03:30", "finished_at": "2026-10-03T15:03:32", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1640, "action_ms": 1812, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "wait", "at": "2026-10-03T15:03:33", "finished_at": "2026-10-03T15:03:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1266, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "event_advance", "at": "2026-10-03T15:03:36", "finished_at": "2026-10-03T15:03:38", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1297, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "wait", "at": "2026-10-03T15:03:39", "finished_at": "2026-10-03T15:03:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1312, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 22, "choice": "wait", "at": "2026-10-03T15:03:42", "finished_at": "2026-10-03T15:03:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 23, "choice": "wait", "at": "2026-10-03T15:03:44", "finished_at": "2026-10-03T15:03:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1406, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 24, "choice": "wait", "at": "2026-10-03T15:03:47", "finished_at": "2026-10-03T15:03:47", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1312, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 25, "choice": "wait", "at": "2026-10-03T15:03:49", "finished_at": "2026-10-03T15:03:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1265, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 26, "at": "2026-10-03T15:04:06", "state": "requires_decision", "decision_engine": "executor", "ocr_ms": 1266}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "requires_analysis", "at": "2026-10-03T15:05:45", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 11375, "decision_ms": 11375, "ocr_ms": 1312, "confidence": 0.4, "probabilities": {"wait": 0.03, "sinner_card_3": 0.04, "sinner_card_11": 0.09, "sinner_18": 0.02, "sinner_card_10": 0.31, "sinner_card_5": 0.01, "sinner_19": 0.01, "sinner_20": 0.01, "requires_analysis": 0.48}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "requires_analysis", "at": "2026-10-03T15:07:46", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1609, "decision_ms": 1609, "ocr_ms": 1328, "confidence": 0.66, "probabilities": {"wait": 0.02, "sinner_20": 0.03, "sinner_card_11": 0.01, "sinner_card_3": 0.05, "sinner_19": 0.04, "sinner_card_5": 0.02, "sinner_card_10": 0.02, "requires_analysis": 0.7, "sinner_18": 0.11}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "event_advance", "at": "2026-10-03T15:09:44", "finished_at": "2026-10-03T15:09:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 1813, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "event_advance", "at": "2026-10-03T15:09:47", "finished_at": "2026-10-03T15:09:49", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1360, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "event_advance", "at": "2026-10-03T15:09:51", "finished_at": "2026-10-03T15:09:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1313, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "event_advance", "at": "2026-10-03T15:09:54", "finished_at": "2026-10-03T15:09:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "event_advance", "at": "2026-10-03T15:09:58", "finished_at": "2026-10-03T15:09:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 1844, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "event_advance", "at": "2026-10-03T15:10:01", "finished_at": "2026-10-03T15:10:03", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T15:10:05", "finished_at": "2026-10-03T15:10:05", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "event_advance", "at": "2026-10-03T15:10:08", "finished_at": "2026-10-03T15:10:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1797, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "wait", "at": "2026-10-03T15:10:11", "finished_at": "2026-10-03T15:10:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "event_advance", "at": "2026-10-03T15:10:13", "finished_at": "2026-10-03T15:10:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "wait", "at": "2026-10-03T15:10:17", "finished_at": "2026-10-03T15:10:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1313, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "event_advance", "at": "2026-10-03T15:10:19", "finished_at": "2026-10-03T15:10:21", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 1829, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "wait", "at": "2026-10-03T15:10:23", "finished_at": "2026-10-03T15:10:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "wait", "at": "2026-10-03T15:10:25", "finished_at": "2026-10-03T15:10:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1359, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "wait", "at": "2026-10-03T15:10:28", "finished_at": "2026-10-03T15:10:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1312, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "wait", "at": "2026-10-03T15:10:30", "finished_at": "2026-10-03T15:10:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "wait", "at": "2026-10-03T15:10:32", "finished_at": "2026-10-03T15:10:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1359, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "requires_analysis", "at": "2026-10-03T15:10:36", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1250, "decision_ms": 1250, "ocr_ms": 1328, "confidence": 0.07, "probabilities": {"requires_analysis": 0.54, "wait": 0.46}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "button_18", "at": "2026-10-03T15:12:08", "finished_at": "2026-10-03T15:12:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1406, "action_ms": 282, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T15:12:10", "finished_at": "2026-10-03T15:12:11", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1203, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "event_advance", "at": "2026-10-03T15:12:13", "finished_at": "2026-10-03T15:12:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1656, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "event_advance", "at": "2026-10-03T15:12:17", "finished_at": "2026-10-03T15:12:19", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1922, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "event_advance", "at": "2026-10-03T15:12:21", "finished_at": "2026-10-03T15:12:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1672, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "event_advance", "at": "2026-10-03T15:12:24", "finished_at": "2026-10-03T15:12:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1312, "action_ms": 1813, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "event_advance", "at": "2026-10-03T15:12:28", "finished_at": "2026-10-03T15:12:30", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1844, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "event_advance", "at": "2026-10-03T15:12:32", "finished_at": "2026-10-03T15:12:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1360, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "event_advance", "at": "2026-10-03T15:12:36", "finished_at": "2026-10-03T15:12:38", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1968, "action_ms": 1829, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "event_advance", "at": "2026-10-03T15:12:39", "finished_at": "2026-10-03T15:12:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1312, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "modal_confirm", "at": "2026-10-03T15:12:42", "finished_at": "2026-10-03T15:12:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1625, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "route_d", "at": "2026-10-03T15:12:45", "finished_at": "2026-10-03T15:12:47", "state": "running", "decision_engine": "jev", "jev_ms": 1313, "decision_ms": 1313, "ocr_ms": 1297, "action_ms": 1547, "confidence": 0.99, "probabilities": {"requires_analysis": 0, "wait": 0, "route_d": 1, "route_w": 0}, "model": "jev-1.13-free", "action_tool": "route"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "skip_dialog", "at": "2026-10-03T15:12:48", "finished_at": "2026-10-03T15:12:48", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 891, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "wait", "at": "2026-10-03T15:12:50", "finished_at": "2026-10-03T15:12:51", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1625, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "event_4", "at": "2026-10-03T15:12:56", "finished_at": "2026-10-03T15:12:58", "state": "running", "decision_engine": "jev", "jev_ms": 2547, "decision_ms": 2547, "ocr_ms": 1843, "action_ms": 2156, "confidence": 0.24, "probabilities": {"event_1": 0.32, "requires_analysis": 0.17, "event_scroll": 0.05, "wait": 0.06, "event_4": 0.4}, "model": "jev-1.13-free", "action_tool": "click_text"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "event_finish", "at": "2026-10-03T15:12:59", "finished_at": "2026-10-03T15:13:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1406, "action_ms": 1829, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "event_finish", "at": "2026-10-03T15:13:03", "finished_at": "2026-10-03T15:13:05", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1703, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "event_finish", "at": "2026-10-03T15:13:07", "finished_at": "2026-10-03T15:13:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "event_finish", "at": "2026-10-03T15:13:10", "finished_at": "2026-10-03T15:13:11", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1250, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "wait", "at": "2026-10-03T15:13:12", "finished_at": "2026-10-03T15:13:13", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 828, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "wait", "at": "2026-10-03T15:13:14", "finished_at": "2026-10-03T15:13:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "wait", "at": "2026-10-03T15:13:16", "finished_at": "2026-10-03T15:13:17", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 813, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 22, "choice": "wait", "at": "2026-10-03T15:13:18", "finished_at": "2026-10-03T15:13:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 797, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 23, "choice": "wait", "at": "2026-10-03T15:13:20", "finished_at": "2026-10-03T15:13:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 797, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 24, "choice": "wait", "at": "2026-10-03T15:13:22", "finished_at": "2026-10-03T15:13:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 875, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 25, "choice": "requires_analysis", "at": "2026-10-03T15:13:25", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 766, "confidence": 0.37, "probabilities": {"wait": 0.31, "requires_analysis": 0.69}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "event_advance", "at": "2026-10-03T15:14:13", "finished_at": "2026-10-03T15:14:13", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 828, "action_ms": 719, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "requires_analysis", "at": "2026-10-03T15:14:17", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1484, "decision_ms": 1484, "ocr_ms": 1531, "confidence": 0.42, "probabilities": {"sinner_16": 0.04, "wait": 0, "sinner_12": 0.04, "sinner_9": 0.37, "requires_analysis": 0.52, "sinner_13": 0.03}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "at": "2026-10-03T15:16:07", "state": "requires_decision", "decision_engine": "executor", "ocr_ms": 1531}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "sinner_10", "at": "2026-10-03T15:19:29", "finished_at": "2026-10-03T15:19:29", "state": "running", "decision_engine": "jev", "jev_ms": 1719, "decision_ms": 1719, "ocr_ms": 1469, "action_ms": 296, "confidence": 0.54, "probabilities": {"requires_analysis": 0, "wait": 0, "sinner_10": 0.65, "sinner_14": 0.1, "sinner_15": 0.12, "sinner_18": 0.13}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_15", "sinner_18"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "sinner_15", "at": "2026-10-03T15:19:32", "finished_at": "2026-10-03T15:19:33", "state": "running", "decision_engine": "jev", "jev_ms": 1156, "decision_ms": 1156, "ocr_ms": 1594, "action_ms": 297, "confidence": 0.54, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.69, "sinner_16": 0.21, "sinner_19": 0.1}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "sinner_10", "at": "2026-10-03T15:19:36", "finished_at": "2026-10-03T15:19:36", "state": "running", "decision_engine": "jev", "jev_ms": 1359, "decision_ms": 1359, "ocr_ms": 1687, "action_ms": 297, "confidence": 0.65, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.77, "sinner_14": 0.14, "sinner_17": 0.09}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "sinner_15", "at": "2026-10-03T15:19:40", "finished_at": "2026-10-03T15:19:41", "state": "running", "decision_engine": "jev", "jev_ms": 1907, "decision_ms": 1907, "ocr_ms": 1672, "action_ms": 281, "confidence": 0.53, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.69, "sinner_16": 0.14, "sinner_19": 0.17}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "sinner_10", "at": "2026-10-03T15:19:44", "finished_at": "2026-10-03T15:19:44", "state": "running", "decision_engine": "jev", "jev_ms": 1234, "decision_ms": 1234, "ocr_ms": 1750, "action_ms": 297, "confidence": 0.68, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.79, "sinner_14": 0.13, "sinner_17": 0.08}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "sinner_15", "at": "2026-10-03T15:19:48", "finished_at": "2026-10-03T15:19:48", "state": "running", "decision_engine": "jev", "jev_ms": 1140, "decision_ms": 1140, "ocr_ms": 1546, "action_ms": 297, "confidence": 0.53, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.69, "sinner_16": 0.16, "sinner_19": 0.15}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "sinner_10", "at": "2026-10-03T15:19:52", "finished_at": "2026-10-03T15:19:52", "state": "running", "decision_engine": "jev", "jev_ms": 2110, "decision_ms": 2110, "ocr_ms": 1391, "action_ms": 297, "confidence": 0.65, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.77, "sinner_14": 0.14, "sinner_17": 0.09}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "sinner_15", "at": "2026-10-03T15:19:55", "finished_at": "2026-10-03T15:19:56", "state": "running", "decision_engine": "jev", "jev_ms": 1265, "decision_ms": 1265, "ocr_ms": 1563, "action_ms": 282, "confidence": 0.58, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.72, "sinner_16": 0.16, "sinner_19": 0.12}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "sinner_10", "at": "2026-10-03T15:19:59", "finished_at": "2026-10-03T15:19:59", "state": "running", "decision_engine": "jev", "jev_ms": 1109, "decision_ms": 1109, "ocr_ms": 1328, "action_ms": 297, "confidence": 0.72, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.81, "sinner_14": 0.12, "sinner_17": 0.07}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "sinner_15", "at": "2026-10-03T15:20:02", "finished_at": "2026-10-03T15:20:03", "state": "running", "decision_engine": "jev", "jev_ms": 1328, "decision_ms": 1328, "ocr_ms": 1625, "action_ms": 313, "confidence": 0.55, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.71, "sinner_16": 0.17, "sinner_19": 0.12}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "sinner_10", "at": "2026-10-03T15:20:13", "finished_at": "2026-10-03T15:20:14", "state": "running", "decision_engine": "jev", "jev_ms": 8922, "decision_ms": 8922, "ocr_ms": 1359, "action_ms": 296, "confidence": 0.64, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.76, "sinner_14": 0.14, "sinner_17": 0.1}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "sinner_16", "at": "2026-10-03T15:20:18", "finished_at": "2026-10-03T15:20:18", "state": "running", "decision_engine": "jev", "jev_ms": 2125, "decision_ms": 2125, "ocr_ms": 1594, "action_ms": 281, "confidence": 0.4, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_16": 0.7, "sinner_19": 0.3}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "sinner_12", "at": "2026-10-03T15:20:21", "finished_at": "2026-10-03T15:20:22", "state": "running", "decision_engine": "jev", "jev_ms": 1109, "decision_ms": 1109, "ocr_ms": 1797, "action_ms": 282, "confidence": 0.72, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_12": 0.8, "sinner_14": 0.11, "sinner_18": 0.03, "sinner_20": 0.06}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_12", "sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "sinner_15", "at": "2026-10-03T15:20:25", "finished_at": "2026-10-03T15:20:25", "state": "running", "decision_engine": "jev", "jev_ms": 1375, "decision_ms": 1375, "ocr_ms": 1562, "action_ms": 297, "confidence": 0.56, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.71, "sinner_16": 0.15, "sinner_19": 0.14}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "sinner_10", "at": "2026-10-03T15:20:28", "finished_at": "2026-10-03T15:20:29", "state": "running", "decision_engine": "jev", "jev_ms": 1281, "decision_ms": 1281, "ocr_ms": 1359, "action_ms": 281, "confidence": 0.66, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.78, "sinner_14": 0.13, "sinner_17": 0.09}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "sinner_15", "at": "2026-10-03T15:20:46", "finished_at": "2026-10-03T15:20:46", "state": "running", "decision_engine": "jev", "jev_ms": 14875, "decision_ms": 14875, "ocr_ms": 1578, "action_ms": 297, "confidence": 0.57, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.72, "sinner_16": 0.19, "sinner_19": 0.09}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "sinner_14", "at": "2026-10-03T15:20:49", "finished_at": "2026-10-03T15:20:49", "state": "running", "decision_engine": "jev", "jev_ms": 1109, "decision_ms": 1109, "ocr_ms": 1344, "action_ms": 297, "confidence": 0.47, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_14": 0.74, "sinner_17": 0.26}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "sinner_12", "at": "2026-10-03T15:20:52", "finished_at": "2026-10-03T15:20:53", "state": "running", "decision_engine": "jev", "jev_ms": 1171, "decision_ms": 1171, "ocr_ms": 1703, "action_ms": 282, "confidence": 0.71, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_12": 0.79, "sinner_14": 0.13, "sinner_18": 0.03, "sinner_20": 0.05}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_12", "sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "sinner_15", "at": "2026-10-03T15:21:04", "finished_at": "2026-10-03T15:21:04", "state": "running", "decision_engine": "jev", "jev_ms": 8875, "decision_ms": 8875, "ocr_ms": 1547, "action_ms": 282, "confidence": 0.59, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.73, "sinner_16": 0.15, "sinner_19": 0.12}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "sinner_14", "at": "2026-10-03T15:21:07", "finished_at": "2026-10-03T15:21:07", "state": "running", "decision_engine": "jev", "jev_ms": 1156, "decision_ms": 1156, "ocr_ms": 1375, "action_ms": 297, "confidence": 0.45, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_14": 0.73, "sinner_17": 0.27}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "sinner_12", "at": "2026-10-03T15:21:11", "finished_at": "2026-10-03T15:21:11", "state": "running", "decision_engine": "jev", "jev_ms": 1344, "decision_ms": 1344, "ocr_ms": 1672, "action_ms": 281, "confidence": 0.68, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_12": 0.75, "sinner_14": 0.15, "sinner_18": 0.04, "sinner_20": 0.06}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_12", "sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "sinner_15", "at": "2026-10-03T15:21:14", "finished_at": "2026-10-03T15:21:14", "state": "running", "decision_engine": "jev", "jev_ms": 1093, "decision_ms": 1093, "ocr_ms": 1578, "action_ms": 297, "confidence": 0.6, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.73, "sinner_16": 0.16, "sinner_19": 0.11}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 22, "choice": "sinner_10", "at": "2026-10-03T15:21:17", "finished_at": "2026-10-03T15:21:18", "state": "running", "decision_engine": "jev", "jev_ms": 1188, "decision_ms": 1188, "ocr_ms": 1328, "action_ms": 297, "confidence": 0.67, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_10": 0.78, "sinner_14": 0.13, "sinner_17": 0.09}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 23, "choice": "sinner_16", "at": "2026-10-03T15:21:21", "finished_at": "2026-10-03T15:21:21", "state": "running", "decision_engine": "jev", "jev_ms": 1219, "decision_ms": 1219, "ocr_ms": 1531, "action_ms": 281, "confidence": 0.47, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_16": 0.74, "sinner_19": 0.26}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 24, "choice": "sinner_12", "at": "2026-10-03T15:21:25", "finished_at": "2026-10-03T15:21:25", "state": "running", "decision_engine": "jev", "jev_ms": 1188, "decision_ms": 1188, "ocr_ms": 1735, "action_ms": 296, "confidence": 0.74, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_12": 0.81, "sinner_14": 0.11, "sinner_18": 0.02, "sinner_20": 0.06}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_12", "sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 25, "choice": "sinner_15", "at": "2026-10-03T15:21:28", "finished_at": "2026-10-03T15:21:29", "state": "running", "decision_engine": "jev", "jev_ms": 1594, "decision_ms": 1594, "ocr_ms": 1578, "action_ms": 281, "confidence": 0.57, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_15": 0.71, "sinner_16": 0.17, "sinner_19": 0.12}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 26, "choice": "sinner_14", "at": "2026-10-03T15:21:32", "finished_at": "2026-10-03T15:21:32", "state": "running", "decision_engine": "jev", "jev_ms": 1250, "decision_ms": 1250, "ocr_ms": 1329, "action_ms": 297, "confidence": 0.46, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_14": 0.73, "sinner_17": 0.27}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 27, "choice": "sinner_12", "at": "2026-10-03T15:21:35", "finished_at": "2026-10-03T15:21:35", "state": "running", "decision_engine": "jev", "jev_ms": 1234, "decision_ms": 1234, "ocr_ms": 1437, "action_ms": 281, "confidence": 0.68, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_12": 0.76, "sinner_14": 0.13, "sinner_18": 0.04, "sinner_20": 0.07}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_12", "sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 28, "choice": "sinner_16", "at": "2026-10-03T15:21:39", "finished_at": "2026-10-03T15:21:39", "state": "running", "decision_engine": "jev", "jev_ms": 1609, "decision_ms": 1609, "ocr_ms": 1609, "action_ms": 281, "confidence": 0.45, "probabilities": {"requires_analysis": 0, "wait": 0, "button_20": 0, "sinner_16": 0.73, "sinner_19": 0.27}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 29, "choice": "sinner_14", "at": "2026-10-03T15:21:43", "finished_at": "2026-10-03T15:21:43", "state": "running", "decision_engine": "jev", "jev_ms": 1141, "decision_ms": 1141, "ocr_ms": 1625, "action_ms": 281, "confidence": 0.71, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_14": 0.81, "sinner_18": 0.1, "sinner_20": 0.09}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 30, "choice": "sinner_14", "at": "2026-10-03T15:21:46", "finished_at": "2026-10-03T15:21:46", "state": "running", "decision_engine": "jev", "jev_ms": 1031, "decision_ms": 1031, "ocr_ms": 1359, "action_ms": 297, "confidence": 0.4, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_14": 0.7, "sinner_17": 0.3}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 31, "choice": "sinner_14", "at": "2026-10-03T15:21:49", "finished_at": "2026-10-03T15:21:50", "state": "running", "decision_engine": "jev", "jev_ms": 1219, "decision_ms": 1219, "ocr_ms": 1687, "action_ms": 281, "confidence": 0.73, "probabilities": {"requires_analysis": 0, "wait": 0, "button_21": 0, "sinner_14": 0.82, "sinner_18": 0.1, "sinner_20": 0.08}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 32, "choice": "sinner_14", "at": "2026-10-03T15:21:53", "finished_at": "2026-10-03T15:21:53", "state": "running", "decision_engine": "jev", "jev_ms": 1031, "decision_ms": 1031, "ocr_ms": 1328, "action_ms": 297, "confidence": 0.45, "probabilities": {"requires_analysis": 0, "wait": 0, "button_18": 0, "sinner_14": 0.73, "sinner_17": 0.27}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "state": "stopped"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "button_21", "at": "2026-10-03T15:22:18", "finished_at": "2026-10-03T15:22:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1640, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "button_21", "at": "2026-10-03T15:22:20", "finished_at": "2026-10-03T15:22:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1641, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "button_21", "at": "2026-10-03T15:22:22", "finished_at": "2026-10-03T15:22:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1406, "action_ms": 140, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "button_21", "at": "2026-10-03T15:22:24", "finished_at": "2026-10-03T15:22:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1625, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "button_21", "at": "2026-10-03T15:22:27", "finished_at": "2026-10-03T15:22:27", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1656, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "button_21", "at": "2026-10-03T15:22:29", "finished_at": "2026-10-03T15:22:29", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1406, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "sinner_12", "at": "2026-10-03T15:22:32", "finished_at": "2026-10-03T15:22:33", "state": "running", "decision_engine": "jev", "jev_ms": 1594, "decision_ms": 1594, "ocr_ms": 1641, "action_ms": 281, "confidence": 0.77, "probabilities": {"requires_analysis": 0, "wait": 0, "sinner_12": 0.83, "sinner_14": 0.09, "sinner_18": 0.03, "sinner_20": 0.05}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_12", "sinner_14", "sinner_18", "sinner_20"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "button_20", "at": "2026-10-03T15:22:35", "finished_at": "2026-10-03T15:22:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1562, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "button_20", "at": "2026-10-03T15:22:37", "finished_at": "2026-10-03T15:22:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1531, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "button_20", "at": "2026-10-03T15:22:39", "finished_at": "2026-10-03T15:22:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1516, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "sinner_15", "at": "2026-10-03T15:22:42", "finished_at": "2026-10-03T15:22:43", "state": "running", "decision_engine": "jev", "jev_ms": 1235, "decision_ms": 1235, "ocr_ms": 1532, "action_ms": 281, "confidence": 0.52, "probabilities": {"requires_analysis": 0, "wait": 0, "sinner_15": 0.68, "sinner_16": 0.17, "sinner_19": 0.15}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_15", "sinner_16", "sinner_19"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "button_18", "at": "2026-10-03T15:22:44", "finished_at": "2026-10-03T15:22:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "button_18", "at": "2026-10-03T15:22:47", "finished_at": "2026-10-03T15:22:47", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1469, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "button_18", "at": "2026-10-03T15:22:48", "finished_at": "2026-10-03T15:22:49", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1328, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "button_18", "at": "2026-10-03T15:22:50", "finished_at": "2026-10-03T15:22:51", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "button_18", "at": "2026-10-03T15:22:52", "finished_at": "2026-10-03T15:22:53", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1391, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "button_18", "at": "2026-10-03T15:22:54", "finished_at": "2026-10-03T15:22:55", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1343, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "button_18", "at": "2026-10-03T15:22:56", "finished_at": "2026-10-03T15:22:57", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1344, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "sinner_10", "at": "2026-10-03T15:23:00", "finished_at": "2026-10-03T15:23:00", "state": "running", "decision_engine": "jev", "jev_ms": 1250, "decision_ms": 1250, "ocr_ms": 1328, "action_ms": 282, "confidence": 0.63, "probabilities": {"requires_analysis": 0, "wait": 0, "sinner_10": 0.75, "sinner_14": 0.14, "sinner_17": 0.11}, "model": "jev-1.13-free", "provider_candidate_scope": ["sinner_10", "sinner_14", "sinner_17"], "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "at": "2026-10-03T15:23:16", "state": "requires_decision", "decision_engine": "executor", "ocr_ms": 1578}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "button_20", "at": "2026-10-03T15:25:02", "finished_at": "2026-10-03T15:25:03", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1547, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "button_20", "at": "2026-10-03T15:25:05", "finished_at": "2026-10-03T15:25:05", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1609, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "button_20", "at": "2026-10-03T15:25:07", "finished_at": "2026-10-03T15:25:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1547, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T15:25:09", "finished_at": "2026-10-03T15:25:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1219, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T15:25:11", "finished_at": "2026-10-03T15:25:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1609, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "skip_dialog", "at": "2026-10-03T15:25:14", "finished_at": "2026-10-03T15:25:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1984, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T15:25:17", "finished_at": "2026-10-03T15:25:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1953, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "wait", "at": "2026-10-03T15:25:20", "finished_at": "2026-10-03T15:25:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1594, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "wait", "at": "2026-10-03T15:25:22", "finished_at": "2026-10-03T15:25:23", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1594, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "wait", "at": "2026-10-03T15:25:26", "finished_at": "2026-10-03T15:25:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2094, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "requires_analysis", "at": "2026-10-03T15:25:29", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1282, "decision_ms": 1282, "ocr_ms": 1547, "confidence": 0.29, "probabilities": {"requires_analysis": 0.64, "wait": 0.36}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "event_finish", "at": "2026-10-03T15:26:50", "finished_at": "2026-10-03T15:26:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1656, "action_ms": 1813, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "event_finish", "at": "2026-10-03T15:26:54", "finished_at": "2026-10-03T15:26:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1437, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "event_finish", "at": "2026-10-03T15:26:57", "finished_at": "2026-10-03T15:26:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1187, "action_ms": 1828, "action_tool": "advance_dialog"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "event_finish", "at": "2026-10-03T15:27:01", "finished_at": "2026-10-03T15:27:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1312, "action_ms": 296, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "route_d", "at": "2026-10-03T15:27:04", "finished_at": "2026-10-03T15:27:06", "state": "running", "decision_engine": "jev", "jev_ms": 1484, "decision_ms": 1484, "ocr_ms": 1140, "action_ms": 1547, "confidence": 0.98, "probabilities": {"route_d": 0.98, "requires_analysis": 0.02, "wait": 0}, "model": "jev-1.13-free", "action_tool": "route"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "button_72", "at": "2026-10-03T15:27:09", "finished_at": "2026-10-03T15:27:11", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2828, "action_ms": 1813, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "battle", "at": "2026-10-03T15:27:12", "finished_at": "2026-10-03T15:27:58", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 765, "action_ms": 45640, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "battle", "at": "2026-10-03T15:27:59", "finished_at": "2026-10-03T15:28:46", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1187, "action_ms": 46782, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "battle", "at": "2026-10-03T15:28:48", "finished_at": "2026-10-03T15:29:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 45813, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "battle", "at": "2026-10-03T15:29:35", "finished_at": "2026-10-03T15:30:21", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1281, "action_ms": 46187, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "battle", "at": "2026-10-03T15:30:23", "finished_at": "2026-10-03T15:31:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 45906, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "battle", "at": "2026-10-03T15:31:10", "finished_at": "2026-10-03T15:31:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1125, "action_ms": 45734, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "battle", "at": "2026-10-03T15:31:58", "finished_at": "2026-10-03T15:32:46", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1109, "action_ms": 48172, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "battle", "at": "2026-10-03T15:32:48", "finished_at": "2026-10-03T15:33:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1282, "action_ms": 45360, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "battle", "at": "2026-10-03T15:33:34", "finished_at": "2026-10-03T15:34:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1110, "action_ms": 45125, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "battle", "at": "2026-10-03T15:34:21", "finished_at": "2026-10-03T15:35:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 47953, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "battle", "at": "2026-10-03T15:35:11", "finished_at": "2026-10-03T15:35:58", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1313, "action_ms": 46734, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "state": "stopped"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "route_d", "at": "2026-10-03T15:36:59", "finished_at": "2026-10-03T15:37:01", "state": "running", "decision_engine": "jev", "jev_ms": 1594, "decision_ms": 1594, "ocr_ms": 1500, "action_ms": 1547, "confidence": 1, "probabilities": {"wait": 0, "requires_analysis": 0, "route_d": 1}, "model": "jev-1.13-free", "action_tool": "route"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T15:37:03", "finished_at": "2026-10-03T15:37:03", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1234, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "wait", "at": "2026-10-03T15:37:05", "finished_at": "2026-10-03T15:37:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1703, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T15:37:08", "finished_at": "2026-10-03T15:37:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1718, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T15:37:11", "finished_at": "2026-10-03T15:37:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1688, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "requires_analysis", "at": "2026-10-03T15:37:15", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1141, "decision_ms": 1141, "ocr_ms": 1719, "confidence": 0.3, "probabilities": {"wait": 0.35, "requires_analysis": 0.65}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "swap_15", "at": "2026-10-03T15:44:16", "finished_at": "2026-10-03T15:44:16", "state": "running", "decision_engine": "jev", "jev_ms": 1234, "decision_ms": 1234, "ocr_ms": 1813, "action_ms": 281, "confidence": 0.62, "probabilities": {"wait": 0.03, "requires_analysis": 0.23, "swap_15": 0.74}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "confirm_32", "at": "2026-10-03T15:44:20", "finished_at": "2026-10-03T15:44:20", "state": "running", "decision_engine": "jev", "jev_ms": 1063, "decision_ms": 1063, "ocr_ms": 2156, "action_ms": 297, "confidence": 0.49, "probabilities": {"wait": 0.02, "requires_analysis": 0.32, "confirm_32": 0.66}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "confirm_33", "at": "2026-10-03T15:44:24", "finished_at": "2026-10-03T15:44:24", "state": "running", "decision_engine": "jev", "jev_ms": 1125, "decision_ms": 1125, "ocr_ms": 2140, "action_ms": 282, "confidence": 0.46, "probabilities": {"requires_analysis": 0.34, "confirm_33": 0.64, "wait": 0.02}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "confirm_33", "at": "2026-10-03T15:44:28", "finished_at": "2026-10-03T15:44:28", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 2063, "action_ms": 297, "confidence": 0.4, "probabilities": {"confirm_33": 0.6, "wait": 0.04, "requires_analysis": 0.36}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T15:44:31", "finished_at": "2026-10-03T15:44:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2109, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "wait", "at": "2026-10-03T15:44:34", "finished_at": "2026-10-03T15:44:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2110, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T15:44:37", "finished_at": "2026-10-03T15:44:38", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2125, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "wait", "at": "2026-10-03T15:44:40", "finished_at": "2026-10-03T15:44:41", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2094, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "requires_analysis", "at": "2026-10-03T15:44:44", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1031, "decision_ms": 1031, "ocr_ms": 2109, "confidence": 0.57, "probabilities": {"requires_analysis": 0.79, "wait": 0.21}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "skill_swap_2", "at": "2026-10-03T15:48:03", "finished_at": "2026-10-03T15:48:03", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2172, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "skill_swap_2", "at": "2026-10-03T15:48:07", "finished_at": "2026-10-03T15:48:07", "state": "running", "decision_engine": "jev", "jev_ms": 1531, "decision_ms": 1531, "ocr_ms": 2125, "action_ms": 297, "confidence": 0.29, "probabilities": {"wait": 0.03, "requires_analysis": 0.23, "confirm_swap": 0.27, "skill_swap_2": 0.47}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "skill_swap_2", "at": "2026-10-03T15:48:11", "finished_at": "2026-10-03T15:48:11", "state": "running", "decision_engine": "jev", "jev_ms": 1156, "decision_ms": 1156, "ocr_ms": 2156, "action_ms": 297, "confidence": 0.2, "probabilities": {"wait": 0.03, "requires_analysis": 0.28, "skill_swap_2": 0.4, "confirm_swap": 0.29}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "confirm_swap", "at": "2026-10-03T15:48:14", "finished_at": "2026-10-03T15:48:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2141, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T15:48:17", "finished_at": "2026-10-03T15:48:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2266, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "wait", "at": "2026-10-03T15:48:20", "finished_at": "2026-10-03T15:48:21", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2312, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T15:48:23", "finished_at": "2026-10-03T15:48:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2219, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "requires_analysis", "at": "2026-10-03T15:48:28", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1078, "decision_ms": 1078, "ocr_ms": 2406, "confidence": 0.52, "probabilities": {"requires_analysis": 0.76, "wait": 0.24}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "buy_swap", "at": "2026-10-03T15:52:29", "finished_at": "2026-10-03T15:52:29", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1875, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "buy_swap", "at": "2026-10-03T15:52:31", "finished_at": "2026-10-03T15:52:32", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2203, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "buy_swap", "at": "2026-10-03T15:52:34", "finished_at": "2026-10-03T15:52:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1828, "action_ms": 141, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "buy_swap", "at": "2026-10-03T15:52:36", "finished_at": "2026-10-03T15:52:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2079, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "buy_swap", "at": "2026-10-03T15:52:39", "finished_at": "2026-10-03T15:52:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2047, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "buy_swap", "at": "2026-10-03T15:52:42", "finished_at": "2026-10-03T15:52:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2593, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "buy_swap", "at": "2026-10-03T15:52:45", "finished_at": "2026-10-03T15:52:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2484, "action_ms": 171, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "buy_swap", "at": "2026-10-03T15:52:48", "finished_at": "2026-10-03T15:52:48", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2234, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "buy_swap", "at": "2026-10-03T15:52:51", "finished_at": "2026-10-03T15:52:51", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2172, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "buy_swap", "at": "2026-10-03T15:52:54", "finished_at": "2026-10-03T15:52:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2390, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "buy_swap", "at": "2026-10-03T15:52:56", "finished_at": "2026-10-03T15:52:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2000, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "buy_swap", "at": "2026-10-03T15:52:59", "finished_at": "2026-10-03T15:52:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2141, "action_ms": 140, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "buy_swap", "at": "2026-10-03T15:53:01", "finished_at": "2026-10-03T15:53:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1937, "action_ms": 140, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "buy_swap", "at": "2026-10-03T15:53:04", "finished_at": "2026-10-03T15:53:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1734, "action_ms": 141, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "buy_swap", "at": "2026-10-03T15:53:06", "finished_at": "2026-10-03T15:53:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2313, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "buy_swap", "at": "2026-10-03T15:53:09", "finished_at": "2026-10-03T15:53:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2109, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "buy_swap", "at": "2026-10-03T15:53:11", "finished_at": "2026-10-03T15:53:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1813, "action_ms": 172, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "buy_swap", "at": "2026-10-03T15:53:14", "finished_at": "2026-10-03T15:53:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1922, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "buy_swap", "at": "2026-10-03T15:53:16", "finished_at": "2026-10-03T15:53:17", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1875, "action_ms": 296, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "wait", "at": "2026-10-03T15:53:19", "finished_at": "2026-10-03T15:53:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2219, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "swap_14", "at": "2026-10-03T15:53:23", "finished_at": "2026-10-03T15:53:24", "state": "running", "decision_engine": "jev", "jev_ms": 1250, "decision_ms": 1250, "ocr_ms": 1782, "action_ms": 297, "confidence": 0.62, "probabilities": {"swap_14": 0.74, "requires_analysis": 0.18, "wait": 0.08}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "swap_15", "at": "2026-10-03T15:53:27", "finished_at": "2026-10-03T15:53:27", "state": "running", "decision_engine": "jev", "jev_ms": 1063, "decision_ms": 1063, "ocr_ms": 1750, "action_ms": 297, "confidence": 0.63, "probabilities": {"swap_15": 0.76, "wait": 0.05, "requires_analysis": 0.19}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 22, "choice": "swap_15", "at": "2026-10-03T15:53:30", "finished_at": "2026-10-03T15:53:31", "state": "running", "decision_engine": "jev", "jev_ms": 1234, "decision_ms": 1234, "ocr_ms": 1704, "action_ms": 297, "confidence": 0.53, "probabilities": {"wait": 0.04, "requires_analysis": 0.27, "swap_15": 0.69}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 23, "choice": "swap_15", "at": "2026-10-03T15:53:47", "finished_at": "2026-10-03T15:53:47", "state": "running", "decision_engine": "jev", "jev_ms": 13937, "decision_ms": 13937, "ocr_ms": 1703, "action_ms": 281, "confidence": 0.53, "probabilities": {"requires_analysis": 0.27, "swap_15": 0.6799999999999999, "wait": 0.05}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 24, "choice": "swap_15", "at": "2026-10-03T15:53:50", "finished_at": "2026-10-03T15:53:50", "state": "running", "decision_engine": "jev", "jev_ms": 1110, "decision_ms": 1110, "ocr_ms": 1687, "action_ms": 297, "confidence": 0.43, "probabilities": {"requires_analysis": 0.32, "swap_15": 0.62, "wait": 0.06}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 25, "choice": "swap_15", "at": "2026-10-03T15:53:53", "finished_at": "2026-10-03T15:53:54", "state": "running", "decision_engine": "jev", "jev_ms": 1094, "decision_ms": 1094, "ocr_ms": 1688, "action_ms": 281, "confidence": 0.53, "probabilities": {"requires_analysis": 0.26, "swap_15": 0.69, "wait": 0.05}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 26, "choice": "swap_14", "at": "2026-10-03T15:53:57", "finished_at": "2026-10-03T15:53:57", "state": "running", "decision_engine": "jev", "jev_ms": 1063, "decision_ms": 1063, "ocr_ms": 1703, "action_ms": 281, "confidence": 0.51, "probabilities": {"requires_analysis": 0.27, "wait": 0.06, "swap_14": 0.67}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 27, "choice": "swap_15", "at": "2026-10-03T15:54:00", "finished_at": "2026-10-03T15:54:01", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1672, "action_ms": 297, "confidence": 0.4, "probabilities": {"wait": 0.05, "requires_analysis": 0.34, "swap_15": 0.61}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 28, "choice": "swap_15", "at": "2026-10-03T15:54:04", "finished_at": "2026-10-03T15:54:04", "state": "running", "decision_engine": "jev", "jev_ms": 1109, "decision_ms": 1109, "ocr_ms": 1688, "action_ms": 297, "confidence": 0.47, "probabilities": {"requires_analysis": 0.29, "wait": 0.06, "swap_15": 0.65}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 29, "choice": "wait", "at": "2026-10-03T15:54:06", "finished_at": "2026-10-03T15:54:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1687, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 30, "choice": "wait", "at": "2026-10-03T15:54:09", "finished_at": "2026-10-03T15:54:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1719, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 31, "choice": "wait", "at": "2026-10-03T15:54:12", "finished_at": "2026-10-03T15:54:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1687, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 32, "choice": "swap_15", "at": "2026-10-03T15:54:16", "finished_at": "2026-10-03T15:54:16", "state": "running", "decision_engine": "jev", "jev_ms": 1329, "decision_ms": 1329, "ocr_ms": 1687, "action_ms": 281, "confidence": 0.56, "probabilities": {"wait": 0.14, "requires_analysis": 0.15, "swap_15": 0.71}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 33, "choice": "wait", "at": "2026-10-03T15:54:18", "finished_at": "2026-10-03T15:54:19", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1688, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 34, "choice": "swap_15", "at": "2026-10-03T15:54:22", "finished_at": "2026-10-03T15:54:22", "state": "running", "decision_engine": "jev", "jev_ms": 1047, "decision_ms": 1047, "ocr_ms": 1781, "action_ms": 281, "confidence": 0.39, "probabilities": {"requires_analysis": 0.23, "wait": 0.18, "swap_15": 0.59}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 35, "choice": "swap_15", "at": "2026-10-03T15:54:25", "finished_at": "2026-10-03T15:54:26", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1719, "action_ms": 281, "confidence": 0.73, "probabilities": {"wait": 0.05, "swap_15": 0.82, "requires_analysis": 0.13}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 36, "choice": "wait", "at": "2026-10-03T15:54:28", "finished_at": "2026-10-03T15:54:29", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1765, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 37, "choice": "wait", "at": "2026-10-03T15:54:31", "finished_at": "2026-10-03T15:54:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1703, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 38, "choice": "swap_15", "at": "2026-10-03T15:54:34", "finished_at": "2026-10-03T15:54:35", "state": "running", "decision_engine": "jev", "jev_ms": 1079, "decision_ms": 1079, "ocr_ms": 1718, "action_ms": 265, "confidence": 0.58, "probabilities": {"swap_15": 0.72, "wait": 0.11, "requires_analysis": 0.17}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 39, "choice": "wait", "at": "2026-10-03T15:54:37", "finished_at": "2026-10-03T15:54:38", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1765, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 40, "choice": "wait", "at": "2026-10-03T15:54:40", "finished_at": "2026-10-03T15:54:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1687, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 41, "choice": "swap_15", "at": "2026-10-03T15:54:52", "finished_at": "2026-10-03T15:54:52", "state": "running", "decision_engine": "jev", "jev_ms": 9203, "decision_ms": 9203, "ocr_ms": 1719, "action_ms": 281, "confidence": 0.53, "probabilities": {"requires_analysis": 0.16, "swap_15": 0.69, "wait": 0.15}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 42, "choice": "swap_15", "at": "2026-10-03T15:54:55", "finished_at": "2026-10-03T15:54:55", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1703, "action_ms": 297, "confidence": 0.61, "probabilities": {"requires_analysis": 0.2, "wait": 0.06, "swap_15": 0.74}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 43, "choice": "swap_14", "at": "2026-10-03T15:54:59", "finished_at": "2026-10-03T15:54:59", "state": "running", "decision_engine": "jev", "jev_ms": 1203, "decision_ms": 1203, "ocr_ms": 1750, "action_ms": 282, "confidence": 0.57, "probabilities": {"swap_14": 0.71, "wait": 0.05, "requires_analysis": 0.24}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 44, "choice": "wait", "at": "2026-10-03T15:55:01", "finished_at": "2026-10-03T15:55:02", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1703, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 45, "choice": "wait", "at": "2026-10-03T15:55:04", "finished_at": "2026-10-03T15:55:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1719, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 46, "choice": "wait", "at": "2026-10-03T15:55:07", "finished_at": "2026-10-03T15:55:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1703, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 47, "choice": "wait", "at": "2026-10-03T15:55:09", "finished_at": "2026-10-03T15:55:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1765, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 48, "choice": "requires_analysis", "at": "2026-10-03T15:55:13", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1719, "confidence": 0.42, "probabilities": {"wait": 0.29, "requires_analysis": 0.71}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "shop_refresh", "at": "2026-10-03T15:59:24", "finished_at": "2026-10-03T15:59:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1812, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T15:59:26", "finished_at": "2026-10-03T15:59:27", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1828, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "shop_refresh", "at": "2026-10-03T15:59:29", "finished_at": "2026-10-03T15:59:29", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1782, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T15:59:31", "finished_at": "2026-10-03T15:59:32", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1782, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "shop_refresh", "at": "2026-10-03T15:59:34", "finished_at": "2026-10-03T15:59:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1734, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "shop_refresh", "at": "2026-10-03T15:59:37", "finished_at": "2026-10-03T15:59:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1719, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T15:59:39", "finished_at": "2026-10-03T15:59:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1750, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "button_34", "at": "2026-10-03T15:59:42", "finished_at": "2026-10-03T15:59:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1672, "action_ms": 156, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "button_35", "at": "2026-10-03T15:59:44", "finished_at": "2026-10-03T15:59:44", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1875, "action_ms": 281, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "confirm_26", "at": "2026-10-03T15:59:48", "finished_at": "2026-10-03T15:59:48", "state": "running", "decision_engine": "jev", "jev_ms": 1266, "decision_ms": 1266, "ocr_ms": 1593, "action_ms": 297, "confidence": 0.41, "probabilities": {"wait": 0.05, "confirm_26": 0.61, "requires_analysis": 0.34}, "model": "jev-1.13-free", "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "button_34", "at": "2026-10-03T15:59:50", "finished_at": "2026-10-03T15:59:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1797, "action_ms": 157, "action_tool": "keypress"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "route_d", "at": "2026-10-03T15:59:53", "finished_at": "2026-10-03T15:59:55", "state": "running", "decision_engine": "jev", "jev_ms": 1047, "decision_ms": 1047, "ocr_ms": 1297, "action_ms": 1719, "confidence": 0.64, "probabilities": {"requires_analysis": 0.23, "route_d": 0.76, "wait": 0.01}, "model": "jev-1.13-free", "action_tool": "route"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "wait", "at": "2026-10-03T15:59:58", "finished_at": "2026-10-03T15:59:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2734, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "wait", "at": "2026-10-03T16:00:01", "finished_at": "2026-10-03T16:00:02", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2062, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "wait", "at": "2026-10-03T16:00:04", "finished_at": "2026-10-03T16:00:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1375, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "battle", "at": "2026-10-03T16:00:06", "finished_at": "2026-10-03T16:00:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1500, "action_ms": 47750, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "battle", "at": "2026-10-03T16:00:56", "finished_at": "2026-10-03T16:01:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1110, "action_ms": 8078, "action_tool": "battle"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "wait", "at": "2026-10-03T16:01:05", "finished_at": "2026-10-03T16:01:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "wait", "at": "2026-10-03T16:01:07", "finished_at": "2026-10-03T16:01:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "wait", "at": "2026-10-03T16:01:09", "finished_at": "2026-10-03T16:01:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "wait", "at": "2026-10-03T16:01:11", "finished_at": "2026-10-03T16:01:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "wait", "at": "2026-10-03T16:01:13", "finished_at": "2026-10-03T16:01:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 22, "choice": "wait", "at": "2026-10-03T16:01:15", "finished_at": "2026-10-03T16:01:16", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 23, "choice": "wait", "at": "2026-10-03T16:01:17", "finished_at": "2026-10-03T16:01:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 24, "choice": "wait", "at": "2026-10-03T16:01:19", "finished_at": "2026-10-03T16:01:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 25, "choice": "wait", "at": "2026-10-03T16:01:22", "finished_at": "2026-10-03T16:01:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 26, "choice": "wait", "at": "2026-10-03T16:01:24", "finished_at": "2026-10-03T16:01:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 27, "choice": "wait", "at": "2026-10-03T16:01:26", "finished_at": "2026-10-03T16:01:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 28, "choice": "wait", "at": "2026-10-03T16:01:28", "finished_at": "2026-10-03T16:01:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 29, "choice": "wait", "at": "2026-10-03T16:01:30", "finished_at": "2026-10-03T16:01:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 30, "choice": "wait", "at": "2026-10-03T16:01:32", "finished_at": "2026-10-03T16:01:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 31, "choice": "wait", "at": "2026-10-03T16:01:34", "finished_at": "2026-10-03T16:01:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 32, "choice": "wait", "at": "2026-10-03T16:01:36", "finished_at": "2026-10-03T16:01:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 33, "choice": "wait", "at": "2026-10-03T16:01:38", "finished_at": "2026-10-03T16:01:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 34, "choice": "wait", "at": "2026-10-03T16:01:40", "finished_at": "2026-10-03T16:01:41", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 35, "choice": "wait", "at": "2026-10-03T16:01:42", "finished_at": "2026-10-03T16:01:43", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 36, "choice": "wait", "at": "2026-10-03T16:01:44", "finished_at": "2026-10-03T16:01:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 37, "choice": "wait", "at": "2026-10-03T16:01:46", "finished_at": "2026-10-03T16:01:47", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 38, "choice": "wait", "at": "2026-10-03T16:01:48", "finished_at": "2026-10-03T16:01:49", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 39, "choice": "wait", "at": "2026-10-03T16:01:50", "finished_at": "2026-10-03T16:01:51", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 40, "choice": "wait", "at": "2026-10-03T16:01:53", "finished_at": "2026-10-03T16:01:53", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 969, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 41, "choice": "wait", "at": "2026-10-03T16:01:55", "finished_at": "2026-10-03T16:01:55", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 42, "choice": "wait", "at": "2026-10-03T16:01:57", "finished_at": "2026-10-03T16:01:57", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 43, "choice": "wait", "at": "2026-10-03T16:01:59", "finished_at": "2026-10-03T16:01:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 44, "choice": "wait", "at": "2026-10-03T16:02:01", "finished_at": "2026-10-03T16:02:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1032, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 45, "choice": "wait", "at": "2026-10-03T16:02:03", "finished_at": "2026-10-03T16:02:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 46, "choice": "wait", "at": "2026-10-03T16:02:05", "finished_at": "2026-10-03T16:02:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1094, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 47, "choice": "wait", "at": "2026-10-03T16:02:07", "finished_at": "2026-10-03T16:02:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 48, "choice": "wait", "at": "2026-10-03T16:02:09", "finished_at": "2026-10-03T16:02:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 49, "choice": "wait", "at": "2026-10-03T16:02:11", "finished_at": "2026-10-03T16:02:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 50, "choice": "wait", "at": "2026-10-03T16:02:13", "finished_at": "2026-10-03T16:02:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 51, "choice": "wait", "at": "2026-10-03T16:02:15", "finished_at": "2026-10-03T16:02:16", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 52, "choice": "wait", "at": "2026-10-03T16:02:17", "finished_at": "2026-10-03T16:02:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 53, "choice": "wait", "at": "2026-10-03T16:02:19", "finished_at": "2026-10-03T16:02:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 54, "choice": "wait", "at": "2026-10-03T16:02:21", "finished_at": "2026-10-03T16:02:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 55, "choice": "wait", "at": "2026-10-03T16:02:24", "finished_at": "2026-10-03T16:02:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 56, "choice": "wait", "at": "2026-10-03T16:02:26", "finished_at": "2026-10-03T16:02:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 57, "choice": "wait", "at": "2026-10-03T16:02:28", "finished_at": "2026-10-03T16:02:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 58, "choice": "wait", "at": "2026-10-03T16:02:30", "finished_at": "2026-10-03T16:02:30", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 59, "choice": "wait", "at": "2026-10-03T16:02:32", "finished_at": "2026-10-03T16:02:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 60, "choice": "wait", "at": "2026-10-03T16:02:34", "finished_at": "2026-10-03T16:02:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 61, "choice": "wait", "at": "2026-10-03T16:02:36", "finished_at": "2026-10-03T16:02:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 62, "choice": "wait", "at": "2026-10-03T16:02:38", "finished_at": "2026-10-03T16:02:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 63, "choice": "wait", "at": "2026-10-03T16:02:40", "finished_at": "2026-10-03T16:02:41", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 64, "choice": "wait", "at": "2026-10-03T16:02:42", "finished_at": "2026-10-03T16:02:43", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 65, "choice": "wait", "at": "2026-10-03T16:02:44", "finished_at": "2026-10-03T16:02:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 66, "choice": "wait", "at": "2026-10-03T16:02:46", "finished_at": "2026-10-03T16:02:47", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 67, "choice": "wait", "at": "2026-10-03T16:02:48", "finished_at": "2026-10-03T16:02:49", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 68, "choice": "wait", "at": "2026-10-03T16:02:50", "finished_at": "2026-10-03T16:02:51", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 69, "choice": "wait", "at": "2026-10-03T16:02:52", "finished_at": "2026-10-03T16:02:53", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 70, "choice": "wait", "at": "2026-10-03T16:02:55", "finished_at": "2026-10-03T16:02:55", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 71, "choice": "wait", "at": "2026-10-03T16:02:57", "finished_at": "2026-10-03T16:02:57", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 72, "choice": "wait", "at": "2026-10-03T16:02:59", "finished_at": "2026-10-03T16:02:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 73, "choice": "wait", "at": "2026-10-03T16:03:01", "finished_at": "2026-10-03T16:03:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 74, "choice": "wait", "at": "2026-10-03T16:03:03", "finished_at": "2026-10-03T16:03:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 75, "choice": "wait", "at": "2026-10-03T16:03:05", "finished_at": "2026-10-03T16:03:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 76, "choice": "wait", "at": "2026-10-03T16:03:07", "finished_at": "2026-10-03T16:03:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 77, "choice": "wait", "at": "2026-10-03T16:03:09", "finished_at": "2026-10-03T16:03:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 78, "choice": "wait", "at": "2026-10-03T16:03:11", "finished_at": "2026-10-03T16:03:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 79, "choice": "wait", "at": "2026-10-03T16:03:13", "finished_at": "2026-10-03T16:03:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 80, "choice": "wait", "at": "2026-10-03T16:03:15", "finished_at": "2026-10-03T16:03:16", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 81, "choice": "wait", "at": "2026-10-03T16:03:17", "finished_at": "2026-10-03T16:03:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 82, "choice": "wait", "at": "2026-10-03T16:03:19", "finished_at": "2026-10-03T16:03:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 83, "choice": "wait", "at": "2026-10-03T16:03:21", "finished_at": "2026-10-03T16:03:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1063, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 84, "choice": "wait", "at": "2026-10-03T16:03:24", "finished_at": "2026-10-03T16:03:24", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 85, "choice": "wait", "at": "2026-10-03T16:03:26", "finished_at": "2026-10-03T16:03:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 86, "choice": "wait", "at": "2026-10-03T16:03:28", "finished_at": "2026-10-03T16:03:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1063, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 87, "choice": "wait", "at": "2026-10-03T16:03:30", "finished_at": "2026-10-03T16:03:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1109, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 88, "choice": "wait", "at": "2026-10-03T16:03:32", "finished_at": "2026-10-03T16:03:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1109, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 89, "choice": "wait", "at": "2026-10-03T16:03:34", "finished_at": "2026-10-03T16:03:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1078, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 90, "choice": "wait", "at": "2026-10-03T16:03:36", "finished_at": "2026-10-03T16:03:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1032, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 91, "choice": "wait", "at": "2026-10-03T16:03:38", "finished_at": "2026-10-03T16:03:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1078, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 92, "choice": "wait", "at": "2026-10-03T16:03:40", "finished_at": "2026-10-03T16:03:41", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 93, "choice": "wait", "at": "2026-10-03T16:03:43", "finished_at": "2026-10-03T16:03:43", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 94, "choice": "wait", "at": "2026-10-03T16:03:45", "finished_at": "2026-10-03T16:03:45", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 95, "choice": "wait", "at": "2026-10-03T16:03:47", "finished_at": "2026-10-03T16:03:47", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 96, "choice": "wait", "at": "2026-10-03T16:03:49", "finished_at": "2026-10-03T16:03:49", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 97, "choice": "wait", "at": "2026-10-03T16:03:51", "finished_at": "2026-10-03T16:03:51", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 98, "choice": "wait", "at": "2026-10-03T16:03:53", "finished_at": "2026-10-03T16:03:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 99, "choice": "wait", "at": "2026-10-03T16:03:55", "finished_at": "2026-10-03T16:03:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 100, "choice": "wait", "at": "2026-10-03T16:03:57", "finished_at": "2026-10-03T16:03:58", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 101, "choice": "wait", "at": "2026-10-03T16:03:59", "finished_at": "2026-10-03T16:04:00", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 102, "choice": "wait", "at": "2026-10-03T16:04:01", "finished_at": "2026-10-03T16:04:02", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 103, "choice": "wait", "at": "2026-10-03T16:04:03", "finished_at": "2026-10-03T16:04:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1032, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 104, "choice": "wait", "at": "2026-10-03T16:04:05", "finished_at": "2026-10-03T16:04:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 105, "choice": "wait", "at": "2026-10-03T16:04:07", "finished_at": "2026-10-03T16:04:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 106, "choice": "wait", "at": "2026-10-03T16:04:09", "finished_at": "2026-10-03T16:04:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 107, "choice": "wait", "at": "2026-10-03T16:04:11", "finished_at": "2026-10-03T16:04:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 108, "choice": "wait", "at": "2026-10-03T16:04:13", "finished_at": "2026-10-03T16:04:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 109, "choice": "wait", "at": "2026-10-03T16:04:16", "finished_at": "2026-10-03T16:04:16", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 110, "choice": "wait", "at": "2026-10-03T16:04:18", "finished_at": "2026-10-03T16:04:18", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 111, "choice": "wait", "at": "2026-10-03T16:04:20", "finished_at": "2026-10-03T16:04:20", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 112, "choice": "wait", "at": "2026-10-03T16:04:22", "finished_at": "2026-10-03T16:04:22", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 113, "choice": "wait", "at": "2026-10-03T16:04:24", "finished_at": "2026-10-03T16:04:25", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 114, "choice": "wait", "at": "2026-10-03T16:04:26", "finished_at": "2026-10-03T16:04:27", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 115, "choice": "wait", "at": "2026-10-03T16:04:28", "finished_at": "2026-10-03T16:04:29", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 969, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 116, "choice": "wait", "at": "2026-10-03T16:04:30", "finished_at": "2026-10-03T16:04:31", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1234, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 117, "choice": "wait", "at": "2026-10-03T16:04:32", "finished_at": "2026-10-03T16:04:33", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1109, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 118, "choice": "wait", "at": "2026-10-03T16:04:35", "finished_at": "2026-10-03T16:04:35", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1141, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 119, "choice": "wait", "at": "2026-10-03T16:04:37", "finished_at": "2026-10-03T16:04:37", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 120, "choice": "wait", "at": "2026-10-03T16:04:39", "finished_at": "2026-10-03T16:04:39", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 121, "choice": "wait", "at": "2026-10-03T16:04:41", "finished_at": "2026-10-03T16:04:41", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 122, "choice": "wait", "at": "2026-10-03T16:04:43", "finished_at": "2026-10-03T16:04:44", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 123, "choice": "wait", "at": "2026-10-03T16:04:45", "finished_at": "2026-10-03T16:04:46", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 124, "choice": "wait", "at": "2026-10-03T16:04:47", "finished_at": "2026-10-03T16:04:48", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 125, "choice": "wait", "at": "2026-10-03T16:04:49", "finished_at": "2026-10-03T16:04:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1110, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 126, "choice": "wait", "at": "2026-10-03T16:04:51", "finished_at": "2026-10-03T16:04:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 127, "choice": "wait", "at": "2026-10-03T16:04:53", "finished_at": "2026-10-03T16:04:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 128, "choice": "wait", "at": "2026-10-03T16:04:55", "finished_at": "2026-10-03T16:04:56", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 129, "choice": "wait", "at": "2026-10-03T16:04:59", "finished_at": "2026-10-03T16:05:00", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 2406, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 130, "choice": "wait", "at": "2026-10-03T16:05:01", "finished_at": "2026-10-03T16:05:02", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 131, "choice": "wait", "at": "2026-10-03T16:05:03", "finished_at": "2026-10-03T16:05:04", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1032, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 132, "choice": "wait", "at": "2026-10-03T16:05:05", "finished_at": "2026-10-03T16:05:06", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 133, "choice": "wait", "at": "2026-10-03T16:05:07", "finished_at": "2026-10-03T16:05:08", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1125, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 134, "choice": "wait", "at": "2026-10-03T16:05:09", "finished_at": "2026-10-03T16:05:10", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1172, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 135, "choice": "wait", "at": "2026-10-03T16:05:12", "finished_at": "2026-10-03T16:05:12", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1079, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 136, "choice": "wait", "at": "2026-10-03T16:05:14", "finished_at": "2026-10-03T16:05:14", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 137, "choice": "wait", "at": "2026-10-03T16:05:16", "finished_at": "2026-10-03T16:05:16", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 138, "choice": "wait", "at": "2026-10-03T16:05:18", "finished_at": "2026-10-03T16:05:19", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 139, "choice": "wait", "at": "2026-10-03T16:05:20", "finished_at": "2026-10-03T16:05:21", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 140, "choice": "wait", "at": "2026-10-03T16:05:22", "finished_at": "2026-10-03T16:05:23", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 141, "choice": "wait", "at": "2026-10-03T16:05:24", "finished_at": "2026-10-03T16:05:25", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 142, "choice": "wait", "at": "2026-10-03T16:05:26", "finished_at": "2026-10-03T16:05:27", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 143, "choice": "requires_analysis", "at": "2026-10-03T16:05:30", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 1203, "decision_ms": 1203, "ocr_ms": 1672, "confidence": 0.37, "probabilities": {"reward_card_1": 0.28, "close_13": 0.01, "wait": 0.12, "reward_card_2": 0.09, "requires_analysis": 0.5}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 0, "choice": "retry_network", "at": "2026-10-03T16:11:50", "finished_at": "2026-10-03T16:11:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1469, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 1, "choice": "wait", "at": "2026-10-03T16:11:52", "finished_at": "2026-10-03T16:11:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1063, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 2, "choice": "wait", "at": "2026-10-03T16:11:54", "finished_at": "2026-10-03T16:11:54", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1078, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 3, "choice": "wait", "at": "2026-10-03T16:11:56", "finished_at": "2026-10-03T16:11:57", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 4, "choice": "wait", "at": "2026-10-03T16:11:58", "finished_at": "2026-10-03T16:11:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 5, "choice": "wait", "at": "2026-10-03T16:12:00", "finished_at": "2026-10-03T16:12:01", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 6, "choice": "wait", "at": "2026-10-03T16:12:02", "finished_at": "2026-10-03T16:12:03", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 7, "choice": "wait", "at": "2026-10-03T16:12:04", "finished_at": "2026-10-03T16:12:05", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 8, "choice": "wait", "at": "2026-10-03T16:12:06", "finished_at": "2026-10-03T16:12:07", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1015, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 9, "choice": "wait", "at": "2026-10-03T16:12:08", "finished_at": "2026-10-03T16:12:09", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 10, "choice": "wait", "at": "2026-10-03T16:12:10", "finished_at": "2026-10-03T16:12:11", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 11, "choice": "wait", "at": "2026-10-03T16:12:12", "finished_at": "2026-10-03T16:12:13", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 12, "choice": "wait", "at": "2026-10-03T16:12:14", "finished_at": "2026-10-03T16:12:15", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 13, "choice": "wait", "at": "2026-10-03T16:12:16", "finished_at": "2026-10-03T16:12:17", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 14, "choice": "wait", "at": "2026-10-03T16:12:19", "finished_at": "2026-10-03T16:12:19", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 15, "choice": "wait", "at": "2026-10-03T16:12:21", "finished_at": "2026-10-03T16:12:21", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 16, "choice": "retry_network", "at": "2026-10-03T16:12:23", "finished_at": "2026-10-03T16:12:23", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1453, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 17, "choice": "retry_network", "at": "2026-10-03T16:12:25", "finished_at": "2026-10-03T16:12:26", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1437, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 18, "choice": "retry_network", "at": "2026-10-03T16:12:27", "finished_at": "2026-10-03T16:12:28", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1407, "action_ms": 297, "action_tool": "click"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 19, "choice": "wait", "at": "2026-10-03T16:12:29", "finished_at": "2026-10-03T16:12:30", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1078, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 20, "choice": "wait", "at": "2026-10-03T16:12:31", "finished_at": "2026-10-03T16:12:32", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 21, "choice": "wait", "at": "2026-10-03T16:12:33", "finished_at": "2026-10-03T16:12:34", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 984, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 22, "choice": "wait", "at": "2026-10-03T16:12:35", "finished_at": "2026-10-03T16:12:36", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 23, "choice": "wait", "at": "2026-10-03T16:12:37", "finished_at": "2026-10-03T16:12:38", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 24, "choice": "wait", "at": "2026-10-03T16:12:39", "finished_at": "2026-10-03T16:12:40", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1062, "action_ms": 688, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 25, "choice": "wait", "at": "2026-10-03T16:12:41", "finished_at": "2026-10-03T16:12:42", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 985, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 26, "choice": "wait", "at": "2026-10-03T16:12:43", "finished_at": "2026-10-03T16:12:44", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 27, "choice": "wait", "at": "2026-10-03T16:12:46", "finished_at": "2026-10-03T16:12:46", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 28, "choice": "wait", "at": "2026-10-03T16:12:48", "finished_at": "2026-10-03T16:12:48", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1031, "action_ms": 704, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 29, "choice": "wait", "at": "2026-10-03T16:12:50", "finished_at": "2026-10-03T16:12:50", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 687, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 30, "choice": "wait", "at": "2026-10-03T16:12:52", "finished_at": "2026-10-03T16:12:52", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 31, "choice": "wait", "at": "2026-10-03T16:12:54", "finished_at": "2026-10-03T16:12:55", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1000, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 32, "choice": "wait", "at": "2026-10-03T16:12:56", "finished_at": "2026-10-03T16:12:57", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1047, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 33, "choice": "wait", "at": "2026-10-03T16:12:58", "finished_at": "2026-10-03T16:12:59", "state": "running", "decision_engine": "rules", "jev_ms": 0, "ocr_ms": 1016, "action_ms": 703, "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 34, "choice": "wait", "at": "2026-10-03T16:13:02", "finished_at": "2026-10-03T16:13:03", "state": "running", "decision_engine": "jev", "jev_ms": 1641, "decision_ms": 1641, "ocr_ms": 1421, "action_ms": 703, "confidence": 0.09, "probabilities": {"requires_analysis": 0.46, "wait": 0.54}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 35, "choice": "wait", "at": "2026-10-03T16:13:06", "finished_at": "2026-10-03T16:13:06", "state": "running", "decision_engine": "jev", "jev_ms": 1156, "decision_ms": 1156, "ocr_ms": 1406, "action_ms": 703, "confidence": 0.15, "probabilities": {"wait": 0.57, "requires_analysis": 0.43}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 36, "choice": "wait", "at": "2026-10-03T16:13:09", "finished_at": "2026-10-03T16:13:10", "state": "running", "decision_engine": "jev", "jev_ms": 1047, "decision_ms": 1047, "ocr_ms": 1422, "action_ms": 703, "confidence": 0.19, "probabilities": {"wait": 0.59, "requires_analysis": 0.41}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 37, "choice": "wait", "at": "2026-10-03T16:13:13", "finished_at": "2026-10-03T16:13:14", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1406, "action_ms": 703, "confidence": 0.24, "probabilities": {"wait": 0.62, "requires_analysis": 0.38}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 38, "choice": "wait", "at": "2026-10-03T16:13:17", "finished_at": "2026-10-03T16:13:17", "state": "running", "decision_engine": "jev", "jev_ms": 1188, "decision_ms": 1188, "ocr_ms": 1421, "action_ms": 703, "confidence": 0.25, "probabilities": {"requires_analysis": 0.37, "wait": 0.63}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 39, "choice": "wait", "at": "2026-10-03T16:13:20", "finished_at": "2026-10-03T16:13:21", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1422, "action_ms": 703, "confidence": 0.18, "probabilities": {"wait": 0.59, "requires_analysis": 0.41}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 40, "choice": "wait", "at": "2026-10-03T16:13:24", "finished_at": "2026-10-03T16:13:25", "state": "running", "decision_engine": "jev", "jev_ms": 1141, "decision_ms": 1141, "ocr_ms": 1437, "action_ms": 703, "confidence": 0.08, "probabilities": {"wait": 0.54, "requires_analysis": 0.46}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 41, "choice": "wait", "at": "2026-10-03T16:13:28", "finished_at": "2026-10-03T16:13:28", "state": "running", "decision_engine": "jev", "jev_ms": 1172, "decision_ms": 1172, "ocr_ms": 1437, "action_ms": 703, "confidence": 0.17, "probabilities": {"requires_analysis": 0.41, "wait": 0.59}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 42, "choice": "wait", "at": "2026-10-03T16:13:31", "finished_at": "2026-10-03T16:13:32", "state": "running", "decision_engine": "jev", "jev_ms": 1062, "decision_ms": 1062, "ocr_ms": 1406, "action_ms": 703, "confidence": 0.07, "probabilities": {"wait": 0.54, "requires_analysis": 0.46}, "model": "jev-1.13-free", "action_tool": "wait"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "step": 43, "choice": "requires_analysis", "at": "2026-10-03T16:13:42", "state": "requires_analysis", "decision_engine": "jev", "jev_ms": 8328, "decision_ms": 8328, "ocr_ms": 1391, "confidence": 0.71, "probabilities": {"requires_analysis": 0.86, "wait": 0.14}, "model": "jev-1.13-free", "action_tool": "requires_analysis"}
|
||||||
|
{"run_id": "mirror_20261003_142030", "at": "2026-10-03T16:51:48.476032+08:00", "event": "login_recovery_failed", "controller_stopped": true, "timer_reset": false, "dungeon_completed": false, "verified_background_title_input": true}
|
||||||
@@ -0,0 +1,331 @@
|
|||||||
|
# 2026-10-04 本机部署实测记录
|
||||||
|
|
||||||
|
在一台**远程、无人在场**的 Windows 机器上从零部署 lc-mcp 并跑通镜牢的完整记录。
|
||||||
|
包含六个真实失败及其根因、验证过的部分、以及**仍未验证的边界**。
|
||||||
|
|
||||||
|
上游无此环境的相关文档,所以把踩过的坑写成可复用的形式。
|
||||||
|
|
||||||
|
## 环境
|
||||||
|
|
||||||
|
| 项 | 值 |
|
||||||
|
|---|---|
|
||||||
|
| 系统 | Windows,GPU 为 Intel Iris Xe(集显),另有 ToDesk 虚拟显示器适配器 |
|
||||||
|
| 会话 | DSH 与 lc-mcp 服务跑在**会话 2**;**无人在物理机前**,全部远程操作 |
|
||||||
|
| 接入方式 | RDP / ToDesk,**分辨率随客户端变化**(实测 1600×900 / 1872×921 / 1920×1080) |
|
||||||
|
| 游戏 | Limbus Company,Steam 版,装在 `D:\SteamLibrary`(**非**默认 C 盘路径) |
|
||||||
|
| Python | 系统只有 3.8.6,AALC 要求 ≥3.12 → 由 uv 装 CPython 3.13.6 |
|
||||||
|
| 网络 | 直连外网约 12–28 KB/s;Clash 代理 `127.0.0.1:6789` 约 4.18 MB/s(快 11 倍) |
|
||||||
|
|
||||||
|
**账号状态**:LV 37 的早期账号,**首次进入镜牢**,因此触发了大量一次性新手引导。
|
||||||
|
|
||||||
|
## 结果
|
||||||
|
|
||||||
|
```text
|
||||||
|
一局完整镜牢:2026-10-04 23:49:42 → 2026-10-05 00:29:10
|
||||||
|
耗时 00:39:28,exit code 0,日志零 [ERROR]
|
||||||
|
[INFO] 已完成 1 次镜牢
|
||||||
|
```
|
||||||
|
|
||||||
|
单测:`Ran 171 tests ... OK`(见 `test-results.txt`)。
|
||||||
|
里程碑全文见 `logs/successful-run-milestones.txt`(98 行)。
|
||||||
|
|
||||||
|
## 六个失败与根因
|
||||||
|
|
||||||
|
### 1. 截图全黑 —— 会话 `Disc` 导致桌面停止渲染 ★
|
||||||
|
|
||||||
|
**症状**:`get_state` 返回全黑图、OCR 为空;AALC 报
|
||||||
|
|
||||||
|
```text
|
||||||
|
OpenCV(4.11.0) templmatch.cpp:1175: error: (-215:Assertion failed)
|
||||||
|
_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width
|
||||||
|
```
|
||||||
|
|
||||||
|
即**截图比模板图还小**。
|
||||||
|
|
||||||
|
**根因**:DSH 与服务跑在会话 2。RDP 一旦断开,Windows 会**拆掉该会话的显示表面**。
|
||||||
|
进程还活着、日志还在滚,但:
|
||||||
|
|
||||||
|
```text
|
||||||
|
BitBlt(screenDC) → ret=0 err=6 (ERROR_INVALID_HANDLE)
|
||||||
|
OpenInputDesktop → 0 (失败)
|
||||||
|
GetForegroundWindow→ 0
|
||||||
|
qwinsta → > YWS-HHH 2 Disc
|
||||||
|
```
|
||||||
|
|
||||||
|
**这不是权限问题,是根本没有显示设备。** 一开始误判成权限/沙箱问题,绕了弯路。
|
||||||
|
|
||||||
|
**修复**:把会话挂到物理控制台,之后无人连接也持续渲染。
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
tscon 2 /dest:console # 需要管理员
|
||||||
|
```
|
||||||
|
|
||||||
|
`tscon` 需要 `SeTcbPrivilege`;普通令牌只有 `SeShutdownPrivilege`,直接跑报
|
||||||
|
`Error 5: Access is denied`。
|
||||||
|
|
||||||
|
**⚠️ 会反复**:之后再 RDP 连上又断开,会话被拉回 RDP,断开后又变黑。
|
||||||
|
因此新增了看门狗任务(见下),已实测能自愈。
|
||||||
|
|
||||||
|
### 2. `sinner_order` 全 0 —— 编队死循环 ★最隐蔽
|
||||||
|
|
||||||
|
**症状**:日志里每 2 秒一次 `开始执行 罪人编队` → `结束执行 罪人编队`,永远不出结果;
|
||||||
|
游戏停在配队界面。
|
||||||
|
|
||||||
|
**根因**:`tasks/teams/team_formation.py`
|
||||||
|
|
||||||
|
```python
|
||||||
|
for i in range(1, 13):
|
||||||
|
if i in sinner_team:
|
||||||
|
sinner = sinner_team.index(i)
|
||||||
|
else:
|
||||||
|
return # 任何一个缺失就立刻返回, 什么都不做
|
||||||
|
```
|
||||||
|
|
||||||
|
而自动生成的 `config.yaml` 里 `chosen_sinners` / `sinner_order` **默认全是 0**
|
||||||
|
(`module/config/config_typing.py` 里 `[0] * 12`)。于是第一个 `i=1` 就命中 `return`,
|
||||||
|
队伍永远是空的;`mirror.py` 又检测到 `teams/none_sinner_assets.png`("没有罪人")
|
||||||
|
再次调用编队,形成无限循环。
|
||||||
|
|
||||||
|
**为什么难发现**:配置文件是自动生成的、字段名看起来正常;**AALC 不报任何错**。
|
||||||
|
|
||||||
|
**修复**(`vendor\aalc\config.yaml` → `teams: '1':`):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sinners_be_select: 12
|
||||||
|
chosen_sinners: [1,1,1,1,1,1,1,1,1,1,1,1]
|
||||||
|
sinner_order: [1,2,3,4,5,6,7,8,9,10,11,12]
|
||||||
|
```
|
||||||
|
|
||||||
|
队伍启用队列是单一事实源,`teams_be_select` 由它派生:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
teams_active_queue: [1]
|
||||||
|
select_team_by_order: true
|
||||||
|
```
|
||||||
|
|
||||||
|
`select_team_by_order: true` 让选队按列表位置点选,而不是匹配队名
|
||||||
|
(默认按名字找 `编队#N` / `TEAMS #N`,队名不符就失败)。
|
||||||
|
|
||||||
|
### 3. `background_click: false` 会因 `SetForegroundWindow` 崩掉整个任务
|
||||||
|
|
||||||
|
`module/game_and_screen/screen.py` 的 `set_win()`:
|
||||||
|
|
||||||
|
```python
|
||||||
|
if not cfg.background_click:
|
||||||
|
self.handle.setForeground() # 后台进程抢前台会抛 pywintypes.error
|
||||||
|
```
|
||||||
|
|
||||||
|
会话状态不健康时这里抛异常 → `init_game()` 崩 → 任务秒退:
|
||||||
|
|
||||||
|
```text
|
||||||
|
pywintypes.error: (0, 'SetForegroundWindow', 'No error message is available')
|
||||||
|
```
|
||||||
|
|
||||||
|
`background_click` 同时决定截图方式,两者耦合:
|
||||||
|
|
||||||
|
| `background_click` | 截图 | 特点 |
|
||||||
|
|---|---|---|
|
||||||
|
| `true` | `PrintWindow(hwnd, dc, 3)` | **按窗口抓图**,不受屏幕尺寸/遮挡影响 |
|
||||||
|
| `false` | `take_screenshot_gdi` | 全屏 BitBlt 再裁窗口,**窗口超出屏幕就被裁掉** |
|
||||||
|
|
||||||
|
### 4. 窗口尺寸必须留出标题栏 —— `set_win_size: 900` 在 1600×900 桌面上无法达成 ★
|
||||||
|
|
||||||
|
`set_win_size` 指的是**客户区高度**,但窗口还要加上标题栏和边框:
|
||||||
|
|
||||||
|
```text
|
||||||
|
set_win_size: 900 → 客户区 1600×900 → 窗口需要 1616×939
|
||||||
|
```
|
||||||
|
|
||||||
|
在 1600×900 的桌面上,939 > 900,**窗口装不下**,Windows 会把高度压到 877:
|
||||||
|
|
||||||
|
```text
|
||||||
|
game client: 1600x877 ratio=1.824 *** 不是 16:9 ***
|
||||||
|
```
|
||||||
|
|
||||||
|
而 `set_win()` 的校正循环只在任务启动那一刻跑一次,之后没人纠正。
|
||||||
|
|
||||||
|
**修复**:改用 `set_win_size: 720`(客户区 1280×720,窗口 1296×759),
|
||||||
|
在 1600×900 及以上的桌面上都装得下。
|
||||||
|
|
||||||
|
实测确认:
|
||||||
|
|
||||||
|
```text
|
||||||
|
window=(0,0,1296,759) client=1280x720 ratio=1.778 OK 16:9
|
||||||
|
battle/win_rate_card.png → found (1129, 564) ← 720 缩放下模板匹配正常
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5. 窗口被拉伸成非 16:9 → 模板匹配全面崩坏 ★最值得记
|
||||||
|
|
||||||
|
**症状**:镜牢跑到一半突然不再推进。日志没有 `[ERROR]`,进程健在,只是永远停在
|
||||||
|
`mirror.py` 的"防卡死"兜底分支反复 `点击(1,1)空白位置`。
|
||||||
|
画面是个正常的**战斗部署界面**,右下角 `START` 按钮高亮等着被点。
|
||||||
|
|
||||||
|
**根因**:中途 RDP 重连,桌面分辨率变化,**Unity 把游戏窗口自动拉伸填满桌面**,
|
||||||
|
客户区变成非 16:9(实测 1872×898,比例 2.08:1)。
|
||||||
|
|
||||||
|
而 AALC 按 `cfg.set_win_size` **等比**缩放模板,假设客户区是 16:9:
|
||||||
|
|
||||||
|
```text
|
||||||
|
模板缩放 = set_win_size / 1440 → 假设宽 = 高 × 16/9
|
||||||
|
实际宽 ≠ 高 × 16/9 → 横向差 17%
|
||||||
|
```
|
||||||
|
|
||||||
|
于是**全部模板匹配分数崩塌**(对比同一批模板):
|
||||||
|
|
||||||
|
| 模板 | 正常时 | 出问题时 |
|
||||||
|
|---|---|---|
|
||||||
|
| `battle/win_rate_card.png` | ~0.9 | **0.68** |
|
||||||
|
| `battle/turn_assets.png` | ~0.9 | **0.37** |
|
||||||
|
| `teams/identify_assets.png` | 0.99 | **0.43** |
|
||||||
|
| `home/first_prompt_assets.png` | 1.00 | **0.56** |
|
||||||
|
|
||||||
|
全都在阈值(0.8)以下 → AALC 认不出任何界面元素 → 走兜底分支 → 看起来"卡死"。
|
||||||
|
|
||||||
|
**为什么难发现**:日志里**没有任何报错**,只有一堆相似度数字。
|
||||||
|
不看分数分布,根本看不出这是"全面的、而非局部的"匹配失败。
|
||||||
|
|
||||||
|
**修复**:把窗口恢复成 16:9。修复后同一批模板立刻恢复:
|
||||||
|
`battle/win_rate_card.png` → found (1121, 564);被卡住的那场战斗 78 秒内打完。
|
||||||
|
|
||||||
|
**未解决**:运行中若再次发生分辨率变化仍会重现,目前靠人工/重启任务纠正。
|
||||||
|
根本解法是让 `set_win()` 的校正循环周期性重跑,或监听 `WM_DISPLAYCHANGE`。
|
||||||
|
|
||||||
|
### 6. UTF-8 无 BOM 的中文注释会让 Windows PowerShell 5.1 解析失败 ★
|
||||||
|
|
||||||
|
**症状**:脚本报出莫名其妙的语法错误,且**行号对不上**:
|
||||||
|
|
||||||
|
```text
|
||||||
|
At keep_display.ps1:9 char:22
|
||||||
|
+ [switch]$Verbose,
|
||||||
|
+ ~
|
||||||
|
Missing expression after ','.
|
||||||
|
```
|
||||||
|
|
||||||
|
第 9 行其实是一句注释,`[switch]$Verbose,` 在第 16 行。
|
||||||
|
|
||||||
|
**根因**:文件是 **UTF-8 无 BOM**。Windows PowerShell 5.1 在无 BOM 时按**系统 ANSI
|
||||||
|
代码页**(本机 936/GBK)解码,中文注释变成乱码:
|
||||||
|
|
||||||
|
```text
|
||||||
|
原: # 看门狗: 会话掉回 "Disc" 时重新挂到物理控制台
|
||||||
|
GBK 解码: # 鐪嬮棬鐙? 浼氳瘽鎺夊洖 "Disc" 鏃堕噸鏂版寕鍒扮墿鐞嗘帶鍒跺
|
||||||
|
```
|
||||||
|
|
||||||
|
乱码字节序列会在解析层面制造出多余的引号/标记,破坏语法。
|
||||||
|
**行号错位**正是这个问题的特征信号。
|
||||||
|
|
||||||
|
**这个坑我先误判了两次**:一次以为是 here-string 的问题(改掉了写法),
|
||||||
|
一次以为是 `param()` 里夹注释的问题(删掉了注释)。两次都"绕过"了而不是修好。
|
||||||
|
|
||||||
|
**修复**:脚本存成 **UTF-8 with BOM**(`EF BB BF`)。
|
||||||
|
|
||||||
|
> 注:仓库里原有的 `install_logon_task.ps1` 同样是无 BOM + 中文,却能正常执行。
|
||||||
|
> 差异未查明,可能与其注释内容/长度有关。**保险做法是一律加 BOM。**
|
||||||
|
|
||||||
|
## 三种输入模式都在抢桌面
|
||||||
|
|
||||||
|
| 模式 | 挪什么 | 代价 |
|
||||||
|
|---|---|---|
|
||||||
|
| `background` | **真实鼠标指针**(`set_mouse_pos` 后 `move_back` 复位) | 用户点不到别的窗口、抢不到前台 |
|
||||||
|
| `window_move` | **游戏窗口**(挪到指针底下再挪回) | 窗口剧烈闪烁(每次点击一次) |
|
||||||
|
| `foreground` | 真实指针(pyautogui 真实点击) | **游戏必须保持前台**,一旦失去焦点,真实点击会落到别的窗口上 |
|
||||||
|
|
||||||
|
三者**都会**调 `set_active()` 向游戏窗口发 `WM_ACTIVATE / WA_ACTIVE`
|
||||||
|
(`input_handlers/input.py:507` 与 `:828`)。AALC 的设计前提是"运行时独占桌面",
|
||||||
|
**没有配置能关掉**。
|
||||||
|
|
||||||
|
**实测结论**:
|
||||||
|
|
||||||
|
- `foreground` 在**有人守着**时体验最好(真实光标操作、可观看),但**无人值守时不可用**——
|
||||||
|
没人保证游戏处于前台,任何抢焦点(包括人工点一下别的窗口)都会让点击落到错误窗口。
|
||||||
|
- `background` **不依赖前台状态**,最适合无人值守。代价是抢占鼠标指针——
|
||||||
|
没人在场时无所谓。
|
||||||
|
|
||||||
|
**本项目最终选择 `background`**(无人值守场景)。
|
||||||
|
|
||||||
|
## 其他环境坑
|
||||||
|
|
||||||
|
- **游戏路径**:`config.yaml` 默认指向 `C:\Program Files (x86)\Steam\...`,
|
||||||
|
实际在 `D:\SteamLibrary`,必须改。
|
||||||
|
- **AALC 会整份回写 `config.yaml`**:手写的注释会被抹掉,改完要复查。
|
||||||
|
- **`qwinsta` 在计划任务上下文里没有任何输出**(所以初版看门狗任务失败),
|
||||||
|
要用 WTS API(见 `scripts/session_state.py`)。
|
||||||
|
- **游戏窗口最小化后 rect 是 `(-32000,-32000,...)`**,先 `ShowWindow(SW_RESTORE)`。
|
||||||
|
- **`SetForegroundWindow` 可当健康探针**:会话不渲染时失败,渲染正常时成功。
|
||||||
|
- **首次进镜牢有约 60 页引导**(两个轮播)。AALC 的兜底分支要求
|
||||||
|
`home/first_prompt_assets.png` 与 `home/back_assets.png` **同时**命中,
|
||||||
|
但后者只有 0.43(低于阈值),于是退化成反复点空白。需人工点掉:
|
||||||
|
右边缘 `(1805,540)` 翻页,翻完点左上角 `(130,70)` 退出。一次性成本。
|
||||||
|
- **`task_status` 返回 `succeeded` 不等于成功**:AALC 单次战斗失败后会继续跑完并 exit 0,
|
||||||
|
必须同时看 `errors` 字段。
|
||||||
|
|
||||||
|
## 新增的可复用工具
|
||||||
|
|
||||||
|
### `scripts/session_state.py`
|
||||||
|
|
||||||
|
用 WTS API 查询会话连接状态,输出 `Active` / `Disc` 等。
|
||||||
|
替代在计划任务上下文里失灵的 `qwinsta`。
|
||||||
|
|
||||||
|
### `scripts/render_check.py`
|
||||||
|
|
||||||
|
从屏幕 DC 做一次 BitBlt,判断桌面是否正在出图。退出码 0/1。
|
||||||
|
|
||||||
|
### `scripts/keep_display.ps1`
|
||||||
|
|
||||||
|
看门狗:会话掉到 `Disc` 时用提权 `tscon` 重新挂 console,恢复渲染。
|
||||||
|
|
||||||
|
**安全设计**:只在状态为 `Disc`(确认无人连接)时动作。用户正通过 RDP/ToDesk
|
||||||
|
连着(`Active`/`Connected`)时**绝不插手**,否则会把用户挤下线。
|
||||||
|
|
||||||
|
**提权方式**:`tscon` 需要 `SeTcbPrivilege`,普通令牌拿不到,脚本用
|
||||||
|
`Start-Process -Verb RunAs`。在 `ConsentPromptBehaviorAdmin=0`("从不通知")的机器上
|
||||||
|
提权静默通过、不弹框。
|
||||||
|
|
||||||
|
**实测验证**(两条路径都跑过):
|
||||||
|
|
||||||
|
```text
|
||||||
|
正常路径 session 2 is Active; nothing to do ← 正确跳过,不写日志
|
||||||
|
修复路径 session 2 is Disc -> re-attaching to console
|
||||||
|
session 2 now: Active ← tscon 真的生效
|
||||||
|
render check: BitBlt=1 desktop=1920x1080 ← 渲染恢复
|
||||||
|
```
|
||||||
|
|
||||||
|
修复路径用 `-ForceDisc` 开关验证(跳过状态判断直接跑),
|
||||||
|
因为会话已在 console 时 `tscon` 是幂等的,不会造成影响。
|
||||||
|
|
||||||
|
另外单独验证过:**计划任务上下文(Limited 权限)里 `Start-Process -Verb RunAs`
|
||||||
|
可以静默提权**——这是看门狗能工作的前提。用一个临时任务验证后已清理。
|
||||||
|
|
||||||
|
## 当前生效配置
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
game_path: D:\SteamLibrary\steamapps\common\Limbus Company\LimbusCompany.exe
|
||||||
|
background_click: true
|
||||||
|
win_input_type: background
|
||||||
|
set_win_size: 720
|
||||||
|
set_windows: true
|
||||||
|
select_team_by_order: true
|
||||||
|
teams_active_queue: [1]
|
||||||
|
```
|
||||||
|
|
||||||
|
任务次数由 `run_task` 参数临时覆盖,结束后自动写回原值
|
||||||
|
(原值落盘在 `~/lc_mcp/runs/*.restore.json`,防强杀丢失)。
|
||||||
|
|
||||||
|
## 仍未验证 / 已知限制
|
||||||
|
|
||||||
|
1. **分辨率中途变化会重现问题 5**,目前无自动纠正机制。
|
||||||
|
2. **`foreground` 模式在无人值守下不可用**(见上),已改用 `background`。
|
||||||
|
3. **多局连刷的稳定性未验证**:只完整跑通 1 局;
|
||||||
|
`count=3` 的批处理两次都在中途被打断(第一次因问题 5,第二次因问题 1)。
|
||||||
|
4. **未使用 Jev / 决策模型**:全部走 AALC 内置规则流程,`decisionEngine` 未接入。
|
||||||
|
5. 账号为 LV 37 早期账号,**主线未通关**(镜牢界面可见 `Clear Canto 8` 等解锁条件),
|
||||||
|
因此结论只覆盖普通镜牢,不覆盖困难镜牢与主线。
|
||||||
|
6. **看门狗只覆盖"桌面变黑"这一类故障**。识别失败、卡在未知界面等其他问题
|
||||||
|
仍需人工介入——问题 5 就是例子。
|
||||||
|
7. `720p` 下模板缩放为 `720/1440 = 0.5`。实测战斗界面匹配正常,
|
||||||
|
但**未做过全流程的识别成功率对比**,小图标场景可能劣于 1080p。
|
||||||
|
|
||||||
|
## 本次导出排除的内容
|
||||||
|
|
||||||
|
API key、MCP token(`~/lc_mcp/token`)、私有配置文件、完整会话转录、
|
||||||
|
以及账号 UID 可见的底部栏截图。
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 697 KiB |
@@ -0,0 +1,8 @@
|
|||||||
|
[36m[DEBUG] 2026-10-04 23:10:05,506 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:19:50,811 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:30:39,791 [AALC] module\automation\automation.py:88: 使用前台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:47:18,039 [AALC] module\automation\automation.py:88: 使用前台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
[DEBUG] 2026-10-05 01:01:54,822 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:01:57,503 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:00,225 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:02,907 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:05,608 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:08,344 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:11,090 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:13,801 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:16,503 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:19,252 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:21,925 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:24,650 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:27,386 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:30,083 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:32,929 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:35,546 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:38,238 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:40,938 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:43,913 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:46,383 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:49,078 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:51,783 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:54,500 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:57,224 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:02:59,914 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:02,647 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:05,417 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:08,170 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:10,861 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:13,561 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:16,258 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:19,007 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:21,782 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:24,438 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:27,307 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:29,893 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:32,609 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:35,309 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:38,074 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:40,788 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:43,440 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:46,135 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:48,866 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:51,613 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:54,301 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:57,048 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:03:59,772 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:02,468 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:05,190 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:08,042 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:10,632 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:13,378 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:16,082 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:18,834 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:21,524 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:24,262 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:26,991 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:29,699 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:32,379 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
|
[DEBUG] 2026-10-05 01:04:35,261 [AALC] module\automation\automation.py:152: 点击(1,1)空白位置
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
[INFO] 2026-10-04 23:49:42,796 [AALC] tasks\base\script_task_scheme.py:337: 开始执行 一次镜牢
|
||||||
|
[INFO] 2026-10-04 23:49:49,028 [AALC] module\automation\automation.py:435: 主题:default
|
||||||
|
[INFO] 2026-10-04 23:49:52,013 [AALC] tasks\mirror\mirror.py:268: 开始执行 选择镜牢主题包
|
||||||
|
[INFO] 2026-10-04 23:49:55,630 [AALC] module\decorator\decorator.py:18: 语言: 英文
|
||||||
|
[INFO] 2026-10-04 23:50:02,238 [AALC] tasks\mirror\select_theme_pack.py:122: 此次选择卡包关键词:judgment
|
||||||
|
[INFO] 2026-10-04 23:50:02,240 [AALC] tasks\mirror\mirror.py:268: 结束执行 选择镜牢主题包
|
||||||
|
[INFO] 2026-10-04 23:50:02,242 [AALC] tasks\mirror\mirror.py:44: 启动后第2层卡包,该楼层时间不完整 总耗时:497538:36:41
|
||||||
|
[INFO] 2026-10-04 23:50:05,795 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:50:15,941 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:50:39,852 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:50:42,352 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:50:44,150 [AALC] tasks\mirror\mirror.py:338: 开始执行 罪人编队
|
||||||
|
[INFO] 2026-10-04 23:50:55,188 [AALC] tasks\mirror\mirror.py:338: 结束执行 罪人编队
|
||||||
|
[INFO] 2026-10-04 23:51:04,503 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-04 23:52:44,374 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-04 23:52:54,060 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:52:56,567 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:53:16,306 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:53:18,816 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:53:28,554 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-04 23:55:08,785 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-04 23:55:21,831 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:55:24,343 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:55:26,233 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢商店
|
||||||
|
[INFO] 2026-10-04 23:56:44,367 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢商店
|
||||||
|
[INFO] 2026-10-04 23:56:48,588 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:56:51,084 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-04 23:57:00,792 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:01:06,172 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:01:08,161 [AALC] tasks\mirror\mirror.py:434: 开始执行 镜牢获取奖励卡
|
||||||
|
[INFO] 2026-10-05 00:01:14,084 [AALC] tasks\mirror\mirror.py:434: 结束执行 镜牢获取奖励卡
|
||||||
|
[INFO] 2026-10-05 00:01:37,548 [AALC] tasks\mirror\mirror.py:268: 开始执行 选择镜牢主题包
|
||||||
|
[INFO] 2026-10-05 00:01:47,209 [AALC] tasks\mirror\select_theme_pack.py:122: 此次选择卡包关键词:nsignif
|
||||||
|
[INFO] 2026-10-05 00:01:47,211 [AALC] tasks\mirror\mirror.py:268: 结束执行 选择镜牢主题包
|
||||||
|
[INFO] 2026-10-05 00:01:47,212 [AALC] tasks\mirror\mirror.py:44: 启动后第3层卡包 总耗时:00:11:44
|
||||||
|
[INFO] 2026-10-05 00:01:50,772 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:02:00,951 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:02:15,648 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:02:18,166 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:02:27,946 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:04:27,763 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:04:32,181 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:04:34,677 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:04:44,451 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:07:24,851 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:07:29,247 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:07:31,754 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:07:56,867 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:07:59,367 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:08:01,268 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢商店
|
||||||
|
[INFO] 2026-10-05 00:09:13,353 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢商店
|
||||||
|
[INFO] 2026-10-05 00:09:17,534 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:09:20,043 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:09:29,800 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:14:23,370 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:14:25,326 [AALC] tasks\mirror\mirror.py:434: 开始执行 镜牢获取奖励卡
|
||||||
|
[INFO] 2026-10-05 00:14:27,822 [AALC] tasks\mirror\mirror.py:434: 结束执行 镜牢获取奖励卡
|
||||||
|
[INFO] 2026-10-05 00:14:52,226 [AALC] tasks\mirror\mirror.py:268: 开始执行 选择镜牢主题包
|
||||||
|
[INFO] 2026-10-05 00:15:01,683 [AALC] tasks\mirror\select_theme_pack.py:122: 此次选择卡包关键词:addict
|
||||||
|
[INFO] 2026-10-05 00:15:01,684 [AALC] tasks\mirror\mirror.py:268: 结束执行 选择镜牢主题包
|
||||||
|
[INFO] 2026-10-05 00:15:01,686 [AALC] tasks\mirror\mirror.py:44: 启动后第4层卡包 总耗时:00:13:14
|
||||||
|
[INFO] 2026-10-05 00:15:05,235 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:15:15,405 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:15:40,768 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:15:43,267 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:15:53,021 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:19:13,160 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:19:15,155 [AALC] tasks\mirror\mirror.py:434: 开始执行 镜牢获取奖励卡
|
||||||
|
[INFO] 2026-10-05 00:19:21,069 [AALC] tasks\mirror\mirror.py:434: 结束执行 镜牢获取奖励卡
|
||||||
|
[INFO] 2026-10-05 00:19:25,374 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:19:27,881 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:19:37,628 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:23:07,182 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:23:11,600 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:23:14,098 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:23:39,214 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:23:41,720 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:23:43,615 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢商店
|
||||||
|
[INFO] 2026-10-05 00:24:41,532 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢商店
|
||||||
|
[INFO] 2026-10-05 00:24:45,739 [AALC] tasks\mirror\mirror.py:109: 开始执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:24:48,247 [AALC] tasks\mirror\mirror.py:109: 结束执行 镜牢寻路
|
||||||
|
[INFO] 2026-10-05 00:24:58,028 [AALC] tasks\mirror\mirror.py:109: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:28:50,253 [AALC] tasks\mirror\mirror.py:109: 结束执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 00:28:51,387 [AALC] tasks\mirror\mirror.py:494: 开始进行镜牢奖励领取
|
||||||
|
[INFO] 2026-10-05 00:28:55,140 [AALC] tasks\mirror\mirror.py:625: 本次镜牢领取45个通行证经验
|
||||||
|
[INFO] 2026-10-05 00:29:06,019 [AALC] tasks\mirror\mirror.py:44: 启动后第4层卡包 总耗时:00:14:04
|
||||||
|
[INFO] 2026-10-05 00:29:06,020 [AALC] tasks\mirror\mirror.py:44: 此次镜牢在战斗 总耗时:00:27:41
|
||||||
|
[INFO] 2026-10-05 00:29:06,021 [AALC] tasks\mirror\mirror.py:727: 此次镜牢走的事件次数6
|
||||||
|
[INFO] 2026-10-05 00:29:06,022 [AALC] tasks\mirror\mirror.py:44: 此次镜牢在事件 总耗时:00:01:17
|
||||||
|
[INFO] 2026-10-05 00:29:06,023 [AALC] tasks\mirror\mirror.py:44: 此次镜牢中在商店 总耗时:00:03:28
|
||||||
|
[INFO] 2026-10-05 00:29:06,024 [AALC] tasks\mirror\mirror.py:44: 此次镜牢中在寻路 总耗时:00:01:08
|
||||||
|
[INFO] 2026-10-05 00:29:06,026 [AALC] tasks\mirror\mirror.py:44: 此次镜牢使用burn体系队伍 总耗时:00:39:23
|
||||||
|
[INFO] 2026-10-05 00:29:06,027 [AALC] tasks\base\script_task_scheme.py:100: 开始执行 返回主界面
|
||||||
|
[INFO] 2026-10-05 00:29:07,239 [AALC] tasks\base\script_task_scheme.py:100: 结束执行 返回主界面
|
||||||
|
[INFO] 2026-10-05 00:29:07,241 [AALC] tasks\base\script_task_scheme.py:101: 开始执行 体力换饼
|
||||||
|
[INFO] 2026-10-05 00:29:10,858 [AALC] tasks\base\script_task_scheme.py:101: 结束执行 体力换饼
|
||||||
|
[INFO] 2026-10-05 00:29:10,859 [AALC] tasks\base\script_task_scheme.py:337: 结束执行 一次镜牢
|
||||||
|
[INFO] 2026-10-05 00:29:10,869 [AALC] tasks\base\script_task_scheme.py:351: 已完成 1 次镜牢
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"exported_at_utc": "2026-10-04T17:19:53.700710+00:00",
|
||||||
|
"base_commit": "073e407346d83c734724be42103e5b5baa100a85",
|
||||||
|
"host": "Windows, remote unattended session (RDP/ToDesk), no one at the machine",
|
||||||
|
"game": "Limbus Company (Steam), account LV 37, first-ever Mirror Dungeon entry",
|
||||||
|
"test_exit_code": 0,
|
||||||
|
"tests_passed": 171,
|
||||||
|
"mirror_runs_completed": 1,
|
||||||
|
"mirror_run_duration": "00:39:28",
|
||||||
|
"mirror_run_errors": 0,
|
||||||
|
"distinct_failures_documented": 6,
|
||||||
|
"unattended_selfheal_task_verified": true,
|
||||||
|
"screenshots": 2,
|
||||||
|
"log_excerpts": 3,
|
||||||
|
"excluded": [
|
||||||
|
"API keys",
|
||||||
|
"MCP token",
|
||||||
|
"private configurations",
|
||||||
|
"session transcripts",
|
||||||
|
"account-UID screenshots"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "README.md",
|
||||||
|
"bytes": 14114,
|
||||||
|
"sha256": "be63ab5ecf21b944b59df3d357eeba826694114a19e899e154ee28d6293f1c44"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "captures/stall-wrong-aspect-1872x898.png",
|
||||||
|
"bytes": 2480446,
|
||||||
|
"sha256": "122c5d6aabe04225c2388531271a88c869311ef7181e197320e871e86010fd5f"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "captures/working-1280x720.png",
|
||||||
|
"bytes": 714175,
|
||||||
|
"sha256": "a6a2fd75d767c9fc9675eb7390aa03dc611807d60c53c67d960310103576c36f"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "logs/server-excerpt.txt",
|
||||||
|
"bytes": 748,
|
||||||
|
"sha256": "d1828b44d247b66c06558b42c277be5391faaa60f6e616669e6195cd9ecd2dfe"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "logs/stalled-run-tail.txt",
|
||||||
|
"bytes": 6420,
|
||||||
|
"sha256": "de8f2d714f726cdc10ad55cf442d171cfd51afa64ec7e138df420d1ff3b9a05c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "logs/successful-run-milestones.txt",
|
||||||
|
"bytes": 9562,
|
||||||
|
"sha256": "459b746eea2a85870f8c1a89c59a3d65e1558472a2c9f3b0c9af24d682f26d75"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "test-results.txt",
|
||||||
|
"bytes": 1236,
|
||||||
|
"sha256": "8200e288e3570c08e76097ec5622382453850cc0ef5673bd12fc27a7bc66d1a0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{"step": 0, "run_id": "47442136bf99427d96dd53decc47c426", "choice": "wait", "action": {"tool": "wait", "args": {"seconds": 0.7}}, "jev_ms": 0, "ocr_ms": 0, "screen": null, "at": "2026-10-05T01:09:00", "decision_engine": "rules", "action_ms": 0, "finished_at": "2026-10-05T01:09:00", "result": {"ok": true, "waited": 0.7}, "state": "running", "battle_context": false}
|
||||||
|
{"step": 1, "run_id": "47442136bf99427d96dd53decc47c426", "choice": "wait", "action": {"tool": "wait", "args": {"seconds": 0.7}}, "jev_ms": 0, "ocr_ms": 0, "screen": null, "at": "2026-10-05T01:09:00", "decision_engine": "rules", "action_ms": 0, "finished_at": "2026-10-05T01:09:00", "result": {"ok": true, "waited": 0.7}, "state": "running", "battle_context": false}
|
||||||
|
.................................................................................................unknown params for mirror: exp
|
||||||
|
usage: python -m lc_mcp.aalc_task <all|daily|reward|enkephalin|mirror> [json]
|
||||||
|
......................................[lc_mcp] rejected connection from ('127.0.0.1', 60318)
|
||||||
|
..[lc_mcp] rejected connection from ('127.0.0.1', 60322)
|
||||||
|
..................................
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Ran 171 tests in 11.603s
|
||||||
|
|
||||||
|
OK
|
||||||
@@ -0,0 +1,360 @@
|
|||||||
|
# 踩坑全记录(2026-10-05 自动化实战)
|
||||||
|
|
||||||
|
这一天把 lc-mcp 从"能手动跑"推到"能无人值守自动养号",一路上挖出
|
||||||
|
**14 个坑**。其中 6 个是 AALC 自身的缺陷或脆弱点,4 个是游戏 UI 的
|
||||||
|
反直觉设计,4 个是我自己写自动化时踩的。
|
||||||
|
|
||||||
|
按"离奇程度"排序,最有价值的放前面。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 1:人格详情页是**长按**打开的 ★★★★★
|
||||||
|
|
||||||
|
罪人界面(Sinners → Identities)的身份卡片:
|
||||||
|
|
||||||
|
| 操作 | 结果 |
|
||||||
|
|---|---|
|
||||||
|
| 单击 | 只是**选中/取消选中**(队伍预设增删成员) |
|
||||||
|
| **长按** | **打开人格详情页**(升级 / 同步入口) |
|
||||||
|
|
||||||
|
**代价**:我单击试遍了卡片头像、SELECTED 横幅、名字等级区、双击、
|
||||||
|
右侧 Selected Identity 面板、左侧罪人头像栏、右上 `i`、`Details` 按钮
|
||||||
|
—— **全都只能选中**。花了十几轮才由用户一句话点破。
|
||||||
|
|
||||||
|
**为什么反直觉**:这是移动端移植 UI,长按在手机上很自然,在桌面端
|
||||||
|
用鼠标时几乎没人会想到。
|
||||||
|
|
||||||
|
**自动化实现**:lc-mcp 没有 long-press 工具,但 `drag` 是
|
||||||
|
`按下 → 移动 → 抬起`,**起点终点相同**就是长按:
|
||||||
|
|
||||||
|
```python
|
||||||
|
probe('drag', {'from_x': x, 'from_y': y, 'to_x': x, 'to_y': y})
|
||||||
|
```
|
||||||
|
|
||||||
|
实测稳定可复现(`duration` 约 1.0s)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 2:按名字选队会**子串误匹配** ★★★★★
|
||||||
|
|
||||||
|
`tasks/teams/team_formation.py`:
|
||||||
|
|
||||||
|
```python
|
||||||
|
team_name_en = [f"TEAMS #{num}", f"TEAMS#{num}", f"TFAMS#{num}"] # num=1
|
||||||
|
```
|
||||||
|
|
||||||
|
**`"TEAMS #1"` 是 `"TEAMS #10"`~`"TEAMS #19"` 的子串。**
|
||||||
|
|
||||||
|
本机账号有 **40 个队伍预设**,所以查找 `TEAMS #1` 极易命中 `TEAMS #10`。
|
||||||
|
|
||||||
|
**症状极其误导**:日志写
|
||||||
|
|
||||||
|
```text
|
||||||
|
[INFO] team_formation.py:188: 成功找到队伍 # 1 ← 假阳性
|
||||||
|
```
|
||||||
|
|
||||||
|
看起来一切正常,但紧接着:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[DEBUG] team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] battle.py:66: 目标图片:battle/normal_to_battle_assets.png 相似度:0.99
|
||||||
|
[DEBUG] automation.py:152: 点击位置:(1439,737) ← 无限点"开战",开不了
|
||||||
|
```
|
||||||
|
|
||||||
|
`0/5` 出现 **306 次**,空转 27 分钟。因为它选中了一个**空预设**。
|
||||||
|
|
||||||
|
**教训**:**日志说"成功"不等于成功**。判断选队是否真的生效,
|
||||||
|
要看 `配队人数` 那一行是不是 `N/5`(N>0),不能只看 `成功找到队伍`。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 3:位置法选队会在列表滚动时漂移 ★★★★☆
|
||||||
|
|
||||||
|
关掉名字查找、改用 `select_team_by_order: true`(按坐标点第 N 行)后:
|
||||||
|
|
||||||
|
```python
|
||||||
|
first_position = [position[0], position[1] + 70 * scale] # 偏移 70 ≈ 一行高
|
||||||
|
# 常量: ORDERED_TEAM_ROW_HEIGHT = 72.5
|
||||||
|
```
|
||||||
|
|
||||||
|
**它落到第 2 行(TEAMS #2)而不是第 1 行**,日志依旧报
|
||||||
|
`成功找到队伍 # 1`(`team_formation.py:163` 是位置法分支)。
|
||||||
|
|
||||||
|
我试过"上移一个行高"的补丁(`- ORDERED_TEAM_ROW_HEIGHT * scale`)——
|
||||||
|
**无效**。因为它的前置"复位滑动"终点本身在漂移,固定偏移量治不了
|
||||||
|
**移动的目标**。已把补丁还原,不在 vendored 代码里留无效改动。
|
||||||
|
|
||||||
|
**两种选队方式各自的死法**:
|
||||||
|
|
||||||
|
| 方式 | 失效条件 | 表现 |
|
||||||
|
|---|---|---|
|
||||||
|
| 按名字 | 预设名互为子串 | 选中 `TEAMS #10`(空队) |
|
||||||
|
| 按位置 | 列表滚动位置漂移 | 选中 `TEAMS #2`(空队) |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 4:解法是**让落点无意义**——把队伍复制到多个预设 ★★★★★
|
||||||
|
|
||||||
|
既然落点在 #1/#2 之间漂移、名字查找又不可靠,那就不去修定位,
|
||||||
|
而是**让两个预设装同一支队**。落到哪个都对。
|
||||||
|
|
||||||
|
游戏内其实有 **Team Code**(队伍码)功能,入口是队伍标题栏的剪贴板图标:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[TEAMS #1] [✏️] [📋] ← 📋 = Team Code
|
||||||
|
```
|
||||||
|
|
||||||
|
点开后:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[Copy Team Code] @ (816, 414)
|
||||||
|
[Load Team Code] @ (798, 510)
|
||||||
|
```
|
||||||
|
|
||||||
|
**关键技巧:`Copy Team Code` 不显示码,直接写进系统剪贴板**,
|
||||||
|
所以界面上看不到任何变化(我一度以为点击失败了)。可以直接读出来:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
Get-Clipboard -Raw
|
||||||
|
# H4sIAAAAAAAACnM0dEx3BAJnIAQBz0BPEOUUDBF2c3R2A0lEAiVA...(108 字符 base64)
|
||||||
|
```
|
||||||
|
|
||||||
|
然后到目标预设 `Load Team Code` → `type_text` 输入 → `Confirm`。
|
||||||
|
|
||||||
|
**验证结果**:TEAMS #2 载入后与 #1 完全一致
|
||||||
|
(`LV.34 / Lv.35 / LV.37 / LV.35 / LV.36 / Lv.35` + `LV.26 / Lv.35 / LV.29 / LV.29`)。
|
||||||
|
|
||||||
|
**修复后**:`0/5` 卡死 **306 次 → 0 次**,此后 10 轮 daily 全部
|
||||||
|
`6/6 选队成功 · 0 卡死 · 0 错误`。
|
||||||
|
|
||||||
|
> **通用教训**:当两个方案的失效条件互补时,与其选一个去修,
|
||||||
|
> 不如**消除对它的依赖**。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 5:同步成功会播剧情,导致**假阴性** ★★★★☆
|
||||||
|
|
||||||
|
同步(Uptie)到三阶会**解锁并自动播放该人格的剧情**。此时界面上
|
||||||
|
既没有 `Uptied` 字样,也不是失败——脚本按"没看到成功关键字"判了 FAIL。
|
||||||
|
|
||||||
|
**症状**:`同步: FAIL` 后面跟着一段角色台词:
|
||||||
|
|
||||||
|
```text
|
||||||
|
同步未生效: swear, I swear to you! I will return this favor... Fuhu!
|
||||||
|
```
|
||||||
|
|
||||||
|
**修复**:加 `skip_cutscene()`——检测到 `skip` 提示就发 ESC 弹跳过框、
|
||||||
|
点 `Confirm`,然后把同步判为成功。
|
||||||
|
|
||||||
|
```python
|
||||||
|
if 'skip' in txt.lower():
|
||||||
|
conf = next(i for i in items if i['text'].startswith('Confirm'))
|
||||||
|
click(conf['x'], conf['y'])
|
||||||
|
return True, '同步成功(并跳过了解锁的人格剧情)'
|
||||||
|
```
|
||||||
|
|
||||||
|
**同一类问题的第二种表现**:ESC 弹出的"是否跳过"框本身也带 `Cancel`,
|
||||||
|
所以**判定不能用模糊字样**——详情页本来就有 `Uptie+`,用它判断
|
||||||
|
"同步弹窗是否打开"会永远为真,必须先点 `Uptie` 再看有没有
|
||||||
|
`Currency Req` / `Stats Increased` 这些**弹窗独有**文本。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 6:等级数字的 OCR **两处都不可靠** ★★★★☆
|
||||||
|
|
||||||
|
| 位置 | 字号 | 实测误读 |
|
||||||
|
|---|---|---|
|
||||||
|
| 网格卡片 | 小号艺术字 | `LV14` → `Lv.1`;`LV24` → `LV2H` |
|
||||||
|
| 详情页大号 | 艺术字 | LCB 罪人页**完全认不出** "LV 17" |
|
||||||
|
|
||||||
|
**后果**:`weakest` 选目标会选错人;LCB 罪人那两张卡一直被跳过。
|
||||||
|
|
||||||
|
**解法:用 EXP 进度条反推等级**(纯数字,OCR 很准):
|
||||||
|
|
||||||
|
```text
|
||||||
|
547/885 → Lv.17 (885 = 17→18 所需经验)
|
||||||
|
2037/2674 → Lv.24 (与直读 LV24 一致 ✅)
|
||||||
|
```
|
||||||
|
|
||||||
|
分母 = 当前等级升下一级所需经验,查 wiki 的 "EXP per Level" 表即可。
|
||||||
|
表里有重复值(4899 对应 30/33/36),用网格读到的值做 tiebreak。
|
||||||
|
|
||||||
|
**同时保留双通道**:详情页直读的 LV 值 + 进度条反推,两者差异 >2 时告警。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 7:主界面上按"返回键"会**进入剧情 Drive** ★★★☆☆
|
||||||
|
|
||||||
|
我写恢复流程时盲目点左上返回键 `(85,75)`。在**主界面上**那会进入剧情,
|
||||||
|
掉进过场动画,还得靠 AALC 的 `reward` 任务(它开头有"返回主界面")
|
||||||
|
才救回来。
|
||||||
|
|
||||||
|
**修复**:恢复路径只点 `Sinners` 按钮 `(1130,805)`;返回键改成
|
||||||
|
"只在确实需要退一层时"才按,且每次按完都检查是否已到目标界面。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 8:预设列表滚动——**拖拽起点必须在列表内部** ★★★☆☆
|
||||||
|
|
||||||
|
TEAMS 预设列表可以拖拽滚动,但:
|
||||||
|
|
||||||
|
```text
|
||||||
|
drag(130,330 → 130,740) 起点在列表上方 → 完全无反应
|
||||||
|
drag(170,390 → 170,720) 起点在列表内 → 列表 #35 → #28 ✅
|
||||||
|
drag(200,420 → 200,730) 再拖 → #28 → #21 ✅
|
||||||
|
```
|
||||||
|
|
||||||
|
**向下拖拽 = 内容下移 = 露出更靠前的预设。**
|
||||||
|
|
||||||
|
另有 `▲` 箭头在列表顶部 `(162,375)`,但它**盖在首行上**,点它会
|
||||||
|
选中那一行而不是滚动。
|
||||||
|
|
||||||
|
**注意**:当列表已在顶部时,拖拽自然无效(不是坏了)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 9:狂气(Lunacy)必须**只用于抽卡** ★★★★☆
|
||||||
|
|
||||||
|
用户明确要求:**不得消耗狂气**。
|
||||||
|
|
||||||
|
AALC 默认会在体力不足时用狂气换体力(`体力换饼`),配置项:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
set_lunacy_to_enkephalin: 2 # 0 不购买, 1 购买一次, 2 购买两次, 3 购买三次
|
||||||
|
```
|
||||||
|
|
||||||
|
**三层防护**:
|
||||||
|
|
||||||
|
1. 配置成 `0` —— AALC 根本不买
|
||||||
|
2. 脚本 `lunacy_guard()` —— 每轮读余额,**一旦下降立即中止**
|
||||||
|
3. 基线落盘 `~/lc_mcp/lunacy_baseline.txt`,只增不减
|
||||||
|
|
||||||
|
**实测核对 9 次:`3436 → 3476`(净增 40,只涨不跌)** ✅
|
||||||
|
|
||||||
|
> 日志里出现 `开始执行 体力换饼` **不代表真的花了狂气**——
|
||||||
|
> 要看它是否匹配到 `enkephalin_cancel_assets` 并点了取消。
|
||||||
|
> 实测那两次都走了取消分支。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 10:`BACK` 常量作用域 bug——**测试假通过** ★★★☆☆
|
||||||
|
|
||||||
|
我把 `ensure_team1()` 写进 `auto_cycle.py` 时用了 `levelup.py` 里的
|
||||||
|
常量 `BACK`,但没在新文件里定义:
|
||||||
|
|
||||||
|
```text
|
||||||
|
NameError: name 'BACK' is not defined
|
||||||
|
File "auto_cycle.py", line 107, in ensure_team1
|
||||||
|
click(*BACK)
|
||||||
|
```
|
||||||
|
|
||||||
|
**第一次测试"通过"是假象**:当时恰好在 TEAMS 页,`ensure_team1()`
|
||||||
|
走了提前返回的分支,**根本没执行到那一行**。只有从网格启动才会暴露。
|
||||||
|
|
||||||
|
**教训**:测一个有多分支的函数,**必须把每个分支都走到**,
|
||||||
|
否则"测过了"毫无意义。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 11:经验本产量有**账号进度天花板** ★★★☆☆
|
||||||
|
|
||||||
|
我一直以为产量低是配置问题,直到日志里偶然露出经验本的真实内容:
|
||||||
|
|
||||||
|
```text
|
||||||
|
'EXPLuxcavation #1' 'Difficulty: Lv 8'
|
||||||
|
'EXPLuxcavation #2' 'Difficulty: Lv 18'
|
||||||
|
'EXPLuxcavation #3' 'Difficulty: Lv 28'
|
||||||
|
'ConsecutiveBattlex1' '> Skip Battle'
|
||||||
|
```
|
||||||
|
|
||||||
|
**这个账号只有 3 关经验本**(wiki 说的 #1–#10 是新版本内容)。
|
||||||
|
所以上限就是 `3 × 4,800 = 14,400 EXP/轮`,和实测完全吻合。
|
||||||
|
|
||||||
|
**AALC 的档位选择已经是最优的**(按 x 从大到小、最右优先、失败才降级)。
|
||||||
|
|
||||||
|
另外 `Skip Battle` 给 +50% 奖励但**耗 2 倍体力模组**,单位体力效率
|
||||||
|
反而更低——AALC 不跳战是对的。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 12:同步 Tier IV 需要**自我碎片**(不是 bug) ★★☆☆☆
|
||||||
|
|
||||||
|
每轮同步都报 FAIL,看起来像 bug。实际是:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Currency Req. [Season8] Heathcliff's Egoshard (Owned:2)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Tier IV 需要 50 个对应罪人的自我碎片**(只有 2–3 个)。
|
||||||
|
而解锁技能 3 的 **Tier III 只需要纺锤**——关键提升早就拿到了。
|
||||||
|
|
||||||
|
碎片必须从**镜牢**刷,不是配置能解决的。**不要把这个当故障处理。**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 13:游戏窗口丢失 → AALC 会**自行重启游戏** ★★☆☆☆
|
||||||
|
|
||||||
|
最后一次运行的日志:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[ERROR] module\automation\screenshot.py:244: 未能获取到游戏窗口
|
||||||
|
[ERROR] tasks\base\script_task_scheme.py:175: 未能获取到游戏窗口
|
||||||
|
[DEBUG] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:17220
|
||||||
|
```
|
||||||
|
|
||||||
|
**AALC 内置"检测不到窗口就重启游戏"的逻辑**,而且它是用 Steam 命令
|
||||||
|
启动的。如果用户手动关了游戏,会被它重新拉起来——**看起来像"关不掉"**。
|
||||||
|
|
||||||
|
> **2026-10-13 复核**:`task_20261005_201312_daily` 这一次并不是用户关了游戏。
|
||||||
|
> 20:23–20:24 日志里 `点击(1,1)空白位置` 刷了 27 次(防卡死兜底),随后
|
||||||
|
> `back_init_menu.py:27: 无法返回主界面,尝试重启游戏`——是 AALC 卡在未知界面后
|
||||||
|
> **自己杀掉并重启了游戏**,窗口丢失是结果而不是原因。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 坑 14:会话模型——RDP 与自动化**互斥** ★★★★★
|
||||||
|
|
||||||
|
(详细记录见 `docs/feedback/2026-10-04/README.md`,此处只记要点)
|
||||||
|
|
||||||
|
```text
|
||||||
|
会话在物理 console、无人远程连接 → ✅ 自动化正常
|
||||||
|
用户用 RDP 连着 → ❌ 会话被夺走, 显示面被拆
|
||||||
|
GetCursorPos/SetCursorPos 返回 err=5
|
||||||
|
BitBlt=0
|
||||||
|
```
|
||||||
|
|
||||||
|
`tscon <id> /dest:console` 能修,但**Windows 拒绝移动正在被使用的会话**。
|
||||||
|
必须先让用户断开。
|
||||||
|
|
||||||
|
看门狗 `keep_display.ps1` 只在会话为 `Disc`(确认无人连接)时动作,
|
||||||
|
有人在用绝不插手。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 附:自动化链路一览
|
||||||
|
|
||||||
|
```text
|
||||||
|
scripts/keep_display.ps1 会话掉 Disc 时提权 tscon 重挂 console(看门狗)
|
||||||
|
scripts/session_state.py WTS API 查会话状态(qwinsta 在计划任务里没输出)
|
||||||
|
scripts/render_check.py BitBlt 渲染自检
|
||||||
|
scripts/mcp_probe.py MCP 握手 + 单次工具调用
|
||||||
|
scripts/levelup.py 长按→详情→升级→同步(含 EXP 条反推等级)
|
||||||
|
scripts/auto_cycle.py 一轮:刷材料→升级→同步→前后对比
|
||||||
|
```
|
||||||
|
|
||||||
|
`auto_cycle.py` **刻意只做一轮,不做无限循环**——由外层按轮驱动,
|
||||||
|
便于每轮核对与随时中止,避免无人监督地长时间空转。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 战果
|
||||||
|
|
||||||
|
```text
|
||||||
|
daily 完整成功轮次 10 次(6/6 选队 · 0 卡死 · 0 错误)
|
||||||
|
升级人格 5 个(Rosespanner 04→36, N Corp 14→33,
|
||||||
|
Zwei 14→33, LCB Sinner 17→33, LCB Sinner 17→30)
|
||||||
|
同步成功 Rosespanner(三阶: 技能3 + 新被动 Chronic Fatigue)
|
||||||
|
N Corp(三阶)
|
||||||
|
账号等级 037 → 041
|
||||||
|
狂气 2896 → 3476(只增不减,一分未花)✅
|
||||||
|
```
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# 2026-10-05 人格升级自动化与选队定位缺陷
|
||||||
|
|
||||||
|
接 `docs/feedback/2026-10-04/`。这一天的工作从"能刷"推进到"能养":
|
||||||
|
把**人格升级/同步**这条原本只存在于 GUI 的链路自动化,并定位到一个会
|
||||||
|
静默选错队伍的配置陷阱。
|
||||||
|
|
||||||
|
## 结果
|
||||||
|
|
||||||
|
```text
|
||||||
|
daily 一轮 18 分钟,exit 0,0 错误
|
||||||
|
自动化一整轮 刷材料 -> 升级 -> 同步 -> 前后对比,约 20 分钟
|
||||||
|
实测升级 N Corp. Mittelhammer Lv.14 -> Lv.26
|
||||||
|
实测升级 Rosespanner Workshop Fixer Lv.04 -> Lv.36
|
||||||
|
HP 87->173,Defense Level 4->36
|
||||||
|
实测同步 Rosespanner Uptie 二阶->三阶
|
||||||
|
解锁 Skill 3「Saddled Tasks」+ 新被动 Chronic Fatigue
|
||||||
|
```
|
||||||
|
|
||||||
|
## 一、人格详情页是长按打开的 ★
|
||||||
|
|
||||||
|
**这是整件事的关键,也是最反直觉的一点。**
|
||||||
|
|
||||||
|
罪人界面(Sinners → Identities)的卡片:
|
||||||
|
|
||||||
|
| 操作 | 结果 |
|
||||||
|
|---|---|
|
||||||
|
| 单击 | 只是**选中/取消选中**(在队伍预设里增删成员) |
|
||||||
|
| 长按 | **打开人格详情页** |
|
||||||
|
|
||||||
|
单击试遍了卡片头像、SELECTED 横幅、名字等级区、双击、右侧面板、
|
||||||
|
左侧罪人栏、右上 `i`、Details 按钮——**全都只能选中**。长按一下,
|
||||||
|
详情页里 `Level Up` 和 `Uptie` 两个按钮就在那里。
|
||||||
|
|
||||||
|
**自动化实现**:lc-mcp 没有 long-press 工具,但 `drag` 是
|
||||||
|
`按下 -> 移动 -> 抬起`,**起点终点相同**就是长按:
|
||||||
|
|
||||||
|
```python
|
||||||
|
probe('drag', {'from_x': x, 'from_y': y, 'to_x': x, 'to_y': y})
|
||||||
|
```
|
||||||
|
|
||||||
|
实测稳定可复现。
|
||||||
|
|
||||||
|
### 完整坐标(1600x900 客户区)
|
||||||
|
|
||||||
|
```text
|
||||||
|
罪人界面网格 列 x = 335 508 681 853 1026 1198
|
||||||
|
行 y = 260 487 715 942
|
||||||
|
人格详情页 Level Up (1164, 235) Uptie (1367, 235)
|
||||||
|
升级(Power-up)窗口 券档位行 y = 383(IV) 490(III) 598(II)
|
||||||
|
「全部投入」按钮 x = 1133(每行同 x)
|
||||||
|
Confirm (1030, 670) Cancel (603, 670)
|
||||||
|
同步(Uptie)窗口 Uptie (1085, 580) 完成 Confirm (772, 661)
|
||||||
|
取消 (526, 660)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 二、`select_team_by_order: true` 会静默选错队伍 ★
|
||||||
|
|
||||||
|
> **2026-10-13 更正**:本节"改回按名字查找即修复"的结论**已被推翻**。
|
||||||
|
> 同日 16:59 那轮按名字查找时,`TEAMS #1` 子串误匹配到 `TEAMS #10`(空预设),
|
||||||
|
> 空转 27 分钟。两种选队方式各有失效条件,最终解法是用 Team Code 把
|
||||||
|
> TEAMS #1 复制到 #2,让落点无所谓。以 `PITFALLS.md` 坑 2–4 为准。
|
||||||
|
|
||||||
|
**这个坑比看上去严重:它不报错,只是"刷了半天什么也没发生"。**
|
||||||
|
|
||||||
|
`tasks/teams/team_formation.py` 有两条选队路径:
|
||||||
|
|
||||||
|
```python
|
||||||
|
if cfg.select_team_by_order:
|
||||||
|
# 按"位置"点击:first_position + 行高 × 序号
|
||||||
|
first_position = [position[0], position[1] + 70 * scale]
|
||||||
|
...
|
||||||
|
auto.mouse_click(first_position[0],
|
||||||
|
first_position[1] + _ordered_team_click_offset(...) * scale)
|
||||||
|
else:
|
||||||
|
# 按"名字"查找
|
||||||
|
team_name_en = [f"TEAMS #{num}", f"TEAMS#{num}", f"TFAMS#{num}"]
|
||||||
|
if team_position := auto.find_language_text(team_name_zh, team_name_en, ...):
|
||||||
|
auto.mouse_action_with_pos(team_position, offset=False)
|
||||||
|
```
|
||||||
|
|
||||||
|
**位置法对列表滚动位置极其脆弱**:代码虽然会先做几次"复位滑动"
|
||||||
|
(`_team_list_reset_swipe_count`),但只要复位不完美、或列表因为
|
||||||
|
某些原因整体位移(实测位移了 75px),点击就会落到隔壁队伍上。
|
||||||
|
|
||||||
|
**实测后果**:
|
||||||
|
|
||||||
|
```text
|
||||||
|
13:21:40 最后一次里程碑
|
||||||
|
... 26 分钟没有任何日志(日志在涨,但只是 OCR 空转)
|
||||||
|
画面 TEAMS #2 | You haven't Deployed any Sinners.
|
||||||
|
Participant Limit 0/5
|
||||||
|
```
|
||||||
|
|
||||||
|
队伍预设被切到了一个**空队伍**,AALC 找不到可用队伍 → 空转。
|
||||||
|
|
||||||
|
**修复**:改回按名字查找。
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
select_team_by_order: false
|
||||||
|
```
|
||||||
|
|
||||||
|
修复后连续 4 次选队全部命中,日志行号从 `team_formation.py:163`
|
||||||
|
(位置法)变成 `:188`(名字法),可以直接从日志判断走的是哪条路:
|
||||||
|
|
||||||
|
```text
|
||||||
|
13:51:12 成功找到队伍 # 1
|
||||||
|
13:54:26 成功找到队伍 # 1
|
||||||
|
13:57:45 成功找到队伍 # 1
|
||||||
|
14:00:27 成功找到队伍 # 1
|
||||||
|
```
|
||||||
|
|
||||||
|
> **教训**:当初开 `select_team_by_order` 是为了绕过"编队名匹配失败"。
|
||||||
|
> 但那个问题的真因是 `sinner_order` 全 0(见 10-04 的记录),
|
||||||
|
> 修好之后名字匹配本来就能用。**为一个症状加的开关,在根因修好后
|
||||||
|
> 反而变成了新的故障源。**
|
||||||
|
|
||||||
|
## 三、等级与材料数值(wiki 查证)
|
||||||
|
|
||||||
|
```text
|
||||||
|
人格等级上限 新手期 Lv.40;通关 Canto V 后每章 +5(当前版本最高 Lv.65)
|
||||||
|
经验本档位 AALC 按 x 从大到小遍历(最右优先),失败才降级——已是最优策略
|
||||||
|
产量低是因为账号只解锁了前几档,不是选错
|
||||||
|
训练券价值 I=50 II=200 III=1000 IV=3000 EXP
|
||||||
|
升级到 Lv.40 累计 91,700 EXP(Lv.34 时已累计 55,048)
|
||||||
|
同步(3★) II=20纺锤 III=80纺锤 IV=150纺锤+50自我碎片
|
||||||
|
跳战 给 +50% 奖励但耗 2 倍体力模组——单位体力效率反而更低
|
||||||
|
```
|
||||||
|
|
||||||
|
**实战消耗**:`Rosespanner` 从 Lv.04 拉到 Lv.36 用了
|
||||||
|
52 张 III 券 + 71 张 II 券(共 66,200 EXP)+ 10 纺锤。
|
||||||
|
|
||||||
|
## 四、新增脚本
|
||||||
|
|
||||||
|
### `scripts/levelup.py`
|
||||||
|
|
||||||
|
长按打开人格详情 → 升级 → 同步。支持:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python levelup.py list # 列出网格里的人格及等级/是否在队伍
|
||||||
|
python levelup.py weakest [--uptie] # 对队内等级最低者执行升级
|
||||||
|
python levelup.py card <col> <row> # 对指定卡片执行
|
||||||
|
python levelup.py back # 返回网格
|
||||||
|
```
|
||||||
|
|
||||||
|
**判定弹窗时不要用模糊字样**:详情页本身就有 `Uptie+`,
|
||||||
|
用它判断"同步弹窗是否打开"会永远为真。要用弹窗独有文本:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# 升级窗口: 'Owned' + 'Cancel'
|
||||||
|
# 同步窗口: 'Currency Req' / 'Stats Increased' / 'Skills Gained'
|
||||||
|
```
|
||||||
|
|
||||||
|
**券余额不要靠券名判定档位**:OCR 会把 `III` 认成小写 `lll`,
|
||||||
|
`'III' in text` 直接失效。改用行的 y 坐标(三行固定为 IV/III/II)。
|
||||||
|
|
||||||
|
### `scripts/auto_cycle.py`
|
||||||
|
|
||||||
|
一整轮:`daily` → 进网格 → 升最弱者 + 同步 → 输出前后对比。
|
||||||
|
|
||||||
|
**刻意只做一轮,不做无限循环**——由外层按轮驱动,便于每轮核对与中止,
|
||||||
|
避免无人监督地长时间空转。
|
||||||
|
|
||||||
|
## 五、又一个自己制造的事故:返回键会进剧情
|
||||||
|
|
||||||
|
恢复流程里我从主界面点左上返回键(85, 75),**结果进了剧情 Drive**,
|
||||||
|
掉进过场动画,还得靠 `reward` 任务的 `返回主界面` 才救回来。
|
||||||
|
|
||||||
|
**修复**:恢复路径只点 `Sinners` 按钮,返回键改成"只在确实需要退一层时"
|
||||||
|
才按,且每次按完都检查是否已到目标界面。
|
||||||
|
|
||||||
|
## 仍未解决 / 已知限制
|
||||||
|
|
||||||
|
1. **升级后界面判断可能残留**:`do_level_up` 里目标等级靠 `▶` 字符解析,
|
||||||
|
OCR 常把它认丢。已加"两段等级且后者更大"的兜底,但仍是启发式。
|
||||||
|
2. **`daily` 产量受账号解锁进度限制**,无法通过配置提高。
|
||||||
|
3. **看门狗只覆盖桌面变黑**,界面走丢(如本次进剧情)仍需外部恢复。
|
||||||
|
4. 本轮只验证了**单个人格连升 + 同步**,多轮连续运行的稳定性未验证。
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
[DEBUG] 2026-10-05 19:10:31,855 [AALC] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:21516
|
||||||
|
[INFO] 2026-10-05 19:10:41,952 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 19:11:01,380 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 19:11:04,733 [AALC] tasks\base\script_task_scheme.py:63: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 19:14:24,645 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本
|
||||||
|
[DEBUG] 2026-10-05 19:14:24,646 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本 耗时:00:03:42
|
||||||
|
[INFO] 2026-10-05 19:14:24,647 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 19:14:44,310 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 19:14:47,582 [AALC] tasks\base\script_task_scheme.py:63: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 19:16:51,519 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本
|
||||||
|
[DEBUG] 2026-10-05 19:16:51,521 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本 耗时:00:02:26
|
||||||
|
[INFO] 2026-10-05 19:16:51,522 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 19:17:11,178 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 19:17:14,456 [AALC] tasks\base\script_task_scheme.py:63: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 19:19:56,614 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本
|
||||||
|
[DEBUG] 2026-10-05 19:19:56,615 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本 耗时:00:03:05
|
||||||
|
[INFO] 2026-10-05 19:19:56,616 [AALC] tasks\base\script_task_scheme.py:264: 开始执行 一次纽本
|
||||||
|
[INFO] 2026-10-05 19:20:18,975 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 19:20:22,251 [AALC] tasks\base\script_task_scheme.py:79: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 19:22:46,986 [AALC] tasks\base\script_task_scheme.py:264: 结束执行 一次纽本
|
||||||
|
[DEBUG] 2026-10-05 19:22:46,987 [AALC] tasks\base\script_task_scheme.py:264: 结束执行 一次纽本 耗时:00:02:50
|
||||||
|
[INFO] 2026-10-05 19:22:46,988 [AALC] tasks\base\script_task_scheme.py:264: 开始执行 一次纽本
|
||||||
|
[INFO] 2026-10-05 19:23:09,326 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 19:23:12,600 [AALC] tasks\base\script_task_scheme.py:79: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 19:25:44,880 [AALC] tasks\base\script_task_scheme.py:264: 结束执行 一次纽本
|
||||||
|
[DEBUG] 2026-10-05 19:25:44,881 [AALC] tasks\base\script_task_scheme.py:264: 结束执行 一次纽本 耗时:00:02:57
|
||||||
|
[INFO] 2026-10-05 19:25:44,881 [AALC] tasks\base\script_task_scheme.py:264: 开始执行 一次纽本
|
||||||
|
[INFO] 2026-10-05 19:26:07,111 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 19:26:10,394 [AALC] tasks\base\script_task_scheme.py:79: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 19:28:20,655 [AALC] tasks\base\script_task_scheme.py:264: 结束执行 一次纽本
|
||||||
|
[DEBUG] 2026-10-05 19:28:20,657 [AALC] tasks\base\script_task_scheme.py:264: 结束执行 一次纽本 耗时:00:02:35
|
||||||
@@ -0,0 +1,400 @@
|
|||||||
|
[DEBUG] 2026-10-05 16:59:13,162 [AALC] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:21516
|
||||||
|
[INFO] 2026-10-05 16:59:23,300 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 16:59:50,767 [AALC] tasks\teams\team_formation.py:188: 成功找到队伍 # 1
|
||||||
|
[DEBUG] 2026-10-05 16:59:54,738 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 16:59:57,457 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:00,183 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:02,922 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:05,625 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:08,344 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:11,071 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:13,782 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:16,501 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:19,229 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:22,038 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:24,777 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:27,478 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:30,210 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:32,939 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:35,643 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:38,339 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:41,072 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:43,804 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:46,541 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:49,314 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:52,059 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:00:54,775 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:00:57,480 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:00,223 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:02,933 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:05,657 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:08,389 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:11,113 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:13,817 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:16,551 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:19,246 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:21,962 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:24,708 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:27,434 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:30,144 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:32,874 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:35,564 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:38,289 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:40,987 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:43,692 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:46,393 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:49,124 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:51,822 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:54,568 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:01:57,276 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:01:59,976 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:02,704 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:05,445 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:08,164 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:10,878 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:13,567 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:16,312 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:19,015 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:21,713 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:24,452 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:27,171 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:29,874 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:32,600 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:35,319 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:37,971 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:40,717 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:43,416 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:46,122 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:48,867 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:51,571 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:54,256 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:02:56,994 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:02:59,729 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:02,424 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:05,136 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:07,824 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:10,546 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:13,236 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:15,952 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:18,661 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:21,349 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:24,072 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:26,788 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:29,487 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:32,204 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:34,941 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:37,627 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:40,361 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:43,114 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:45,815 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:48,563 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:51,268 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:53,963 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:03:56,683 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:03:59,385 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:02,085 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:04,792 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:07,477 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:10,203 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:12,911 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:15,619 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:18,329 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:21,031 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:23,695 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:26,419 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:29,144 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:31,847 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:34,551 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:37,291 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:40,003 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:42,687 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:45,425 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:48,169 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:50,874 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:53,590 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:04:56,290 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:04:58,983 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:01,780 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:04,486 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:07,235 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:09,948 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:12,627 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:15,356 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:18,050 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:20,762 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:23,490 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:26,244 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:28,927 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:31,605 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:34,326 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:37,029 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:39,735 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:42,471 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:45,190 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:47,912 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:50,593 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:53,430 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:05:56,155 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:05:58,835 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:01,562 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:04,262 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:06,963 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:09,721 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:12,447 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:15,158 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:17,864 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:20,561 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:23,271 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:25,971 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:28,662 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:31,374 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:34,103 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:36,825 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:39,523 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:42,256 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:44,959 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:47,674 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:50,414 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:53,109 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:06:55,814 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:06:58,524 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:01,209 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:03,938 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:06,642 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:09,332 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:12,075 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:14,775 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:17,507 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:20,309 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:23,031 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:25,804 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:28,564 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:31,338 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:34,086 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:36,860 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:39,580 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:42,367 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:45,123 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:47,918 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:50,704 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:53,464 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:07:56,202 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:07:58,885 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:01,604 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:04,319 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:07,030 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:09,762 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:12,481 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:15,198 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:17,887 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:20,598 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:23,307 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:26,013 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:28,709 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:31,420 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:34,140 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:36,842 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:39,542 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:42,262 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:44,984 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:47,673 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:50,418 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:53,144 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:08:55,857 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:08:58,584 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:01,298 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:03,983 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:06,720 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:09,451 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:12,151 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:14,863 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:17,547 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:20,268 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:22,980 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:25,688 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:28,400 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:31,119 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:33,777 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:36,541 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:39,207 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:41,907 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:44,623 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:47,339 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:50,076 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:52,804 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:09:55,503 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:09:58,206 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:00,924 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:03,648 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:06,349 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:09,066 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:11,744 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:14,463 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:17,188 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:19,897 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:22,625 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:25,331 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:28,030 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:30,728 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:33,435 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:36,137 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:38,889 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:41,588 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:44,296 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:47,040 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:49,766 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:52,494 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:10:55,225 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:10:57,872 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:00,594 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:03,323 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:06,028 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:08,738 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:11,453 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:14,178 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:16,895 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:19,609 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:22,309 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:25,020 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:27,712 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:30,422 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:33,158 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:35,885 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:38,609 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:41,345 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:44,060 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:46,774 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:49,554 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:52,256 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:11:54,971 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:11:57,686 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:00,400 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:03,125 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:05,815 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:08,521 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:11,248 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:13,971 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:16,667 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:19,397 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:22,104 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:24,835 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:27,534 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:30,237 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:32,940 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:35,688 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:38,381 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:41,086 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:43,811 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:46,528 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:49,222 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:51,978 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:12:54,670 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:12:57,419 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:00,125 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:02,830 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:05,538 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:08,248 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:10,958 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:13,648 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:16,359 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:19,062 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:21,766 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:24,482 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:27,212 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:29,939 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:32,666 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:35,400 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:38,107 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:40,832 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:43,534 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:46,259 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:48,957 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:51,686 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:54,389 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:13:57,106 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:13:59,802 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:02,520 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:05,223 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:07,936 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:10,659 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:13,380 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:16,087 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:18,813 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:21,503 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:24,222 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:26,899 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:29,587 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:32,321 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:35,028 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:37,745 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:40,486 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:43,138 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:45,898 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:48,584 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:51,329 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:54,038 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:14:56,745 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:14:59,448 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:02,234 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:04,929 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:07,682 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:10,421 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:13,119 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:15,820 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:18,615 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:21,358 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:24,124 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:26,832 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:29,534 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:32,251 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:34,979 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:37,674 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:40,402 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:43,122 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:45,823 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:48,554 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:51,312 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:54,015 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:15:56,727 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:15:59,446 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:02,163 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:04,998 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:07,735 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:10,484 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:13,199 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:15,914 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:18,677 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:21,375 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:24,082 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:26,815 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:29,532 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:32,220 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:34,952 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:37,677 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:40,400 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:43,139 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:45,850 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:48,587 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:51,361 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:54,065 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:16:56,793 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:16:59,510 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:02,222 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:04,965 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:07,681 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:10,391 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:13,126 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:15,813 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:18,514 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:21,232 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:23,941 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:26,660 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:29,382 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:32,095 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:34,795 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:37,494 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:40,206 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:42,914 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:45,607 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:17:48,311 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:17:51,077 [AALC] tasks\teams\team_formation.py:225: 对于配队人数OCR得到:/5Mrt
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
[DEBUG] 2026-10-05 17:46:17,983 [AALC] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:21516
|
||||||
|
[INFO] 2026-10-05 17:46:26,095 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 17:46:45,562 [AALC] tasks\teams\team_formation.py:169: 成功找到队伍 # 1
|
||||||
|
[DEBUG] 2026-10-05 17:46:49,709 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:46:52,437 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:46:55,180 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:46:57,903 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:00,609 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:03,319 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:06,024 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:08,730 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:11,452 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:14,161 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:16,884 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:19,598 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:22,315 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:25,020 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:27,739 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:30,468 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:33,191 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:35,918 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:38,646 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:41,372 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:44,071 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:46,794 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:49,547 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:52,267 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:47:54,977 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:47:57,690 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:00,410 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:03,126 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:05,833 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:08,525 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:11,228 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:13,954 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:16,681 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:19,381 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:22,096 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:24,862 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:27,728 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:30,448 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:33,123 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:35,780 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:38,505 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:41,237 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:43,944 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:46,643 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:49,371 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:52,211 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:48:54,991 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:48:57,721 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:49:00,457 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:49:03,199 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:49:06,073 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:49:08,803 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:49:11,509 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:49:14,232 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:49:16,958 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:49:19,648 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:49:22,366 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
|
[DEBUG] 2026-10-05 17:49:25,074 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:0/5
|
||||||
|
[DEBUG] 2026-10-05 17:49:27,825 [AALC] tasks\teams\team_formation.py:231: 对于配队人数OCR得到:/5Mrt
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
[DEBUG] 2026-10-05 20:13:17,882 [AALC] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:21516
|
||||||
|
[INFO] 2026-10-05 20:13:26,177 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 20:13:45,599 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 20:13:48,986 [AALC] tasks\base\script_task_scheme.py:63: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 20:16:23,667 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本
|
||||||
|
[DEBUG] 2026-10-05 20:16:23,668 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本 耗时:00:02:57
|
||||||
|
[INFO] 2026-10-05 20:16:23,668 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 20:16:43,255 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 20:16:46,584 [AALC] tasks\base\script_task_scheme.py:63: 开始执行 一次战斗
|
||||||
|
[INFO] 2026-10-05 20:19:10,296 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本
|
||||||
|
[DEBUG] 2026-10-05 20:19:10,297 [AALC] tasks\base\script_task_scheme.py:262: 结束执行 一次经验本 耗时:00:02:46
|
||||||
|
[INFO] 2026-10-05 20:19:10,298 [AALC] tasks\base\script_task_scheme.py:262: 开始执行 一次经验本
|
||||||
|
[INFO] 2026-10-05 20:19:29,925 [AALC] tasks\teams\team_formation.py:163: 成功找到队伍 # 1
|
||||||
|
[INFO] 2026-10-05 20:19:33,202 [AALC] tasks\base\script_task_scheme.py:63: 开始执行 一次战斗
|
||||||
|
[ERROR] 2026-10-05 20:24:34,086 [AALC] tasks\base\back_init_menu.py:27: 无法返回主界面,尝试重启游戏
|
||||||
|
[WARNING] 2026-10-05 20:24:34,527 [AALC] module\game_and_screen\screen.py:258: 窗口句柄无效,可能窗口已关闭,重新获取, 当前句柄为 9767274
|
||||||
|
[ERROR] 2026-10-05 20:24:34,532 [AALC] module\game_and_screen\screen.py:103: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,533 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[ERROR] 2026-10-05 20:24:34,534 [AALC] module\game_and_screen\screen.py:103: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,535 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[ERROR] 2026-10-05 20:24:34,536 [AALC] module\game_and_screen\screen.py:140: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,537 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[ERROR] 2026-10-05 20:24:34,538 [AALC] module\game_and_screen\screen.py:223: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,539 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[ERROR] 2026-10-05 20:24:34,540 [AALC] module\automation\screenshot.py:188: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,541 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[ERROR] 2026-10-05 20:24:34,542 [AALC] module\automation\screenshot.py:238: 后台截图报错: 未找到游戏窗口句柄,无法截图,尝试重启游戏
|
||||||
|
[ERROR] 2026-10-05 20:24:34,549 [AALC] module\automation\screenshot.py:244: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,550 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,947 [AALC] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:21516
|
||||||
|
[ERROR] 2026-10-05 20:24:34,962 [AALC] tasks\base\script_task_scheme.py:175: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,964 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[ERROR] 2026-10-05 20:24:34,965 [AALC] module\game_and_screen\screen.py:317: 未能获取到游戏窗口
|
||||||
|
[DEBUG] 2026-10-05 20:24:34,966 [AALC] module\game_and_screen\screen.py:42: 枚举窗口列表: []
|
||||||
|
[INFO] 2026-10-05 20:24:34,967 [AALC] module\game_and_screen\screen.py:318: 未能获取到游戏窗口: LimbusCompany,尝试启动游戏
|
||||||
|
[INFO] 2026-10-05 20:24:35,370 [AALC] module\game_and_screen\game.py:58: 使用steam命令启动游戏
|
||||||
|
[DEBUG] 2026-10-05 20:24:40,378 [AALC] module\game_and_screen\game.py:28: 游戏已启动:LimbusCompany.exe,进程ID:17220
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,177 @@
|
|||||||
|
[2026-10-05 01:15:26] ForceDisc: skipping state check (real state was 'Disc')
|
||||||
|
[2026-10-05 01:15:26] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 01:15:58] tscon said: (no output file) | session 2 now: Active
|
||||||
|
[2026-10-05 01:15:58] render check: BitBlt=1 desktop=1920x1080
|
||||||
|
[2026-10-05 08:35:05] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 08:35:37] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 08:35:37] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 08:35:37] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 08:40:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 08:40:36] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 08:40:36] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 08:40:36] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 08:45:05] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 08:45:37] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 08:45:37] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 08:45:37] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 10:39:25] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 10:39:57] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 10:39:57] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 10:39:57] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 10:40:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 10:40:37] tscon said: (no output file) | session 2 now: Active
|
||||||
|
[2026-10-05 10:40:37] render check: BitBlt=1 desktop=1920x1080
|
||||||
|
[2026-10-05 20:35:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 20:35:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 20:35:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 20:35:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 20:40:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 20:40:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 20:40:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 20:40:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 20:45:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 20:45:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 20:45:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 20:45:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 20:50:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 20:50:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 20:50:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 20:50:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 20:55:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 20:55:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 20:55:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 20:55:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:00:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:00:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:00:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:00:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:05:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:05:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:05:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:05:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:10:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:10:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:10:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:10:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:15:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:15:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:15:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:15:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:20:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:20:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:20:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:20:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:25:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:25:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:25:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:25:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:30:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:30:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:30:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:30:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:35:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:35:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:35:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:35:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:40:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:40:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:40:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:40:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:45:03] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:45:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:45:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:45:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:50:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:50:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:50:34] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:50:34] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 21:55:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 21:55:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 21:55:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 21:55:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:00:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:00:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:00:34] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 22:00:34] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:05:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:05:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:05:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 22:05:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:10:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:10:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:10:34] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 22:10:34] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:15:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:15:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:15:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 22:15:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:20:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:20:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:20:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 22:20:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:25:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:25:34] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:25:35] render check: BitBlt=0 desktop=2560x1600
|
||||||
|
[2026-10-05 22:25:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:30:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:30:21] tscon said: (no output file) | session 2 now: Active
|
||||||
|
[2026-10-05 22:30:22] render check: BitBlt=1 desktop=1872x921
|
||||||
|
[2026-10-05 22:35:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:35:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:35:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 22:35:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:40:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:40:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:40:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 22:40:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:45:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:45:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:45:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 22:45:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:50:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:50:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:50:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 22:50:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 22:55:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 22:55:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 22:55:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 22:55:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:00:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:00:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:00:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:00:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:05:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:05:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:05:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:05:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:10:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:10:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:10:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:10:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:15:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:15:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:15:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:15:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:20:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:20:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:20:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:20:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:25:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:25:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:25:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:25:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:30:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:30:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:30:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:30:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:35:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:35:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:35:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:35:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:40:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:40:35] tscon said: (no output file) | session 2 now: Disc
|
||||||
|
[2026-10-05 23:40:35] render check: BitBlt=0 desktop=1600x900
|
||||||
|
[2026-10-05 23:40:35] WARN: session 2 still 'Disc' after tscon
|
||||||
|
[2026-10-05 23:45:02] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-05 23:45:30] tscon said: (no output file) | session 2 now: Active
|
||||||
|
[2026-10-05 23:45:30] render check: BitBlt=1 desktop=1872x921
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
3476
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
[36m[DEBUG] 2026-10-04 20:36:15,784 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 22:25:28,514 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 22:36:09,828 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 22:39:20,384 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:10:05,506 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:19:50,811 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:30:39,791 [AALC] module\automation\automation.py:88: 使用前台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-04 23:47:18,039 [AALC] module\automation\automation.py:88: 使用前台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 01:12:23,477 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 01:23:59,394 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 09:16:59,056 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 09:39:19,197 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 10:53:33,065 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 10:54:25,749 [AALC] module\automation\automation.py:83: 使用后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 11:23:14,474 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 13:49:21,322 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 14:44:59,051 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 14:59:08,556 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 17:27:51,254 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 17:40:47,222 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-05 17:49:33,449 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-06 11:36:06,293 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-06 11:38:08,017 [AALC] module\automation\automation.py:88: 使用前台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-06 11:46:49,310 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-11 11:47:52,478 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
|
[36m[DEBUG] 2026-10-13 10:43:08,152 [AALC] module\automation\automation.py:93: 使用基于窗口移动的后台点击模块[0m
|
||||||
|
[lc_mcp] listening on 127.0.0.1:8765 (token: C:\Users\YWS-HHH\lc_mcp\token)
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
# 运行日志汇总(2026-10-05)
|
||||||
|
|
||||||
|
`full/` 是全部原始日志的 gzip 归档(20 份,9.8 MB → 0.7 MB)。
|
||||||
|
本文件做机器可读的横向对比,便于定位"哪一轮开始出问题、修好没有"。
|
||||||
|
|
||||||
|
## 逐份日志指标
|
||||||
|
|
||||||
|
| 日志 | 完整跑完 | ERROR | `0/5`卡死 | 选队成功 | 完成阶段 | 说明 |
|
||||||
|
|---|---|---|---|---|---|---|
|
||||||
|
| 150033_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 152011_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 154351_daily | — | 0 | 242¹ | 1 | 2 | **卡死①**:预设列表停在底部,`找不到队伍 # 1` |
|
||||||
|
| 161735_daily | ✅ | 0 | 0 | 6 | 12 | 加入 `ensure_team1()` 起飞前检查后正常 |
|
||||||
|
| 163949_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 165908_daily | — | 0 | **306** | 1 | 0 | **卡死②**:子串 bug 选中空预设 `TEAMS #10`,空转 27 分钟 |
|
||||||
|
| 173104_daily | — | 0 | 22¹ | 2 | 2 | 切位置法后手动停止 |
|
||||||
|
| 174057_daily | — | 0 | 24 | 1 | 0 | **卡死③**:位置法 off-by-one,落到 `TEAMS #2` |
|
||||||
|
| 174614_daily | — | 0 | 29 | 1 | 0 | 同上(补丁无效,已还原) |
|
||||||
|
| 175842_daily | ✅ | 0 | 0 | 6 | 12 | **Team Code 复制到 #2 之后,卡死彻底消失** |
|
||||||
|
| 182317_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 184236_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 191026_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 193053_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 195147_daily | ✅ | 0 | 0 | 6 | 12 | 正常 |
|
||||||
|
| 201312_daily | — | **10** | 0 | 3 | 4 | **游戏窗口丢失**,AALC 自行重启了游戏 |
|
||||||
|
| 173724 / 174344 / 174942 / 190424_reward | ✅ | 0 | 0 | 0 | 0 | 恢复用(`reward` 任务内含"返回主界面") |
|
||||||
|
|
||||||
|
¹ 2026-10-13 复核补记:这两轮 OCR 把人数读成了 `-4-0/5`,按 `配队人数OCR得到:0/5`
|
||||||
|
精确匹配会漏掉,原表记为 0。健康轮次里"配队人数OCR得到"这一行一次都不出现,
|
||||||
|
所以直接数这一行(不看后面的数字)才是可靠的卡死指标;`task_status` 的 `stall` 字段就按此实现。
|
||||||
|
|
||||||
|
**判读要点**:`选队成功=6 且 完成阶段=12` 才是一轮真正跑完
|
||||||
|
(3 次经验本 + 3 次纽本,每次各含选队与战斗)。
|
||||||
|
`选队成功` 这一列**会骗人**——卡死②那一轮它也报了 1 次"成功"。
|
||||||
|
|
||||||
|
## 关键转折点
|
||||||
|
|
||||||
|
```text
|
||||||
|
16:17 加入 ensure_team1()(起飞前把预设列表滚到顶)
|
||||||
|
→ 之后 3 轮正常,但 16:59 又卡(子串 bug 是另一条路径)
|
||||||
|
|
||||||
|
17:58 用 Team Code 把 TEAMS #1 复制进 TEAMS #2
|
||||||
|
→ 此后 10 轮 daily 全部 6/6 选队、0 卡死、0 错误
|
||||||
|
```
|
||||||
|
|
||||||
|
## 可读片段(`logs/*.txt`)
|
||||||
|
|
||||||
|
| 文件 | 内容 |
|
||||||
|
|---|---|
|
||||||
|
| `01-good-run-team-selection.txt` | 健康轮次的选队/战斗里程碑,作为"正常长什么样"的对照 |
|
||||||
|
| `02-stall-substring-bug.txt` | 卡死②现场:`成功找到队伍 # 1` 假阳性 + `0/5` 刷屏 306 次 |
|
||||||
|
| `03-stall-offbyone-0of5.txt` | 卡死③现场:位置法落到空预设 |
|
||||||
|
| `04-crash-window-lost.txt` | 游戏窗口丢失 + AALC 自行重启游戏 |
|
||||||
|
|
||||||
|
## 怎么自己复现判读
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# 单份日志的卡死次数(0/5 出现次数是最灵敏的故障指标)
|
||||||
|
$log = 'task_20261005_165908_daily.log'
|
||||||
|
(Get-Content $log | Where-Object { $_ -match '配队人数OCR得到' }).Count
|
||||||
|
|
||||||
|
# 是否完整跑完(12 = 3经验本 + 3纽本,各含一次编队与战斗)
|
||||||
|
(Get-Content $log | Where-Object { $_ -match '结束执行 一次(经验|纽)本' }).Count
|
||||||
|
```
|
||||||
@@ -0,0 +1,153 @@
|
|||||||
|
# 2026-10-13 Windows 实机测试计划
|
||||||
|
|
||||||
|
本计划给在 Windows 游戏机上执行测试的人或 agent 用。被测内容是提交 `2190f57` 及之前的
|
||||||
|
`6b129dd`(分支 `codex/feedback-unattended-setup-20261004`),这两个提交只在 Linux 上跑过单元测试
|
||||||
|
(201 项),**还没有在游戏里跑过**。
|
||||||
|
|
||||||
|
按顺序执行。每一步都写了"通过标准",不满足就停下,记录现象,跳到最后一节"回传"。
|
||||||
|
**不要为了让测试通过去改代码。** 发现问题如实记录,代码由另一端修。
|
||||||
|
|
||||||
|
## 硬性规则
|
||||||
|
|
||||||
|
- **不得消耗狂气(Lunacy)。** 预检如果报 `set_lunacy_to_enkephalin`,就把配置改成 0,
|
||||||
|
不要设置 `LCP_ALLOW_LUNACY=1` 去绕过。
|
||||||
|
- **不要在主界面点左上角返回键**,会进入剧情 Drive(见 `../2026-10-05/PITFALLS.md` 坑 7)。
|
||||||
|
- 测试期间只能有一个操作者。不要同时用 RDP 手动操作游戏;需要看画面时用 `get_state`。
|
||||||
|
- 测试期间不要从 RDP 断开(会话会掉到 Disc)。如果必须断开,把断开时间记下来,
|
||||||
|
正好可以用来验证看门狗。
|
||||||
|
|
||||||
|
## 0. 拉取与部署
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd <lc-mcp 仓库目录>
|
||||||
|
git fetch origin
|
||||||
|
git checkout codex/feedback-unattended-setup-20261004
|
||||||
|
git pull
|
||||||
|
git log --oneline -3 # 第一行应为 2190f57 或更新的提交
|
||||||
|
git submodule update --init vendor/aalc # AALC 7452fad -> b0f4393
|
||||||
|
cd vendor\aalc; uv sync; cd ..\..
|
||||||
|
Stop-ScheduledTask LcMCPServer; Start-ScheduledTask LcMCPServer # 让服务加载新代码
|
||||||
|
```
|
||||||
|
|
||||||
|
> AALC 的 `config.yaml` 被它自己的 `.gitignore` 排除,submodule 更新不会覆盖它。
|
||||||
|
> 但升级前请先备份一份:`copy vendor\aalc\config.yaml $env:USERPROFILE\lc_mcp\config.yaml.bak-20261013`
|
||||||
|
|
||||||
|
**通过标准**:`vendor\aalc\.venv\Scripts\python.exe scripts\mcp_probe.py get_state` 返回 `"ok": true`,并且带有 `items`。
|
||||||
|
|
||||||
|
## 1. 记录当前配置(只读)
|
||||||
|
|
||||||
|
把以下几项的当前值记进结果里,不需要改:
|
||||||
|
|
||||||
|
```text
|
||||||
|
set_win_size / win_input_type / background_click / set_windows
|
||||||
|
select_team_by_order / daily_teams / teams_active_queue
|
||||||
|
set_lunacy_to_enkephalin
|
||||||
|
teams 里 teams_active_queue 对应队伍的 sinner_order
|
||||||
|
桌面分辨率与游戏客户区尺寸(get_state 返回的 screen.w / screen.h)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2. 坐标缩放:网格识别
|
||||||
|
|
||||||
|
先手动进入 罪人 → Identities 网格,然后执行:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe scripts\levelup.py list
|
||||||
|
```
|
||||||
|
|
||||||
|
**通过标准**:能列出队内人格(`inTeam = Y`),等级大致正确(网格 OCR 本身会有误读,
|
||||||
|
见 PITFALLS 坑 6)。客户区不是 1600×900 时也应能列出来——这一步验证的就是坐标缩放。
|
||||||
|
如果输出 `[warn] 客户区 ... 不是 16:9`,记录下来。
|
||||||
|
|
||||||
|
## 3. 配置预检
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe scripts\mcp_probe.py run_task --% {\"task\":\"reward\"}
|
||||||
|
# 等约 10 秒
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe scripts\mcp_probe.py task_status --% {\"lines\":20}
|
||||||
|
```
|
||||||
|
|
||||||
|
> `--%` 让 PowerShell 把后面的内容原样传给 python。不加 `--%` 的话,
|
||||||
|
> Windows PowerShell 5.1 会吃掉 JSON 里的双引号。
|
||||||
|
|
||||||
|
**通过标准**(二选一,都算通过,记录是哪一种):
|
||||||
|
|
||||||
|
- `reward` 正常跑起来或跑完:说明预检放行;
|
||||||
|
- `state=failed`、`exit_code=3`,`errors` 里带 `preflight:`:说明预检拦下了。把原因原样记录下来。
|
||||||
|
如果原因是真实的配置问题,按提示在 AALC 界面里改好后重试;
|
||||||
|
如果你认为是误报,**不要改配置**,直接记录,跳到"回传"。
|
||||||
|
|
||||||
|
日志里应能看到 `[lc_mcp] patch: 队伍名改为编号精确匹配`。
|
||||||
|
|
||||||
|
## 4. 手动跑完整一轮
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe scripts\auto_cycle.py --mirror 1
|
||||||
|
```
|
||||||
|
|
||||||
|
预计 1–1.5 小时:daily 约 20 分钟,镜牢一局约 40 分钟。运行期间不要操作游戏。
|
||||||
|
|
||||||
|
**通过标准**:
|
||||||
|
|
||||||
|
- 退出码 0,并且最后一行是 `=== 一轮结束 ...`;
|
||||||
|
- `~\lc_mcp\cycles\` 下生成了同名的 `cycle_*.log` 与 `cycle_*.json`;
|
||||||
|
- daily 对应的任务日志里,`配队人数OCR得到` 出现 0 次,选队成功 6 次;
|
||||||
|
- 确实选中了 TEAMS #1(不是 #10)。日志行号 `team_formation.py:188` 表示按名字查找,
|
||||||
|
`:163` 表示按位置查找(`select_team_by_order: true`)。记录走的是哪一条:
|
||||||
|
名字查找这条路径正是精确匹配补丁覆盖的地方;
|
||||||
|
- 升级/同步一步:报 OK 的项在游戏里确实生效了(等级变化、同步阶数变化),
|
||||||
|
报 FAIL 的项在游戏里确实没生效。**这是验证新判定逻辑的关键,请逐项核对。**
|
||||||
|
|
||||||
|
体力不足导致镜牢失败是预期情况,脚本只会记一条警告,然后继续往下跑。这种情况下记录下来,不算失败。
|
||||||
|
|
||||||
|
## 5. 窗口守护(可选,有条件再做)
|
||||||
|
|
||||||
|
在第 4 步运行期间,如果遇到 RDP 重连或分辨率变化,检查任务日志里有没有:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[lc_mcp] window guard: 客户区 AxB 已调回 CxD
|
||||||
|
```
|
||||||
|
|
||||||
|
不要为了触发它故意去改分辨率;没遇到就记"未触发"。
|
||||||
|
|
||||||
|
## 6. 注册计划任务
|
||||||
|
|
||||||
|
第 4 步通过后再做:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
powershell -ExecutionPolicy Bypass -File scripts\install_unattended.ps1 -At 05:30 -Mirror 1
|
||||||
|
Get-ScheduledTask LcMCPKeepDisplay, LcMCPDailyCycle | Format-List TaskName, State
|
||||||
|
```
|
||||||
|
|
||||||
|
**通过标准**:两个任务的状态都是 `Ready`;`install_unattended.ps1` 没有报 PowerShell 语法错误。
|
||||||
|
如果报的语法错误行号对不上(10-04 坑 6),检查文件是不是带 BOM:开头 3 个字节应为 `EF BB BF`。
|
||||||
|
|
||||||
|
之后让它在第二天 05:30 自动跑一轮,不要人为干预。
|
||||||
|
|
||||||
|
## 7. 看门狗
|
||||||
|
|
||||||
|
计划任务装好后,至少等到看门狗触发一次(会话掉到 Disc 时)。看 `~\lc_mcp\keep_display.log`:
|
||||||
|
|
||||||
|
**通过标准**:新的日志行格式为 `tscon exit=N said: ... | session S now: ...`。
|
||||||
|
不再出现 `(no output file)`;会话号 `S` 应等于游戏进程所在的会话。
|
||||||
|
就算 tscon 仍然失败也照实记录,这一步的目的是拿到真实的退出码和错误输出。
|
||||||
|
|
||||||
|
## 回传
|
||||||
|
|
||||||
|
在本目录下新建 `results/`,放入以下内容,提交并推送到同一分支:
|
||||||
|
|
||||||
|
| 文件 | 内容 |
|
||||||
|
|---|---|
|
||||||
|
| `RESULTS.md` | 第 0–7 步每步写:通过/失败/未执行 + 现象,外加第 1 步记录的配置 |
|
||||||
|
| `cycles/` | `~\lc_mcp\cycles\cycle_*.log` 与 `cycle_*.json`(手动那轮 + 第二天自动那轮) |
|
||||||
|
| `runs/` | 对应时段的 `~\lc_mcp\runs\task_*.log`,大文件先 gzip |
|
||||||
|
| `keep_display.log` | `~\lc_mcp\keep_display.log` |
|
||||||
|
| `captures/` | 失败现场截图(可选),**截图不能露出账号 UID 底栏** |
|
||||||
|
|
||||||
|
**不要提交**:`~\lc_mcp\token`、API key、`config.yaml` 原文件(只在 RESULTS.md 里摘抄上面列的那几项)、
|
||||||
|
完整的会话转录。
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git add docs/feedback/2026-10-13/results
|
||||||
|
git commit -m "2026-10-13 实机测试结果"
|
||||||
|
git push origin codex/feedback-unattended-setup-20261004
|
||||||
|
```
|
||||||
@@ -0,0 +1,361 @@
|
|||||||
|
# 2026-10-13 Windows 实机测试结果
|
||||||
|
|
||||||
|
被测提交:`5818130`(含 `2190f57` / `6b129dd`),分支 `codex/feedback-unattended-setup-20261004`。
|
||||||
|
执行环境:Windows 实机,游戏 `LimbusCompany.exe`(appid 1973530),AALC venv Python 3.13.6。
|
||||||
|
|
||||||
|
**结论速览**
|
||||||
|
|
||||||
|
| 步骤 | 结果 |
|
||||||
|
|---|---|
|
||||||
|
| 0 拉取与部署 | ⚠️ 部分通过(子模块升级被网络挡住) |
|
||||||
|
| 1 记录配置 | ✅ 完成,并发现一个真实配置问题 |
|
||||||
|
| 2 坐标缩放:网格识别 | ✅ 通过 |
|
||||||
|
| 3 配置预检 | ✅ 通过(预检真实拦截过一次,修复后放行) |
|
||||||
|
| 4 完整一轮 | ✅ daily 通过 / 镜牢通过(见下) |
|
||||||
|
| 5 窗口守护 | ✅ 真实触发并修复 |
|
||||||
|
| 6 注册计划任务 | 未执行(等第 4 步确认) |
|
||||||
|
| 7 看门狗 | ✅ 触发成功;**间隔过长已修** |
|
||||||
|
|
||||||
|
**另外修掉 3 个测试过程中实测到的缺陷**(详见「测试期间发现的缺陷」)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 0. 拉取与部署
|
||||||
|
|
||||||
|
| 项 | 结果 |
|
||||||
|
|---|---|
|
||||||
|
| `git fetch` / `checkout` / `pull` | ✅ 快进 `0153414` → `5818130` |
|
||||||
|
| `git submodule update --init vendor/aalc` | ❌ **失败**:需 `b0f4393`,GitHub 直连超时 21s,6 个加速镜像全部不通,本机代理未运行(`127.0.0.1:6789` 无监听) |
|
||||||
|
| `uv sync`(vendor/aalc) | 未执行(子模块未更新) |
|
||||||
|
| 重启 `LcMCPServer` | ✅ 让服务加载新代码 |
|
||||||
|
| 通过标准:`get_state` 返回 `ok:true` 且有 `items` | ✅ |
|
||||||
|
|
||||||
|
**偏差**:AALC 仍是 `7452fad`(不是计划要求的 `b0f4393`)。
|
||||||
|
已逐项确认补丁依赖的接口在该版本都存在,可继续:
|
||||||
|
|
||||||
|
```
|
||||||
|
✅ module\automation\automation.py:497 def find_str_in_text
|
||||||
|
✅ module\game_and_screen\screen.py:407 def adjust_win_size
|
||||||
|
✅ module\game_and_screen\screen.py:111 def width
|
||||||
|
✅ module\game_and_screen\screen.py:124 def height
|
||||||
|
✅ module\automation\screenshot.py:191 isMinimized
|
||||||
|
✅ app\__init__.py:17 set_windows
|
||||||
|
```
|
||||||
|
|
||||||
|
**单元测试**:`201/201 通过`(`Ran 201 tests in 12.776s / OK`),与计划里 Linux 上的 201 项一致。
|
||||||
|
|
||||||
|
> ⚠️ README 里写的命令 `python -m unittest discover -s tests` 在 Python 3.13 + Windows 上**跑不起来**:
|
||||||
|
> `tests/` 没有 `__init__.py`,新版 unittest 报 `ImportError: Start directory is not importable`。
|
||||||
|
> 可用调用是 **`python -m unittest discover -s tests -t tests`**。建议把 README 那行改掉。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. 记录配置(只读)
|
||||||
|
|
||||||
|
```text
|
||||||
|
set_win_size : 900 (计划执行前为 900,中途因桌面受限降到 720,最终回到 900)
|
||||||
|
win_input_type : window_move
|
||||||
|
background_click : true
|
||||||
|
set_windows : true
|
||||||
|
select_team_by_order : false (计划执行前是 true;为让补丁覆盖的名字查找生效改成 false)
|
||||||
|
daily_teams : 1
|
||||||
|
teams_active_queue : [1]
|
||||||
|
set_lunacy_to_enkephalin: 0 ← 符合"不得消耗狂气"的硬性规则
|
||||||
|
teams['1'].sinner_order : [1,2,3,4,5,6,7,8,9,10,11,12] (12 个非空)
|
||||||
|
```
|
||||||
|
|
||||||
|
**执行期间的客户区与桌面**
|
||||||
|
|
||||||
|
| 时刻 | 桌面 | 客户区 | 说明 |
|
||||||
|
|---|---|---|---|
|
||||||
|
| RDP 连接中 | 1872x922 | 1278x656 | **比例 1.948,非 16:9** |
|
||||||
|
| 降到 720 后 | 1872x922 | 1280x720 | 16:9 ✅ |
|
||||||
|
| 用户断开 RDP 后 | 1920x1080 | 1280x720 | 看门狗重挂 console |
|
||||||
|
| 最终(900) | 1920x1080 | **1600x900** | 16:9 ✅ |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. 坐标缩放:网格识别 ✅ 通过
|
||||||
|
|
||||||
|
在三段不同的客户区上执行 `levelup.py list`,均能正确列出队内人格:
|
||||||
|
|
||||||
|
```
|
||||||
|
col row lv inTeam name
|
||||||
|
0 0 34 Y Blade Lineage Salsu
|
||||||
|
1 0 35 Y W Corp.L2 Cleanup Agent
|
||||||
|
...
|
||||||
|
客户区 1602x902,比例 1.7761 ≈ 16:9 → 未触发 [warn],行为正确 ✅
|
||||||
|
```
|
||||||
|
|
||||||
|
- OCR 坐标折算回 1600x900、点击坐标折算回当前客户区的逻辑工作正常。
|
||||||
|
- 非 16:9 时才应告警;1602x902 比例在容差内不告警,**没有误报** ✅
|
||||||
|
- 等级读取正确(网格 OCR 的已知误读见 PITFALLS 坑 6,属预期)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. 配置预检 ✅ 通过(含一次真实拦截)
|
||||||
|
|
||||||
|
### 3.1 预检真实拦住了一个配置问题
|
||||||
|
|
||||||
|
首次 `reward` 启动被预检拦下:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[ERROR] [lc_mcp] preflight: set_win_size=900 需要 1616x940 的窗口(含标题栏),
|
||||||
|
桌面只有 1872x922: 窗口会被压扁成非 16:9, 模板匹配全部失效。
|
||||||
|
改小 set_win_size(如 720)或调大桌面分辨率
|
||||||
|
```
|
||||||
|
|
||||||
|
**实测印证预检是对的**(这不是误报):
|
||||||
|
|
||||||
|
```text
|
||||||
|
set_win_size = 900 期望客户区 1600x900
|
||||||
|
实测客户区 = 1278x656 比例 1.948 ≠ 16:9
|
||||||
|
```
|
||||||
|
|
||||||
|
根因:当时是 RDP 会话,桌面被客户端协商成 `1872x922`,高度差 18px 装不下 940。
|
||||||
|
按提示降到 720 后放行。
|
||||||
|
|
||||||
|
### 3.2 放行路径
|
||||||
|
|
||||||
|
改 720 后:
|
||||||
|
|
||||||
|
```
|
||||||
|
task=daily/reward/mirror/all -> ✅ 放行
|
||||||
|
日志可见: [lc_mcp] patch: 队伍名改为编号精确匹配 ← 计划要求看到的那行
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3.3 `reward` 任务随后崩溃 —— AALC 上游 bug(与本次被测代码无关)
|
||||||
|
|
||||||
|
```text
|
||||||
|
File "D:\lc-mcp\vendor\aalc\tasks\daily\get_prize.py", line 44, in get_pass_prize
|
||||||
|
from config import cfg
|
||||||
|
ModuleNotFoundError: No module named 'config'
|
||||||
|
```
|
||||||
|
|
||||||
|
- 全仓库**只有这 1 处** import 顶层 `config`(正确写法是 `from module.config import cfg`),且没有 `config.py`。
|
||||||
|
- 它是个**懒惰导入**,只在"收日常/周常奖励重试耗尽(`loop_count < 0`)"的错误分支才执行。
|
||||||
|
- 调用点只有 `script_task_scheme.py:113`(`to_get_reward`)和 `:119`;
|
||||||
|
**`Daily_task_wrapper` 不经过它**,所以 daily/镜牢不受影响。
|
||||||
|
- 升级到 `b0f4393` 很可能已修,但本机拿不到该提交,无法验证。
|
||||||
|
|
||||||
|
**判定**:第 3 步按"放行"分支算**通过**;这条崩溃单独记录,属 AALC 上游缺陷。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. 完整一轮 ✅ 通过
|
||||||
|
|
||||||
|
命令:`python scripts\auto_cycle.py --mirror 1`
|
||||||
|
|
||||||
|
### 4.1 第一次与第二次尝试:纽本阶段卡死(已修,见下)
|
||||||
|
|
||||||
|
前两次 daily 都在**纽本阶段**卡死,外层由新加的卡死检测停掉并重跑:
|
||||||
|
|
||||||
|
```text
|
||||||
|
13:04:42 daily 卡死后重跑 (1/1)
|
||||||
|
13:25:57 刷材料: FAIL (卡死({'no_progress': 719}), 已停止任务 elapsed=1264s)
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4.2 找到根因:分辨率 720 导致模板匹配退化
|
||||||
|
|
||||||
|
同一份模板、同一台机器,**只改分辨率**:
|
||||||
|
|
||||||
|
| 模板 | 720 客户区 | 900 客户区 |
|
||||||
|
|---|---|---|
|
||||||
|
| `home/luxcavation_assets.png` | 0.97 | — |
|
||||||
|
| `luxcavation/thread_assets.png` | **0.34** ❌ | **0.96** ✅ |
|
||||||
|
| `luxcavation/thread_enter_up80_assets.png` | **0.18** ❌ | **0.93** ✅ |
|
||||||
|
|
||||||
|
720 下纽本页签认不出(低于阈值),AALC 就对着主界面上的 Luxcavation 按钮反复盲点、永不进入 → 空转。
|
||||||
|
切回 **900**(此时桌面已是 console 的 1920x1080,装得下)后立即正常。
|
||||||
|
|
||||||
|
> 这量化了 PITFALLS 里"720 太小导致匹配退化"那句经验之谈:**0.34 vs 0.96**。
|
||||||
|
|
||||||
|
### 4.3 最终结果
|
||||||
|
|
||||||
|
```text
|
||||||
|
13:28:01 一轮开始
|
||||||
|
13:50:50 daily 结束: state=succeeded elapsed=1324s exit=0 ← 22 分钟,正常退出
|
||||||
|
13:50:50 mirror 已启动 {'count': 1}
|
||||||
|
```
|
||||||
|
|
||||||
|
**daily 指标**(`task_20261013_132845_daily.log`):
|
||||||
|
|
||||||
|
| 指标 | 值 |
|
||||||
|
|---|---|
|
||||||
|
| 选队成功 / 失败 | **6 / 0** |
|
||||||
|
| 选队路径 | **`team_formation.py:188` × 6**(名字查找,正是精确匹配补丁覆盖的路径) |
|
||||||
|
| 经验本 / 纽本 | 各 3 次全部完成 |
|
||||||
|
| `配队人数OCR得到` 出现次数 | **0** |
|
||||||
|
| ERROR | **0** |
|
||||||
|
| 客户区 | 1600x900(16:9) |
|
||||||
|
|
||||||
|
**关键验证:6 次选队全部选中 `TEAMS #1`,没有一次误选 `TEAMS #10`。**
|
||||||
|
这正是 2026-10-05 那个"`TEAMS #1` 是 `TEAMS #10` 子串"缺陷的修复目标,补丁 `[lc_mcp] patch: 队伍名改为编号精确匹配` 在真实游戏里**验证有效**。
|
||||||
|
|
||||||
|
**镜牢指标**:`获取奖励卡` → `寻路` → `一次战斗` → `商店` 流程正常推进,ERROR=0,无进展判据始终为健康值。
|
||||||
|
|
||||||
|
```text
|
||||||
|
14:50:03 mirror 结束: state=succeeded elapsed=3553s exit=0 ← 59 分钟,正常退出
|
||||||
|
14:50:14 狂气校验(刷后): OK (狂气 5614 -> 5864) ← 增加 250,全程未消耗
|
||||||
|
14:51:59 === 一轮结束, 耗时 5038s === ← 总 84 分钟, exit code 0
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4.4 升级/同步判定:逐项与游戏核对(计划要求的关键项)
|
||||||
|
|
||||||
|
计划要求"报 OK 的项在游戏里确实生效了,报 FAIL 的项在游戏里确实没生效"。逐项核对结果:
|
||||||
|
|
||||||
|
| 项 | 脚本判定 | 游戏内实际 | 一致性 |
|
||||||
|
|---|---|---|---|
|
||||||
|
| **升级** | **FAIL**<br>`Confirm 后 Power-up 窗口仍在, 已取消` | **实际成功**:`Zwei Assoc. South Section 6` Lv.33 → **Lv.40 (MAX)**,券也确实被扣除 | ❌ **假阴性** |
|
||||||
|
| **同步** | FAIL<br>`同步未生效(通常缺自我碎片)` | 确实未生效:`[Season8] Sinclair's Egoshard (Owned:2)`,Tier IV 需要 50 个 | ✅ 判定正确 |
|
||||||
|
|
||||||
|
**升级这一项是假阴性,已定位并修复**(详见「缺陷 3」)。旧代码在"Confirm 后弹窗仍在"时**直接判 FAIL,没有回去读详情页这个事实来源**。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. 窗口守护 ✅ 真实触发
|
||||||
|
|
||||||
|
用户在测试期间断开 RDP,会话掉 `Disc`,窗口被压扁。任务日志里出现:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[lc_mcp] window guard: 客户区 1022x575 已调回 1280x720
|
||||||
|
```
|
||||||
|
|
||||||
|
无需人为构造 —— 这是真实故障现场被自动修复。**通过**。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. 注册计划任务
|
||||||
|
|
||||||
|
**未执行**。等第 4 步完全确认后再做(计划要求)。已确认 `scripts/install_unattended.ps1` 语法可解析、无 BOM 问题。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 7. 看门狗 ✅ 触发成功,但间隔过长(已修)
|
||||||
|
|
||||||
|
### 7.1 触发记录
|
||||||
|
|
||||||
|
```text
|
||||||
|
[2026-10-13 11:57:19] session 2 is Disc -> re-attaching to console via elevated tscon
|
||||||
|
[2026-10-13 11:57:24] tscon exit=0 said: (no output) | session 2 now: Active
|
||||||
|
[2026-10-13 11:57:24] render check: BitBlt=1 desktop=1920x1080
|
||||||
|
```
|
||||||
|
|
||||||
|
- 新日志格式符合要求:**带的退出码 `exit=0`**,不再是 10-05 那种 `(no output file)` ✅
|
||||||
|
- 会话号取自游戏进程所在会话,正确 ✅
|
||||||
|
- 渲染自检 `BitBlt=1`,桌面确实在出图 ✅
|
||||||
|
|
||||||
|
### 7.2 但间隔 5 分钟太长(已修)
|
||||||
|
|
||||||
|
用户断开后,看门狗最长 5 分钟才动作。这段黑屏期里 AALC 疯狂报错:
|
||||||
|
|
||||||
|
```text
|
||||||
|
全部 134 条 ERROR 集中在同一分钟 11:56:
|
||||||
|
67 次 寻找图片失败: cannot unpack non-iterable NoneType object
|
||||||
|
47 次 图片识别出现错误:OpenCV(4.x) imgproc ...
|
||||||
|
20 次 图片识别出现错误:OpenCV(4.x) ...
|
||||||
|
11:57:19 看门狗抢回 console
|
||||||
|
11:57:32 运行恢复正常(选队成功、0/5卡死=0)
|
||||||
|
```
|
||||||
|
|
||||||
|
**已修**:间隔 5 分钟 → **1 分钟**(Windows 计划任务的下限,`PT30S` 会被拒:"任务 XML 包含格式不正确或超出范围的值")。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 测试期间发现的缺陷(均已修复)
|
||||||
|
|
||||||
|
### 缺陷 1:卡死检测认不出"界面误判"型卡死 🔴 严重
|
||||||
|
|
||||||
|
**现象**:AALC 把镜牢入口误认成经验本界面,对着误匹配模板连点 **18 分钟**不停。
|
||||||
|
|
||||||
|
**根因**:`lc_mcp/tasks.py` 的判据只有一条,且是内容相关的:
|
||||||
|
|
||||||
|
```python
|
||||||
|
STALL_MARKERS = {'empty_team': '配队人数OCR得到'}
|
||||||
|
STALL_THRESHOLD = 10
|
||||||
|
```
|
||||||
|
|
||||||
|
它只认 2026-10-05 那种"空队伍"卡死。这次的卡死里日志**一直在涨**(AALC 在拼命点击),计数法完全抓不到,`task_status` 不返回 `stall`,外层只能干等 **45 分钟超时**。
|
||||||
|
|
||||||
|
**修法**:加一条与日志内容无关的判据 —— **里程碑(`开始执行`/`结束执行`)多久没前进**。
|
||||||
|
|
||||||
|
```python
|
||||||
|
STALL_NO_PROGRESS_S = int(os.environ.get('LCP_STALL_NO_PROGRESS_S', 10 * 60))
|
||||||
|
PROGRESS_SCAN_BYTES = 8 * 1024 * 1024 # 卡死时日志涨得快,回溯窗口要给足
|
||||||
|
```
|
||||||
|
|
||||||
|
**验证**:
|
||||||
|
|
||||||
|
```
|
||||||
|
修复前 : 卡死日志 -> {} 什么都没报
|
||||||
|
修复后 : 卡死日志 -> {'no_progress': 1193} 1193 秒 ≈ 20 分钟无进展
|
||||||
|
回归 : 正常运行日志 -> {} 不误报
|
||||||
|
端到端 : 13:04:42 daily 卡死后重跑 (1/1) 外层 11 分钟就接住并自愈(原来要等 45 分钟)
|
||||||
|
```
|
||||||
|
|
||||||
|
新增 `tests/test_stall_no_progress.py`(5 个用例,含"里程碑离文件尾很远也要能找到"),
|
||||||
|
全套 **206/206 通过**。
|
||||||
|
|
||||||
|
### 缺陷 2:看门狗间隔 5 分钟 → 最长 4 分钟黑屏 🟠 中
|
||||||
|
|
||||||
|
见第 7 节。已改为 1 分钟,并同步修改 `scripts/install_unattended.ps1`(否则重装又变回去)。
|
||||||
|
|
||||||
|
### 缺陷 3:升级判定的假阴性 —— 弹窗没关就判失败 🟠 中
|
||||||
|
|
||||||
|
**现象**:`Zwei Assoc. South Section 6` 从 Lv.33 一路升到 **Lv.40(MAX)**,券也确实扣了,
|
||||||
|
但脚本报 `升级: FAIL (Confirm 后 Power-up 窗口仍在, 已取消)`。
|
||||||
|
|
||||||
|
**根因**:`scripts/levelup.py` 在 Confirm 之后,只要还看得到 Power-up 弹窗就直接返回失败,
|
||||||
|
**根本没走到读详情页那一步**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
click(*POWERUP_CONFIRM)
|
||||||
|
time.sleep(4.5)
|
||||||
|
txt = screen_text(state().get('items', []))
|
||||||
|
if 'Owned' in txt and 'Cancel' in txt:
|
||||||
|
click(*POWERUP_CANCEL)
|
||||||
|
return False, 'Confirm 后 Power-up 窗口仍在, 已取消(券=%s)' % before # ← 没核实就下结论
|
||||||
|
lvl1, _, bar1 = read_detail(...) # ← 这行执行不到
|
||||||
|
```
|
||||||
|
|
||||||
|
**真相是**:弹窗残留 ≠ 升级没生效。详情页的等级/经验条才是事实来源。
|
||||||
|
|
||||||
|
**修法**:弹窗还在时,先关掉它,**再读详情页**,用与成功路径同一个判据下结论:
|
||||||
|
|
||||||
|
```python
|
||||||
|
lingering = 'Owned' in txt and 'Cancel' in txt
|
||||||
|
if lingering:
|
||||||
|
click(*POWERUP_CANCEL); time.sleep(2)
|
||||||
|
lvl1, _, bar1 = read_detail(hint=target or lvl0 or hint) # 事实来源
|
||||||
|
if lvl0 is not None and lvl1 is not None and lvl1 > lvl0:
|
||||||
|
return True, desc
|
||||||
|
...
|
||||||
|
if lingering:
|
||||||
|
return False, 'Confirm 后 Power-up 窗口仍在且等级未变: ' + desc
|
||||||
|
```
|
||||||
|
|
||||||
|
**验证**:新增 `test_popup_still_open_but_level_rose_is_still_success`,
|
||||||
|
原有的 `test_popup_still_open_after_confirm_is_cancelled`(弹窗没关**且**详情页无变化仍判失败)保持通过。
|
||||||
|
全套 **207/207 通过**。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 测试期间的环境处置(非代码修改)
|
||||||
|
|
||||||
|
| 项 | 处置 | 理由 |
|
||||||
|
|---|---|---|
|
||||||
|
| `vendor/aalc/config.yaml` → `set_win_size` | 900 → 720 → **900** | RDP 桌面装不下 900;用户断开后 console 是 1080p,回到计划原值 |
|
||||||
|
| `vendor/aalc/config.yaml` → `select_team_by_order` | true → **false** | 让补丁覆盖的"名字精确匹配"路径真正被执行(原配置走位置查找,补丁等于没测) |
|
||||||
|
| 计划任务 `LcKeepDisplay` | 重新启用,间隔 5min → **1min** | 用户要求"持久化窗口" |
|
||||||
|
| `config.yaml` 备份 | → `~\lc_mcp\config.yaml.bak-20261013` | 计划要求 |
|
||||||
|
|
||||||
|
**狂气**:`set_lunacy_to_enkephalin: 0`,全程未消耗。轮次中的 `狂气校验` 多次读数并记录基线,**没有任何一次下降**。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 未完成 / 待办
|
||||||
|
|
||||||
|
1. **子模块升级**(`7452fad` → `b0f4393`)—— 需要可访问 GitHub 的网络(开代理)。这是唯一被环境挡住的计划项。
|
||||||
|
2. **第 6 步注册计划任务** —— 等第 4 步确认后执行。
|
||||||
|
3. `tasks/daily/get_prize.py:44` 的 `from config import cfg` —— AALC 上游缺陷,建议升级子模块后复核;若 `b0f4393` 未修,值得上游提 issue。
|
||||||
|
4. README 的单元测试命令 `unittest discover -s tests` 在 Python 3.13 + Windows 上不成立,建议改为 `-s tests -t tests`。
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"ok": false,
|
||||||
|
"result": "本轮失败: 刷材料未成功",
|
||||||
|
"started": "2026-10-13 11:51:50",
|
||||||
|
"elapsed_s": 2016,
|
||||||
|
"args": {
|
||||||
|
"mirror": 1,
|
||||||
|
"target": 34,
|
||||||
|
"retries": 1,
|
||||||
|
"report_dir": "C:\\Users\\YWS-HHH\\lc_mcp\\cycles"
|
||||||
|
},
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"step": "狂气校验",
|
||||||
|
"ok": true,
|
||||||
|
"info": "读不到狂气余额, 跳过校验",
|
||||||
|
"at": "11:51:52"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "刷材料",
|
||||||
|
"ok": false,
|
||||||
|
"info": "state=idle elapsed=1926s",
|
||||||
|
"at": "12:25:27"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"log": "C:\\Users\\YWS-HHH\\lc_mcp\\cycles\\cycle_20261013_115150.log"
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"ok": false,
|
||||||
|
"result": "本轮失败: 刷材料未成功",
|
||||||
|
"started": "2026-10-13 12:42:57",
|
||||||
|
"elapsed_s": 2580,
|
||||||
|
"args": {
|
||||||
|
"mirror": 1,
|
||||||
|
"target": 34,
|
||||||
|
"retries": 1,
|
||||||
|
"report_dir": "C:\\Users\\YWS-HHH\\lc_mcp\\cycles"
|
||||||
|
},
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"step": "狂气校验",
|
||||||
|
"ok": true,
|
||||||
|
"info": "读不到狂气余额, 跳过校验",
|
||||||
|
"at": "12:42:58"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "刷材料",
|
||||||
|
"ok": false,
|
||||||
|
"info": "卡死({'no_progress': 719}), 已停止任务 elapsed=1264s",
|
||||||
|
"at": "13:25:57"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"log": "C:\\Users\\YWS-HHH\\lc_mcp\\cycles\\cycle_20261013_124257.log"
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"ok": true,
|
||||||
|
"result": "一轮结束",
|
||||||
|
"started": "2026-10-13 13:28:01",
|
||||||
|
"elapsed_s": 5038,
|
||||||
|
"args": {
|
||||||
|
"mirror": 1,
|
||||||
|
"target": 34,
|
||||||
|
"retries": 1,
|
||||||
|
"report_dir": "C:\\Users\\YWS-HHH\\lc_mcp\\cycles"
|
||||||
|
},
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"step": "狂气校验",
|
||||||
|
"ok": true,
|
||||||
|
"info": "读不到狂气余额, 跳过校验",
|
||||||
|
"at": "13:28:03"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "刷材料",
|
||||||
|
"ok": true,
|
||||||
|
"info": "state=succeeded elapsed=1324s",
|
||||||
|
"at": "13:50:50"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "镜牢 x1",
|
||||||
|
"ok": true,
|
||||||
|
"info": "state=succeeded elapsed=3553s",
|
||||||
|
"at": "14:50:03"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "狂气校验(刷后)",
|
||||||
|
"ok": true,
|
||||||
|
"info": "狂气 5614 -> 5864 (增加, 更新基线)",
|
||||||
|
"at": "14:50:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "升级/同步",
|
||||||
|
"ok": false,
|
||||||
|
"info": "升级: FAIL (Confirm 后 Power-up 窗口仍在, 已取消(券={'IV': 18, 'III': 110, 'II': 60})); 同步: FAIL (同步未生效(通常缺自我碎片): aFixerZwei Association | Uptie | ssoc. South Section 6 | ptie ++ | Skills Upgraded | CurrencyReq. | [Season8] Sinclair's | (Owned:2) | Egoshard | Baton | 38 | A)",
|
||||||
|
"at": "14:51:47"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"log": "C:\\Users\\YWS-HHH\\lc_mcp\\cycles\\cycle_20261013_132801.log"
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,162 @@
|
|||||||
|
# 对接说明:镜牢选队(2026-11-14)
|
||||||
|
|
||||||
|
给**云端开发**看的交接文件。目标:云端改代码 → 我这边 `git pull` → 实机回归 → 回传结果。
|
||||||
|
所以这里写清楚「改哪、别动哪、怎么验、验到什么程度算过」。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. 仓库与运行环境
|
||||||
|
|
||||||
|
| 项 | 值 |
|
||||||
|
|---|---|
|
||||||
|
| 仓库 | `https://git.lingll.icu/yws/lc-mcp` |
|
||||||
|
| 当前分支 | `codex/feedback-unattended-setup-20261004` |
|
||||||
|
| 本机路径 | `D:\lc-mcp`(AALC 在 `vendor/aalc`,**submodule,不要改**) |
|
||||||
|
| Python | `vendor\aalc\.venv\Scripts\python.exe`(3.13) |
|
||||||
|
| 游戏 | `D:\SteamLibrary\steamapps\common\Limbus Company`(Steam build 26593955) |
|
||||||
|
| 汉化 | `LLC_zh-CN` 2026111301(自定义语言,游戏基础语言 = 韩语,OCR 语言识别为 `zh_cn`) |
|
||||||
|
| 分辨率 | 客户区 1280×720,`set_win_size: 720` |
|
||||||
|
| 常驻服务 | 计划任务 `LcMCPServer`,`127.0.0.1:8765`,日志 `~/lc_mcp/server.log` |
|
||||||
|
|
||||||
|
**测试入口**(本机验证统一用这个,不要直接跑 `main.py`):
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
D:\lc-mcp\vendor\aalc\.venv\Scripts\python.exe -X utf8 -c "from lc_mcp import ..." # 单测
|
||||||
|
# 实机:通过 MCP 工具 run_task mirror,或
|
||||||
|
D:\lc-mcp\vendor\aalc\.venv\Scripts\python.exe -X utf8 -m lc_mcp.aalc_task mirror "{\"count\": 1}"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. 本次改动(两个文件,均为增量,不改 vendor)
|
||||||
|
|
||||||
|
### `lc_mcp/aalc_patches.py`
|
||||||
|
|
||||||
|
新增一段(文件末尾,`install_default_battle_team` 之后):
|
||||||
|
|
||||||
|
```python
|
||||||
|
SYSTEM_TEAM_NAMES = {...} # 体系(system 字符串) → 游戏内编队名元组
|
||||||
|
TEAM_LIST_X_MAX / TEAM_LIST_Y_MIN / TEAM_LIST_Y_MAX # 左侧列表命中范围(客户区像素)
|
||||||
|
TEAM_HEADER = (170, 520, 90, 150) # 顶栏队名位置,用来确认选中
|
||||||
|
|
||||||
|
_team_ocr(auto) -> [(text, x, y), ...] # 整屏 OCR 后清洗,不排序
|
||||||
|
_in_list(x, y) / _in_header(x, y) # 区域判定
|
||||||
|
_scroll_team_list(auto, direction, times, distance) # +1=回顶部, -1=往下翻
|
||||||
|
_header_is(auto, name) / _wait_header(auto, name) # 顶栏确认(3 次 × 1.2s)
|
||||||
|
_select_team_by_name(auto, names, log, rounds=4) # 主流程,返回 bool
|
||||||
|
install_system_team_selection(log=print) # 安装补丁,返回原始 select_battle_team
|
||||||
|
```
|
||||||
|
|
||||||
|
### `lc_mcp/aalc_task.py`
|
||||||
|
|
||||||
|
- import 里加 `install_system_team_selection`
|
||||||
|
- `run()` 里、`install_default_battle_team` 之后:
|
||||||
|
|
||||||
|
```python
|
||||||
|
if task in ('mirror', 'all'):
|
||||||
|
install_system_team_selection(log=log)
|
||||||
|
```
|
||||||
|
|
||||||
|
### 挂载点为什么是 `tasks.mirror.mirror`
|
||||||
|
|
||||||
|
`tasks/mirror/mirror.py` 在模块顶部 `from tasks.teams.team_formation import ... select_battle_team`,
|
||||||
|
之后 `select_mirror_team()` 用的是**模块全局名**。所以补丁必须替换
|
||||||
|
`tasks.mirror.mirror.select_battle_team`;改 `tasks.teams.team_formation.select_battle_team` 对镜牢无效
|
||||||
|
(日常本那条补丁 patch 的是 `scheme` 命名空间,两者互不影响)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. 接口契约(改的时候必须保住)
|
||||||
|
|
||||||
|
1. **`select_battle_team(num) -> bool`**:True = 已选中并确认在编队界面;False = 没选上,调用方会重试(最多 6 次)后抛 `unableToFindTeamError`。
|
||||||
|
2. **不能有副作用**:补丁只点击,不写配置文件;`Mirror.__init__` 的包装只读 `team_setting`。
|
||||||
|
3. **坐标空间**:一律按**客户区像素**(当前 1280×720)。缩放用 `cfg.set_win_size / 1440`,跟 AALC 其它地方一致。
|
||||||
|
4. **`auto._run_ocr_for_text(my_crop=None)` 返回 `{text: [cx, cy]}`**:`cx/cy` 是 box 中心;同名文本会互相覆盖,**因此 `_team_ocr` 改成返回列表**,别再退回 dict。
|
||||||
|
5. **不要用 `my_crop` 做界面裁剪**:实测裁剪坐标语义不可靠(裁 `(0,0,190,584)` 会读到右侧面板),统一「整屏 OCR + 坐标过滤」。
|
||||||
|
6. **点完必须验顶栏**:只点不验会出现「日志说成功,其实没换队」。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. 体系队名表(本机账号实际状态,2026-11-14 截图核对)
|
||||||
|
|
||||||
|
左侧编队列表,从上到下:
|
||||||
|
|
||||||
|
| 顺序 | 列表显示 | 说明 | `team_system` |
|
||||||
|
|---|---|---|---|
|
||||||
|
| 1 | 剧情关卡 | 剧情用预设 | — |
|
||||||
|
| 2 | 斩击 | 打击体系队 | 7 |
|
||||||
|
| 3 | 突刺 | 突刺体系队 | 8 |
|
||||||
|
| 4 | 打击 | 打击体系队 | 9 |
|
||||||
|
| 5 | 烧伤 | 烧伤体系队 | 0 |
|
||||||
|
| 6 | 流血 | 流血体系队(**当前镜牢在用**) | 1 |
|
||||||
|
| 7 | 震颤 | 震颤体系队 | 2 |
|
||||||
|
| 8 | 破裂 | 破裂体系队 | 3 |
|
||||||
|
| 9 | 沉沦 | 沉沦体系队 | 5 |
|
||||||
|
| 10 | 呼吸法 | 呼吸体系队(代码里另有别名「呼吸」) | 4 |
|
||||||
|
| 11 | 充能 | 充能体系队 | 6 |
|
||||||
|
| 12+ | 编队#13 … 编队#40 | 默认名残留,未使用 | — |
|
||||||
|
|
||||||
|
> `#1`~`#12` 已不存在。任何按 `编队#N` 找队的逻辑在这个号上都会失败,这是本次问题的根。
|
||||||
|
>
|
||||||
|
> 队名改动后必须同步 `SYSTEM_TEAM_NAMES`;补丁只做**精确匹配**(`text == name`),不做子串。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. 验证方法
|
||||||
|
|
||||||
|
### 5.1 单测(不需要游戏)
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd D:\lc-mcp
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe -m unittest discover -s tests -t tests -v
|
||||||
|
```
|
||||||
|
|
||||||
|
本次新增 `tests/test_system_team_selection.py`,覆盖:映射表完整性、区域判定边界、
|
||||||
|
`install_system_team_selection` 的挂载/回退行为(用假模块,不依赖 AALC/Windows)。
|
||||||
|
|
||||||
|
### 5.2 实机回归(需要游戏在运行)
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# 1) 确认补丁挂上
|
||||||
|
# 日志里应有:[lc_mcp] patch: 镜牢按体系名选队
|
||||||
|
# 2) 起一局
|
||||||
|
run_task(task="mirror", count=1)
|
||||||
|
# 3) 看这几行
|
||||||
|
# [lc_mcp] 镜牢体系 bleed -> 目标编队 流血
|
||||||
|
# [lc_mcp] patch: 已按体系名选中编队 流血 (或「当前已经是编队 流血, 无需切换」)
|
||||||
|
# [INFO] 楼层识别结果:当前为第1层
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5.3 验收清单
|
||||||
|
|
||||||
|
- [ ] `select_battle_team` 返回 True 后,顶栏队名 = 目标队名(截图为准,不看日志)
|
||||||
|
- [ ] 连续两局:第二局走「已经是目标队,无需切换」分支
|
||||||
|
- [ ] 把 `team_system` 改成 7(斩击)能选到「斩击」;改回 1 能选回「流血」
|
||||||
|
- [ ] 目标名不存在时(例如临时改成 `编队#999`)能 4 轮内返回 False,不卡死、不乱点
|
||||||
|
- [ ] 列表滚动后不会把队伍页留在错误位置(后续 `罪人编队` 步骤仍能正常执行)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. 云端开发注意事项
|
||||||
|
|
||||||
|
- **不要改 `vendor/aalc`**:submodule 固定 commit,改了本地能跑、更新就丢。所有行为差异走 `lc_mcp/aalc_patches.py`。
|
||||||
|
- **不要引入本机绝对路径**(`D:\...`、`C:\Users\YWS-HHH\...`);已有代码里 `LC_*` / `LCP_*` 环境变量是既有限制。
|
||||||
|
- **失败要显式**:选队失败返回 False 让上层重试,不要静默 fallback 到 `编队#N`(这号没有 `#N`,会选中错的队)。
|
||||||
|
- **日志格式**:沿用 `[lc_mcp] ...` 前缀,`task_status` 的 `errors` 扫描依赖 `[ERROR]`。
|
||||||
|
- 新增依赖请加到 `pyproject.toml`,并确认 `uv sync` 后 `vendor/aalc/.venv` 能跑。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 7. 拉取与回传
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd D:\lc-mcp
|
||||||
|
git fetch origin
|
||||||
|
git checkout <云端分支>
|
||||||
|
git pull
|
||||||
|
git submodule update --init --recursive
|
||||||
|
vendor\aalc\.venv\Scripts\python.exe -m unittest discover -s tests -t tests
|
||||||
|
# 实机回归 → 结果写回 docs/feedback/<日期>/
|
||||||
|
```
|
||||||
|
|
||||||
|
我这边回归后会补:跑团日志、截图路径、验收清单勾选结果,以及新发现的问题。
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
# 2026-11-14 汉化更新 + 镜牢选队根因与局内决策实测
|
||||||
|
|
||||||
|
本次两件事:**更新游戏汉化**,以及**把「镜牢一直选不上队」查清楚并修掉**。
|
||||||
|
后半段顺带核了镜牢局内的四类决策(走位 / 卡包 / 饰品 / 商店),发现两处真实缺陷,一并记在
|
||||||
|
[`BACKLOG.md`](../../BACKLOG.md) 里。
|
||||||
|
|
||||||
|
## 环境
|
||||||
|
|
||||||
|
| 项 | 值 |
|
||||||
|
|---|---|
|
||||||
|
| 系统 | Windows 10 Pro 19045,远程会话,无人值守 |
|
||||||
|
| 游戏 | Steam 版 Limbus Company,`D:\SteamLibrary\steamapps\common\Limbus Company` |
|
||||||
|
| 游戏版本 | 更新前 build `26318463`(1.118.1,11-05)→ 更新后 build `26593955`(11-14 08:20 落盘) |
|
||||||
|
| 汉化 | `LimbusCompany_Data\Lang\LLC_zh-CN`,2026101602 → **2026111301** |
|
||||||
|
| AALC | `vendor/aalc`(git submodule,未改源码) |
|
||||||
|
| 运行方式 | MCP `run_task mirror`,AALC 子进程,前台点击 + 罗技驱动点击 |
|
||||||
|
|
||||||
|
## 一、汉化更新
|
||||||
|
|
||||||
|
上游:`LocalizeLimbusCompany/LocalizeLimbusCompany` release `2026111301`(2026-11-13 发布)。
|
||||||
|
装法按官方手动流程:**干净重装**(移走旧 `LLC_zh-CN` → 解压新包到游戏根目录),字体包不随
|
||||||
|
release 发布,单独从 `Fonts/LLCCN-Font.7z` 来(自 2025-04 未变,直接沿用旧文件)。
|
||||||
|
|
||||||
|
| 步骤 | 结果 |
|
||||||
|
|---|---|
|
||||||
|
| 旧包备份 | `D:\codex\_limbus_l10n_dl\backup-LLC_zh-CN-2026101602`(2350 文件 / 45.1 MB) |
|
||||||
|
| 下载 | `LimbusLocalize_2026111301.zip` 6,080,228 B,SHA256 `E63782A0…6E14665` |
|
||||||
|
| 解压 | 2385 个文件,全部 SHA256 与 zip 内一致(0 不匹配) |
|
||||||
|
| JSON 校验 | 2384 个 JSON 全部可解析,0 空文件 |
|
||||||
|
| 字体 | `Font\Context\ChineseFont.ttf` 22.8 MB,TTF 头 `00 01 00 00` 正常 |
|
||||||
|
| 配置 | `Lang\config.json` 未动,仍 `"lang": "LLC_zh-CN"` |
|
||||||
|
|
||||||
|
相对旧版新增:`walpu10` 系列事件/敌人/EGO、`Mirror8` 成就与卡包、`StoryData E100X–E103X`、
|
||||||
|
新人格语音(`P10316/P10617/P10717/P11017/P11116`)、`SynergyKeyword`、`EventVerificationUIText` 等 35 个文件。
|
||||||
|
|
||||||
|
> 注:游戏第一次启动时弹「当前游戏客户端不是最新版本」,必须先更 Steam 客户端;更完再跑就正常了。
|
||||||
|
|
||||||
|
## 二、镜牢选队:为什么一直「选不上」
|
||||||
|
|
||||||
|
### 症状
|
||||||
|
|
||||||
|
`run_task mirror` 后 AALC 卡在选队:每 5 秒对左侧列表 OCR 一次,页码一路往上爬,然后重来。
|
||||||
|
|
||||||
|
```text
|
||||||
|
08:34:27 开始执行 寻找队伍
|
||||||
|
08:34:50 OCR: 编队#13 编队#14 编队#15 编#16
|
||||||
|
08:35:00 OCR: 编队#19 编队#20 编队#21 …
|
||||||
|
08:35:15 OCR: 编队#33 编队#34 编队#35 …
|
||||||
|
08:37:00 又回到 编队#19 … ← 第 N 轮
|
||||||
|
```
|
||||||
|
|
||||||
|
### 根因
|
||||||
|
|
||||||
|
`config.yaml` 里 `team_number: 1`,AALC 的 `select_battle_team()` 只会按
|
||||||
|
`编队#N` / `TEAMS #N` 这个**字面名字**去 OCR 找队(`tasks/teams/team_formation.py:167`)。
|
||||||
|
|
||||||
|
而这个号的编队**是按体系命名的**,不是默认名;`编队#1`~`#12` 也已经不存在:
|
||||||
|
|
||||||
|
```text
|
||||||
|
左侧列表(从上到下):
|
||||||
|
剧情关卡
|
||||||
|
斩击 突刺 打击 烧伤 流血 震颤 破裂 沉沦 呼吸法 充能 ← 10 支按体系命名
|
||||||
|
编队#13 … 编队#40 ← 默认名残留
|
||||||
|
```
|
||||||
|
|
||||||
|
所以找 `编队#1` 永远找不到 → 翻满 10 页 → 重试 6 轮 → `无法寻得队伍,请检查队伍名称是否为默认名称`。
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
|
||||||
|
新增 `install_system_team_selection()`(`lc_mcp/aalc_patches.py`),在 `mirror`/`all` 任务里挂载。
|
||||||
|
**不改 `vendor/aalc` 源码**,只替换 `tasks.mirror.mirror` 命名空间里的 `select_battle_team`:
|
||||||
|
|
||||||
|
```
|
||||||
|
team_system → 队名
|
||||||
|
0 烧伤 / 1 流血 / 2 震颤 / 3 破裂 / 4 呼吸法(兼容"呼吸")
|
||||||
|
5 沉沦 / 6 充能 / 7 斩击 / 8 突刺 / 9 打击
|
||||||
|
```
|
||||||
|
|
||||||
|
选队流程:
|
||||||
|
|
||||||
|
1. 先看顶栏是不是已经是这支队(是就直接返回,不动列表)
|
||||||
|
2. 不是 → 点空白、把列表向下拖回顶部
|
||||||
|
3. 整屏 OCR,只保留左侧列表区域(`x<260`,`300<y<640`)里的条目
|
||||||
|
4. **精确匹配**队名 → 点击 → 轮询顶栏最多 3 次 × 1.2 s,顶栏变成该名字才算成功
|
||||||
|
5. 没找到就往下翻(每次 3 拖),最多 4 轮;4 轮都失败返回 False,交给 AALC 原来那层重试
|
||||||
|
|
||||||
|
两个细节是踩出来的:
|
||||||
|
|
||||||
|
- **不能用 `my_crop`**:AALC 里裁剪坐标的语义跟客户区像素对不上(实测裁 `(0,0,190,584)` 会 OCR 出右侧面板的文字),所以改成整屏 OCR 再按坐标过滤。
|
||||||
|
- **点完不能立刻判**:顶栏要 1~2 帧才刷新,实测 0.8 s 时还没变,1.2 s×3 才稳。
|
||||||
|
|
||||||
|
实测日志:
|
||||||
|
|
||||||
|
```text
|
||||||
|
[lc_mcp] 镜牢体系 bleed -> 目标编队 流血
|
||||||
|
[lc_mcp] 编队列表里找到 流血 @(130,492)
|
||||||
|
[lc_mcp] patch: 已按体系名选中编队 流血
|
||||||
|
[INFO] 楼层识别结果:当前为第1层
|
||||||
|
[INFO] 此次选择卡包关键词:信仰
|
||||||
|
```
|
||||||
|
|
||||||
|
(第二次跑因为上一次已经停在「流血」上,直接命中「当前已经是编队 流血, 无需切换」。)
|
||||||
|
|
||||||
|
## 三、局内四类决策:代码实际怎么走
|
||||||
|
|
||||||
|
| 决策 | 现状 | 代码位置 |
|
||||||
|
|---|---|---|
|
||||||
|
| 走位 | **被配置降级成瞎走**:`mirror_keyboard_simple_pathfinding: true` → 每层只按 ↑ 选最上面节点 | `mirror.py:1128` → `search_road.py:145` |
|
||||||
|
| 卡包 | 规则明确:关键词权重表取最高,低于阈值就刷新(≤3 次) | `select_theme_pack.py` |
|
||||||
|
| 饰品三选一 | **不看体系**:排白棉花 → 排「已持有」→ 拿第一张 | `mirror.py:1360` |
|
||||||
|
| 商店 | 必买/必卖清单为 **0**(路径写错),只剩体系强化/刷新/合成/治疗 | `in_shop.py:157`、`tasks/mirror/__init__.py` |
|
||||||
|
| 事件 | 固定:能「判定」就判定,然后永远点第一个选项 | `mirror.py:1230` |
|
||||||
|
|
||||||
|
### 3.1 走位
|
||||||
|
|
||||||
|
```python
|
||||||
|
# search_road.py:145
|
||||||
|
for attempt in range(2):
|
||||||
|
auto.key_press("up")
|
||||||
|
if _keyboard_enter_succeeded():
|
||||||
|
return True
|
||||||
|
```
|
||||||
|
|
||||||
|
关掉 `mirror_keyboard_simple_pathfinding` 才会走 Dijkstra(`search_road.py:735`),节点代价表
|
||||||
|
(`search_road.py:609`,越小越优先):
|
||||||
|
|
||||||
|
| 节点 | 代价 |
|
||||||
|
|---|---|
|
||||||
|
| event | 1 |
|
||||||
|
| shop | 2 |
|
||||||
|
| battle | 4 |
|
||||||
|
| boss / focused / abnormality | 6 |
|
||||||
|
| risky_encounter | 7 |
|
||||||
|
| 未知 | 999(不可达) |
|
||||||
|
|
||||||
|
### 3.2 卡包
|
||||||
|
|
||||||
|
`preferred_thresholds: 0`,权重表在 `theme_pack_list.yaml`(多数 0、`chick: 1`、未知 -5)。
|
||||||
|
本次三次选择:`信仰` → `赌徒` → `情感懒`。
|
||||||
|
|
||||||
|
### 3.3 饰品三选一
|
||||||
|
|
||||||
|
`acquire_ego_gift()`:排除白棉花(除非 `not_skip_whitegossypium`)→ OCR「已持有 / Owned」→
|
||||||
|
优先没持有的 → 都一样拿第一张。**没有任何体系判断**。
|
||||||
|
|
||||||
|
### 3.4 商店(真实缺陷)
|
||||||
|
|
||||||
|
`tasks/mirror/__init__.py` 用的是旧路径:
|
||||||
|
|
||||||
|
```python
|
||||||
|
must_purchase_path = "./assets/images/share/mirror/shop/must_purchase"
|
||||||
|
```
|
||||||
|
|
||||||
|
实际图片在 `./assets/images/default/share/mirror/shop/must_purchase/`,`assets/images/share` 不存在。
|
||||||
|
运行时验证:
|
||||||
|
|
||||||
|
```
|
||||||
|
must_purchase 0
|
||||||
|
must_be_abandoned 0
|
||||||
|
fusion_result 0
|
||||||
|
```
|
||||||
|
|
||||||
|
本次日志实锤(进店 51 秒,一件没买):
|
||||||
|
|
||||||
|
```text
|
||||||
|
10:03:03 开始执行 镜牢商店
|
||||||
|
10:03:16 开始购买必买项
|
||||||
|
10:03:54 结束执行 镜牢商店 耗时 00:00:51
|
||||||
|
```
|
||||||
|
|
||||||
|
## 四、本次跑团(进行中记录)
|
||||||
|
|
||||||
|
```text
|
||||||
|
09:39:53 task mirror start
|
||||||
|
09:40:07 选队 → 流血(已是目标队,跳过切换)
|
||||||
|
09:41:16 第1层
|
||||||
|
09:54:33 第1层结束 13:07,卡包:赌徒
|
||||||
|
09:55:20 寻路出错 → 自动重进镜牢,恢复
|
||||||
|
10:03:54 第2层商店 51 秒(未购买,见 3.4)
|
||||||
|
10:07:32 第2层结束 12:59,卡包:情感懒
|
||||||
|
10:17:37 第3层战斗中
|
||||||
|
```
|
||||||
|
|
||||||
|
## 五、仍未验证的边界
|
||||||
|
|
||||||
|
- 选队补丁只在「流血」上实测过;其它 9 个体系名未实跑(队列切换、`teams_active_queue` 轮转时尤其没验)。
|
||||||
|
- 队名如果被改(比如改成「流血队」),补丁会失配 → 需要同步改 `SYSTEM_TEAM_NAMES`。
|
||||||
|
- `my_crop` 语义不一致这件事只在这个界面验证过,别的界面不一定。
|
||||||
|
- 关掉 `mirror_keyboard_simple_pathfinding` 后 Dijkstra 的稳定性没验(当初开它就是为躲鼠标拖地图卡死)。
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# 2026-10-22 自动运行代码复核
|
||||||
|
|
||||||
|
上游更新已单独提交为 `4e5d63a`:AALC 子模块从 `b0f4393` 更新到 `e1d1749`。
|
||||||
|
本次围绕自动运行、模块合成、人格升级和任务状态进行复核。
|
||||||
|
|
||||||
|
## 依据与范围
|
||||||
|
|
||||||
|
- 最近的完整实机归档是 `docs/feedback/2026-10-13/results/`,含 10 份任务日志和 3 份轮次报告。
|
||||||
|
- `docs/WATCH.md` 补充了 10 月 16~17 日的 OCR、显示会话和模块轨迹记录。
|
||||||
|
- 当前 Linux 环境没有 `~/lc_mcp` 实机运行目录。本次使用仓库归档和离线复现,没有连接或操作 Windows 游戏。
|
||||||
|
- 10 月 17 日跨轮模块减少已由用户确认为人工升阶消费,不能据此推断合成丢档。
|
||||||
|
|
||||||
|
## 已确认与修复
|
||||||
|
|
||||||
|
| 优先级 | 触发条件与原行为 | 修复与验证 |
|
||||||
|
|---|---|---|
|
||||||
|
| P1 | 缺模块弹窗出现时,`auto_cycle.py` 在 AALC 仍运行时点 Cancel;协议拒绝输入,但调用方不检查返回值,仍记为已处理 | 轮询只读识别,连续 3 次出现才停止任务,停止成功后重新识别并发送 Cancel。停止或点击失败不记成功,也不重跑。用真实 `Server` 和假引擎验证互斥顺序 |
|
||||||
|
| P1 | 升级子脚本返回非零或抛出异常,但 `lc_ui.run()` 丢弃退出码;输出没有 `FAIL` 时会报告“无需升级” | 升级和网格子脚本启用退出码检查;异常写入轮次失败报告,保留 stdout/stderr。测试实际启动一个崩溃子进程 |
|
||||||
|
| P1 | `levelup.cmd_progress()` 所有详情均打不开、或详情等级读不到时,仍可能退出 0;升级成功但同步失败也退出 0 | 未核实的等级不退回网格猜测;未核实候选和同步失败返回非零,确认全部候选达标才正常跳过 |
|
||||||
|
| P2 | 狂气读取遇到前两次同值就提前返回;合成脚本还用不同帧的标签和数字配对 | 采完所有帧后取唯一众数,平票返回未知;每次只读取一帧并在其中找标签和数字。刷取脚本同时支持 `UNACY` 和 0~99 的余额 |
|
||||||
|
| P2 | 合成前是新余额、合成后落入旧 OCR 值集合时,仅凭后值就跳过告警 | 前后都属于已知读法才按已知抖动处理;集合之外的变化提示核查,不直接宣称发生消费 |
|
||||||
|
| P2 | 合成后模组数小于合成前,末尾分支仍返回成功,合成数量为负 | 下降明确返回失败,数量为 0;报告不再把负数当已合成。重复调用主流程时清除上一轮字段 |
|
||||||
|
| P2 | 任务完全停止写日志时,文件 mtime 不再增长,“无进展秒数”也被冻结 | 在线判定使用当前时间;离线回放可传入观察时刻。回放真实卡死 daily、健康 daily 和镜牢日志,确认区分正确 |
|
||||||
|
| P3 | 实机报告指出 Windows Python 3.13 的测试发现命令存在导入问题;值守说明仍混用旧的 OCR 判据 | README 改用 `unittest discover -s tests -t tests`,值守手册同步当前免费页签和 OCR 判据 |
|
||||||
|
|
||||||
|
10 月 13 日领奖日志的 `ModuleNotFoundError: No module named 'config'` 已由此次 AALC
|
||||||
|
更新中的 `218c6f7` 修复:`tasks/daily/get_prize.py` 使用 `from module.config import cfg`。
|
||||||
|
无需在本仓库再加运行时补丁。
|
||||||
|
|
||||||
|
## 验证与限制
|
||||||
|
|
||||||
|
测试使用 Python 3.12 / Linux,374 项全部通过(16.813 秒),比更新前增加 22 项。
|
||||||
|
覆盖真实协议输入互斥、失败子进程、OCR 帧序列、负合成数量、重复轮次状态,以及归档日志回放。
|
||||||
|
`git diff --check` 通过。全套验证命令:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
python3 -m unittest discover -s tests -t tests
|
||||||
|
git diff --check
|
||||||
|
```
|
||||||
|
|
||||||
|
仍需在 Windows 实机核验新版 AALC 的领奖、镜牢和实际截图行为。多帧投票无法消除稳定的
|
||||||
|
OCR 误读;已知读法集合只来自该账号历史观测,不是通用余额验证。狂气消费限制仍依赖
|
||||||
|
免费合成页签和 `set_lunacy_to_enkephalin: 0`。720 客户区模板匹配退化的历史证据也仍成立,
|
||||||
|
没有自动修改游戏配置或分辨率。
|
||||||
|
|
||||||
|
## 补充:DSH 提交的合入范围与审查
|
||||||
|
|
||||||
|
用户提到 DeepSeek 的提交后,进一步查到作者 `DSH <dsh@local.invalid>` 的
|
||||||
|
`66418dc`(2026-10-03)。Git 元数据没有模型标记,以下按该提交的可核实来源追踪。
|
||||||
|
|
||||||
|
- `95ae060` 的提交说明明确记录:从 `66418dc` 引入 `tasks.py` 的报错展示及两项测试。
|
||||||
|
该提交已在 `main` 和当前分支历史中。
|
||||||
|
- `66418dc` 的编队滑动补丁未合入。合入说明记录了分段移动过短导致后台不发移动事件、
|
||||||
|
前台停顿和行程不一致等问题。重写版本 `dd4259d` 留在 `origin/fix/team-scroll-patch`,
|
||||||
|
当前分支没有 `aalc_input_patch.py`,没有启用这套补丁。
|
||||||
|
- `e490a29` 是同一作者的实机记录提交,保存在 `archive/story-test-20261003` 标签中。
|
||||||
|
|
||||||
|
已合入的报错检测有一处 **P1 漏报**:只扫描最后 400 行,并受 `tail()` 的 64 KiB 上限限制。
|
||||||
|
因此一场战斗失败后继续输出调试日志,最终 exit 0 时会失去 `errors` 字段。用含早期
|
||||||
|
“未能进入战斗”及 5000 行后续输出的真实子进程可复现。
|
||||||
|
|
||||||
|
修复为任务退出后流式扫描整份日志,仅保留最后 3 条报错并缓存结果。任务仍以退出码给出
|
||||||
|
`state`;`errors` 表示本次日志出现过错误,不代表所有步骤都失败。新任务重新计算自己的结果。
|
||||||
|
回归覆盖早期错误被大量日志挤出、错误条数上限、日志删除后的结果保留和下一轮状态清理。
|
||||||
|
补充修复后的全套测试:377 项通过(18.235 秒);`git diff --check` 通过。
|
||||||
|
|
||||||
|
## 补充:远程驱动输入与窗口补丁复核
|
||||||
|
|
||||||
|
本次审查范围是远程新增的 `a6e987e`、`2902cf5`、`7eafbdd`、`e2de126`。
|
||||||
|
从 `e2de126` 开始修复;未修改 AALC 子模块或目标机配置。
|
||||||
|
|
||||||
|
| 优先级 | 已确认问题 | 修复 |
|
||||||
|
|---|---|---|
|
||||||
|
| P1 | 直接把 `auto.mouse_click` 绑到代理, 覆盖了真实 `Automation.init_input()` 后续安装的交互门和输入锁, 业务线程可能与监控线程同时点击 | 通过 `_run_business_interaction` 重建入口, 继续使用相同的门与锁 |
|
||||||
|
| P1 | `task=all` 提前进入 `script_task()` 跳过安装; 游戏异常重启后 `init_game()` 再次重建后端也会丢失代理 | 在任务作用域包装 `scheme.init_game`, 每次初始化结束后安装, 退出恢复原入口; 模拟器和未启用时保持原流程 |
|
||||||
|
| P1 | `mouse_click_blank` 仍绑定原后端; 物理点击未确认游戏焦点, 失败的坐标转换也被当作有效坐标 | 接管空白点击; 校验 console 会话、游戏焦点、Win32 查询结果; 失败拒绝点击, 保留暂停和 `move_back` 参数 |
|
||||||
|
| P1 | 驱动按下后异常没有保证抬起; 代理抬起时坐标查询失败也会跳过释放 | 将释放置于 `finally`; 任务中断继续向上抛出 |
|
||||||
|
| P1 | 前台补丁把 pywin32 `AttachThreadInput` 成功返回的 `None` 转为 `False`, 导致未解除线程绑定 | 无异常即记录已绑定, 前台设置成功或失败都解除绑定 |
|
||||||
|
| P2 | `GetForegroundWindow()!=0` 被误当作 console 会话依据, RDP 内也可能存在前台窗口; 查询失败被当作加速关闭或坐标 `(0,0)` | 比较进程会话 ID 与活动 console ID; 显式检查查询返回值, 设置指针宽度正确的 API 类型; 使用独立 DLL 绑定避免影响其他库 |
|
||||||
|
| P2 | 点击/拖动的窗口设置、激活、按下前等待位于清理范围之外; 鼠标释放失败也能跳过位置恢复 | 共用覆盖完整操作的窗口作用域, 透明度和已取得的原位置分别保证恢复 |
|
||||||
|
| P2 | 截图自检只对窗口 DC 执行 BitBlt, 与提交说明声称的 PrintWindow 路径不符; 位图仍选在 DC 内时尝试删除 | 窗口自检调用 PrintWindow(flags=3), 按客户区大小创建位图, 恢复旧对象后释放 GDI 资源; 屏幕 BitBlt 作为后备 |
|
||||||
|
| P3 | 新增测试直接导入 pyautogui 和 ctypes.windll, 在 Linux 上 399 项中有 2 项报错 | 隔离平台接口, 补充真实 AALC 接线、任务入口、故障清理和采集 API 的回归测试 |
|
||||||
|
|
||||||
|
会话判断依据 Microsoft 的 [GetForegroundWindow 文档](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getforegroundwindow)
|
||||||
|
和 [WTSGetActiveConsoleSessionId 文档](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-wtsgetactiveconsolesessionid)。
|
||||||
|
线程绑定接口核对了 [pywin32 源码](https://github.com/mhammond/pywin32/blob/main/win32/src/win32process.i)
|
||||||
|
及 [接口文档](https://mhammond.github.io/pywin32/win32process__AttachThreadInput_meth.html)。
|
||||||
|
|
||||||
|
文件核查:`lc_mcp/driver_input.py`、`lc_mcp/aalc_patches.py`、`lc_mcp/aalc_task.py`
|
||||||
|
和 `tests/test_driver_input.py` 已存在于远程 `e2de126`。仓库没有 `logitech.driver.dll`、
|
||||||
|
罗技驱动安装包或注释提到的 `logitech.test.py`。README 已补充外部依赖、环境变量和接管范围。
|
||||||
|
驱动只接管任务流点击, 不将拖拽、滚动、键盘或独立 MCP `click` 工具改为驱动输入。
|
||||||
|
|
||||||
|
验证:Linux / Python 3.12 全套 **417 项通过**(16.832 秒);随后将 Win32 类型声明改为
|
||||||
|
独立 DLL 绑定, 驱动相关 **29 项回归通过**。`git diff --check` 通过。
|
||||||
|
测试从 vendor AST 提取并执行真实的 `init_input`、交互门与监控点击方法, 不复制其接线逻辑;
|
||||||
|
实际 `aalc_task.run` 的 `all` / `daily` 入口也有覆盖。Windows DLL 和游戏未在本次环境执行。
|
||||||
|
PrintWindow 探测仅表示 API 调用成功, 不保证像素内容有效; 真机仍需检查画面、焦点和点击响应。
|
||||||
+84
-12
@@ -8,6 +8,7 @@ import glob
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from .engine import Engine
|
from .engine import Engine
|
||||||
|
|
||||||
@@ -43,9 +44,6 @@ def bootstrap():
|
|||||||
from module.logger.my_log import Logger
|
from module.logger.my_log import Logger
|
||||||
Logger()
|
Logger()
|
||||||
_booted = d
|
_booted = d
|
||||||
# 实验: 编队列表滑动补丁, 仅在 LCP_TEAM_SCROLL_PATCH=1 时安装 (见 aalc_input_patch)
|
|
||||||
from . import aalc_input_patch
|
|
||||||
aalc_input_patch.install()
|
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
||||||
@@ -82,6 +80,19 @@ class AalcEngine(Engine):
|
|||||||
self.images_root = os.path.join(root, 'assets', 'images')
|
self.images_root = os.path.join(root, 'assets', 'images')
|
||||||
|
|
||||||
# ---- 看 ----
|
# ---- 看 ----
|
||||||
|
def show_game_background(self):
|
||||||
|
if self.cfg.simulator:
|
||||||
|
raise RuntimeError('后台恢复窗口仅支持 Windows 游戏客户端')
|
||||||
|
hwnd = self.screen.handle.hwnd
|
||||||
|
if not hwnd:
|
||||||
|
raise RuntimeError('未找到游戏窗口,未修改其他窗口')
|
||||||
|
import win32con
|
||||||
|
import win32gui
|
||||||
|
foreground = win32gui.GetForegroundWindow()
|
||||||
|
win32gui.ShowWindow(hwnd, win32con.SW_SHOWNOACTIVATE)
|
||||||
|
return {'visible': bool(win32gui.IsWindowVisible(hwnd)),
|
||||||
|
'foreground_changed': win32gui.GetForegroundWindow() != foreground}
|
||||||
|
|
||||||
def _grab(self, gray):
|
def _grab(self, gray):
|
||||||
if not self.cfg.simulator and not self.screen.handle.hwnd:
|
if not self.cfg.simulator and not self.screen.handle.hwnd:
|
||||||
raise RuntimeError('未找到游戏窗口 %r: 先启动游戏(run_task 会自动启动)' % self.cfg.game_title_name)
|
raise RuntimeError('未找到游戏窗口 %r: 先启动游戏(run_task 会自动启动)' % self.cfg.game_title_name)
|
||||||
@@ -201,19 +212,58 @@ class AalcEngine(Engine):
|
|||||||
if not handle.isActive:
|
if not handle.isActive:
|
||||||
raise RuntimeError('无法激活游戏窗口,未发送输入')
|
raise RuntimeError('无法激活游戏窗口,未发送输入')
|
||||||
|
|
||||||
|
def _background_mouse(self, message, x, y, held=False):
|
||||||
|
"""Deliver client coordinates without moving the user's system pointer."""
|
||||||
|
import win32api
|
||||||
|
import win32con
|
||||||
|
hwnd = self.screen.handle.hwnd
|
||||||
|
if not hwnd:
|
||||||
|
raise RuntimeError('未找到游戏窗口,未发送鼠标消息')
|
||||||
|
win32api.PostMessage(hwnd, message, win32con.MK_LBUTTON if held else 0,
|
||||||
|
win32api.MAKELONG(int(x), int(y)))
|
||||||
|
|
||||||
|
def _restore_background_position(self, position):
|
||||||
|
import win32con
|
||||||
|
import win32gui
|
||||||
|
win32gui.SetWindowPos(self.screen.handle.hwnd, 0, *position, 0, 0,
|
||||||
|
win32con.SWP_NOSIZE | win32con.SWP_NOZORDER |
|
||||||
|
win32con.SWP_NOACTIVATE)
|
||||||
|
|
||||||
|
@contextmanager
|
||||||
|
def _background_target(self, x, y):
|
||||||
|
position = None
|
||||||
|
transparent = self.cfg.win_input_type == 'window_move'
|
||||||
|
try:
|
||||||
|
if transparent:
|
||||||
|
self.screen.handle.set_window_transparent(True)
|
||||||
|
position = self.auto.input_handler._set_window_pos(int(x), int(y))
|
||||||
|
self.auto.input_handler.set_active()
|
||||||
|
yield position
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
if position is not None:
|
||||||
|
try:
|
||||||
|
time.sleep(0.12)
|
||||||
|
finally:
|
||||||
|
self._restore_background_position(position)
|
||||||
|
finally:
|
||||||
|
if transparent:
|
||||||
|
self.screen.handle.set_window_transparent(False)
|
||||||
|
|
||||||
def click(self, x, y, times=1):
|
def click(self, x, y, times=1):
|
||||||
self._prepare_input()
|
self._prepare_input()
|
||||||
if not self.cfg.simulator and self.cfg.win_input_type == 'background':
|
if not self.cfg.simulator and self.cfg.win_input_type in ('background', 'window_move'):
|
||||||
handler = self.auto.input_handler
|
import win32con
|
||||||
self.auto.wait_pause()
|
self.auto.wait_pause()
|
||||||
for _ in range(int(times)):
|
for _ in range(int(times)):
|
||||||
handler.set_mouse_pos(int(x), int(y))
|
with self._background_target(x, y):
|
||||||
handler.set_active()
|
self._background_mouse(win32con.WM_MOUSEMOVE, x, y)
|
||||||
handler.mouse_down(int(x), int(y))
|
|
||||||
try:
|
|
||||||
time.sleep(0.12)
|
time.sleep(0.12)
|
||||||
finally:
|
try:
|
||||||
handler.mouse_up(int(x), int(y))
|
self._background_mouse(win32con.WM_LBUTTONDOWN, x, y, held=True)
|
||||||
|
time.sleep(0.12)
|
||||||
|
finally:
|
||||||
|
self._background_mouse(win32con.WM_LBUTTONUP, x, y)
|
||||||
# Let Unity consume the release before another target is selected.
|
# Let Unity consume the release before another target is selected.
|
||||||
time.sleep(0.12)
|
time.sleep(0.12)
|
||||||
elif not self.cfg.simulator and self.cfg.win_input_type == 'foreground':
|
elif not self.cfg.simulator and self.cfg.win_input_type == 'foreground':
|
||||||
@@ -239,7 +289,7 @@ class AalcEngine(Engine):
|
|||||||
if k not in self.key_names:
|
if k not in self.key_names:
|
||||||
raise ValueError('AALC 不支持按键 %r, 可用: %s' % (key, ' '.join(self.key_names)))
|
raise ValueError('AALC 不支持按键 %r, 可用: %s' % (key, ' '.join(self.key_names)))
|
||||||
self._prepare_input()
|
self._prepare_input()
|
||||||
if not self.cfg.simulator and self.cfg.win_input_type == 'background':
|
if not self.cfg.simulator and self.cfg.win_input_type in ('background', 'window_move'):
|
||||||
# Unity 可能在同一帧收到 down/up,导致快捷键被吞掉。
|
# Unity 可能在同一帧收到 down/up,导致快捷键被吞掉。
|
||||||
handler = self.auto.input_handler
|
handler = self.auto.input_handler
|
||||||
self.auto.wait_pause()
|
self.auto.wait_pause()
|
||||||
@@ -265,6 +315,28 @@ class AalcEngine(Engine):
|
|||||||
if not (0 <= x < img.width and 0 <= y < img.height):
|
if not (0 <= x < img.width and 0 <= y < img.height):
|
||||||
raise ValueError('拖动坐标超出游戏客户区 %sx%s' % (img.width, img.height))
|
raise ValueError('拖动坐标超出游戏客户区 %sx%s' % (img.width, img.height))
|
||||||
self._prepare_input()
|
self._prepare_input()
|
||||||
|
if not self.cfg.simulator and self.cfg.win_input_type in ('background', 'window_move'):
|
||||||
|
import win32con
|
||||||
|
self.auto.wait_pause()
|
||||||
|
with self._background_target(from_x, from_y) as position:
|
||||||
|
self._background_mouse(win32con.WM_MOUSEMOVE, from_x, from_y)
|
||||||
|
time.sleep(0.12)
|
||||||
|
last_x, last_y = from_x, from_y
|
||||||
|
try:
|
||||||
|
self._background_mouse(win32con.WM_LBUTTONDOWN, from_x, from_y, held=True)
|
||||||
|
time.sleep(0.12)
|
||||||
|
steps = max(1, int(float(duration) / 0.02))
|
||||||
|
for step in range(1, steps + 1):
|
||||||
|
last_x = round(from_x + (to_x - from_x) * step / steps)
|
||||||
|
last_y = round(from_y + (to_y - from_y) * step / steps)
|
||||||
|
if position is not None:
|
||||||
|
self.auto.input_handler._set_window_pos(last_x, last_y)
|
||||||
|
self._background_mouse(win32con.WM_MOUSEMOVE, last_x, last_y, held=True)
|
||||||
|
time.sleep(float(duration) / steps)
|
||||||
|
time.sleep(0.12)
|
||||||
|
finally:
|
||||||
|
self._background_mouse(win32con.WM_LBUTTONUP, last_x, last_y)
|
||||||
|
return
|
||||||
if not self.cfg.simulator and self.cfg.win_input_type == 'foreground':
|
if not self.cfg.simulator and self.cfg.win_input_type == 'foreground':
|
||||||
import pyautogui
|
import pyautogui
|
||||||
start = self.auto.input_handler.pos_offset(int(from_x), int(from_y))
|
start = self.auto.input_handler.pos_offset(int(from_x), int(from_y))
|
||||||
|
|||||||
@@ -1,100 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""编队列表滑动补丁 (实验, 默认关闭; LCP_TEAM_SCROLL_PATCH=1 启用)。
|
|
||||||
|
|
||||||
AALC 基类注释说 ``mouse_swipe_for_team_scroll`` 可由适配器覆盖"以规避队伍拖拽判定",
|
|
||||||
上游只有 MuMu 覆盖了它, Windows 前台/后台沿用普通列表手势。是否因此误触发队伍拖拽
|
|
||||||
尚无实机证据 (2026-10-03 的记录未在编队界面复测), 所以这里只做最小改动来验证:
|
|
||||||
|
|
||||||
- 几何与行程完全沿用 AALC 的 ``build_windows_scroll_swipe_plan``,
|
|
||||||
不改变 AALC 为 Windows 标定的翻页距离;
|
|
||||||
- 参照 MuMu, 脱离段后保持 0.1s 让游戏先认定为滚动, 松手前停稳 0.5s;
|
|
||||||
- 分段移动用显式等待驱动, 不经过适配器的 duration 参数
|
|
||||||
(BackgroundInput 在 duration < 0.01s 时步数为 0, 不发任何移动事件),
|
|
||||||
前台关闭 pyautogui 每次调用后默认的 0.1s 停顿。
|
|
||||||
"""
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
|
|
||||||
ENV_FLAG = 'LCP_TEAM_SCROLL_PATCH'
|
|
||||||
ESCAPE_HOLD_SECONDS = 0.1 # MUMU_TEAM_SCROLL_ESCAPE_HOLD_DURATION
|
|
||||||
SETTLE_SECONDS = 0.5 # MUMU_TEAM_SCROLL_SETTLE_DURATION
|
|
||||||
STEP_SECONDS = 0.01 # 与 AALC _mouse_move_to 的步长一致
|
|
||||||
|
|
||||||
|
|
||||||
def _plan(x, y, dx, dy, duration):
|
|
||||||
from module.automation.input_handlers.scroll_swipe import build_windows_scroll_swipe_plan
|
|
||||||
plan, settle = build_windows_scroll_swipe_plan(x, y, dx, dy, duration)
|
|
||||||
return plan, max(settle, SETTLE_SECONDS) if len(plan) > 1 else 0
|
|
||||||
|
|
||||||
|
|
||||||
def run_plan(plan, settle, press, move, release, sleep=None):
|
|
||||||
"""按计划拖动: 每段按耗时均匀插值, 每个插值点之间显式等待。
|
|
||||||
plan 元素为 (终点, 到达该点前的耗时); 第一段之后(脱离段)保持一小会儿。"""
|
|
||||||
sleep = sleep or time.sleep
|
|
||||||
position = plan[0][0]
|
|
||||||
press(position)
|
|
||||||
try:
|
|
||||||
for index, (point, duration) in enumerate(plan[1:]):
|
|
||||||
steps = max(1, round(duration / STEP_SECONDS))
|
|
||||||
for k in range(1, steps + 1):
|
|
||||||
ratio = k / steps
|
|
||||||
move((position[0] + (point[0] - position[0]) * ratio,
|
|
||||||
position[1] + (point[1] - position[1]) * ratio))
|
|
||||||
if duration > 0:
|
|
||||||
sleep(duration / steps)
|
|
||||||
position = point
|
|
||||||
if index == 0 and len(plan) > 2:
|
|
||||||
sleep(ESCAPE_HOLD_SECONDS)
|
|
||||||
if settle:
|
|
||||||
sleep(settle)
|
|
||||||
finally:
|
|
||||||
release(position)
|
|
||||||
|
|
||||||
|
|
||||||
def _foreground_team_scroll(self, x, y, duration=0.3, dx=0, dy=0, move_back=True):
|
|
||||||
import pyautogui
|
|
||||||
restore = self.get_mouse_position() if move_back else None
|
|
||||||
plan, settle = _plan(x, y, dx, dy, duration)
|
|
||||||
|
|
||||||
def screen(point):
|
|
||||||
return tuple(int(round(v)) for v in self.pos_offset(*point))
|
|
||||||
|
|
||||||
def press(point):
|
|
||||||
pyautogui.moveTo(*screen(point), _pause=False)
|
|
||||||
pyautogui.mouseDown(_pause=False)
|
|
||||||
|
|
||||||
run_plan(plan, settle, press,
|
|
||||||
lambda point: pyautogui.moveTo(*screen(point), _pause=False),
|
|
||||||
lambda point: pyautogui.mouseUp(*screen(point), _pause=False))
|
|
||||||
if restore:
|
|
||||||
self.mouse_move(restore)
|
|
||||||
|
|
||||||
|
|
||||||
def _background_team_scroll(self, x, y, duration=0.3, dx=0, dy=0, move_back=True):
|
|
||||||
restore = self.get_mouse_position() if move_back else None
|
|
||||||
plan, settle = _plan(x, y, dx, dy, duration)
|
|
||||||
|
|
||||||
def press(point):
|
|
||||||
self.set_mouse_pos(*point)
|
|
||||||
self.set_active()
|
|
||||||
self.mouse_down(*point)
|
|
||||||
|
|
||||||
run_plan(plan, settle, press,
|
|
||||||
lambda point: self.set_mouse_pos(*point),
|
|
||||||
lambda point: self.mouse_up(*point))
|
|
||||||
if restore:
|
|
||||||
self.mouse_move(restore)
|
|
||||||
|
|
||||||
|
|
||||||
def install(force=False):
|
|
||||||
"""给 Windows 前台/后台适配器装上编队滑动 (幂等)。未设 LCP_TEAM_SCROLL_PATCH=1 时不做任何事。"""
|
|
||||||
if not force and os.environ.get(ENV_FLAG) != '1':
|
|
||||||
return []
|
|
||||||
from module.automation.input_handlers import input as input_module
|
|
||||||
patched = []
|
|
||||||
for name, impl in (('Input', _foreground_team_scroll), ('BackgroundInput', _background_team_scroll)):
|
|
||||||
cls = getattr(input_module, name, None)
|
|
||||||
if cls is not None and cls.__dict__.get('mouse_swipe_for_team_scroll') is not impl:
|
|
||||||
cls.mouse_swipe_for_team_scroll = impl
|
|
||||||
patched.append(name)
|
|
||||||
return patched
|
|
||||||
@@ -0,0 +1,545 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""任务子进程里对 AALC 的运行时补丁。不改 vendor/aalc 的源码。
|
||||||
|
|
||||||
|
1. 队伍名精确匹配
|
||||||
|
AALC 的 find_str_in_text 用子串匹配, "TEAMS #1" 会命中 "TEAMS #10"(中文 "编队#1"
|
||||||
|
同理)。账号有 10 个以上预设时就会选中别的(常常是空)队伍, 然后在编队人数检查里
|
||||||
|
无限空转——2026-10-05 一次空转了 27 分钟。这里只接管队伍名这一种目标, 要求编号
|
||||||
|
完全相同, 其他文本仍走 AALC 原逻辑。
|
||||||
|
|
||||||
|
2. 窗口比例守护
|
||||||
|
RDP 重连改变桌面分辨率后, Unity 会把窗口拉伸成非 16:9。AALC 只在任务开始时校正
|
||||||
|
一次, 之后全部模板匹配分数掉到阈值以下, 表现为原地空转、不报错。这里在后台定期
|
||||||
|
检查客户区尺寸, 偏离 set_win_size 时调回去。
|
||||||
|
"""
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
from contextlib import contextmanager
|
||||||
|
|
||||||
|
TEAM_TARGET = re.compile(r'(?:TEAMS|TFAMS|编队)#(\d+)', re.IGNORECASE)
|
||||||
|
|
||||||
|
|
||||||
|
def team_number(text):
|
||||||
|
"""'TEAMS #12' / 'TFAMS#3' / '编队#1' -> '12' / '3' / '1'; 不是队伍名返回 None。"""
|
||||||
|
m = TEAM_TARGET.fullmatch(text.replace(' ', '').strip())
|
||||||
|
return m.group(1) if m else None
|
||||||
|
|
||||||
|
|
||||||
|
def find_team_text(want, ocr_dict):
|
||||||
|
"""在 OCR 结果里找编号恰好为 want 的队伍名, 返回其坐标或 False。"""
|
||||||
|
for text, position in ocr_dict.items():
|
||||||
|
for hit in TEAM_TARGET.finditer(text.replace(' ', '')):
|
||||||
|
if hit.group(1) == want:
|
||||||
|
return position
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def install_exact_team_match(auto, log=print):
|
||||||
|
original = auto.find_str_in_text
|
||||||
|
|
||||||
|
def find_str_in_text(target, ocr_dict):
|
||||||
|
want = team_number(str(target))
|
||||||
|
if want is None:
|
||||||
|
return original(target, ocr_dict)
|
||||||
|
return find_team_text(want, ocr_dict)
|
||||||
|
|
||||||
|
auto.find_str_in_text = find_str_in_text
|
||||||
|
log('[lc_mcp] patch: 队伍名改为编号精确匹配')
|
||||||
|
|
||||||
|
|
||||||
|
class WindowGuard(threading.Thread):
|
||||||
|
"""后台检查游戏客户区, 不是 set_win_size 对应的 16:9 尺寸就调回去。"""
|
||||||
|
|
||||||
|
def __init__(self, screen, cfg, interval=15.0, log=print):
|
||||||
|
super().__init__(name='lc_mcp-window-guard', daemon=True)
|
||||||
|
self.screen, self.cfg, self.interval, self.log = screen, cfg, interval, log
|
||||||
|
self.stopped = threading.Event()
|
||||||
|
self.fixes = 0
|
||||||
|
self._failed = None # 同一尺寸调不回来只报一次, 免得每 15 秒刷一条 ERROR
|
||||||
|
|
||||||
|
def want(self):
|
||||||
|
size = int(self.cfg.set_win_size)
|
||||||
|
return int(size * 16 / 9), size
|
||||||
|
|
||||||
|
def check_position(self):
|
||||||
|
"""窗口有一截跑到屏幕外时挪回工作区。
|
||||||
|
|
||||||
|
背景(2026-10-22 实测): 游戏会恢复自己保存的窗口位置, 出现过 (-8, 39) 这种
|
||||||
|
—— 左边 8 像素在屏幕外。前台模式(background_click=false)下 AALC 从**屏幕**
|
||||||
|
抓图, 窗口一出界抓到的画面就整体错位, 模板匹配相似度掉到 0.2~0.5, 表现是
|
||||||
|
"日志一直在动但几乎不点击"(实测 30 秒只点 1 次, 挪回来立刻恢复)。
|
||||||
|
set_win_position=free 时 AALC 不碰位置, 所以这里补上。
|
||||||
|
|
||||||
|
返回 'ok' / 'fixed' / None(没法判断)。
|
||||||
|
"""
|
||||||
|
try:
|
||||||
|
import win32con
|
||||||
|
import win32gui
|
||||||
|
except ImportError:
|
||||||
|
return None
|
||||||
|
handle = self.screen.handle
|
||||||
|
hwnd = handle._hwnd
|
||||||
|
try:
|
||||||
|
left, top, right, bottom = handle.monitor_info["Work"]
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
|
try:
|
||||||
|
x, y, r, b = win32gui.GetWindowRect(hwnd)
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
|
width, height = r - x, b - y
|
||||||
|
if width <= 0 or height <= 0:
|
||||||
|
return None
|
||||||
|
# 已经完整落在工作区内就不动
|
||||||
|
if x >= left and y >= top and r <= right and b <= bottom:
|
||||||
|
return 'ok'
|
||||||
|
new_x = max(left, min(x, right - width))
|
||||||
|
new_y = max(top, min(y, bottom - height))
|
||||||
|
try:
|
||||||
|
win32gui.SetWindowPos(hwnd, 0, new_x, new_y, 0, 0,
|
||||||
|
win32con.SWP_NOSIZE | win32con.SWP_NOZORDER |
|
||||||
|
win32con.SWP_NOACTIVATE)
|
||||||
|
except Exception as e:
|
||||||
|
self.log('[lc_mcp] window guard: 挪窗口失败 %s: %s' % (type(e).__name__, e))
|
||||||
|
return None
|
||||||
|
self.fixes += 1
|
||||||
|
self.log('[lc_mcp] window guard: 窗口 (%d,%d) 有部分在屏幕外, 已挪到 (%d,%d)'
|
||||||
|
% (x, y, new_x, new_y))
|
||||||
|
return 'fixed'
|
||||||
|
|
||||||
|
def check_once(self):
|
||||||
|
"""返回 'ok' / 'fixed' / 'failed' / None(没有可检查的窗口)。"""
|
||||||
|
handle = self.screen.handle
|
||||||
|
# set_windows 关闭表示用户自己管窗口, AALC 也不调, 这里同样不插手
|
||||||
|
if self.cfg.simulator or not self.cfg.set_windows or not handle._hwnd or handle.isMinimized:
|
||||||
|
return None
|
||||||
|
# 位置先修: 出界会让抓图错位, 那种情况下尺寸检查也没意义
|
||||||
|
if self.check_position() == 'fixed':
|
||||||
|
time.sleep(0.5)
|
||||||
|
current = (handle.width(True), handle.height(True))
|
||||||
|
want = self.want()
|
||||||
|
if current == want or 0 in current:
|
||||||
|
return 'ok' if current == want else None
|
||||||
|
self.screen.adjust_win_size(want)
|
||||||
|
time.sleep(1)
|
||||||
|
after = (handle.width(True), handle.height(True))
|
||||||
|
if after == want:
|
||||||
|
self.fixes += 1
|
||||||
|
self._failed = None
|
||||||
|
self.log('[lc_mcp] window guard: 客户区 %sx%s 已调回 %sx%s' % (current + want))
|
||||||
|
return 'fixed'
|
||||||
|
if after != self._failed:
|
||||||
|
self._failed = after
|
||||||
|
self.log('[ERROR] [lc_mcp] window guard: 客户区 %sx%s 调整后仍为 %sx%s(目标 %sx%s),'
|
||||||
|
' 桌面可能放不下窗口' % (current + after + want))
|
||||||
|
return 'failed'
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
while not self.stopped.wait(self.interval):
|
||||||
|
try:
|
||||||
|
self.check_once()
|
||||||
|
except Exception as e: # 守护线程不能把任务带崩
|
||||||
|
self.log('[lc_mcp] window guard: 检查出错 %s: %s' % (type(e).__name__, e))
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
self.stopped.set()
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 驱动级点击接管
|
||||||
|
|
||||||
|
# 新版 AALC 的输入入口带交互门和锁, 重绑时必须保留这些包装。
|
||||||
|
REBIND_NAMES = ('mouse_click', 'mouse_click_blank', 'mouse_down', 'mouse_up')
|
||||||
|
|
||||||
|
|
||||||
|
class DriverClickProxy:
|
||||||
|
"""把鼠标点击转发到罗技驱动, 其余一律透传给原 handler。
|
||||||
|
|
||||||
|
⛔ 只接管**点击类**操作。拖拽/滑动/滚轮仍走 AALC 原逻辑 —— 那些在镜牢和日常
|
||||||
|
里用得少, 而各自的行为差异(惯性、多点)不好用相对位移复现, 接了反而更容易出错。
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, handler, driver, screen, log=print):
|
||||||
|
self._handler = handler
|
||||||
|
self._driver = driver
|
||||||
|
self._screen = screen
|
||||||
|
self.log = log
|
||||||
|
self.clicks = 0
|
||||||
|
self.refused = 0
|
||||||
|
|
||||||
|
# --- 透传 -------------------------------------------------------------
|
||||||
|
def __getattr__(self, name):
|
||||||
|
return getattr(self._handler, name)
|
||||||
|
|
||||||
|
# --- 接管 -------------------------------------------------------------
|
||||||
|
def _screen_pos(self, x, y):
|
||||||
|
from .driver_input import client_to_screen, foreground_window, is_console_session
|
||||||
|
handle = self._screen.handle
|
||||||
|
hwnd = handle.hwnd
|
||||||
|
if not hwnd or handle.isMinimized or not is_console_session():
|
||||||
|
raise OSError('驱动点击需要 console 会话中可见的游戏窗口')
|
||||||
|
if foreground_window() != hwnd:
|
||||||
|
handle.setForeground()
|
||||||
|
if foreground_window() != hwnd:
|
||||||
|
raise OSError('无法激活游戏窗口, 未发送驱动输入')
|
||||||
|
return client_to_screen(hwnd, x, y)
|
||||||
|
|
||||||
|
def _trace(self, msg):
|
||||||
|
"""排障用的文件追踪: 日志被 AALC 的 logger 吞掉时靠它看真实调用。"""
|
||||||
|
path = os.environ.get('LCP_DRIVER_TRACE')
|
||||||
|
if not path:
|
||||||
|
return
|
||||||
|
try:
|
||||||
|
with open(path, 'a', encoding='utf-8') as fh:
|
||||||
|
fh.write('%s %s\n' % (time.strftime('%H:%M:%S'), msg))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def mouse_click(self, x, y, times=1, move_back=False):
|
||||||
|
from .driver_input import get_cursor
|
||||||
|
self._handler.wait_pause()
|
||||||
|
self._trace('mouse_click(%s,%s,times=%s)' % (x, y, times))
|
||||||
|
original_pos = None
|
||||||
|
try:
|
||||||
|
sx, sy = self._screen_pos(x, y)
|
||||||
|
if move_back:
|
||||||
|
original_pos = get_cursor()
|
||||||
|
if self._driver.click(sx, sy, times=times):
|
||||||
|
self.clicks += 1
|
||||||
|
self.log('[driver] 点击客户区(%d,%d) -> 屏幕(%d,%d)' % (x, y, sx, sy))
|
||||||
|
return True
|
||||||
|
except InterruptedError:
|
||||||
|
raise
|
||||||
|
except OSError as e:
|
||||||
|
self._trace('点击失败: %s' % e)
|
||||||
|
self.log('[driver] 点击失败: %s' % e)
|
||||||
|
finally:
|
||||||
|
if original_pos is not None:
|
||||||
|
self._driver.move_to(*original_pos)
|
||||||
|
self.refused += 1
|
||||||
|
self.log('[driver] 放弃点击客户区(%d,%d): 无法激活或精确定位' % (x, y))
|
||||||
|
return False
|
||||||
|
|
||||||
|
def mouse_click_blank(self, coordinate=(1, 1), times=1, move_back=False):
|
||||||
|
return self.mouse_click(*coordinate, times=times, move_back=move_back)
|
||||||
|
|
||||||
|
def mouse_down(self, x, y):
|
||||||
|
self._handler.wait_pause()
|
||||||
|
sx, sy = self._screen_pos(x, y)
|
||||||
|
if not self._driver.move_to(sx, sy):
|
||||||
|
return False
|
||||||
|
self._driver.down(1)
|
||||||
|
return True
|
||||||
|
|
||||||
|
def mouse_up(self, x, y):
|
||||||
|
try:
|
||||||
|
sx, sy = self._screen_pos(x, y)
|
||||||
|
self._driver.move_to(sx, sy)
|
||||||
|
finally:
|
||||||
|
self._driver.up(1)
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
def install_driver_click(auto, screen, driver=None, log=print):
|
||||||
|
"""如果环境满足, 把 AALC 的鼠标点击切到罗技驱动级输入。
|
||||||
|
|
||||||
|
返回驱动实例(成功) 或 None(条件不满足, AALC 保持原样)。
|
||||||
|
条件不满足时**不改任何东西** —— 宁可继续用原来的注入方式, 也不要半吊子接管。
|
||||||
|
"""
|
||||||
|
from .driver_input import DriverInput
|
||||||
|
|
||||||
|
if isinstance(auto.input_handler, DriverClickProxy):
|
||||||
|
return auto.input_handler._driver
|
||||||
|
drv = driver if driver is not None else DriverInput(log=log)
|
||||||
|
ok, why = drv.preflight()
|
||||||
|
if not ok:
|
||||||
|
log('[lc_mcp] 驱动级输入未启用: %s' % why)
|
||||||
|
return None
|
||||||
|
# 绑定目标窗口: click() 靠它做句柄级前台校验。
|
||||||
|
# 只比矩形是不够的 —— 窗口互相重叠时, 同一个屏幕坐标会同时落在两边,
|
||||||
|
# 实测把浏览器切到前台后, 几何校验照样通过(2026-10-23)。
|
||||||
|
try:
|
||||||
|
drv.bind_window(screen.handle.hwnd)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
proxy = DriverClickProxy(auto.input_handler, drv, screen, log=log)
|
||||||
|
trace = os.environ.get('LCP_DRIVER_TRACE')
|
||||||
|
if trace:
|
||||||
|
try:
|
||||||
|
with open(trace, 'a', encoding='utf-8') as fh:
|
||||||
|
fh.write('%s install: 原 handler=%s -> proxy\n'
|
||||||
|
% (time.strftime('%H:%M:%S'), type(auto.input_handler).__name__))
|
||||||
|
fh.write('%s install: auto.mouse_click 原绑定=%r\n'
|
||||||
|
% (time.strftime('%H:%M:%S'), getattr(auto, 'mouse_click', None)))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
auto.input_handler = proxy
|
||||||
|
for name in REBIND_NAMES:
|
||||||
|
gate = getattr(auto, '_run_business_interaction', None)
|
||||||
|
setattr(auto, name, gate(name) if callable(gate) else getattr(proxy, name))
|
||||||
|
log('[lc_mcp] patch: 鼠标点击已切到罗技驱动级输入')
|
||||||
|
return drv
|
||||||
|
|
||||||
|
|
||||||
|
@contextmanager
|
||||||
|
def driver_click_tasks(scheme, auto, screen, cfg, log=print):
|
||||||
|
"""每次游戏初始化完成后接管, 包括 all 任务和故障重启。"""
|
||||||
|
if cfg.simulator or os.environ.get('LCP_DRIVER_INPUT', '').strip() != '1':
|
||||||
|
yield
|
||||||
|
return
|
||||||
|
original = scheme.init_game
|
||||||
|
|
||||||
|
def init_game(*args, **kwargs):
|
||||||
|
result = original(*args, **kwargs)
|
||||||
|
install_driver_click(auto, screen, log=log)
|
||||||
|
return result
|
||||||
|
|
||||||
|
scheme.init_game = init_game
|
||||||
|
try:
|
||||||
|
yield
|
||||||
|
finally:
|
||||||
|
scheme.init_game = original
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 前台窗口健壮化
|
||||||
|
|
||||||
|
def install_robust_set_foreground(screen, log=print):
|
||||||
|
"""把 SetForegroundWindow 换成带 AttachThreadInput 兜底的版本。
|
||||||
|
|
||||||
|
背景(2026-10-22): cfg.background_click=False 时 screen.py:342 会调
|
||||||
|
self.handle.setForeground(), 而原生实现只有一句裸调用
|
||||||
|
win32gui.SetForegroundWindow(hwnd)。Windows 不允许非前台进程抢占前台,
|
||||||
|
失败时抛 pywintypes.error(0, 'SetForegroundWindow', ...) —— 这个异常在
|
||||||
|
set_win() 里没有捕获, 直接把任务带崩(观测: exit code 3 之前的 traceback)。
|
||||||
|
|
||||||
|
兜底尝试关联当前线程和前台线程的输入队列, 完成后解挂。
|
||||||
|
Windows 仍可能拒绝激活; 驱动输入在发送前另行检查游戏是否在前台。
|
||||||
|
"""
|
||||||
|
handle = getattr(screen, 'handle', None)
|
||||||
|
if handle is None or not hasattr(handle, 'setForeground'):
|
||||||
|
log('[lc_mcp] 前台窗口补丁跳过: screen.handle 没有 setForeground')
|
||||||
|
return None
|
||||||
|
|
||||||
|
original = handle.setForeground
|
||||||
|
|
||||||
|
def setForeground():
|
||||||
|
hwnd = getattr(handle, 'hwnd', 0)
|
||||||
|
if not hwnd:
|
||||||
|
return
|
||||||
|
try:
|
||||||
|
original()
|
||||||
|
return
|
||||||
|
except Exception:
|
||||||
|
pass # 落到下面的 AttachThreadInput 兜底
|
||||||
|
try:
|
||||||
|
import win32api
|
||||||
|
import win32gui
|
||||||
|
import win32process
|
||||||
|
|
||||||
|
foreground = win32gui.GetForegroundWindow()
|
||||||
|
thread_fg = win32process.GetWindowThreadProcessId(foreground)[0] if foreground else 0
|
||||||
|
thread_me = win32api.GetCurrentThreadId()
|
||||||
|
attached = False
|
||||||
|
if thread_fg and thread_fg != thread_me:
|
||||||
|
# pywin32 成功时返回 None, 失败抛异常, 不能按真假判断。
|
||||||
|
win32process.AttachThreadInput(thread_me, thread_fg, True)
|
||||||
|
attached = True
|
||||||
|
try:
|
||||||
|
win32gui.BringWindowToTop(hwnd)
|
||||||
|
win32gui.SetForegroundWindow(hwnd)
|
||||||
|
finally:
|
||||||
|
if attached:
|
||||||
|
win32process.AttachThreadInput(thread_me, thread_fg, False)
|
||||||
|
except Exception as e:
|
||||||
|
log('[lc_mcp] setForeground 兜底也失败: %s: %s' % (type(e).__name__, e))
|
||||||
|
|
||||||
|
handle.setForeground = setForeground
|
||||||
|
log('[lc_mcp] patch: SetForegroundWindow 加 AttachThreadInput 兜底')
|
||||||
|
return handle
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 日常本用默认队伍
|
||||||
|
|
||||||
|
|
||||||
|
def install_default_battle_team(scheme, log=print):
|
||||||
|
"""日常本不再翻队伍列表, 直接用界面上已经选中的默认队伍。
|
||||||
|
|
||||||
|
背景(2026-11-06): 这账号的队伍是自定义名字(不是 "编队#N"), 而
|
||||||
|
select_battle_team 按名字找队伍, 找不到就来回滑动 10 次(实测 61 秒), 滑完还把
|
||||||
|
队伍页留在滚动后的位置; 紧接着 battle.to_battle() 在 15 次循环里都找不到
|
||||||
|
"进入战斗" 按钮, 报 "超出最大尝试次数, 未能进入战斗", 整个日常就这样空转。
|
||||||
|
|
||||||
|
经验本/纽本本来就是用界面默认队伍打的, 跳过选队伍这一步即可。
|
||||||
|
"""
|
||||||
|
try:
|
||||||
|
from tasks.teams import team_formation as tf
|
||||||
|
except Exception as e:
|
||||||
|
log('[lc_mcp] 默认队伍补丁跳过: 无法导入 team_formation: %s' % e)
|
||||||
|
return None
|
||||||
|
original = getattr(tf, 'select_battle_team', None)
|
||||||
|
if original is None:
|
||||||
|
log('[lc_mcp] 默认队伍补丁跳过: 找不到 select_battle_team')
|
||||||
|
return None
|
||||||
|
|
||||||
|
def select_battle_team(*args, **kwargs):
|
||||||
|
log('[lc_mcp] patch: 日常本跳过选队伍, 直接用默认队伍')
|
||||||
|
return True
|
||||||
|
|
||||||
|
tf.select_battle_team = select_battle_team
|
||||||
|
scheme.select_battle_team = select_battle_team
|
||||||
|
log('[lc_mcp] patch: 日常本使用默认队伍')
|
||||||
|
return original
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 镜牢按体系名选队
|
||||||
|
|
||||||
|
# 这账号把编队按体系命名(流血的队就叫 "流血"), AALC 却只会找 "编队#N" / "TEAMS #N"。
|
||||||
|
# 2026-11-14 实测: 列表里是 剧情关卡/斩击/突刺/打击/烧伤/流血/震颤/破裂/沉沦/呼吸法/充能
|
||||||
|
# 再接 编队#13..#38, 根本没有 "编队#1" —— AALC 翻满 10 页也找不到, 报 "无法寻得队伍"。
|
||||||
|
SYSTEM_TEAM_NAMES = {
|
||||||
|
'burn': ('烧伤',),
|
||||||
|
'bleed': ('流血',),
|
||||||
|
'tremor': ('震颤',),
|
||||||
|
'rupture': ('破裂',),
|
||||||
|
'poise': ('呼吸法', '呼吸'),
|
||||||
|
'sinking': ('沉沦',),
|
||||||
|
'charge': ('充能',),
|
||||||
|
'slash': ('斩击',),
|
||||||
|
'pierce': ('突刺',),
|
||||||
|
'blunt': ('打击',),
|
||||||
|
}
|
||||||
|
|
||||||
|
# 左侧编队列表的 OCR 命中范围(客户区像素, 1280x720 实测)
|
||||||
|
TEAM_LIST_X_MAX = 260
|
||||||
|
TEAM_LIST_Y_MIN = 300
|
||||||
|
TEAM_LIST_Y_MAX = 640
|
||||||
|
# 顶栏 "编队名" 的位置, 用来确认真的选中了
|
||||||
|
TEAM_HEADER = (170, 520, 90, 150)
|
||||||
|
|
||||||
|
|
||||||
|
def _team_ocr(auto):
|
||||||
|
"""整屏 OCR, 返回 [(文本, x, y), ...]。用列表而不是 dict: 同名条目(列表里的队名和顶栏队名)
|
||||||
|
落在不同位置, dict 会把它们覆盖成一条。不用 my_crop: 裁剪区的坐标系不可靠。"""
|
||||||
|
ocr = auto._run_ocr_for_text(my_crop=None)
|
||||||
|
result = []
|
||||||
|
for text, pos in (ocr or {}).items():
|
||||||
|
clean = str(text).replace(' ', '').strip()
|
||||||
|
if not clean:
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
x, y = float(pos[0]), float(pos[1])
|
||||||
|
except (TypeError, IndexError, ValueError):
|
||||||
|
continue
|
||||||
|
result.append((clean, x, y))
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
def _in_list(x, y):
|
||||||
|
return x < TEAM_LIST_X_MAX and TEAM_LIST_Y_MIN < y < TEAM_LIST_Y_MAX
|
||||||
|
|
||||||
|
|
||||||
|
def _in_header(x, y):
|
||||||
|
x1, x2, y1, y2 = TEAM_HEADER
|
||||||
|
return x1 < x < x2 and y1 < y < y2
|
||||||
|
|
||||||
|
|
||||||
|
def _scroll_team_list(auto, direction, times=6, distance=250):
|
||||||
|
"""direction=+1 向下拖(回到列表顶部), -1 向上拖(往下翻)。"""
|
||||||
|
for _ in range(times):
|
||||||
|
auto.mouse_swipe_for_team_scroll(130, 430, dy=direction * distance, duration=0.3)
|
||||||
|
time.sleep(0.35)
|
||||||
|
|
||||||
|
|
||||||
|
def _header_is(auto, name):
|
||||||
|
"""顶栏当前队伍名就是 name。"""
|
||||||
|
if auto.take_screenshot() is None:
|
||||||
|
return False
|
||||||
|
return any(text == name and _in_header(x, y) for text, x, y in _team_ocr(auto))
|
||||||
|
|
||||||
|
|
||||||
|
def _wait_header(auto, name, tries=3, delay=1.2):
|
||||||
|
"""点完之后顶栏要过一两帧才刷新, 多等几次。"""
|
||||||
|
for _ in range(tries):
|
||||||
|
time.sleep(delay)
|
||||||
|
if _header_is(auto, name):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def _select_team_by_name(auto, names, log=print, rounds=4):
|
||||||
|
"""在编队列表里按名字点选。成功返回 True, 没找到返回 False。"""
|
||||||
|
if auto.take_screenshot() is None:
|
||||||
|
return False
|
||||||
|
if not auto.find_element('teams/identify_assets.png'):
|
||||||
|
log('[lc_mcp] 不在编队界面, 跳过按名字选队')
|
||||||
|
return False
|
||||||
|
for name in names: # 已经是这支队就不用动列表
|
||||||
|
if _header_is(auto, name):
|
||||||
|
log('[lc_mcp] patch: 当前已经是编队 %s, 无需切换' % name)
|
||||||
|
return True
|
||||||
|
auto.mouse_click(1, 1)
|
||||||
|
time.sleep(0.3)
|
||||||
|
_scroll_team_list(auto, +1) # 先回到顶部
|
||||||
|
for round_index in range(rounds):
|
||||||
|
if auto.take_screenshot() is None:
|
||||||
|
continue
|
||||||
|
items = _team_ocr(auto)
|
||||||
|
hit = None
|
||||||
|
for name in names:
|
||||||
|
for text, x, y in items:
|
||||||
|
if text == name and _in_list(x, y):
|
||||||
|
hit = (name, x, y)
|
||||||
|
break
|
||||||
|
if hit:
|
||||||
|
break
|
||||||
|
if hit:
|
||||||
|
name, x, y = hit
|
||||||
|
log('[lc_mcp] 编队列表里找到 %s @(%d,%d)' % (name, x, y))
|
||||||
|
auto.mouse_action_with_pos([x, y], offset=False)
|
||||||
|
if _wait_header(auto, name):
|
||||||
|
log('[lc_mcp] patch: 已按体系名选中编队 %s' % name)
|
||||||
|
return True
|
||||||
|
log('[lc_mcp] 点了 %s 但顶栏没变, 继续往下翻' % name)
|
||||||
|
_scroll_team_list(auto, -1, times=3)
|
||||||
|
log('[lc_mcp] 编队列表里没找到 %s(共 %d 轮)' % ('/'.join(names), rounds))
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def install_system_team_selection(log=print):
|
||||||
|
"""镜牢选队改成"按队伍体系对应的中文名"在列表里点。
|
||||||
|
|
||||||
|
AALC 原生只认 编队#N; 本账号的编队是自定义名字(流血/斩击/...), 原生逻辑永远选不上。
|
||||||
|
"""
|
||||||
|
try:
|
||||||
|
from tasks.mirror import mirror as mirror_mod
|
||||||
|
from module.automation import auto
|
||||||
|
except Exception as e:
|
||||||
|
log('[lc_mcp] 体系选队补丁跳过: 无法导入 %s' % e)
|
||||||
|
return None
|
||||||
|
original = getattr(mirror_mod, 'select_battle_team', None)
|
||||||
|
if original is None:
|
||||||
|
log('[lc_mcp] 体系选队补丁跳过: mirror 模块没有 select_battle_team')
|
||||||
|
return None
|
||||||
|
wanted = {'names': ()}
|
||||||
|
original_init = mirror_mod.Mirror.__init__
|
||||||
|
|
||||||
|
def __init__(self, team_setting, team_num):
|
||||||
|
original_init(self, team_setting, team_num)
|
||||||
|
wanted['names'] = SYSTEM_TEAM_NAMES.get(getattr(self, 'system', ''), ())
|
||||||
|
log('[lc_mcp] 镜牢体系 %s -> 目标编队 %s'
|
||||||
|
% (getattr(self, 'system', '?'), '/'.join(wanted['names']) or '(无配置)'))
|
||||||
|
|
||||||
|
def select_battle_team(num):
|
||||||
|
names = wanted['names']
|
||||||
|
if names:
|
||||||
|
try:
|
||||||
|
if _select_team_by_name(auto, names, log=log):
|
||||||
|
return True
|
||||||
|
except Exception as e:
|
||||||
|
log('[lc_mcp] 按名字选队出错: %s: %s' % (type(e).__name__, e))
|
||||||
|
return False
|
||||||
|
return original(num)
|
||||||
|
|
||||||
|
mirror_mod.Mirror.__init__ = __init__
|
||||||
|
mirror_mod.select_battle_team = select_battle_team
|
||||||
|
log('[lc_mcp] patch: 镜牢按体系名选队')
|
||||||
|
return original
|
||||||
+62
-23
@@ -9,7 +9,12 @@ import json
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from . import preflight
|
||||||
from .aalc_engine import bootstrap
|
from .aalc_engine import bootstrap
|
||||||
|
from . import killswitch
|
||||||
|
from .aalc_patches import (WindowGuard, driver_click_tasks, install_default_battle_team,
|
||||||
|
install_exact_team_match, install_robust_set_foreground,
|
||||||
|
install_system_team_selection)
|
||||||
|
|
||||||
# 任务 -> {参数名: AALC 配置项}; 参数只在本次运行内生效
|
# 任务 -> {参数名: AALC 配置项}; 参数只在本次运行内生效
|
||||||
TASKS = {
|
TASKS = {
|
||||||
@@ -20,6 +25,11 @@ TASKS = {
|
|||||||
'mirror': {'count': 'set_mirror_count'},
|
'mirror': {'count': 'set_mirror_count'},
|
||||||
}
|
}
|
||||||
RESTORE_ENV = 'LCP_RESTORE_FILE'
|
RESTORE_ENV = 'LCP_RESTORE_FILE'
|
||||||
|
PREFLIGHT_EXIT = 3
|
||||||
|
|
||||||
|
|
||||||
|
def log(msg):
|
||||||
|
print(msg, flush=True)
|
||||||
|
|
||||||
|
|
||||||
def apply_overrides(cfg, task, params, restore_path=None):
|
def apply_overrides(cfg, task, params, restore_path=None):
|
||||||
@@ -61,35 +71,61 @@ def run(task, params):
|
|||||||
bootstrap()
|
bootstrap()
|
||||||
from module.automation import auto
|
from module.automation import auto
|
||||||
from module.config import cfg
|
from module.config import cfg
|
||||||
|
from module.game_and_screen import screen
|
||||||
from tasks.base import script_task_scheme as scheme
|
from tasks.base import script_task_scheme as scheme
|
||||||
from tasks.base.retry_monitor import retry_monitor
|
from tasks.base.retry_monitor import retry_monitor
|
||||||
from tasks.battle import battle
|
from tasks.battle import battle
|
||||||
from utils.path_manager import path_manager
|
from utils.path_manager import path_manager
|
||||||
|
|
||||||
|
# 急停热键: 装得越早越好。驱动级点击期间鼠标被人和程序抢来抢去,
|
||||||
|
# 用户没法用鼠标点停止按钮, 键盘是唯一可靠的中断手段。
|
||||||
|
kill_listener = killswitch.install(log=log)
|
||||||
|
|
||||||
|
problems = preflight.check(preflight.collect(cfg), task,
|
||||||
|
desktop=None if cfg.simulator else preflight.desktop_size())
|
||||||
|
if problems:
|
||||||
|
for p in problems:
|
||||||
|
log('[ERROR] [lc_mcp] preflight: %s' % p)
|
||||||
|
return PREFLIGHT_EXIT
|
||||||
|
|
||||||
|
install_exact_team_match(auto, log)
|
||||||
|
install_robust_set_foreground(screen, log=log)
|
||||||
|
# 日常本(经验/纽本)不翻队伍列表: 队伍是自定义名字时按名字找必然失败,
|
||||||
|
# 白等 60 秒还会把界面滚乱, 后面 to_battle 就找不到 "进入战斗" 了。
|
||||||
|
if task in ('daily', 'all'):
|
||||||
|
install_default_battle_team(scheme, log=log)
|
||||||
|
# 镜牢: 编队是自定义名字(体系名), AALC 只会找 "编队#N"; 改成按体系名点选。
|
||||||
|
if task in ('mirror', 'all'):
|
||||||
|
install_system_team_selection(log=log)
|
||||||
|
guard = WindowGuard(screen, cfg, log=log)
|
||||||
|
guard.start()
|
||||||
restore_path = os.environ.get(RESTORE_ENV)
|
restore_path = os.environ.get(RESTORE_ENV)
|
||||||
originals = apply_overrides(cfg, task, params, restore_path)
|
originals = apply_overrides(cfg, task, params, restore_path)
|
||||||
try:
|
with driver_click_tasks(scheme, auto, screen, cfg, log=log):
|
||||||
if task == 'all':
|
try:
|
||||||
scheme.script_task()
|
if task == 'all':
|
||||||
return
|
scheme.script_task()
|
||||||
# 与 script_task() 相同的前置步骤
|
return 0
|
||||||
scheme.init_game()
|
# 与 script_task() 相同的前置步骤
|
||||||
path_manager.initialize_paths()
|
scheme.init_game()
|
||||||
auto.clear_img_cache()
|
path_manager.initialize_paths()
|
||||||
retry_monitor.start()
|
auto.clear_img_cache()
|
||||||
get_reward = None
|
retry_monitor.start()
|
||||||
if auto.click_element('battle/turn_assets.png', take_screenshot=True):
|
get_reward = None
|
||||||
print('[lc_mcp] 检测到正在战斗, 先打完', flush=True)
|
if auto.click_element('battle/turn_assets.png', take_screenshot=True):
|
||||||
get_reward = battle.fight()
|
print('[lc_mcp] 检测到正在战斗, 先打完', flush=True)
|
||||||
{
|
get_reward = battle.fight()
|
||||||
'daily': scheme.Daily_task_wrapper(get_reward=get_reward),
|
{
|
||||||
'reward': scheme.to_get_reward,
|
'daily': scheme.Daily_task_wrapper(get_reward=get_reward),
|
||||||
'enkephalin': scheme.Buy_enkephalin,
|
'reward': scheme.to_get_reward,
|
||||||
'mirror': scheme.Mirror_task,
|
'enkephalin': scheme.Buy_enkephalin,
|
||||||
}[task]()
|
'mirror': scheme.Mirror_task,
|
||||||
finally:
|
}[task]()
|
||||||
retry_monitor.stop()
|
return 0
|
||||||
restore(cfg, originals, restore_path)
|
finally:
|
||||||
|
guard.stop()
|
||||||
|
retry_monitor.stop()
|
||||||
|
restore(cfg, originals, restore_path)
|
||||||
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
@@ -107,7 +143,10 @@ def main(argv):
|
|||||||
print('unknown params for %s: %s' % (task, ', '.join(sorted(unknown))), file=sys.stderr)
|
print('unknown params for %s: %s' % (task, ', '.join(sorted(unknown))), file=sys.stderr)
|
||||||
return 2
|
return 2
|
||||||
print('[lc_mcp] task %s start %s' % (task, json.dumps(params)), flush=True)
|
print('[lc_mcp] task %s start %s' % (task, json.dumps(params)), flush=True)
|
||||||
run(task, params)
|
code = run(task, params)
|
||||||
|
if code:
|
||||||
|
print('[lc_mcp] task %s aborted (exit %s)' % (task, code), flush=True)
|
||||||
|
return code
|
||||||
print('[lc_mcp] task %s done' % task, flush=True)
|
print('[lc_mcp] task %s done' % task, flush=True)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,289 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""罗技驱动级输入(logitech.driver.dll)。
|
||||||
|
|
||||||
|
为什么需要它: 用 SendInput/mouse_event 注入的点击, 游戏侧仍可能识别为"模拟"。
|
||||||
|
这个 DLL 通过罗技驱动的虚拟 HID 设备发事件。
|
||||||
|
|
||||||
|
⛔ 两个必须知道的前提(2026-10-22 实测):
|
||||||
|
|
||||||
|
1. **会话必须是物理 console**
|
||||||
|
RDP 新建的是独立会话, 和物理桌面隔离。在 RDP 会话里调 `moveR` 光标纹丝不动
|
||||||
|
(实测 22 次采样全程 (1043,758) 不动), 切到 console 会话后立刻正常。
|
||||||
|
比较当前进程会话与 WTSGetActiveConsoleSessionId; 前台窗口句柄不能判定会话类型。
|
||||||
|
|
||||||
|
2. **必须关掉指针加速**
|
||||||
|
加速开着时 counts→像素是非线性的(实测 +100/+200/+400 对应 -45/-3/-3 像素),
|
||||||
|
当时的速度设置下关闭后比值为 1.0000。没关的话本模块会报警并拒绝定位,
|
||||||
|
而不是给出一个不准的位置。
|
||||||
|
|
||||||
|
接口只用 `device_open / moveR / mouse_down / mouse_up / key_down / key_up / scroll`,
|
||||||
|
这是 logitech.test.py 里验证过的那几个。
|
||||||
|
"""
|
||||||
|
import ctypes
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
from ctypes import wintypes
|
||||||
|
from functools import lru_cache
|
||||||
|
|
||||||
|
# win32 SPI 常量
|
||||||
|
SPI_GETMOUSE = 0x0003
|
||||||
|
SPI_GETMOUSESPEED = 0x0070
|
||||||
|
|
||||||
|
DEFAULT_DLL = r'E:\罗技键鼠驱动\logitech.driver.dll'
|
||||||
|
|
||||||
|
|
||||||
|
class Cursor(ctypes.Structure):
|
||||||
|
_fields_ = [('x', ctypes.c_long), ('y', ctypes.c_long)]
|
||||||
|
|
||||||
|
|
||||||
|
@lru_cache(maxsize=None)
|
||||||
|
def _win_library(name):
|
||||||
|
# 使用独立绑定, 避免 argtypes 污染 AALC/pyautogui 共用的 ctypes.windll。
|
||||||
|
return ctypes.WinDLL(name, use_last_error=True)
|
||||||
|
|
||||||
|
|
||||||
|
def _api(library, name, result, args):
|
||||||
|
fn = getattr(_win_library(library), name)
|
||||||
|
fn.restype, fn.argtypes = result, args
|
||||||
|
return fn
|
||||||
|
|
||||||
|
|
||||||
|
def get_cursor():
|
||||||
|
c = Cursor()
|
||||||
|
fn = _api('user32', 'GetCursorPos', wintypes.BOOL, [ctypes.POINTER(Cursor)])
|
||||||
|
if not fn(ctypes.byref(c)):
|
||||||
|
raise OSError('GetCursorPos 失败')
|
||||||
|
return (c.x, c.y)
|
||||||
|
|
||||||
|
|
||||||
|
def foreground_window():
|
||||||
|
return _api('user32', 'GetForegroundWindow', wintypes.HWND, [])()
|
||||||
|
|
||||||
|
|
||||||
|
def is_console_session():
|
||||||
|
current = wintypes.DWORD()
|
||||||
|
query = _api('kernel32', 'ProcessIdToSessionId', wintypes.BOOL,
|
||||||
|
[wintypes.DWORD, ctypes.POINTER(wintypes.DWORD)])
|
||||||
|
if not query(os.getpid(), ctypes.byref(current)):
|
||||||
|
raise OSError('ProcessIdToSessionId 失败')
|
||||||
|
console = _api('kernel32', 'WTSGetActiveConsoleSessionId', wintypes.DWORD, [])()
|
||||||
|
return console != 0xFFFFFFFF and current.value == console
|
||||||
|
|
||||||
|
|
||||||
|
def has_foreground():
|
||||||
|
"""当前是否存在前台窗口; 激活切换时也可能短暂为 0。"""
|
||||||
|
return bool(foreground_window())
|
||||||
|
|
||||||
|
|
||||||
|
def acceleration_on():
|
||||||
|
"""指针加速是否开着。开着就别指望 counts 和像素成线性。"""
|
||||||
|
a = (ctypes.c_int * 3)()
|
||||||
|
fn = _api('user32', 'SystemParametersInfoA', wintypes.BOOL,
|
||||||
|
[wintypes.UINT, wintypes.UINT, ctypes.c_void_p, wintypes.UINT])
|
||||||
|
if not fn(SPI_GETMOUSE, 0, ctypes.byref(a), 0):
|
||||||
|
raise OSError('读取指针加速设置失败')
|
||||||
|
return bool(a[2])
|
||||||
|
|
||||||
|
|
||||||
|
def mouse_speed():
|
||||||
|
s = ctypes.c_int()
|
||||||
|
fn = _api('user32', 'SystemParametersInfoA', wintypes.BOOL,
|
||||||
|
[wintypes.UINT, wintypes.UINT, ctypes.c_void_p, wintypes.UINT])
|
||||||
|
if not fn(SPI_GETMOUSESPEED, 0, ctypes.byref(s), 0):
|
||||||
|
raise OSError('读取指针速度失败')
|
||||||
|
return s.value
|
||||||
|
|
||||||
|
|
||||||
|
class DriverInput:
|
||||||
|
"""罗技驱动级鼠标/键盘。
|
||||||
|
|
||||||
|
定位采用**闭环**: 发相对位移 -> 读回实际位置 -> 不够就再发, 直到误差 <= tol。
|
||||||
|
这样不依赖任何标定常数, 也能对抗偶发的坐标跳变。
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, dll_path=None, log=print):
|
||||||
|
self.dll_path = dll_path or os.environ.get('LCP_LOGITECH_DLL') or DEFAULT_DLL
|
||||||
|
self.log = log
|
||||||
|
self._dll = None
|
||||||
|
self._open = False
|
||||||
|
# 目标窗口句柄。有它才能做句柄级前台校验 —— 几何校验在窗口重叠时没用:
|
||||||
|
# 实测把浏览器切到前台, 点游戏里同一个坐标, 只比矩形的话校验照样通过。
|
||||||
|
self.hwnd = 0
|
||||||
|
|
||||||
|
def bind_window(self, hwnd):
|
||||||
|
"""绑定目标窗口。绑定后 click() 会做句柄级前台校验。"""
|
||||||
|
self.hwnd = int(hwnd or 0)
|
||||||
|
return self
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 生命周期
|
||||||
|
|
||||||
|
def open(self):
|
||||||
|
if self._open:
|
||||||
|
return True
|
||||||
|
if not os.path.exists(self.dll_path):
|
||||||
|
self.log('[driver] 找不到 %s' % self.dll_path)
|
||||||
|
return False
|
||||||
|
try:
|
||||||
|
self._dll = ctypes.CDLL(self.dll_path)
|
||||||
|
for name in ('device_open', 'moveR', 'mouse_down', 'mouse_up'):
|
||||||
|
getattr(self._dll, name)
|
||||||
|
ok = self._dll.device_open() == 1
|
||||||
|
except (OSError, AttributeError) as e:
|
||||||
|
self.log('[driver] 加载 DLL 失败: %s' % e)
|
||||||
|
self._dll = None
|
||||||
|
return False
|
||||||
|
self._open = bool(ok)
|
||||||
|
if not ok:
|
||||||
|
self.log('[driver] device_open() != 1, 罗技驱动未就绪')
|
||||||
|
return self._open
|
||||||
|
|
||||||
|
@property
|
||||||
|
def ready(self):
|
||||||
|
return self._open and self._dll is not None
|
||||||
|
|
||||||
|
def preflight(self):
|
||||||
|
"""返回 (能否用, 原因)。用之前调一次, 把不能用的原因说清楚。"""
|
||||||
|
if not self.open():
|
||||||
|
return False, '罗技驱动不可用(device_open 失败)'
|
||||||
|
try:
|
||||||
|
if not is_console_session():
|
||||||
|
return False, '当前进程不在物理 console 会话, 不启用驱动输入'
|
||||||
|
if not has_foreground():
|
||||||
|
return False, '当前会话没有前台窗口(GetForegroundWindow=0), 暂不启用驱动输入'
|
||||||
|
if acceleration_on():
|
||||||
|
return False, ('指针加速开着, counts 与像素不成比例, 定位会不准 —— '
|
||||||
|
'关掉"提高指针精确度"后重试')
|
||||||
|
except (OSError, AttributeError) as e:
|
||||||
|
return False, '无法确认输入环境: %s' % e
|
||||||
|
return True, 'ok'
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 移动
|
||||||
|
|
||||||
|
def move_relative(self, dx, dy):
|
||||||
|
if not self.ready:
|
||||||
|
return False
|
||||||
|
if dx == 0 and dy == 0:
|
||||||
|
return True
|
||||||
|
self._dll.moveR(int(dx), int(dy), True)
|
||||||
|
return True
|
||||||
|
|
||||||
|
def move_to(self, sx, sy, tol=1, iters=10, settle=0.03):
|
||||||
|
"""把光标精确移到屏幕坐标 (sx, sy)。返回是否到位。"""
|
||||||
|
if not self.ready:
|
||||||
|
return False
|
||||||
|
for _ in range(iters):
|
||||||
|
cx, cy = get_cursor()
|
||||||
|
dx, dy = int(sx) - cx, int(sy) - cy
|
||||||
|
if abs(dx) <= tol and abs(dy) <= tol:
|
||||||
|
return True
|
||||||
|
if self.move_relative(dx, dy) is False:
|
||||||
|
return False
|
||||||
|
time.sleep(settle)
|
||||||
|
cx, cy = get_cursor()
|
||||||
|
return abs(int(sx) - cx) <= tol and abs(int(sy) - cy) <= tol
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 按键
|
||||||
|
|
||||||
|
def down(self, button=1):
|
||||||
|
if self.ready:
|
||||||
|
self._dll.mouse_down(int(button))
|
||||||
|
|
||||||
|
def up(self, button=1):
|
||||||
|
if self.ready:
|
||||||
|
self._dll.mouse_up(int(button))
|
||||||
|
|
||||||
|
def click(self, sx, sy, times=1, tol=1, require_foreground=True,
|
||||||
|
press_ms=60, settle=0.05):
|
||||||
|
"""先确认到位置, 再按下抬起。
|
||||||
|
|
||||||
|
⛔ 三个已验证的"位置对却点不上"原因(2026-10-23 实测):
|
||||||
|
1. **前台不是游戏** —— 点击会送给当前前台窗口。实测: 窗口位置正确、坐标
|
||||||
|
换算正确, 但前台是别的窗口, 结果点了个寂寞, 而旧版这里照样返回 True。
|
||||||
|
现在用 require_foreground 检查: 点击点必须落在**前台窗口的客户区**内,
|
||||||
|
否则拒绝并报错 —— 宁可失败也不要静默点错地方。
|
||||||
|
2. **移动后立刻按下** —— 游戏按帧采样, 移动还没被处理就点击, 会算在旧位置。
|
||||||
|
所以定位成功后先 settle 再按。
|
||||||
|
3. **按下时间太短** —— 默认 30ms 在掉帧时会漏; 改成 60ms。
|
||||||
|
实测 30/60/120ms 在干净环境下都能中, 但 60ms 对负载高的情况更稳。
|
||||||
|
"""
|
||||||
|
if not self.ready:
|
||||||
|
return False
|
||||||
|
if not self.move_to(sx, sy, tol=tol):
|
||||||
|
cx, cy = get_cursor()
|
||||||
|
self.log('[driver] 定位失败: 目标(%d,%d) 实际(%d,%d), 不点击'
|
||||||
|
% (sx, sy, cx, cy))
|
||||||
|
return False
|
||||||
|
if require_foreground:
|
||||||
|
ok, why = click_point_is_on_foreground(sx, sy, self.hwnd or None)
|
||||||
|
if not ok:
|
||||||
|
self.log('[driver] 拒绝点击(%d,%d): %s' % (sx, sy, why))
|
||||||
|
return False
|
||||||
|
if settle:
|
||||||
|
time.sleep(settle)
|
||||||
|
for _ in range(int(times)):
|
||||||
|
try:
|
||||||
|
self._dll.mouse_down(1)
|
||||||
|
time.sleep(press_ms / 1000.0)
|
||||||
|
finally:
|
||||||
|
self._dll.mouse_up(1)
|
||||||
|
return True
|
||||||
|
|
||||||
|
def key_down(self, key):
|
||||||
|
if self.ready:
|
||||||
|
self._dll.key_down(key)
|
||||||
|
|
||||||
|
def key_up(self, key):
|
||||||
|
if self.ready:
|
||||||
|
self._dll.key_up(key)
|
||||||
|
|
||||||
|
def scroll(self, amount):
|
||||||
|
if self.ready:
|
||||||
|
self._dll.scroll(int(amount))
|
||||||
|
|
||||||
|
|
||||||
|
def click_point_is_on_foreground(sx, sy, hwnd=None):
|
||||||
|
"""(屏幕坐标) 是否安全可点。
|
||||||
|
|
||||||
|
返回 (是否安全, 原因)。
|
||||||
|
|
||||||
|
⛔ 为什么必须比对句柄而不是比对矩形(2026-10-23 实测教训):
|
||||||
|
最初只判断"点击点落在前台窗口的矩形内", 结果把浏览器切到前台、点游戏里
|
||||||
|
同一个坐标, 校验**照样通过** —— 因为那个屏幕坐标同时也落在浏览器窗口的
|
||||||
|
矩形里。几何判断在窗口互相重叠时毫无意义。
|
||||||
|
|
||||||
|
所以: 给了 hwnd 就要求前台窗口**就是它**(或是它的子窗口); 没给 hwnd 时
|
||||||
|
退化成"有前台窗口且点在它矩形内", 可用性有限, 仅作兜底。
|
||||||
|
"""
|
||||||
|
user32 = ctypes.windll.user32
|
||||||
|
fg = user32.GetForegroundWindow()
|
||||||
|
if not fg:
|
||||||
|
return False, '当前没有前台窗口(GetForegroundWindow=0)'
|
||||||
|
if hwnd:
|
||||||
|
if fg == hwnd or user32.IsChild(hwnd, fg):
|
||||||
|
return True, 'ok'
|
||||||
|
buf = ctypes.create_unicode_buffer(64)
|
||||||
|
user32.GetWindowTextW(fg, buf, 64)
|
||||||
|
other = ctypes.create_unicode_buffer(64)
|
||||||
|
user32.GetWindowTextW(hwnd, other, 64)
|
||||||
|
return False, ('前台不是目标窗口(前台=%r, 目标=%r) —— 这次点击会打到别的窗口'
|
||||||
|
% (buf.value, other.value))
|
||||||
|
pt = wintypes.POINT(int(sx), int(sy))
|
||||||
|
rect = wintypes.RECT()
|
||||||
|
if not user32.GetWindowRect(fg, ctypes.byref(rect)):
|
||||||
|
return False, '取不到前台窗口的区域'
|
||||||
|
if not (rect.left <= pt.x < rect.right and rect.top <= pt.y < rect.bottom):
|
||||||
|
return False, ('点击点(%d,%d)不在前台窗口内(区域 %d,%d-%d,%d)'
|
||||||
|
% (pt.x, pt.y, rect.left, rect.top, rect.right, rect.bottom))
|
||||||
|
return True, 'ok'
|
||||||
|
|
||||||
|
|
||||||
|
def client_to_screen(hwnd, x, y):
|
||||||
|
"""游戏客户区坐标 -> 屏幕坐标。"""
|
||||||
|
if not hwnd:
|
||||||
|
raise OSError('没有游戏窗口句柄')
|
||||||
|
pt = wintypes.POINT(int(x), int(y))
|
||||||
|
fn = _api('user32', 'ClientToScreen', wintypes.BOOL,
|
||||||
|
[wintypes.HWND, ctypes.POINTER(wintypes.POINT)])
|
||||||
|
if not fn(hwnd, ctypes.byref(pt)):
|
||||||
|
raise OSError('ClientToScreen 失败, 未发送输入')
|
||||||
|
return (pt.x, pt.y)
|
||||||
@@ -36,6 +36,10 @@ class Engine:
|
|||||||
"""截图并落盘。返回 {'path': str, 'w': int, 'h': int}。"""
|
"""截图并落盘。返回 {'path': str, 'w': int, 'h': int}。"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
def show_game_background(self):
|
||||||
|
"""Show the game window without activating it or sending input."""
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def ocr(self):
|
def ocr(self):
|
||||||
"""截图 + OCR。返回 (shot, items); items = [{text, x, y, w, h, score}]。"""
|
"""截图 + OCR。返回 (shot, items); items = [{text, x, y, w, h, score}]。"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ class FakeEngine(Engine):
|
|||||||
self.shots += 1
|
self.shots += 1
|
||||||
return {'path': 'fake/shot_%d.png' % self.shots, 'w': 1920, 'h': 1080}
|
return {'path': 'fake/shot_%d.png' % self.shots, 'w': 1920, 'h': 1080}
|
||||||
|
|
||||||
|
def show_game_background(self):
|
||||||
|
self.actions.append(('show_game_background',))
|
||||||
|
return {'visible': True, 'foreground_changed': False}
|
||||||
|
|
||||||
def ocr(self):
|
def ocr(self):
|
||||||
shot = self.screenshot()
|
shot = self.screenshot()
|
||||||
items = self.frames.pop(0) if len(self.frames) > 1 else self.frames[0]
|
items = self.frames.pop(0) if len(self.frames) > 1 else self.frames[0]
|
||||||
|
|||||||
@@ -0,0 +1,128 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""全局急停热键。
|
||||||
|
|
||||||
|
为什么需要: 驱动级点击是闭环定位的 —— 手一动, 下一次点击前会读到新位置、算出
|
||||||
|
偏差、再把你推回目标点。所以任务运行期间鼠标是"拔河"状态, 用户没法用鼠标去点
|
||||||
|
停止按钮。键盘不受影响, 所以急停必须走键盘。
|
||||||
|
|
||||||
|
⛔ 为什么不用 pynput / 全局钩子(2026-10-22 实测):
|
||||||
|
pynput 的 GlobalHotKeys 在这台机器上**收不到任何键盘事件** —— 静态注册成功、
|
||||||
|
线程也活着, 但 keybd_event 和 SendInput 两种注入都触发不了它。钩子依赖
|
||||||
|
WH_KEYBOARD_LL, 在当前会话下不工作。
|
||||||
|
改用 GetAsyncKeyState 轮询: 不装钩子、不需要消息循环, 实测能正确看到注入的
|
||||||
|
按键。用 0x8000 位判断"当前按下"。
|
||||||
|
|
||||||
|
另外 AALC 自带的 pause_hotkey 也帮不上忙: 那个配置项只在 GUI
|
||||||
|
(app/farming_interface.py) 里注册, lc_mcp 走命令行子进程, 那条路径上没有监听。
|
||||||
|
|
||||||
|
默认 End(小键盘区右下角, 好按且不冲突), 可用环境变量 LCP_KILL_KEY 改成 pause / scrolllock / f11 等。
|
||||||
|
⛔ 不要用 F12: 那是 Steam 的截图键(用户 2026-10-22 指出), 按下去会弹 Steam 截图
|
||||||
|
覆盖层, 而且可能被 Steam 抢先消费。Esc / F11 也不合适 —— 游戏里分别是关菜单
|
||||||
|
和切全屏。Pause 没有任何软件抢, 是最稳的选择。
|
||||||
|
按下后直接 os._exit —— 任务本来就是子进程, 硬退出不留锁或半截状态, 这与
|
||||||
|
aalc_task.py "停止 = 杀进程树" 的设计前提一致。监听器活在任务进程内,
|
||||||
|
所以即使 MCP 服务出问题、用户联系不上调用方, 按热键仍然能停。
|
||||||
|
"""
|
||||||
|
import ctypes
|
||||||
|
import os
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
|
||||||
|
DEFAULT_KEY = 'end'
|
||||||
|
EXIT_CODE = 130 # 与 SIGINT 一致, 便于上层识别"被用户中止"
|
||||||
|
POLL_INTERVAL = 0.05 # 50ms 轮询, 人手按一下不会漏
|
||||||
|
|
||||||
|
# 常用键 -> 虚拟键码。f12 保留是为了兼容旧配置, 但**不推荐** —— Steam 占用它。
|
||||||
|
VK = {
|
||||||
|
'f1': 0x70, 'f2': 0x71, 'f3': 0x72, 'f4': 0x73, 'f5': 0x74, 'f6': 0x75,
|
||||||
|
'f7': 0x76, 'f8': 0x77, 'f9': 0x78, 'f10': 0x79, 'f11': 0x7A, 'f12': 0x7B,
|
||||||
|
'esc': 0x1B, 'escape': 0x1B,
|
||||||
|
'pause': 0x13, 'break': 0x13,
|
||||||
|
'end': 0x23, 'home': 0x24, 'delete': 0x2E, 'insert': 0x2D,
|
||||||
|
'scrolllock': 0x91, 'numlock': 0x90, 'capslock': 0x14,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def resolve_vk(key):
|
||||||
|
"""键名 -> 虚拟键码。认不出返回 None(调用方负责报错, 不要静默用默认值)。"""
|
||||||
|
name = (key or '').strip().lower().strip('<>')
|
||||||
|
if not name:
|
||||||
|
name = DEFAULT_KEY
|
||||||
|
return VK.get(name)
|
||||||
|
|
||||||
|
|
||||||
|
def _pressed(vk):
|
||||||
|
"""GetAsyncKeyState 的最高位 = 当前是否按下。"""
|
||||||
|
return bool(ctypes.windll.user32.GetAsyncKeyState(vk) & 0x8000)
|
||||||
|
|
||||||
|
|
||||||
|
class KillSwitch:
|
||||||
|
"""轮询线程。按住热键会立刻退出, 不会重复触发。"""
|
||||||
|
|
||||||
|
def __init__(self, vk, log=print, key_name=DEFAULT_KEY):
|
||||||
|
self.vk = vk
|
||||||
|
self.log = log
|
||||||
|
self.key_name = key_name
|
||||||
|
self.fired = False
|
||||||
|
self._stopped = threading.Event()
|
||||||
|
self._thread = threading.Thread(target=self._run, daemon=True,
|
||||||
|
name='lc_mcp-killswitch')
|
||||||
|
|
||||||
|
def start(self):
|
||||||
|
self._thread.start()
|
||||||
|
return self
|
||||||
|
|
||||||
|
def is_alive(self):
|
||||||
|
return self._thread.is_alive()
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
self._stopped.set()
|
||||||
|
|
||||||
|
def _run(self):
|
||||||
|
# 先等一会儿, 避免把启动时按住的键当成急停
|
||||||
|
time.sleep(0.3)
|
||||||
|
while not self._stopped.is_set():
|
||||||
|
if _pressed(self.vk):
|
||||||
|
self._fire()
|
||||||
|
return
|
||||||
|
time.sleep(POLL_INTERVAL)
|
||||||
|
|
||||||
|
def _fire(self):
|
||||||
|
if self.fired:
|
||||||
|
return
|
||||||
|
self.fired = True
|
||||||
|
try:
|
||||||
|
self.log('[lc_mcp] ⛔ 急停热键 %s 被按下, 立即终止任务'
|
||||||
|
% self.key_name.upper())
|
||||||
|
self.log('[lc_mcp] 游戏窗口会保留, 可用 run_task 重新开始')
|
||||||
|
finally:
|
||||||
|
os._exit(EXIT_CODE)
|
||||||
|
|
||||||
|
|
||||||
|
def install(log=print, key=None):
|
||||||
|
"""启动急停轮询线程。返回 KillSwitch, 失败返回 None(不抛异常)。"""
|
||||||
|
key = key or os.environ.get('LCP_KILL_KEY') or DEFAULT_KEY
|
||||||
|
vk = resolve_vk(key)
|
||||||
|
if vk is None:
|
||||||
|
log('[lc_mcp] 急停热键不可用: 认不出键名 %r(可用: %s), 请用 Ctrl+Alt+Del 强制停止'
|
||||||
|
% (key, ', '.join(sorted(VK))))
|
||||||
|
return None
|
||||||
|
try:
|
||||||
|
switch = KillSwitch(vk, log=log, key_name=key).start()
|
||||||
|
except Exception as e:
|
||||||
|
log('[lc_mcp] 急停热键启动失败(%s: %s), 请用 Ctrl+Alt+Del 强制停止'
|
||||||
|
% (type(e).__name__, e))
|
||||||
|
return None
|
||||||
|
log('[lc_mcp] 急停热键已就绪: 按 %s 立即停止任务(键盘可用, 不需要鼠标, '
|
||||||
|
'也不依赖 MCP 服务)' % key.upper())
|
||||||
|
return switch
|
||||||
|
|
||||||
|
|
||||||
|
def stop(switch):
|
||||||
|
"""停止轮询(任务正常结束时调用)。"""
|
||||||
|
if switch is None:
|
||||||
|
return
|
||||||
|
try:
|
||||||
|
switch.stop()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""任务启动前的配置检查。
|
||||||
|
|
||||||
|
10-04/05 的几次长时间空转都源于配置: AALC 不报错, 只是一直原地打转。
|
||||||
|
这里把已知的坑在启动前拦下来, 返回人能看懂的原因。
|
||||||
|
|
||||||
|
check() 只吃普通 dict, 不依赖 AALC, 便于单测; collect() 负责从 AALC cfg 取值。
|
||||||
|
"""
|
||||||
|
import os
|
||||||
|
|
||||||
|
# 窗口边框 + 标题栏(100% 缩放下实测 16x39, 留一点余量)
|
||||||
|
FRAME_W, FRAME_H = 16, 40
|
||||||
|
ALLOW_LUNACY_ENV = 'LCP_ALLOW_LUNACY'
|
||||||
|
|
||||||
|
|
||||||
|
def collect(cfg):
|
||||||
|
teams = {}
|
||||||
|
for key, team in (cfg.get_value('teams') or {}).items():
|
||||||
|
data = team.model_dump() if hasattr(team, 'model_dump') else dict(team)
|
||||||
|
teams[str(key)] = data
|
||||||
|
return {
|
||||||
|
'simulator': bool(cfg.get_value('simulator')),
|
||||||
|
'mirror': bool(cfg.get_value('mirror')),
|
||||||
|
'set_win_size': int(cfg.get_value('set_win_size')),
|
||||||
|
'set_lunacy_to_enkephalin': int(cfg.get_value('set_lunacy_to_enkephalin') or 0),
|
||||||
|
'teams_active_queue': list(cfg.get_value('teams_active_queue') or []),
|
||||||
|
'teams': teams,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def desktop_size():
|
||||||
|
"""主显示器分辨率(进程已由 bootstrap 设为 DPI aware, 取到的是物理像素)。"""
|
||||||
|
from ctypes import windll
|
||||||
|
return windll.user32.GetSystemMetrics(0), windll.user32.GetSystemMetrics(1)
|
||||||
|
|
||||||
|
|
||||||
|
def check(values, task, desktop=None, env=None):
|
||||||
|
"""返回问题列表; 空列表表示可以启动。"""
|
||||||
|
env = os.environ if env is None else env
|
||||||
|
problems = []
|
||||||
|
|
||||||
|
lunacy = values.get('set_lunacy_to_enkephalin', 0)
|
||||||
|
if lunacy and task != 'enkephalin' and env.get(ALLOW_LUNACY_ENV) != '1':
|
||||||
|
problems.append(
|
||||||
|
'set_lunacy_to_enkephalin=%s: 体力不足时会花狂气换体力。狂气只用于抽卡, 请在 AALC 里改成 0'
|
||||||
|
'(确需使用时设环境变量 %s=1)' % (lunacy, ALLOW_LUNACY_ENV))
|
||||||
|
|
||||||
|
# all 只在 AALC 里勾选了镜牢时才会编队
|
||||||
|
if task == 'mirror' or (task == 'all' and values.get('mirror')):
|
||||||
|
teams = values.get('teams', {})
|
||||||
|
for num in values.get('teams_active_queue', []):
|
||||||
|
team = teams.get(str(num))
|
||||||
|
if team is None:
|
||||||
|
problems.append('teams_active_queue 里的队伍 %s 没有配置' % num)
|
||||||
|
continue
|
||||||
|
order = list(team.get('sinner_order') or [])
|
||||||
|
# team_formation 从 1 开始按顺序找罪人, 缺 1 就一个都不选, 然后无限重试编队
|
||||||
|
if 1 not in order:
|
||||||
|
problems.append(
|
||||||
|
'队伍 %s 的 sinner_order 没有罪人(全是 0): 镜牢编队会选空队伍并无限重试。'
|
||||||
|
'在 AALC 队伍设置里勾选罪人并排序' % num)
|
||||||
|
|
||||||
|
if not values.get('simulator') and desktop:
|
||||||
|
size = values.get('set_win_size', 0)
|
||||||
|
need_w = int(size * 16 / 9) + FRAME_W
|
||||||
|
need_h = size + FRAME_H
|
||||||
|
if need_w > desktop[0] or need_h > desktop[1]:
|
||||||
|
problems.append(
|
||||||
|
'set_win_size=%s 需要 %sx%s 的窗口(含标题栏), 桌面只有 %sx%s: 窗口会被压扁成非 16:9,'
|
||||||
|
' 模板匹配全部失效。改小 set_win_size(如 720)或调大桌面分辨率'
|
||||||
|
% (size, need_w, need_h, desktop[0], desktop[1]))
|
||||||
|
return problems
|
||||||
+8
-2
@@ -11,7 +11,7 @@ from .engine import find_hits
|
|||||||
|
|
||||||
MAX_WAIT = 300.0
|
MAX_WAIT = 300.0
|
||||||
WAIT_INTERVAL = 1.0
|
WAIT_INTERVAL = 1.0
|
||||||
INPUT_TOOLS = {'click', 'click_text', 'click_image', 'keypress', 'type_text', 'drag'}
|
INPUT_TOOLS = {'click', 'click_text', 'click_image', 'keypress', 'type_text', 'drag', 'show_game_background'}
|
||||||
TASK_TOOLS = {'run_task', 'task_status', 'stop_task'}
|
TASK_TOOLS = {'run_task', 'task_status', 'stop_task'}
|
||||||
|
|
||||||
|
|
||||||
@@ -31,6 +31,8 @@ _IMG = {'name': {'type': 'string', 'description': 'AALC 模板图相对路径,
|
|||||||
'description': 'clam=只在模板原位置找, normal=扩大范围, aggressive=全屏'}}
|
'description': 'clam=只在模板原位置找, normal=扩大范围, aggressive=全屏'}}
|
||||||
|
|
||||||
TOOLS = [
|
TOOLS = [
|
||||||
|
{'name': 'show_game_background', 'description': '后台显示/恢复游戏窗口,使隐藏窗口继续渲染;不激活前台、不发送鼠标或键盘输入。',
|
||||||
|
'inputSchema': _obj()},
|
||||||
{'name': 'get_state', 'description': '截图 + OCR, 返回游戏窗口内全部文字(含坐标/置信度)。决策前先调这个, 不要猜坐标',
|
{'name': 'get_state', 'description': '截图 + OCR, 返回游戏窗口内全部文字(含坐标/置信度)。决策前先调这个, 不要猜坐标',
|
||||||
'inputSchema': _obj()},
|
'inputSchema': _obj()},
|
||||||
{'name': 'click_text', 'description': '按文字点击: OCR 定位后点中心。子串匹配、忽略空格, 完全相同的优先; index 选第几个命中',
|
{'name': 'click_text', 'description': '按文字点击: OCR 定位后点中心。子串匹配、忽略空格, 完全相同的优先; index 选第几个命中',
|
||||||
@@ -58,7 +60,8 @@ TOOLS = [
|
|||||||
'enkephalin=狂气换体力(times); mirror=镜牢(count 次数)。任务运行期间禁止手动点击类工具'),
|
'enkephalin=狂气换体力(times); mirror=镜牢(count 次数)。任务运行期间禁止手动点击类工具'),
|
||||||
'inputSchema': _obj({'task': {'type': 'string', 'enum': sorted(TASKS)},
|
'inputSchema': _obj({'task': {'type': 'string', 'enum': sorted(TASKS)},
|
||||||
'exp': _NUM, 'thread': _NUM, 'times': _NUM, 'count': _NUM}, ['task'])},
|
'exp': _NUM, 'thread': _NUM, 'times': _NUM, 'count': _NUM}, ['task'])},
|
||||||
{'name': 'task_status', 'description': '查看任务状态(idle/running/succeeded/failed/stopped)和日志尾部',
|
{'name': 'task_status', 'description': '查看任务状态(idle/running/succeeded/failed/stopped)和日志尾部。'
|
||||||
|
'succeeded 也要看 errors; running 时出现 stall 说明 AALC 在空转(如选中空队伍), 应 stop_task',
|
||||||
'inputSchema': _obj({'lines': {'type': 'number', 'default': 30}})},
|
'inputSchema': _obj({'lines': {'type': 'number', 'default': 30}})},
|
||||||
{'name': 'stop_task', 'description': '强制停止当前任务(杀掉任务进程)', 'inputSchema': _obj()},
|
{'name': 'stop_task', 'description': '强制停止当前任务(杀掉任务进程)', 'inputSchema': _obj()},
|
||||||
]
|
]
|
||||||
@@ -146,6 +149,9 @@ class Server:
|
|||||||
return {'ok': False, 'error': 'AALC 任务 %s 正在运行, 手动输入会打乱它; 先 stop_task' % self.tasks.info['task']}
|
return {'ok': False, 'error': 'AALC 任务 %s 正在运行, 手动输入会打乱它; 先 stop_task' % self.tasks.info['task']}
|
||||||
e = self.engine
|
e = self.engine
|
||||||
|
|
||||||
|
if name == 'show_game_background':
|
||||||
|
return dict(e.show_game_background(), ok=True)
|
||||||
|
|
||||||
if name == 'screenshot':
|
if name == 'screenshot':
|
||||||
return dict(e.screenshot(), ok=True)
|
return dict(e.screenshot(), ok=True)
|
||||||
if name == 'get_state':
|
if name == 'get_state':
|
||||||
|
|||||||
+77
-6
@@ -3,11 +3,13 @@
|
|||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import signal
|
import signal
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
from collections import deque
|
||||||
|
|
||||||
from .aalc_task import RESTORE_ENV
|
from .aalc_task import RESTORE_ENV
|
||||||
|
|
||||||
@@ -40,15 +42,77 @@ ERROR_SCAN_LINES = 400
|
|||||||
|
|
||||||
|
|
||||||
def log_errors(path, limit=3):
|
def log_errors(path, limit=3):
|
||||||
"""挑出日志尾部的报错行。
|
"""流式扫描整份任务日志, 只保留最后 limit 条报错。
|
||||||
|
|
||||||
AALC 的每日流程在单次战斗失败后会继续跑完并正常退出(exit 0), 只看退出码
|
AALC 的每日流程在单次战斗失败后会继续跑完并正常退出(exit 0), 只看退出码
|
||||||
会把"超出最大尝试次数,未能进入战斗"这类失败当成成功, 所以状态里额外附上
|
会把"超出最大尝试次数,未能进入战斗"这类失败当成成功, 所以状态里额外附上
|
||||||
日志里的报错行。
|
日志里的报错行。
|
||||||
"""
|
"""
|
||||||
hits = [line for line in tail(path, ERROR_SCAN_LINES)
|
hits = deque(maxlen=limit)
|
||||||
if any(marker in line for marker in ERROR_MARKERS)]
|
try:
|
||||||
return hits[-limit:]
|
with open(path, encoding='utf-8', errors='replace') as f:
|
||||||
|
for line in f:
|
||||||
|
if any(marker in line for marker in ERROR_MARKERS):
|
||||||
|
hits.append(line.rstrip('\r\n'))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
return list(hits)
|
||||||
|
|
||||||
|
|
||||||
|
# AALC 卡死时不报错、进程健在, 只是反复输出同一类日志。
|
||||||
|
# "配队人数OCR得到" 只在编队人数检查失败的重试里打印, 健康运行中一次都不会出现;
|
||||||
|
# 2026-10-05 的三次空队伍卡死里它分别刷了 242/306/24 次。
|
||||||
|
STALL_MARKERS = {'empty_team': '配队人数OCR得到'}
|
||||||
|
STALL_THRESHOLD = 10
|
||||||
|
|
||||||
|
# 计数法抓不到"界面误判"型卡死: AALC 把别的界面认成目标界面, 对着误匹配的
|
||||||
|
# 模板反复盲点, 日志照样疯涨, 只是再没有任何流程进展。2026-10-13 实测在镜牢
|
||||||
|
# 入口把 home/luxcavation_assets.png 匹配到 0.836, 连点 18 分钟不停。
|
||||||
|
# 所以再加一条与内容无关的判据: 里程碑(开始执行/结束执行)多久没前进了。
|
||||||
|
STALL_NO_PROGRESS_S = int(os.environ.get('LCP_STALL_NO_PROGRESS_S', 10 * 60))
|
||||||
|
# 里程碑可能离文件尾很远(卡死期间日志涨得很快), 回溯窗口给大一点
|
||||||
|
PROGRESS_SCAN_BYTES = 8 * 1024 * 1024
|
||||||
|
TIMESTAMP_RE = re.compile(r'(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})')
|
||||||
|
PROGRESS_RE = re.compile(r'(开始执行|结束执行)\s')
|
||||||
|
|
||||||
|
|
||||||
|
def last_progress_epoch(path):
|
||||||
|
"""日志里最后一条里程碑的时间戳(epoch 秒); 找不到返回 None。"""
|
||||||
|
try:
|
||||||
|
with open(path, 'rb') as f:
|
||||||
|
f.seek(0, os.SEEK_END)
|
||||||
|
f.seek(max(0, f.tell() - PROGRESS_SCAN_BYTES))
|
||||||
|
blob = f.read().decode('utf-8', 'replace')
|
||||||
|
except OSError:
|
||||||
|
return None
|
||||||
|
last = None
|
||||||
|
for line in blob.splitlines():
|
||||||
|
if not PROGRESS_RE.search(line):
|
||||||
|
continue
|
||||||
|
m = TIMESTAMP_RE.search(line)
|
||||||
|
if not m:
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
last = time.mktime(time.strptime(m.group(1), '%Y-%m-%d %H:%M:%S'))
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
|
return last
|
||||||
|
|
||||||
|
|
||||||
|
def log_stalls(path, now=None):
|
||||||
|
"""统计日志尾部的卡死信号, 达到阈值的返回 {名称: 次数}。"""
|
||||||
|
lines = tail(path, ERROR_SCAN_LINES)
|
||||||
|
counts = {name: sum(marker in line for line in lines) for name, marker in STALL_MARKERS.items()}
|
||||||
|
stalls = {name: n for name, n in counts.items() if n >= STALL_THRESHOLD}
|
||||||
|
|
||||||
|
# 必须随真实时间推进: 进程卡住不再写日志时, mtime 也会冻结。
|
||||||
|
# 离线复核历史日志时可显式传入当时的 now。
|
||||||
|
progress = last_progress_epoch(path)
|
||||||
|
if progress is not None:
|
||||||
|
idle = (time.time() if now is None else now) - progress
|
||||||
|
if idle >= STALL_NO_PROGRESS_S:
|
||||||
|
stalls['no_progress'] = int(idle)
|
||||||
|
return stalls
|
||||||
|
|
||||||
|
|
||||||
class TaskRunner:
|
class TaskRunner:
|
||||||
@@ -126,9 +190,16 @@ class TaskRunner:
|
|||||||
r = {'ok': True, 'state': state, 'task': self.info['task'], 'params': self.info['params'],
|
r = {'ok': True, 'state': state, 'task': self.info['task'], 'params': self.info['params'],
|
||||||
'elapsed_s': int((self.info.get('ended') or time.time()) - self.info['started']),
|
'elapsed_s': int((self.info.get('ended') or time.time()) - self.info['started']),
|
||||||
'log': self.info['log'], 'log_tail': tail(self.info['log'], max(1, min(int(lines), 200)))}
|
'log': self.info['log'], 'log_tail': tail(self.info['log'], max(1, min(int(lines), 200)))}
|
||||||
if code is not None:
|
if code is None:
|
||||||
|
stalls = log_stalls(self.info['log'])
|
||||||
|
if stalls:
|
||||||
|
r['stall'] = stalls
|
||||||
|
else:
|
||||||
r['exit_code'] = code
|
r['exit_code'] = code
|
||||||
errors = log_errors(self.info['log'])
|
# 子进程退出后日志已写完; 结果只计算一次, 避免轮询反复扫描大文件。
|
||||||
|
if 'errors' not in self.info:
|
||||||
|
self.info['errors'] = log_errors(self.info['log'])
|
||||||
|
errors = self.info['errors']
|
||||||
if errors:
|
if errors:
|
||||||
r['errors'] = errors
|
r['errors'] = errors
|
||||||
pending = self._pending_restores()
|
pending = self._pending_restores()
|
||||||
|
|||||||
@@ -0,0 +1,235 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""值守体检: 日志与报告交叉核对, 并挑出可疑记录。
|
||||||
|
|
||||||
|
用法: python audit_runs.py [--dir DIR] [--json]
|
||||||
|
退出码: 0 一切吻合 / 1 发现不一致
|
||||||
|
|
||||||
|
为什么需要这个脚本:
|
||||||
|
上一轮我照着自己写在 docs/WATCH.md 里的办法做核对, 结果 6 条全部报"对不上" ——
|
||||||
|
但数据其实是吻合的。坑在于: **日志的结论行写在一轮结束时, 报告的 started 是
|
||||||
|
开始时**, 两者天然差一个 elapsed_s。拿两个时间戳直接比必然全部失败。
|
||||||
|
|
||||||
|
正确关系是: 报告.started + elapsed ≈ 日志结论时刻。
|
||||||
|
|
||||||
|
代码里的时间关系比人记的可靠, 所以把核对做成脚本而不是让人照着文档敲
|
||||||
|
PowerShell —— 我手敲那次就误判了。
|
||||||
|
|
||||||
|
检查三件事:
|
||||||
|
1. 每份报告都能在日志里找到对应结论(时间对得上, 耗时和结果文本一致)
|
||||||
|
2. 日志里每条结论都有对应报告(没有"跑了但没留报告"的运行)
|
||||||
|
3. 疑似 mock 残留: 同一秒扎堆、或内容自相矛盾的结论行
|
||||||
|
"""
|
||||||
|
import argparse
|
||||||
|
import glob
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
from collections import defaultdict
|
||||||
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
|
DIR = os.path.expanduser(os.path.join('~', 'lc_mcp', 'modules'))
|
||||||
|
LOG_NAME = 'convert.log'
|
||||||
|
# 报告.started 与日志结论时刻的允许偏差(两边各写一次时间戳)
|
||||||
|
TOL_S = 5
|
||||||
|
|
||||||
|
CONCLUSION_RE = re.compile(
|
||||||
|
r'^\[(?P<t>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\]\s*===\s*(?P<result>.+?)\s*'
|
||||||
|
r'\((?P<ok>\w+)\), 耗时 (?P<secs>\d+)s ===')
|
||||||
|
START_RE = re.compile(
|
||||||
|
r'^\[(?P<t>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\]\s*===\s*开始: 体力换模块\s*===')
|
||||||
|
# 明显不可能出现在真实运行里的说法
|
||||||
|
IMPOSSIBLE = ('powershell not found', 'not found', 'No such file')
|
||||||
|
|
||||||
|
|
||||||
|
def parse_runs(path):
|
||||||
|
"""把日志解析成一轮一轮的 (开始, 结束, 结果, 耗时)。
|
||||||
|
|
||||||
|
⛔ 为什么要配对而不是只取结论行: 第一版只用结论行, 拿"报告.started + elapsed"
|
||||||
|
去和结论时刻比 —— 能对上就说明 elapsed 一致, 所以"耗时不符"那个分支永远不可能
|
||||||
|
触发, 是死代码。看起来在查、实际查不到的东西比没有更糟。
|
||||||
|
改成按日志里的"=== 开始: 体力换模块 ===" 配对, 报告的 started 才能和**开始**时刻
|
||||||
|
真正对照, 耗时也能独立核对。
|
||||||
|
"""
|
||||||
|
out = []
|
||||||
|
if not os.path.exists(path):
|
||||||
|
return out
|
||||||
|
pending = []
|
||||||
|
with open(path, encoding='utf-8') as f:
|
||||||
|
for line in f:
|
||||||
|
line = line.strip()
|
||||||
|
ms = START_RE.match(line)
|
||||||
|
if ms:
|
||||||
|
pending.append(datetime.strptime(ms.group('t'), '%Y-%m-%d %H:%M:%S'))
|
||||||
|
continue
|
||||||
|
mc = CONCLUSION_RE.match(line)
|
||||||
|
if mc:
|
||||||
|
start = pending.pop(0) if pending else None
|
||||||
|
out.append({'start': start,
|
||||||
|
'end': datetime.strptime(mc.group('t'), '%Y-%m-%d %H:%M:%S'),
|
||||||
|
'result': mc.group('result'), 'ok': mc.group('ok'),
|
||||||
|
'secs': int(mc.group('secs')), 'line': line})
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
# 兼容旧名字: 只要结论行
|
||||||
|
def parse_log(path):
|
||||||
|
return parse_runs(path)
|
||||||
|
|
||||||
|
|
||||||
|
def load_reports(d):
|
||||||
|
out = []
|
||||||
|
for p in sorted(glob.glob(os.path.join(d, 'convert_*.json'))):
|
||||||
|
try:
|
||||||
|
with open(p, encoding='utf-8') as f:
|
||||||
|
r = json.load(f)
|
||||||
|
except (OSError, ValueError):
|
||||||
|
continue
|
||||||
|
out.append({'file': os.path.basename(p),
|
||||||
|
'start': datetime.strptime(r['started'], '%Y-%m-%d %H:%M:%S'),
|
||||||
|
'secs': r.get('elapsed_s'), 'result': r.get('result', ''),
|
||||||
|
'ok': bool(r.get('ok')),
|
||||||
|
# ⛔ steps / converted 也得留着: 第一版只挑了 5 个字段, 结果
|
||||||
|
# "跨轮检查模组数"拿不到数据, 又是个查不出东西的检查。
|
||||||
|
'steps': r.get('steps') or [],
|
||||||
|
'converted': r.get('converted')})
|
||||||
|
out.sort(key=lambda r: r['start'])
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def same_second_clusters(conclusions):
|
||||||
|
"""同一秒里出现多行结论 = 几乎必然是测试批量产生的。"""
|
||||||
|
bysec = defaultdict(list)
|
||||||
|
for c in conclusions:
|
||||||
|
bysec[c['end']].append(c)
|
||||||
|
return {k: v for k, v in bysec.items() if len(v) > 1}
|
||||||
|
|
||||||
|
|
||||||
|
def impossible_claims(conclusions):
|
||||||
|
"""内容自相矛盾的结论(比如 powershell 明明在却说找不到)。"""
|
||||||
|
out = []
|
||||||
|
for c in conclusions:
|
||||||
|
low = c['result']
|
||||||
|
if any(k.lower() in low.lower() for k in IMPOSSIBLE):
|
||||||
|
out.append(c)
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
OWNED_RE = re.compile(r'模组\s*(\d+)\s*->\s*(\d+)')
|
||||||
|
|
||||||
|
|
||||||
|
def module_trajectory(reports):
|
||||||
|
"""跨轮检查模组数有没有减少。
|
||||||
|
|
||||||
|
⛔ 2026-10-17 遇到一次: 22:05 合成后是 35, 而 06:04 那轮读到的合成前是 33。
|
||||||
|
当时怀疑是强制关游戏丢了未保存状态, 追查了一轮 —— **结果是人自己升阶用掉了**。
|
||||||
|
(所以现在 close_game 仍是优雅关闭: 那是独立的健壮性改进, 和这件事无关。)
|
||||||
|
|
||||||
|
教训: 这类"数字对不上"的现象, **默认解释可能是人手动操作**, 而不是 bug。
|
||||||
|
所以这里的措辞是"需要确认", 不是"出问题了" —— 唯一的例外是它能反过来证明
|
||||||
|
某件自动化的事: 如果模组数**自己变多了**, 那才是真异常(自动化之外的来源)。
|
||||||
|
|
||||||
|
自己从 steps[0].info 里解出模组数(不依赖调用方预先算好)。只比较**接连两轮都
|
||||||
|
成功合成**的情况, 免得把"跳过轮次"误判成倒退。
|
||||||
|
"""
|
||||||
|
seq = [r for r in reports if r.get('converted')]
|
||||||
|
seq.sort(key=lambda r: r['start'])
|
||||||
|
owned = []
|
||||||
|
for r in seq:
|
||||||
|
step = (r.get('steps') or [{}])[0]
|
||||||
|
m = OWNED_RE.search(step.get('info', '') or '')
|
||||||
|
owned.append((r, (int(m.group(1)), int(m.group(2))) if m else None))
|
||||||
|
|
||||||
|
out = []
|
||||||
|
for (prev, pa), (cur, ca) in zip(owned, owned[1:]):
|
||||||
|
if pa is None or ca is None:
|
||||||
|
continue
|
||||||
|
if ca[0] < pa[1]:
|
||||||
|
out.append('模组数比上一轮少: %s 合成后是 %s, 而 %s 读到合成前只有 %s '
|
||||||
|
'—— 若是人工升阶用掉的属正常; 否则要查'
|
||||||
|
% (prev['start'].strftime('%m-%d %H:%M'), pa[1],
|
||||||
|
cur['start'].strftime('%m-%d %H:%M'), ca[0]))
|
||||||
|
elif ca[0] > pa[1]:
|
||||||
|
# 自动化只会按合成前后的差值增加, 无端变多说明有别的来源
|
||||||
|
out.append('模组数无端变多: %s 合成后是 %s, 而 %s 读到合成前有 %s '
|
||||||
|
'—— 自动化之外还有别的来源, 值得看一眼'
|
||||||
|
% (prev['start'].strftime('%m-%d %H:%M'), pa[1],
|
||||||
|
cur['start'].strftime('%m-%d %H:%M'), ca[0]))
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def audit(d):
|
||||||
|
runs = parse_runs(os.path.join(d, LOG_NAME))
|
||||||
|
reports = load_reports(d)
|
||||||
|
problems = []
|
||||||
|
|
||||||
|
# 0. 跨轮: 模组数不该倒退
|
||||||
|
problems.extend(module_trajectory(reports))
|
||||||
|
|
||||||
|
# 1. 每份报告都要有对应的一轮
|
||||||
|
for r in reports:
|
||||||
|
hit = [c for c in runs if c['start'] is not None
|
||||||
|
and abs((c['start'] - r['start']).total_seconds()) <= TOL_S]
|
||||||
|
if not hit:
|
||||||
|
problems.append('报告 %s (started %s) 在日志里找不到对应的开始行'
|
||||||
|
% (r['file'], r['start']))
|
||||||
|
continue
|
||||||
|
c = hit[0]
|
||||||
|
# 结论时刻应当 = 开始 + 耗时
|
||||||
|
expect_end = c['start'] + timedelta(seconds=r['secs'] or 0)
|
||||||
|
if abs((c['end'] - expect_end).total_seconds()) > TOL_S:
|
||||||
|
problems.append('%s 时间对不上: 开始 %s + 报告耗时 %ss 应为 %s, 日志结论在 %s'
|
||||||
|
% (r['file'], c['start'].strftime('%H:%M:%S'), r['secs'],
|
||||||
|
expect_end.strftime('%H:%M:%S'), c['end'].strftime('%H:%M:%S')))
|
||||||
|
if c['secs'] != r['secs']:
|
||||||
|
problems.append('%s 耗时不符: 日志 %ss vs 报告 %ss'
|
||||||
|
% (r['file'], c['secs'], r['secs']))
|
||||||
|
if c['result'] != r['result']:
|
||||||
|
problems.append('%s 结果文本不符:\n 日志 %s\n 报告 %s'
|
||||||
|
% (r['file'], c['result'], r['result']))
|
||||||
|
|
||||||
|
# 2. 每一轮都要有对应报告
|
||||||
|
for c in runs:
|
||||||
|
hit = [r for r in reports
|
||||||
|
if c['start'] is not None
|
||||||
|
and abs((r['start'] - c['start']).total_seconds()) <= TOL_S]
|
||||||
|
if not hit:
|
||||||
|
problems.append('日志 %s 那轮没有对应报告: %s'
|
||||||
|
% (c['end'].strftime('%H:%M:%S'), c['result'][:50]))
|
||||||
|
|
||||||
|
# 3. mock 残留
|
||||||
|
for sec, group in same_second_clusters(runs).items():
|
||||||
|
problems.append('同一秒(%s)出现 %d 行结论, 疑似测试残留'
|
||||||
|
% (sec.strftime('%H:%M:%S'), len(group)))
|
||||||
|
for c in impossible_claims(runs):
|
||||||
|
problems.append('可疑内容(%s): %s'
|
||||||
|
% (c['end'].strftime('%H:%M:%S'), c['result'][:60]))
|
||||||
|
|
||||||
|
return {'runs': len(runs), 'reports': len(reports), 'problems': problems}
|
||||||
|
|
||||||
|
|
||||||
|
def main(argv=None):
|
||||||
|
ap = argparse.ArgumentParser(description='值守体检: 日志与报告交叉核对')
|
||||||
|
ap.add_argument('--dir', default=DIR)
|
||||||
|
ap.add_argument('--json', action='store_true')
|
||||||
|
args = ap.parse_args(argv)
|
||||||
|
|
||||||
|
r = audit(args.dir)
|
||||||
|
if args.json:
|
||||||
|
json.dump(r, sys.stdout, ensure_ascii=False, indent=2)
|
||||||
|
print()
|
||||||
|
return 1 if r['problems'] else 0
|
||||||
|
|
||||||
|
print('日志 %d 轮 / 报告 %d 份' % (r['runs'], r['reports']))
|
||||||
|
if not r['problems']:
|
||||||
|
print('✅ 全部吻合, 没有可疑记录')
|
||||||
|
return 0
|
||||||
|
# 不叫"问题" —— 有些只是"需要确认"(比如人手动升阶用掉了模块)
|
||||||
|
print('⚠️ 有 %d 处需要确认:' % len(r['problems']))
|
||||||
|
for p in r['problems']:
|
||||||
|
print(' - %s' % p)
|
||||||
|
return 1
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
raise SystemExit(main())
|
||||||
@@ -0,0 +1,407 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""一轮自动推进: 刷材料 -> (镜牢) -> 升级最弱人格 -> 同步 -> 报告。
|
||||||
|
|
||||||
|
用法: python auto_cycle.py [--mirror N] [--target LV] [--retries N] [--report-dir DIR]
|
||||||
|
退出码: 0 正常完成一轮 / 1 失败
|
||||||
|
|
||||||
|
每轮在 report-dir(默认 ~/lc_mcp/cycles)写一份 cycle_<时间>.log 与同名 .json 报告,
|
||||||
|
计划任务无人值守跑完后据此核对。
|
||||||
|
|
||||||
|
设计: 只做"一轮",不做无限循环——由外层(goal 轮次)负责重复与判断,
|
||||||
|
避免无人监督地长时间空转。每轮输出结构化报告供上层核对。
|
||||||
|
"""
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import time
|
||||||
|
|
||||||
|
from lc_ui import HERE, PY, click, drag, items, keypress, probe, run
|
||||||
|
|
||||||
|
LEVELUP = os.path.join(HERE, 'levelup.py')
|
||||||
|
# 手动抽卡花掉狂气后, 删掉这个文件重新记基线, 否则每轮都会中止
|
||||||
|
LUNACY_BASELINE = os.path.expanduser(os.path.join('~', 'lc_mcp', 'lunacy_baseline.txt'))
|
||||||
|
|
||||||
|
# 导航
|
||||||
|
BACK = (85, 75) # 只在 Sinners 内部退层用, 主界面上按它会进剧情
|
||||||
|
BTN_SINNERS = (1130, 805) # 主界面底部 Sinners
|
||||||
|
TAB_ALL_IDENTITIES = (1472, 245) # TEAMS 页 -> All Identities
|
||||||
|
|
||||||
|
# AALC 任务轮询上限
|
||||||
|
DAILY_TIMEOUT_S = 45 * 60
|
||||||
|
# 每局镜牢。10-04 首次 39 分钟、10-13 两局分别 59 与 >70 分钟(19 场战斗仍未结束),
|
||||||
|
# 所以 70 分钟不够用 —— 实测撞过超时, 强杀后游戏停在副本里, 连升级都进不去。
|
||||||
|
MIRROR_TIMEOUT_S = 100 * 60
|
||||||
|
POLL_S = 60
|
||||||
|
# task_status 连续几次报 stall 就判定卡死并停任务
|
||||||
|
STALL_POLLS = 2
|
||||||
|
# 卡死后重跑次数。AALC 任务开头会自己回主界面, 重跑通常就能脱困
|
||||||
|
STALL_RETRIES = 1
|
||||||
|
DEFAULT_REPORT_DIR = os.path.expanduser(os.path.join('~', 'lc_mcp', 'cycles'))
|
||||||
|
|
||||||
|
_log_file = None
|
||||||
|
|
||||||
|
|
||||||
|
def log(msg):
|
||||||
|
line = '[%s] %s' % (time.strftime('%H:%M:%S'), msg)
|
||||||
|
print(line, flush=True)
|
||||||
|
if _log_file:
|
||||||
|
with open(_log_file, 'a', encoding='utf-8') as f:
|
||||||
|
f.write(line + '\n')
|
||||||
|
|
||||||
|
|
||||||
|
def goto_identities():
|
||||||
|
"""从任意位置尽力走到 罪人 -> Identities 网格。
|
||||||
|
|
||||||
|
只点 Sinners 按钮, 绝不点左上返回键——主界面上的返回键会进入剧情(Drive),
|
||||||
|
实测会掉进过场动画, 需要额外恢复。
|
||||||
|
"""
|
||||||
|
for attempt in range(5):
|
||||||
|
its = items()
|
||||||
|
txt = ' | '.join(i.get('text', '') for i in its)
|
||||||
|
if 'IDENTITIES' in txt and 'Facades' in txt:
|
||||||
|
return True
|
||||||
|
if 'TEAMS #1' in txt or 'SIN COST' in txt or 'All Idensities' in txt:
|
||||||
|
click(*TAB_ALL_IDENTITIES)
|
||||||
|
time.sleep(3)
|
||||||
|
continue
|
||||||
|
if 'LUXCAVATION' in txt.upper() or 'MIRROR' in txt.upper():
|
||||||
|
# 在副本/关卡菜单里, 先回主界面
|
||||||
|
keypress('esc')
|
||||||
|
time.sleep(2)
|
||||||
|
continue
|
||||||
|
click(*BTN_SINNERS)
|
||||||
|
time.sleep(3.5)
|
||||||
|
its = items()
|
||||||
|
txt = ' | '.join(i.get('text', '') for i in its)
|
||||||
|
return 'IDENTITIES' in txt and 'Facades' in txt
|
||||||
|
|
||||||
|
|
||||||
|
def on_teams_screen(txt):
|
||||||
|
"""TEAMS 界面的判定。
|
||||||
|
|
||||||
|
实测 OCR 会把 "SIN COST" 输出成 "SINICOST"(无空格), 直接匹配 'SIN COST'
|
||||||
|
会漏判 —— 于是 ensure_team1() 以为不在 TEAMS 页, 去点 Sinners 按钮空转,
|
||||||
|
最后报 "未能确认选中 TEAMS #1"。所以先去空格再比。
|
||||||
|
"""
|
||||||
|
t = txt.replace(' ', '').upper()
|
||||||
|
return ('SINCOST' in t or 'SINICOST' in t
|
||||||
|
or 'ALLIDENTITIES' in t or 'ALLE.G.0' in t or 'ALLE.G.O' in t)
|
||||||
|
|
||||||
|
|
||||||
|
def on_grid(txt):
|
||||||
|
return 'IDENTITIES' in txt and 'Facades' in txt
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_team1():
|
||||||
|
"""进 TEAMS 界面, 把预设列表滚到顶并选中 TEAMS #1。
|
||||||
|
|
||||||
|
实测坑: 这个账号有 40 个队伍预设, 而 AALC 的选队搜索只朝列表下方扫
|
||||||
|
(dy 为负), 列表一旦停在底部就永远找不到 TEAMS #1, 日志表现为
|
||||||
|
"找不到队伍 # 1" 然后整轮空转。所以每轮开跑前先把列表拉回顶部。
|
||||||
|
"""
|
||||||
|
for _ in range(5):
|
||||||
|
its = items()
|
||||||
|
txt = ' | '.join(i.get('text', '') for i in its)
|
||||||
|
if on_teams_screen(txt):
|
||||||
|
break
|
||||||
|
if on_grid(txt):
|
||||||
|
click(*BACK) # 网格 -> TEAMS, 仍在 Sinners 内, 安全
|
||||||
|
time.sleep(3)
|
||||||
|
continue
|
||||||
|
click(*BTN_SINNERS)
|
||||||
|
time.sleep(3.5)
|
||||||
|
|
||||||
|
for _ in range(10):
|
||||||
|
its = items()
|
||||||
|
cand = [i for i in its
|
||||||
|
if i.get('text', '').strip().replace(' ', '') in
|
||||||
|
('TEAMS#1', 'TFAMS#1') and i.get('x', 999) < 320]
|
||||||
|
if cand:
|
||||||
|
top = min(cand, key=lambda i: i.get('y', 0))
|
||||||
|
click(top['x'], top['y'])
|
||||||
|
time.sleep(2.5)
|
||||||
|
return True
|
||||||
|
# 向下拖拽 = 列表内容下移 = 露出更靠前的预设
|
||||||
|
drag(190, 400, 190, 700)
|
||||||
|
time.sleep(2)
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def blocking_module_modal():
|
||||||
|
"""只读识别缺模组弹窗, 返回 Cancel 中心。AALC 运行期间不发送输入。"""
|
||||||
|
its = items()
|
||||||
|
txt = ''.join(''.join(i.get('text', '').split()) for i in its).lower()
|
||||||
|
if 'enoughenkephalinmodules' not in txt:
|
||||||
|
return None
|
||||||
|
for it in its:
|
||||||
|
if 'cancel' in it.get('text', '').lower():
|
||||||
|
w = it.get('w') or 0
|
||||||
|
h = it.get('h') or 0
|
||||||
|
return it['x'] + w / 2.0, it['y'] + h / 2.0
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def clear_blocking_modal():
|
||||||
|
"""任务停止后重新识别并取消缺模组弹窗; 点击被拒绝时不能报成功。"""
|
||||||
|
pos = blocking_module_modal()
|
||||||
|
if pos is None:
|
||||||
|
return None
|
||||||
|
result = click(*pos)
|
||||||
|
if not result.get('ok'):
|
||||||
|
raise RuntimeError('取消缺模组弹窗失败: %s' % result.get('error', result))
|
||||||
|
return 'Enkephalin Modules 不足 -> 已发送 Cancel'
|
||||||
|
|
||||||
|
|
||||||
|
def stop_running_task():
|
||||||
|
result = probe('stop_task')
|
||||||
|
if not result.get('ok'):
|
||||||
|
raise RuntimeError('停止 AALC 任务失败: %s' % result.get('error', result))
|
||||||
|
|
||||||
|
|
||||||
|
# 同一轮里连着这么多次看到"模组不足", 就不是偶发了, 是资源真的见底
|
||||||
|
RESOURCE_OUT_LIMIT = 3
|
||||||
|
|
||||||
|
|
||||||
|
def poll_task(task, timeout_s, sleep=time.sleep):
|
||||||
|
"""轮询到任务结束。返回 (ok, 说明, 是否因卡死被停)。"""
|
||||||
|
t0 = time.time()
|
||||||
|
stalled = 0
|
||||||
|
resource_polls = 0
|
||||||
|
while time.time() - t0 < timeout_s:
|
||||||
|
sleep(POLL_S)
|
||||||
|
st = probe('task_status', {'lines': 1})
|
||||||
|
if st.get('ok') is False or not st.get('state'):
|
||||||
|
stop_running_task()
|
||||||
|
raise RuntimeError('无法读取任务状态: %s' % st.get('error', st))
|
||||||
|
s = st.get('state')
|
||||||
|
el = int(time.time() - t0)
|
||||||
|
if s != 'running':
|
||||||
|
log('%s 结束: state=%s elapsed=%ds exit=%s' % (task, s, el, st.get('exit_code')))
|
||||||
|
# AALC 单次战斗失败后仍会 exit 0, succeeded 还要看 errors
|
||||||
|
if st.get('errors'):
|
||||||
|
return False, '%s: %s' % (s, st['errors'][-1]), False
|
||||||
|
return s == 'succeeded', 'state=%s elapsed=%ds' % (s, el), False
|
||||||
|
try:
|
||||||
|
modal = blocking_module_modal()
|
||||||
|
except Exception as e: # 清道夫不该拖垮轮询
|
||||||
|
modal = None
|
||||||
|
log(' [warn] 读取缺模组弹窗时出错: %s' % e)
|
||||||
|
resource_polls = resource_polls + 1 if modal is not None else 0
|
||||||
|
if resource_polls:
|
||||||
|
log(' 缺模组弹窗连续出现 (%d/%d)' % (resource_polls, RESOURCE_OUT_LIMIT))
|
||||||
|
if resource_polls >= RESOURCE_OUT_LIMIT:
|
||||||
|
# 反复缺模组 = 体力/模组真的见底了。继续点下去只是空转到超时,
|
||||||
|
# 浪费掉这一轮的时间(实测每次都烧满 10 分钟)。直接收工, 等下一轮。
|
||||||
|
stop_running_task()
|
||||||
|
msg = clear_blocking_modal()
|
||||||
|
if msg:
|
||||||
|
log(' [fix] %s' % msg)
|
||||||
|
return False, 'RESOURCE_OUT', False
|
||||||
|
stalled = stalled + 1 if st.get('stall') else 0
|
||||||
|
if stalled >= STALL_POLLS:
|
||||||
|
stop_running_task()
|
||||||
|
return False, '卡死(%s), 已停止任务 elapsed=%ds' % (st['stall'], el), True
|
||||||
|
if el % 600 < POLL_S:
|
||||||
|
log(' ...%s running %ds' % (task, el))
|
||||||
|
stop_running_task()
|
||||||
|
return False, '超时 %ds' % timeout_s, False
|
||||||
|
|
||||||
|
|
||||||
|
def run_aalc(task, params, timeout_s, retries=STALL_RETRIES, sleep=time.sleep):
|
||||||
|
"""跑一个 AALC 任务; 卡死时停掉重跑, 最多 retries 次。返回 (ok, 说明)。"""
|
||||||
|
info = ''
|
||||||
|
for attempt in range(retries + 1):
|
||||||
|
if attempt:
|
||||||
|
log('%s 卡死后重跑 (%d/%d)' % (task, attempt, retries))
|
||||||
|
sleep(10)
|
||||||
|
r = probe('run_task', dict(params, task=task))
|
||||||
|
if not r.get('ok'):
|
||||||
|
return False, 'run_task 失败: %s' % r.get('error', r)
|
||||||
|
log('%s 已启动 %s, 开始轮询' % (task, params or ''))
|
||||||
|
ok, info, stalled = poll_task(task, timeout_s, sleep=sleep)
|
||||||
|
if ok or not stalled:
|
||||||
|
return ok, info
|
||||||
|
return False, info
|
||||||
|
|
||||||
|
|
||||||
|
def report_grid():
|
||||||
|
out = run([PY, '-X', 'utf8', LEVELUP, 'list'], check=True)
|
||||||
|
return out.strip()
|
||||||
|
|
||||||
|
|
||||||
|
MAIN_MENU_MARKERS = ('SINNERS', 'WINDOW', 'DISPENSE', 'THEATER', 'EXTRACT')
|
||||||
|
|
||||||
|
|
||||||
|
def read_lunacy(reads=5, pause=1.0):
|
||||||
|
"""读狂气余额。取多次读数的**众数**, 读不到返回 None。
|
||||||
|
|
||||||
|
两个实测坑(2026-10-13):
|
||||||
|
1. OCR 偶尔漏掉 LUNACY 标签, 所以多读几次。
|
||||||
|
2. **同一个画面上数字本身就会抖**: 放大 6 倍肉眼确认余额是 6388, 而 OCR 在
|
||||||
|
同一画面连读 5 次得到 6388 四次、8859 一次。8859 被当成基线后, 之后正确
|
||||||
|
的 6388 反而被判成"已消耗"并中止整轮 —— 一次误读就能造成一次误报。
|
||||||
|
所以读完所有帧再取唯一众数(至少出现 2 次才采信), 平票返回 None。
|
||||||
|
|
||||||
|
曾经试过"只在主界面取数", 但那样几乎总是读不到(轮次开始/结束时常停在副本、
|
||||||
|
网格、结算页), 守卫直接跳过。多帧投票只能减少偶发误读, 无法证明消费。
|
||||||
|
"""
|
||||||
|
votes = {}
|
||||||
|
for attempt in range(reads):
|
||||||
|
its = items()
|
||||||
|
lab = None
|
||||||
|
for it in its:
|
||||||
|
if 'NACY' in it.get('text', '').upper():
|
||||||
|
lab = it
|
||||||
|
break
|
||||||
|
if lab:
|
||||||
|
best = None
|
||||||
|
for it in its:
|
||||||
|
t = it.get('text', '').strip()
|
||||||
|
if t.isdigit():
|
||||||
|
dy = it.get('y', 0) - lab.get('y', 0)
|
||||||
|
dx = abs(it.get('x', 0) - lab.get('x', 0))
|
||||||
|
if 0 < dy < 70 and dx < 130:
|
||||||
|
best = int(t)
|
||||||
|
if best is not None:
|
||||||
|
votes[best] = votes.get(best, 0) + 1
|
||||||
|
if attempt < reads - 1:
|
||||||
|
time.sleep(pause)
|
||||||
|
ranked = sorted(votes, key=votes.get, reverse=True)
|
||||||
|
if ranked and votes[ranked[0]] >= 2:
|
||||||
|
if len(ranked) == 1 or votes[ranked[0]] > votes[ranked[1]]:
|
||||||
|
return ranked[0]
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def lunacy_guard():
|
||||||
|
"""狂气只许不降。用户明确要求狂气只能用于抽卡。
|
||||||
|
|
||||||
|
返回 (ok, 说明)。首次运行写入基线。
|
||||||
|
"""
|
||||||
|
cur = read_lunacy()
|
||||||
|
if cur is None:
|
||||||
|
return True, '读不到狂气余额, 跳过校验'
|
||||||
|
base = None
|
||||||
|
if os.path.exists(LUNACY_BASELINE):
|
||||||
|
try:
|
||||||
|
base = int(open(LUNACY_BASELINE, encoding='utf-8').read().strip())
|
||||||
|
except ValueError:
|
||||||
|
base = None
|
||||||
|
if base is None:
|
||||||
|
with open(LUNACY_BASELINE, 'w', encoding='utf-8') as f:
|
||||||
|
f.write(str(cur))
|
||||||
|
return True, '记录狂气基线 %d' % cur
|
||||||
|
if cur < base:
|
||||||
|
return False, '狂气读数从 %d 降到 %d, 需人工核查(OCR 也可能误读), 本轮暂停' % (base, cur)
|
||||||
|
if cur > base:
|
||||||
|
with open(LUNACY_BASELINE, 'w', encoding='utf-8') as f:
|
||||||
|
f.write(str(cur))
|
||||||
|
return True, '狂气 %d -> %d (增加, 更新基线)' % (base, cur)
|
||||||
|
return True, '狂气 %d 未变' % cur
|
||||||
|
|
||||||
|
|
||||||
|
def main(argv=None):
|
||||||
|
global _log_file
|
||||||
|
ap = argparse.ArgumentParser(description='一轮: 刷材料 -> 镜牢 -> 升级/同步')
|
||||||
|
ap.add_argument('--mirror', type=int, default=0, help='本轮镜牢局数, 默认 0')
|
||||||
|
ap.add_argument('--target', type=int, default=34, help='把队内人格升到的等级')
|
||||||
|
ap.add_argument('--retries', type=int, default=STALL_RETRIES, help='AALC 卡死后重跑次数')
|
||||||
|
ap.add_argument('--report-dir', default=DEFAULT_REPORT_DIR)
|
||||||
|
args = ap.parse_args(argv)
|
||||||
|
|
||||||
|
os.makedirs(args.report_dir, exist_ok=True)
|
||||||
|
base = os.path.join(args.report_dir, 'cycle_' + time.strftime('%Y%m%d_%H%M%S'))
|
||||||
|
_log_file = base + '.log'
|
||||||
|
t_start = time.time()
|
||||||
|
steps = []
|
||||||
|
|
||||||
|
def step(name, ok, info):
|
||||||
|
steps.append({'step': name, 'ok': ok, 'info': info, 'at': time.strftime('%H:%M:%S')})
|
||||||
|
log('%s: %s (%s)' % (name, 'OK' if ok else 'FAIL', info))
|
||||||
|
return ok
|
||||||
|
|
||||||
|
def finish(code, why):
|
||||||
|
log('=== %s, 耗时 %ds ===' % (why, int(time.time() - t_start)))
|
||||||
|
report = {'ok': code == 0, 'result': why, 'started': time.strftime(
|
||||||
|
'%Y-%m-%d %H:%M:%S', time.localtime(t_start)), 'elapsed_s': int(time.time() - t_start),
|
||||||
|
'args': vars(args), 'steps': steps, 'log': _log_file}
|
||||||
|
with open(base + '.json', 'w', encoding='utf-8') as f:
|
||||||
|
json.dump(report, f, ensure_ascii=False, indent=2)
|
||||||
|
return code
|
||||||
|
|
||||||
|
try:
|
||||||
|
return run_cycle(args, step, finish)
|
||||||
|
except (OSError, RuntimeError, subprocess.SubprocessError) as e:
|
||||||
|
if isinstance(e, subprocess.CalledProcessError):
|
||||||
|
output = (e.stdout or '') + (e.stderr or '')
|
||||||
|
for line in output.splitlines():
|
||||||
|
log(' ' + line)
|
||||||
|
step('执行异常', False, '%s: %s' % (type(e).__name__, e))
|
||||||
|
return finish(1, '本轮失败: 执行异常')
|
||||||
|
finally:
|
||||||
|
_log_file = None
|
||||||
|
|
||||||
|
|
||||||
|
def run_cycle(args, step, finish):
|
||||||
|
log('=== 一轮开始 ===')
|
||||||
|
if not step('狂气校验', *lunacy_guard()):
|
||||||
|
return finish(1, '中止: 狂气读数下降, 需人工核查')
|
||||||
|
|
||||||
|
# 先把预设列表拉回顶部并选中 TEAMS #1——AALC 只朝列表下方找, 停在底部会找不到
|
||||||
|
if not ensure_team1():
|
||||||
|
log('[warn] 未能确认选中 TEAMS #1, 继续尝试')
|
||||||
|
|
||||||
|
ok, info = run_aalc('daily', {}, DAILY_TIMEOUT_S, args.retries)
|
||||||
|
if info == 'RESOURCE_OUT':
|
||||||
|
# 体力/模组见底, Luxcavation 打不了。这不是故障, 是资源周期 —— 体力和燃料
|
||||||
|
# 都会自然恢复, 下一轮(计划任务 2.5 小时后再来)通常就能继续。空转没有意义。
|
||||||
|
step('刷材料', False, '体力/模组不足, 本轮跳过')
|
||||||
|
log('[warn] 体力或模组见底, 本轮不再刷材料; 等自然恢复后下一轮继续')
|
||||||
|
return finish(0, '一轮结束(资源不足, 跳过刷取)')
|
||||||
|
if not step('刷材料', ok, info):
|
||||||
|
return finish(1, '本轮失败: 刷材料未成功')
|
||||||
|
|
||||||
|
if args.mirror > 0:
|
||||||
|
# 镜牢掉落自我碎片, 同步到 IV 阶要用
|
||||||
|
ok, info = run_aalc('mirror', {'count': args.mirror},
|
||||||
|
MIRROR_TIMEOUT_S * args.mirror, args.retries)
|
||||||
|
if not step('镜牢 x%d' % args.mirror, ok, info):
|
||||||
|
log('[warn] 镜牢未完成, 继续升级')
|
||||||
|
|
||||||
|
# AALC 任务结束后在主界面, 这里才是能读到 LUNACY 的时机
|
||||||
|
time.sleep(8)
|
||||||
|
if not step('狂气校验(刷后)', *lunacy_guard()):
|
||||||
|
return finish(1, '中止: 狂气读数下降, 需人工核查')
|
||||||
|
|
||||||
|
if not goto_identities():
|
||||||
|
# 镜牢超时被强杀时游戏还停在副本里, 这时进不去网格是正常的, 不是缺陷。
|
||||||
|
# 刷取本身已经发生, 不该因为附加的升级环节把整轮判死 —— 下一轮 AALC
|
||||||
|
# 的 back_init_menu 会自行把游戏带回主界面。
|
||||||
|
step('进入 Identities 网格', False, '找不到网格(可能仍停在镜牢内), 跳过升级')
|
||||||
|
log('[warn] 进不去网格, 跳过升级; 下一轮的 AALC 会自行回到主界面')
|
||||||
|
return finish(0, '一轮结束(跳过升级)')
|
||||||
|
log('升级前:\n' + report_grid())
|
||||||
|
|
||||||
|
log('对队内低于 Lv.%d 的人格升级 + 同步' % args.target)
|
||||||
|
# 用 progress 而非 weakest: 网格 OCR 会把 LV14 读成 Lv.1,
|
||||||
|
# progress 会逐个打开详情页以真实等级判断目标。
|
||||||
|
out = run([PY, '-X', 'utf8', LEVELUP, 'progress', str(args.target), '--uptie'], check=True)
|
||||||
|
lines = out.strip().splitlines()
|
||||||
|
for line in lines:
|
||||||
|
log(' ' + line)
|
||||||
|
step('升级/同步', not any('FAIL' in l for l in lines),
|
||||||
|
'; '.join(l.strip() for l in lines if '升级:' in l or '同步:' in l) or '无需升级')
|
||||||
|
|
||||||
|
time.sleep(5)
|
||||||
|
if not goto_identities():
|
||||||
|
# 同上: 升级结果已经拿到, 回不到网格只影响下一轮的起点
|
||||||
|
step('回到网格', False, '升级后无法回到网格, 不影响本轮产出')
|
||||||
|
log('[warn] 升级后回不到网格')
|
||||||
|
else:
|
||||||
|
log('升级后:\n' + report_grid())
|
||||||
|
return finish(0, '一轮结束')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
raise SystemExit(main())
|
||||||
@@ -0,0 +1,863 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""到点启动游戏 -> 把体力合成成模块 -> 关掉游戏。不跑任何战斗任务。
|
||||||
|
|
||||||
|
用法: python convert_modules.py [--keep-game] [--start-timeout S]
|
||||||
|
退出码: 0 完成(含"体力不够, 无需合成") / 1 失败
|
||||||
|
|
||||||
|
为什么要单独一个脚本:
|
||||||
|
用户要的是"挂机等体力恢复, 攒模块", 但**不要打任何关卡**。AALC 的
|
||||||
|
make_enkephalin_module 是挂在 Luxcavation 流程里的(打完一次才顺手换一次),
|
||||||
|
没有独立的入口, 所以这里直接用界面操作, 不经过 AALC 的任务系统。
|
||||||
|
|
||||||
|
界面流程(1600x900 基准坐标, lc_ui 负责换算到实际客户区):
|
||||||
|
主界面 -> 点模组图标 -> 弹出 Charge Enkephalin
|
||||||
|
-> 页签 [Modules] / [Use Lunacy] / [Use Boxes]
|
||||||
|
-> 停在 Modules(免费合成) -> 点 » 取最大 -> Confirm
|
||||||
|
-> 体力 -20 换 1 模块
|
||||||
|
|
||||||
|
硬规则(用户明确要求):
|
||||||
|
1. **绝不消费狂气**。Use Lunacy 页签的坐标 USE_LUNACY_TAB 在代码里只用于
|
||||||
|
"确认自己没点到它", 任何点击路径都不会碰它。
|
||||||
|
2. **不打任何关卡**。全程只碰底栏模组图标和合成面板。
|
||||||
|
3. 记录合成前后狂气读数; 已知 OCR 抖动以外的变化需要人工核查。
|
||||||
|
"""
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
from lc_ui import HERE, click, items, keypress, probe, screen_text
|
||||||
|
|
||||||
|
GAME_EXE = r'D:\SteamLibrary\steamapps\common\Limbus Company\LimbusCompany.exe'
|
||||||
|
GAME_PROC = 'LimbusCompany'
|
||||||
|
REPO = os.path.dirname(HERE) if os.path.basename(HERE) == 'scripts' else HERE
|
||||||
|
PYW = os.path.join(REPO, 'vendor', 'aalc', '.venv', 'Scripts', 'pythonw.exe')
|
||||||
|
SERVER_PORT = 8765
|
||||||
|
|
||||||
|
# --- 坐标(1600x900 基准; lc_ui 会换算到真实客户区) ---
|
||||||
|
# 合成面板有三个页签, 从左到右: Modules / Use Lunacy / Use Boxes
|
||||||
|
# Modules (619,283) 免费合成, 本项目只走这条
|
||||||
|
# Use Lunacy(797,283) ⛔ 花狂气, 绝对不许点
|
||||||
|
# Use Boxes (957,283) 用体力箱, 本项目不用 —— 不定义常量: 定义了却没人用
|
||||||
|
# 会让人以为某条路径处理了它, 死代码比没有更糟
|
||||||
|
MODULE_ICON = (390, 805) # 主界面底栏, 绿胶囊图标(点开合成面板)
|
||||||
|
TAB_MODULES = (619, 283) # 免费合成页签
|
||||||
|
USE_LUNACY_TAB = (797, 283) # ⛔ 绝对不许点
|
||||||
|
BTN_MAX = (1019, 413) # »: 取当前能合成的最大数量
|
||||||
|
BTN_CONFIRM = (943, 671) # 确认合成
|
||||||
|
BTN_CANCEL = (656, 670) # 取消 / 关闭面板
|
||||||
|
|
||||||
|
MAIN_MENU_MARKERS = ('Window', 'Sinners', 'Drive', 'Theater', 'Extract', 'Dispense')
|
||||||
|
PANEL_MARKER = 'Charge Enkephalin'
|
||||||
|
|
||||||
|
LOG_DIR = os.path.expanduser(os.path.join('~', 'lc_mcp', 'modules'))
|
||||||
|
LOG_FILE = os.path.join(LOG_DIR, 'convert.log')
|
||||||
|
_result = {}
|
||||||
|
|
||||||
|
|
||||||
|
def log(msg):
|
||||||
|
line = '[%s] %s' % (time.strftime('%Y-%m-%d %H:%M:%S'), msg)
|
||||||
|
print(line, flush=True)
|
||||||
|
try:
|
||||||
|
os.makedirs(LOG_DIR, exist_ok=True)
|
||||||
|
with open(LOG_FILE, 'a', encoding='utf-8') as f:
|
||||||
|
f.write(line + '\n')
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- MCP 服务
|
||||||
|
|
||||||
|
def server_listening(host='127.0.0.1', port=SERVER_PORT, timeout=1.0):
|
||||||
|
import socket
|
||||||
|
s = socket.socket()
|
||||||
|
s.settimeout(timeout)
|
||||||
|
try:
|
||||||
|
s.connect((host, port))
|
||||||
|
return True
|
||||||
|
except OSError:
|
||||||
|
return False
|
||||||
|
finally:
|
||||||
|
s.close()
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_server(timeout_s=90):
|
||||||
|
"""确保 lc-mcp 的 TCP 服务在监听, 不在就拉起来。
|
||||||
|
|
||||||
|
值守场景下没人手动救它。虽然计划任务 LcMCPServer 配了 RestartCount=3,
|
||||||
|
但那只在进程"崩溃"时生效; 服务没起来(或重启后没登录)时, 这边的合成会
|
||||||
|
直接因为连不上而失败。自己拉一把最省事。
|
||||||
|
"""
|
||||||
|
if server_listening():
|
||||||
|
return True
|
||||||
|
log('MCP 服务(%d)未监听, 尝试拉起' % SERVER_PORT)
|
||||||
|
try:
|
||||||
|
subprocess.Popen([PYW, '-m', 'lc_mcp.server'], cwd=REPO, close_fds=True)
|
||||||
|
except OSError as e:
|
||||||
|
log('拉起服务失败: %s' % e)
|
||||||
|
return False
|
||||||
|
t0 = time.time()
|
||||||
|
while time.time() - t0 < timeout_s:
|
||||||
|
time.sleep(2)
|
||||||
|
if server_listening():
|
||||||
|
log('服务已就绪 (%.0fs)' % (time.time() - t0))
|
||||||
|
return True
|
||||||
|
log('等服务就绪超时(%ds)' % timeout_s)
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 桌面渲染
|
||||||
|
|
||||||
|
def _blit_ok(hdc, hwnd=None):
|
||||||
|
"""探测采集 API, 窗口走 AALC 的 PrintWindow(flags=3)。不验证画面内容。"""
|
||||||
|
if not hdc:
|
||||||
|
return False
|
||||||
|
import ctypes
|
||||||
|
from ctypes import wintypes
|
||||||
|
import win32gui
|
||||||
|
import win32ui
|
||||||
|
|
||||||
|
source = target = bitmap = old = bitmap_handle = None
|
||||||
|
try:
|
||||||
|
width, height = 64, 64
|
||||||
|
if hwnd:
|
||||||
|
left, top, right, bottom = win32gui.GetClientRect(hwnd)
|
||||||
|
width, height = right - left, bottom - top
|
||||||
|
if width <= 0 or height <= 0:
|
||||||
|
return False
|
||||||
|
source = win32ui.CreateDCFromHandle(hdc)
|
||||||
|
target = source.CreateCompatibleDC()
|
||||||
|
bitmap = win32ui.CreateBitmap()
|
||||||
|
bitmap.CreateCompatibleBitmap(source, width, height)
|
||||||
|
bitmap_handle = bitmap.GetHandle()
|
||||||
|
old = target.SelectObject(bitmap)
|
||||||
|
if hwnd:
|
||||||
|
capture = ctypes.windll.user32.PrintWindow
|
||||||
|
capture.argtypes = [wintypes.HWND, wintypes.HDC, wintypes.UINT]
|
||||||
|
capture.restype = wintypes.BOOL
|
||||||
|
return bool(capture(hwnd, target.GetSafeHdc(), 3))
|
||||||
|
target.BitBlt((0, 0), (width, height), source, (0, 0), 0x00CC0020)
|
||||||
|
return True
|
||||||
|
except Exception:
|
||||||
|
return False
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
if old is not None:
|
||||||
|
target.SelectObject(old)
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
if target is not None:
|
||||||
|
target.DeleteDC()
|
||||||
|
finally:
|
||||||
|
if bitmap_handle is not None:
|
||||||
|
win32gui.DeleteObject(bitmap_handle)
|
||||||
|
# source 只包装调用者的 DC, 由调用者 ReleaseDC, 不能 DeleteDC。
|
||||||
|
|
||||||
|
|
||||||
|
def screen_blit_ok():
|
||||||
|
import win32gui
|
||||||
|
hdc = None
|
||||||
|
try:
|
||||||
|
hdc = win32gui.GetDC(0)
|
||||||
|
return _blit_ok(hdc)
|
||||||
|
except Exception:
|
||||||
|
return False
|
||||||
|
finally:
|
||||||
|
if hdc:
|
||||||
|
win32gui.ReleaseDC(0, hdc)
|
||||||
|
|
||||||
|
|
||||||
|
def window_blit_ok(hwnd):
|
||||||
|
import win32gui
|
||||||
|
hdc = None
|
||||||
|
try:
|
||||||
|
if win32gui.IsIconic(hwnd):
|
||||||
|
return False
|
||||||
|
hdc = win32gui.GetWindowDC(hwnd)
|
||||||
|
return _blit_ok(hdc, hwnd=hwnd)
|
||||||
|
except Exception:
|
||||||
|
return False
|
||||||
|
finally:
|
||||||
|
if hdc:
|
||||||
|
win32gui.ReleaseDC(hwnd, hdc)
|
||||||
|
|
||||||
|
|
||||||
|
def render_ok():
|
||||||
|
"""游戏画面是否可采集。
|
||||||
|
|
||||||
|
⛔ 原来只测屏幕 BitBlt(GetDC(0))。2026-10-22 实测它在 RDP 会话下会瞬时失败,
|
||||||
|
而 AALC 走的是 background_screenshot(窗口 DC + PrintWindow), 那条路照样能截到图
|
||||||
|
—— 结果是我的自检把本来能干活的轮次判成"截不到图"给跳过了(10-17 02:23 就这样
|
||||||
|
白丢过一轮)。
|
||||||
|
|
||||||
|
现在优先按 AALC 的方式测**窗口**能否采集, 窗口不在或不可采时才回退到屏幕。
|
||||||
|
"""
|
||||||
|
hwnd = _find_hwnd()
|
||||||
|
if hwnd and window_blit_ok(hwnd):
|
||||||
|
return True
|
||||||
|
return screen_blit_ok()
|
||||||
|
|
||||||
|
|
||||||
|
def parse_session_table(text):
|
||||||
|
"""解析 `query session` 的输出。
|
||||||
|
|
||||||
|
实测格式(注意: 成功时返回码也是 1, 不能拿返回码判断成败):
|
||||||
|
SESSIONNAME USERNAME ID STATE TYPE DEVICE
|
||||||
|
services 0 Disc
|
||||||
|
>console YWS-HHH 1 Active
|
||||||
|
31c5ce94259d4... 65536 Listen
|
||||||
|
rdp-tcp 65537 Listen
|
||||||
|
|
||||||
|
行首的 '>' 标出**当前**会话。用户从 RDP 连进来时会变成:
|
||||||
|
>rdp-tcp#70 YWS-HHH 1 Active
|
||||||
|
console 3 Conn
|
||||||
|
这时物理 console 的画面是空的, BitBlt 采集不到东西。
|
||||||
|
"""
|
||||||
|
current = rdp_active = console = None
|
||||||
|
for line in text.splitlines():
|
||||||
|
raw = line.rstrip()
|
||||||
|
stripped = raw.strip()
|
||||||
|
if not stripped or stripped.lower().startswith('sessionname'):
|
||||||
|
continue
|
||||||
|
is_current = raw.lstrip().startswith('>')
|
||||||
|
parts = stripped.lstrip('>').split()
|
||||||
|
if len(parts) < 3:
|
||||||
|
continue
|
||||||
|
name = parts[0]
|
||||||
|
# ID 列: 从后往前找第一个纯数字, 比按固定列切更耐得住用户名带空格
|
||||||
|
sid = None
|
||||||
|
for tok in parts[1:]:
|
||||||
|
if tok.isdigit():
|
||||||
|
sid = tok
|
||||||
|
break
|
||||||
|
state = 'Active' if 'active' in stripped.lower() else (
|
||||||
|
'Disc' if 'disc' in stripped.lower() else '')
|
||||||
|
if is_current:
|
||||||
|
current = name
|
||||||
|
if name.startswith('rdp-tcp#') and state == 'Active':
|
||||||
|
rdp_active = name
|
||||||
|
if name == 'console':
|
||||||
|
console = sid
|
||||||
|
return {'current': current, 'rdp_active': rdp_active, 'console': console}
|
||||||
|
|
||||||
|
|
||||||
|
def session_state():
|
||||||
|
"""查当前会话归属, 用于把"截不到图"的原因说清楚。
|
||||||
|
|
||||||
|
实测两种都会让 BitBlt 失败, 但性质完全不同:
|
||||||
|
* 会话掉到 Disc -> 看门狗能把它挂回 console, 自愈
|
||||||
|
* RDP 会话 Active 占着显示 -> console 画面是空的, 看门狗**不会动**(它只看 Disc)
|
||||||
|
不区分的话日志里只会留一句"会话被断开", 排查时会被带偏。
|
||||||
|
"""
|
||||||
|
try:
|
||||||
|
out = subprocess.run(['query', 'session'], capture_output=True, text=True,
|
||||||
|
errors='ignore', timeout=20).stdout
|
||||||
|
except (OSError, subprocess.SubprocessError):
|
||||||
|
return None
|
||||||
|
if not isinstance(out, str):
|
||||||
|
# 拿到的不是文本就别硬解析 —— 这只是诊断信息, 不值得为它炸掉整轮
|
||||||
|
return None
|
||||||
|
st = parse_session_table(out)
|
||||||
|
return st if any(st.values()) else None
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_display(timeout_s=90):
|
||||||
|
"""确认桌面在出图, 不在就先跑看门狗把它挂回来。
|
||||||
|
|
||||||
|
为什么这轮必须自己做: RDP 断开时 Windows 会把显示表面拆掉, 截图全黑,
|
||||||
|
之后所有模板匹配和 OCR 都是瞎的。看门狗 LcKeepDisplay 每分钟修一次, 但
|
||||||
|
整轮合成只跑 3 分钟左右 —— 断线正好落在这 3 分钟里的话, 这一轮必然失败,
|
||||||
|
而下一轮要等 4 小时。实测 2026-10-16 一天内会话掉了两次, 不是小概率。
|
||||||
|
"""
|
||||||
|
if render_ok():
|
||||||
|
return True
|
||||||
|
st = session_state()
|
||||||
|
if st and st.get('rdp_active'):
|
||||||
|
# RDP 会话 Active 时 console 画面是空的, 看门狗按设计不会动它(它只处理 Disc)。
|
||||||
|
# 硬把它踢到 console 会把正在用的人踢下线, 所以这里只报告, 不擅自动手。
|
||||||
|
log('桌面未在出图, 而 RDP 会话 %s 处于 Active(占着显示) —— '
|
||||||
|
'看门狗只处理 Disc, 这种情况要人工把 RDP 断开; 本轮跳过' % st['rdp_active'])
|
||||||
|
return False
|
||||||
|
log('桌面未在出图(BitBlt 失败), 跑看门狗把显示挂回 console'
|
||||||
|
+ ('(会话状态: %s)' % st if st else ''))
|
||||||
|
watchdog = os.path.join(HERE, 'keep_display.ps1')
|
||||||
|
try:
|
||||||
|
subprocess.run(['powershell.exe', '-NoProfile', '-ExecutionPolicy', 'Bypass',
|
||||||
|
'-File', watchdog], capture_output=True, text=True,
|
||||||
|
errors='ignore', timeout=120)
|
||||||
|
except (OSError, subprocess.SubprocessError) as e:
|
||||||
|
log('看门狗执行失败: %s' % e)
|
||||||
|
t0 = time.time()
|
||||||
|
while time.time() - t0 < timeout_s:
|
||||||
|
time.sleep(3)
|
||||||
|
if render_ok():
|
||||||
|
log('显示已恢复 (%.0fs)' % (time.time() - t0))
|
||||||
|
return True
|
||||||
|
log('显示仍未恢复, 这轮大概会失败')
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 屏幕判定
|
||||||
|
|
||||||
|
def screen():
|
||||||
|
return screen_text(items())
|
||||||
|
|
||||||
|
|
||||||
|
def on_main_menu(txt):
|
||||||
|
return sum(1 for m in MAIN_MENU_MARKERS if m in txt) >= 4
|
||||||
|
|
||||||
|
|
||||||
|
def panel_open(txt):
|
||||||
|
return PANEL_MARKER in txt
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 狂气
|
||||||
|
|
||||||
|
LABEL_KEY = 'NACY' # 见下: LUNACY 的首字母常被 OCR 吃掉, 只认后半段
|
||||||
|
|
||||||
|
|
||||||
|
def find_lunacy_label(its=None):
|
||||||
|
"""找狂气标签所在的那个 OCR 元素。
|
||||||
|
|
||||||
|
⛔ 实测坑(2026-10-16 11:11): OCR 把 "LUNACY" 读成了 **"UNACY"** —— 首字母 L
|
||||||
|
被吃掉了。而代码原本写的是 `'LUNACY' in text`, "UNACY" 不含 "LUNACY",
|
||||||
|
于是每次都被判成"读不到", 狂气校验直接退化成 None -> 跳过比对, 防线形同虚设。
|
||||||
|
(同一块底栏的体力却一直读得到, 所以只看日志很难发现。)
|
||||||
|
|
||||||
|
改成认后半段 "NACY": LUNACY / UNACY / 甚至 NACY 都能命中, 而这个词根
|
||||||
|
在游戏界面里不会出现在别处。
|
||||||
|
"""
|
||||||
|
if its is None:
|
||||||
|
its = items()
|
||||||
|
for it in its:
|
||||||
|
if LABEL_KEY in it.get('text', '').upper():
|
||||||
|
return it
|
||||||
|
# 再退一步: 底栏那一带最靠左的短文本元素(标签位置很固定)
|
||||||
|
near = [it for it in its
|
||||||
|
if 775 < it.get('y', 0) < 815 and it.get('x', 0) < 700
|
||||||
|
and (it.get('w') or 0) < 100]
|
||||||
|
if near:
|
||||||
|
return sorted(near, key=lambda it: it.get('x', 0))[-1]
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def read_lunacy(reads=5, pause=1.0):
|
||||||
|
"""读狂气余额, 取多次读数的众数。
|
||||||
|
|
||||||
|
两个实测坑:
|
||||||
|
1. 标签首字母会被 OCR 吃掉(LUNACY -> UNACY), 所以不能整词匹配, 见 find_lunacy_label。
|
||||||
|
2. 读完所有帧再取唯一众数(至少出现两次), 平票返回 None。标签和数字必须来自
|
||||||
|
同一帧。OCR 的系统性误读仍可能存在, 前后不同不能直接证明消费。
|
||||||
|
"""
|
||||||
|
votes = {}
|
||||||
|
for i in range(reads):
|
||||||
|
its = items()
|
||||||
|
lab = find_lunacy_label(its)
|
||||||
|
if lab:
|
||||||
|
best = None
|
||||||
|
for it in its:
|
||||||
|
t = it.get('text', '').strip()
|
||||||
|
if t.isdigit():
|
||||||
|
dy = it.get('y', 0) - lab.get('y', 0)
|
||||||
|
dx = abs(it.get('x', 0) - lab.get('x', 0))
|
||||||
|
if 0 < dy < 70 and dx < 130:
|
||||||
|
best = int(t)
|
||||||
|
if best is not None:
|
||||||
|
votes[best] = votes.get(best, 0) + 1
|
||||||
|
if i < reads - 1:
|
||||||
|
time.sleep(pause)
|
||||||
|
ranked = sorted(votes, key=votes.get, reverse=True)
|
||||||
|
if ranked and votes[ranked[0]] >= 2:
|
||||||
|
if len(ranked) == 1 or votes[ranked[0]] > votes[ranked[1]]:
|
||||||
|
return ranked[0]
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
# 狂气那个数字的 OCR 读法**不稳定**: 同一个真值(6636)实测被读成过
|
||||||
|
# 6636 / 9699 / 6388 / 8859 —— 艺术字加抗锯齿, 同一画面连读几次都可能不一样。
|
||||||
|
#
|
||||||
|
# ⛔ 所以最初那套"前后读数不同 = 真的变了"是错的(2026-10-16 22:03 误报过一次:
|
||||||
|
# 前 6636 后 9699, 复读仍是 9699, 于是报了"狂气读数发生变化" —— 但那一轮脚本
|
||||||
|
# 只点了模组图标和面板内的 » / 确认, 根本没碰 Use Lunacy 页签, 没有任何消费)。
|
||||||
|
#
|
||||||
|
# 能站得住的判断只有两种:
|
||||||
|
# * 前后读数都落在"已知读法"集合里 -> 可能只是换了个误读法
|
||||||
|
# * 变化涉及集合以外的读数 -> 需要人工核查
|
||||||
|
# 真正的防线是结构性的(只点 Modules 页签, 且 Use Lunacy 坐标被测试盯着),
|
||||||
|
# 这里只是补一层"数字有没有变成陌生值"的旁证。
|
||||||
|
LUNACY_KNOWN_READINGS = (6636, 9699, 6388, 8859)
|
||||||
|
|
||||||
|
|
||||||
|
def lunacy_verdict(before, after):
|
||||||
|
"""返回 (是否可疑, 说明)。宁可说"不确定", 也不要把误读当消费。"""
|
||||||
|
if before is None or after is None:
|
||||||
|
return False, '读数不完整(%s -> %s), 本次未做比对' % (before, after)
|
||||||
|
if before == after:
|
||||||
|
return False, '前后读数一致 %s' % after
|
||||||
|
if before in LUNACY_KNOWN_READINGS and after in LUNACY_KNOWN_READINGS:
|
||||||
|
return False, ('前后均为已知读法(%s -> %s), 可能为 OCR 抖动, 不单凭此判定消费'
|
||||||
|
% (before, after))
|
||||||
|
return True, ('读数 %s -> %s, 前后至少一项不在已知读法 %s 里, 需人工核查'
|
||||||
|
% (before, after, list(LUNACY_KNOWN_READINGS)))
|
||||||
|
|
||||||
|
|
||||||
|
def read_owned(retries=3, pause=2.0):
|
||||||
|
"""从合成面板上读 'Owned NN'(当前模组数量)。读不到返回 None。
|
||||||
|
|
||||||
|
这个读数是判断"到底换到没有"的依据, 所以第一次没读到要再试几次 ——
|
||||||
|
面板刚打开时数字还在刷新, 单次读容易拿到 None。
|
||||||
|
"""
|
||||||
|
for i in range(retries):
|
||||||
|
v = _read_owned_once()
|
||||||
|
if v is not None:
|
||||||
|
return v
|
||||||
|
if i < retries - 1:
|
||||||
|
time.sleep(pause)
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def _read_owned_once():
|
||||||
|
import re
|
||||||
|
its = items()
|
||||||
|
for it in its:
|
||||||
|
m = re.search(r'Owned\s*(\d+)', it.get('text', ''), re.I)
|
||||||
|
if m:
|
||||||
|
return int(m.group(1))
|
||||||
|
# OCR 有可能会把 'Owned 23' 拆开, 退一步找面板里的裸数字
|
||||||
|
for it in its:
|
||||||
|
t = it.get('text', '').strip()
|
||||||
|
if t.isdigit() and 300 < it.get('y', 0) < 360:
|
||||||
|
return int(t)
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
ENKEPHALIN_PER_MODULE = 20
|
||||||
|
|
||||||
|
|
||||||
|
def read_enkephalin():
|
||||||
|
"""读主界面底栏的体力 'x/126'。读不到返回 None。
|
||||||
|
|
||||||
|
只认 y>700 的读数 —— 合成面板里也有一个 x/126(那是"合成后"的预览值),
|
||||||
|
用高度把它排除掉, 免得把预览当余额。
|
||||||
|
"""
|
||||||
|
import re
|
||||||
|
for it in items():
|
||||||
|
t = it.get('text', '').replace(' ', '')
|
||||||
|
m = re.search(r'(\d{1,4})/126', t)
|
||||||
|
if m and it.get('y', 0) > 700:
|
||||||
|
return int(m.group(1))
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 游戏进程
|
||||||
|
|
||||||
|
def game_running():
|
||||||
|
out = subprocess.run(['tasklist', '/FI', 'IMAGENAME eq %s.exe' % GAME_PROC],
|
||||||
|
capture_output=True, text=True, errors='ignore')
|
||||||
|
return GAME_PROC.lower() in (out.stdout or '').lower()
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 窗口尺寸
|
||||||
|
|
||||||
|
def _find_hwnd():
|
||||||
|
from ctypes import windll
|
||||||
|
return windll.user32.FindWindowW(None, 'LimbusCompany')
|
||||||
|
|
||||||
|
|
||||||
|
def _client_size(hwnd):
|
||||||
|
from ctypes import windll, wintypes
|
||||||
|
r = wintypes.RECT()
|
||||||
|
windll.user32.GetClientRect(hwnd, __import__('ctypes').byref(r))
|
||||||
|
return r.right - r.left, r.bottom - r.top
|
||||||
|
|
||||||
|
|
||||||
|
def _move_window(hwnd, width, height, cur):
|
||||||
|
"""把窗口调到客户区正好 width x height。"""
|
||||||
|
from ctypes import windll, wintypes, byref
|
||||||
|
wr = wintypes.RECT()
|
||||||
|
windll.user32.GetWindowRect(hwnd, byref(wr))
|
||||||
|
# 边框/标题栏占掉的差值 = 窗口尺寸 - 客户区尺寸
|
||||||
|
frame_w = (wr.right - wr.left) - cur[0]
|
||||||
|
frame_h = (wr.bottom - wr.top) - cur[1]
|
||||||
|
windll.user32.MoveWindow(hwnd, wr.left, wr.top,
|
||||||
|
width + frame_w, height + frame_h, True)
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_window_size(width, height, find=None, client=None, resize=None):
|
||||||
|
"""把游戏客户区调成 width x height, 返回调完后的 (w, h)。
|
||||||
|
|
||||||
|
为什么要管这个: RDP 断线重连会把窗口改小(实测 1600x900 -> 1278x719), 之后
|
||||||
|
OCR 质量明显下降 —— 连底栏的 LUNACY 标签都读不出来, 狂气校验直接变成
|
||||||
|
"读不到, 跳过"。AALC 自己的 WindowGuard 只在跑任务时才生效, 而这个脚本
|
||||||
|
不跑任务, 所以得自己调。
|
||||||
|
|
||||||
|
find/client/resize 可注入, 便于测试 —— 默认走 ctypes 真实实现。
|
||||||
|
"""
|
||||||
|
find = find or _find_hwnd
|
||||||
|
client = client or _client_size
|
||||||
|
resize = resize or _move_window
|
||||||
|
hwnd = find()
|
||||||
|
if not hwnd:
|
||||||
|
return None
|
||||||
|
cur = client(hwnd)
|
||||||
|
if cur == (width, height):
|
||||||
|
return cur # 已经对了就别动它
|
||||||
|
resize(hwnd, width, height, cur)
|
||||||
|
time.sleep(2)
|
||||||
|
after = client(hwnd)
|
||||||
|
log('窗口客户区 %sx%s -> %sx%s (目标 %sx%s)' % (cur + after + (width, height)))
|
||||||
|
return after
|
||||||
|
|
||||||
|
|
||||||
|
def launch_game(timeout_s=240, tries=3):
|
||||||
|
"""启动游戏, 分几次尝试。
|
||||||
|
|
||||||
|
⛔ 2026-10-17 02:03 实测: 那一轮 exe 起来就退了 —— Steam 的 content_log 里
|
||||||
|
02:0x 毫无记录(上一轮 22:03:43 有 "App Running"), 应用事件日志也没有报错,
|
||||||
|
游戏进程始终没出现。而 13 分钟后我手动启动, 5 秒就起来了。
|
||||||
|
时间线上, 01:49 刚发生过一次会话断开重连, Steam 的 webhelper 直到 02:16 才恢复活动。
|
||||||
|
|
||||||
|
原来的写法是"点一次火, 干等 240 秒", 碰上一次静默失败就白丢一整轮(这轮体力白攒)。
|
||||||
|
改成多次尝试 —— 中间隔一会儿再来一次, 大多数瞬时故障都能靠这个救回来。
|
||||||
|
"""
|
||||||
|
if game_running():
|
||||||
|
log('游戏已在运行')
|
||||||
|
return True
|
||||||
|
log('Steam 进程数: %d' % len([p for p in _popen_psutil('steam')]))
|
||||||
|
each = max(40, timeout_s // max(1, tries))
|
||||||
|
for i in range(tries):
|
||||||
|
log('启动游戏(第 %d/%d 次, 每次等 %ds): %s' % (i + 1, tries, each, GAME_EXE))
|
||||||
|
subprocess.Popen([GAME_EXE], close_fds=True)
|
||||||
|
t0 = time.time()
|
||||||
|
while time.time() - t0 < each:
|
||||||
|
time.sleep(5)
|
||||||
|
if game_running():
|
||||||
|
log('游戏进程已出现 (%.0fs)' % (time.time() - t0))
|
||||||
|
return True
|
||||||
|
log(' 这一次没等到游戏进程')
|
||||||
|
log('游戏启动超时(试了 %d 次)' % tries)
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def _popen_psutil(name):
|
||||||
|
"""按进程名查进程(只用于日志, 失败返回空)。"""
|
||||||
|
try:
|
||||||
|
out = subprocess.run(['tasklist', '/FI', 'IMAGENAME eq %s.exe' % name],
|
||||||
|
capture_output=True, text=True, errors='ignore').stdout
|
||||||
|
return [l for l in out.splitlines() if l.lower().startswith(name.lower())]
|
||||||
|
except OSError:
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
def close_game(graceful_s=20):
|
||||||
|
"""关游戏。先好好关, 关不掉再强杀。
|
||||||
|
|
||||||
|
⛔ 原来是一上来就 taskkill /F。2026-10-17 发现一次可疑的"换到的模块没保留":
|
||||||
|
18:10 合成后 31 -> 33
|
||||||
|
22:05 合成前 33, 合成后 33 -> 35 (消耗了 40 点体力)
|
||||||
|
06:04 合成前 **33** <- 22:05 那两个模块不见了
|
||||||
|
原因没查明(也可能是人手动用掉了), 但强制结束本来就有丢未保存状态的风险,
|
||||||
|
换成优雅关闭成本很低, 顺手把这条路堵上。
|
||||||
|
|
||||||
|
步骤: 先只发关闭请求(taskkill 不带 /F), 等它自己退; 超时再强杀。
|
||||||
|
"""
|
||||||
|
if not game_running():
|
||||||
|
log('游戏未在运行')
|
||||||
|
return
|
||||||
|
subprocess.run(['taskkill', '/IM', '%s.exe' % GAME_PROC],
|
||||||
|
capture_output=True, text=True, errors='ignore')
|
||||||
|
t0 = time.time()
|
||||||
|
while time.time() - t0 < graceful_s:
|
||||||
|
time.sleep(2)
|
||||||
|
if not game_running():
|
||||||
|
log('游戏已正常关闭 (%.0fs)' % (time.time() - t0))
|
||||||
|
return
|
||||||
|
log(' 优雅关闭没成功, 改用强制结束')
|
||||||
|
subprocess.run(['taskkill', '/IM', '%s.exe' % GAME_PROC, '/F'],
|
||||||
|
capture_output=True, text=True, errors='ignore')
|
||||||
|
time.sleep(3)
|
||||||
|
log('游戏已关闭' if not game_running() else '游戏仍在运行(关闭失败)')
|
||||||
|
|
||||||
|
|
||||||
|
def wait_main_menu(timeout_s=300):
|
||||||
|
"""等游戏进到主界面。中途用 Enter/点击推进标题、剧情、公告。"""
|
||||||
|
t0 = time.time()
|
||||||
|
last = ''
|
||||||
|
while time.time() - t0 < timeout_s:
|
||||||
|
try:
|
||||||
|
txt = screen()
|
||||||
|
except Exception as e:
|
||||||
|
log(' 读取画面失败(%s), 稍后再试' % type(e).__name__)
|
||||||
|
time.sleep(8)
|
||||||
|
continue
|
||||||
|
if on_main_menu(txt):
|
||||||
|
log('已进入主界面')
|
||||||
|
return True
|
||||||
|
if txt != last:
|
||||||
|
log(' 等待中: %s' % txt[:90])
|
||||||
|
last = txt
|
||||||
|
if 'DOWNLOADING' in txt.upper():
|
||||||
|
time.sleep(10)
|
||||||
|
continue
|
||||||
|
# 标题/剧情/公告: 先点一下再按 Enter, 覆盖两种推进方式。
|
||||||
|
# ⛔ 位置选屏幕中央而不是下方: 底栏 (800,830) 正好落在 Inventory 按钮里
|
||||||
|
# (实测 OCR: Inventory @(759,834) w=91, 跨度 759~850)。上面虽然每轮都先
|
||||||
|
# 查过"是不是主界面", 但画面恰在这一瞬切过去的话, 这一下就点在 Inventory
|
||||||
|
# 上了 —— 后果不重(只是开个背包), 却会让循环卡在一个预期之外的界面上。
|
||||||
|
click(800, 450)
|
||||||
|
time.sleep(1.2)
|
||||||
|
keypress('enter')
|
||||||
|
time.sleep(2.0)
|
||||||
|
log('等待主界面超时')
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 合成
|
||||||
|
|
||||||
|
def open_panel(tries=4):
|
||||||
|
"""点开合成面板。成功返回 True。
|
||||||
|
|
||||||
|
点击后要等 UI 真的出来再截图判定 —— 实测立刻截图会拿到点击前的旧帧,
|
||||||
|
于是误判成"点了没反应", 白折腾很多轮。
|
||||||
|
"""
|
||||||
|
for i in range(tries):
|
||||||
|
txt = screen()
|
||||||
|
if panel_open(txt):
|
||||||
|
return True
|
||||||
|
log(' 点模组图标 %s (第 %d 次)' % (MODULE_ICON, i + 1))
|
||||||
|
click(*MODULE_ICON)
|
||||||
|
time.sleep(3.5)
|
||||||
|
return panel_open(screen())
|
||||||
|
|
||||||
|
|
||||||
|
# 免费合成页签独有的问句 —— 这句话在别的页签上不会出现
|
||||||
|
MODULES_QUESTION = 'assemble Enkephalin Modules'
|
||||||
|
|
||||||
|
|
||||||
|
def on_modules_tab():
|
||||||
|
"""确认停在 Modules(免费合成)页签。
|
||||||
|
|
||||||
|
⛔ 实测坑(2026-10-16 18:03): 原来只看"兑换区显示体力条 x/126", 但 OCR 会把相邻
|
||||||
|
几行合并成一个元素(那次 "Enkephalin Module Owned 31" 的框高 38、宽 351, 把下面
|
||||||
|
的 x/126 一起吞了), 于是判定失败 —— 整轮拒绝合成, 一个模块没换到。
|
||||||
|
|
||||||
|
现在认面板自己的问句 "Would you like to assemble Enkephalin Modules?":
|
||||||
|
它只在免费页签出现, 而且实测单独成行、不会被合并吃掉。
|
||||||
|
体力条那条留着当备用信号(两条任一成立即可)。
|
||||||
|
|
||||||
|
判不出来时返回 False, 调用方拒绝合成 —— 宁可漏一轮, 也不在不知道哪个页签上点确认。
|
||||||
|
"""
|
||||||
|
its = items()
|
||||||
|
flat = ' '.join(it.get('text', '') for it in its).replace(' ', '')
|
||||||
|
if MODULES_QUESTION.replace(' ', '') in flat:
|
||||||
|
return True
|
||||||
|
for it in its:
|
||||||
|
if 470 < it.get('y', 0) < 560 and '/126' in it.get('text', '').replace(' ', ''):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def convert_once(tries=2):
|
||||||
|
"""打开面板 -> 取最大 -> 合成。返回 (ok, 说明, 合成数量)。
|
||||||
|
|
||||||
|
为什么默认重试一次: "点了确认但模组没变"有两种完全不同的原因 ——
|
||||||
|
1. 游戏限制了本轮/本日能换的数量(正常)
|
||||||
|
2. 界面这一次没响应(偶发, 重开面板通常就好了)
|
||||||
|
只做一次的话分不清这两者, 而它们该有不同的处置。重试第二次仍然不变,
|
||||||
|
就按"换不了"如实报告。
|
||||||
|
"""
|
||||||
|
last = '未尝试'
|
||||||
|
for attempt in range(tries):
|
||||||
|
if attempt:
|
||||||
|
log(' 第一次没换到, 关掉面板重开再试一次')
|
||||||
|
close_panel()
|
||||||
|
time.sleep(3)
|
||||||
|
ok, info, got = _convert_attempt()
|
||||||
|
if ok:
|
||||||
|
return ok, info, got
|
||||||
|
last = info
|
||||||
|
return False, last, 0
|
||||||
|
|
||||||
|
|
||||||
|
def _convert_attempt():
|
||||||
|
"""一次合成尝试。返回 (ok, 说明, 合成数量)。"""
|
||||||
|
if not open_panel():
|
||||||
|
return False, '打不开合成面板', 0
|
||||||
|
|
||||||
|
# 显式回到 Modules 页签。即使上一轮停在别处, 这一步也把它拨回来。
|
||||||
|
click(*TAB_MODULES)
|
||||||
|
time.sleep(2.0)
|
||||||
|
if not on_modules_tab():
|
||||||
|
return False, '确认不在 Modules(免费合成)页签, 为安全起见不合成', 0
|
||||||
|
|
||||||
|
before = read_owned()
|
||||||
|
log(' 合成前模组: %s' % before)
|
||||||
|
if before is None:
|
||||||
|
# 读不到起点就无从判断有没有换到。这里**不能报成功** —— 那是假装验证过,
|
||||||
|
# 和"狂气读不到就静默跳过"是同一类毛病。宁可不合成, 下一轮再来。
|
||||||
|
return False, '读不到合成前的模组数, 无法确认结果, 本轮不合成', 0
|
||||||
|
|
||||||
|
click(*BTN_MAX)
|
||||||
|
time.sleep(2.5)
|
||||||
|
click(*BTN_CONFIRM)
|
||||||
|
|
||||||
|
# 面板会自己刷新 Owned。等它变大, 最多等 20 秒。
|
||||||
|
t0 = time.time()
|
||||||
|
while time.time() - t0 < 20:
|
||||||
|
time.sleep(2.5)
|
||||||
|
now = read_owned()
|
||||||
|
if now is not None and now > before:
|
||||||
|
return True, '模组 %d -> %d (+%d)' % (before, now, now - before), now - before
|
||||||
|
|
||||||
|
after = read_owned()
|
||||||
|
if after is None:
|
||||||
|
return False, '合成后读不到模组数, 无法确认结果(合成前为 %d)' % before, 0
|
||||||
|
if after < before:
|
||||||
|
return False, '模组读数下降(%d -> %d), 无法确认合成结果' % (before, after), 0
|
||||||
|
if after == before:
|
||||||
|
# 走到这里时调用方已经确认体力 >= 20, 所以"体力不足"不是可能的原因,
|
||||||
|
# 写进去只会把排查方向带偏。真实原因只有这两种。
|
||||||
|
return False, ('点了确认但模组没变(%s): 可能已达兑换上限, 或界面没响应'
|
||||||
|
% after), 0
|
||||||
|
return True, '模组 %d -> %d (+%d)' % (before, after, after - before), after - before
|
||||||
|
|
||||||
|
|
||||||
|
def close_panel():
|
||||||
|
for _ in range(4):
|
||||||
|
if not panel_open(screen()):
|
||||||
|
return True
|
||||||
|
click(*BTN_CANCEL)
|
||||||
|
time.sleep(2.0)
|
||||||
|
return not panel_open(screen())
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------- 主流程
|
||||||
|
|
||||||
|
def main(argv=None):
|
||||||
|
ap = argparse.ArgumentParser(description='启动游戏 -> 体力合成模块 -> 关掉游戏')
|
||||||
|
ap.add_argument('--keep-game', action='store_true', help='合成完不关游戏(调试用)')
|
||||||
|
ap.add_argument('--start-timeout', type=int, default=300, help='等主界面的秒数')
|
||||||
|
ap.add_argument('--report-dir', default=LOG_DIR)
|
||||||
|
args = ap.parse_args(argv)
|
||||||
|
|
||||||
|
t_start = time.time()
|
||||||
|
_result.clear()
|
||||||
|
_result.update({'started': time.strftime('%Y-%m-%d %H:%M:%S'), 'steps': []})
|
||||||
|
|
||||||
|
def done(code, why):
|
||||||
|
_result['ok'] = code == 0
|
||||||
|
_result['result'] = why
|
||||||
|
_result['elapsed_s'] = int(time.time() - t_start)
|
||||||
|
os.makedirs(args.report_dir, exist_ok=True)
|
||||||
|
p = os.path.join(args.report_dir, 'convert_%s.json' % time.strftime('%Y%m%d_%H%M%S'))
|
||||||
|
with open(p, 'w', encoding='utf-8') as f:
|
||||||
|
json.dump(_result, f, ensure_ascii=False, indent=2)
|
||||||
|
log('=== %s (%s), 耗时 %ds ===' % (why, 'OK' if code == 0 else 'FAIL',
|
||||||
|
int(time.time() - t_start)))
|
||||||
|
return code
|
||||||
|
|
||||||
|
log('=== 开始: 体力换模块 ===')
|
||||||
|
|
||||||
|
if not ensure_server():
|
||||||
|
return done(1, 'MCP 服务连不上, 也没能拉起来')
|
||||||
|
# 断线会让截图全黑, 那之后什么都做不了 —— 先确认桌面在出图再动游戏
|
||||||
|
if not ensure_display():
|
||||||
|
return done(1, '桌面不在出图(会话被断开), 本轮跳过')
|
||||||
|
if not launch_game():
|
||||||
|
return done(1, '游戏启动失败')
|
||||||
|
if not wait_main_menu(args.start_timeout):
|
||||||
|
if not args.keep_game:
|
||||||
|
close_game()
|
||||||
|
return done(1, '等不到主界面')
|
||||||
|
|
||||||
|
# 窗口被 RDP 改小过的话先调回去, 否则底栏 OCR 会读不出来
|
||||||
|
got_size = ensure_window_size(1600, 900)
|
||||||
|
if got_size != (1600, 900):
|
||||||
|
log('[warn] 客户区没能调到 1600x900(现为 %s), OCR 可能不稳定' % (got_size,))
|
||||||
|
|
||||||
|
time.sleep(3)
|
||||||
|
# 刚进主界面时底栏还在淡入, 单次读常常是 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)
|
||||||
|
# 读到就记进报告 —— 后面可能因为体力不足提前收工, 那时这条读数不该丢。
|
||||||
|
_result['lunacy_before'] = lunacy_before
|
||||||
|
_result['converted'] = False
|
||||||
|
|
||||||
|
# 体力读数也要重试。单次读成 None 的话, 下面"体力不足就收工"这层判断会被
|
||||||
|
# 整个跳过, 于是明明只是体力不够, 却要去点合成、最后报成 FAIL(退出码 1) ——
|
||||||
|
# 给值守留下一条误导性的失败记录。
|
||||||
|
enk = None
|
||||||
|
for _ in range(4):
|
||||||
|
enk = read_enkephalin()
|
||||||
|
if enk is not None:
|
||||||
|
break
|
||||||
|
time.sleep(3)
|
||||||
|
log('当前体力: %s/126 (合成 1 个模块需要 %d)' % (enk, ENKEPHALIN_PER_MODULE))
|
||||||
|
if enk is None:
|
||||||
|
log('[warn] 体力读数没拿到, 这轮按"不确定"处理, 不主动点合成')
|
||||||
|
close_panel()
|
||||||
|
if not args.keep_game:
|
||||||
|
close_game()
|
||||||
|
return done(0, '读不到体力读数, 本轮跳过(下一轮再试)')
|
||||||
|
if enk < ENKEPHALIN_PER_MODULE:
|
||||||
|
# 体力不够换一个模块 —— 这是正常情况(挂机等恢复), 不是失败。
|
||||||
|
# 直接收工, 免得每轮都在计划任务里报错。
|
||||||
|
close_panel()
|
||||||
|
if not args.keep_game:
|
||||||
|
close_game()
|
||||||
|
return done(0, '体力不足(%s<%d), 本轮无需合成' % (enk, ENKEPHALIN_PER_MODULE))
|
||||||
|
|
||||||
|
ok, info, got = convert_once()
|
||||||
|
_result['steps'].append({'step': '合成', 'ok': ok, 'info': info})
|
||||||
|
_result['converted'] = bool(got)
|
||||||
|
log('合成: %s (%s)' % ('OK' if ok else 'FAIL', info))
|
||||||
|
|
||||||
|
time.sleep(2)
|
||||||
|
close_panel()
|
||||||
|
# 关面板后画面要缓一下才稳定, 立刻读会得到 None(实测), 那样相对比对就白做了
|
||||||
|
lunacy_after = None
|
||||||
|
for _ in range(4):
|
||||||
|
time.sleep(3)
|
||||||
|
lunacy_after = read_lunacy()
|
||||||
|
if lunacy_after is not None:
|
||||||
|
break
|
||||||
|
log('合成后狂气(OCR): %s' % lunacy_after)
|
||||||
|
|
||||||
|
# ⛔ 先记进报告再判 —— 22:03 那次是在判断之后才记, 结果告警分支提前 return,
|
||||||
|
# 报告里 lunacy_after 留了个 None, 事后想复核这次读数都无从下手。
|
||||||
|
# (和第 10 轮修过的"提前收工导致读数丢失"是同一个毛病, 这次犯在告警分支上。)
|
||||||
|
_result['lunacy_before'] = lunacy_before
|
||||||
|
_result['lunacy_after'] = lunacy_after
|
||||||
|
_result['lunacy_checked'] = (lunacy_before is not None and lunacy_after is not None)
|
||||||
|
|
||||||
|
# ⛔ 这里原来是"前后读数不同就报违规", 已证明是错的(2026-10-16 22:03 误报):
|
||||||
|
# 同一个真值 6636 的 OCR 读法本身就不固定(6636/9699/6388/8859 都出现过),
|
||||||
|
# 所以"不同"完全可能只是换了个误读法。判据换成 lunacy_verdict():
|
||||||
|
# 只有读到**从没见过的值**才算可疑, 已知读法之间的抖动不算。
|
||||||
|
suspicious, why = lunacy_verdict(lunacy_before, lunacy_after)
|
||||||
|
if suspicious:
|
||||||
|
log(' [warn] %s' % why)
|
||||||
|
if not args.keep_game:
|
||||||
|
close_game()
|
||||||
|
return done(1, '⚠️ %s' % why)
|
||||||
|
log('狂气校验: %s' % why)
|
||||||
|
if not args.keep_game:
|
||||||
|
close_game()
|
||||||
|
|
||||||
|
if not ok:
|
||||||
|
return done(1, '合成未成功: %s' % info)
|
||||||
|
if got == 0:
|
||||||
|
return done(0, '本轮无需合成(体力不足或已达上限): %s' % info)
|
||||||
|
return done(0, '合成完成: %s' % info)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
raise SystemExit(main())
|
||||||
@@ -29,6 +29,7 @@ class Decision:
|
|||||||
model: str | None = None
|
model: str | None = None
|
||||||
fallback_reason: str | None = None
|
fallback_reason: str | None = None
|
||||||
failed_jev_ms: int | None = None
|
failed_jev_ms: int | None = None
|
||||||
|
candidate_scope: list | None = None
|
||||||
|
|
||||||
|
|
||||||
def _answer(answer, options):
|
def _answer(answer, options):
|
||||||
@@ -90,7 +91,8 @@ class DecisionRouter:
|
|||||||
answer = self.jev_decider(self.config, state, options, recent)
|
answer = self.jev_decider(self.config, state, options, recent)
|
||||||
choice, latency, confidence, probabilities, returned_model = _answer(answer, options)
|
choice, latency, confidence, probabilities, returned_model = _answer(answer, options)
|
||||||
return Decision(choice, 'jev', latency, jev_ms=latency, confidence=confidence,
|
return Decision(choice, 'jev', latency, jev_ms=latency, confidence=confidence,
|
||||||
probabilities=probabilities, model=returned_model or model)
|
probabilities=probabilities, model=returned_model or model,
|
||||||
|
candidate_scope=answer.get('candidate_scope') if isinstance(answer, dict) else None)
|
||||||
except urllib.error.HTTPError as error:
|
except urllib.error.HTTPError as error:
|
||||||
reason = 'jev_http_%d' % error.code
|
reason = 'jev_http_%d' % error.code
|
||||||
except (OSError, TimeoutError, ValueError) as error:
|
except (OSError, TimeoutError, ValueError) as error:
|
||||||
|
|||||||
@@ -0,0 +1,147 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""汇总 ~/lc_mcp/cycles 下的轮次报告, 用于持续运行时的定期上报。
|
||||||
|
|
||||||
|
用法:
|
||||||
|
python scripts/farm_status.py # 全部轮次
|
||||||
|
python scripts/farm_status.py --last 10 # 只看最近 10 轮
|
||||||
|
python scripts/farm_status.py --json # 机器可读
|
||||||
|
|
||||||
|
读的是 auto_cycle.py 写的 cycle_*.json, 不碰游戏, 可在任何时候运行。
|
||||||
|
"""
|
||||||
|
import argparse
|
||||||
|
import glob
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
DEFAULT_DIR = os.path.expanduser(os.path.join('~', 'lc_mcp', 'cycles'))
|
||||||
|
RUNS_DIR = os.path.expanduser(os.path.join('~', 'lc_mcp', 'runs'))
|
||||||
|
BASELINE = os.path.expanduser(os.path.join('~', 'lc_mcp', 'lunacy_baseline.txt'))
|
||||||
|
|
||||||
|
|
||||||
|
def load_reports(report_dir):
|
||||||
|
out = []
|
||||||
|
for p in sorted(glob.glob(os.path.join(report_dir, 'cycle_*.json'))):
|
||||||
|
try:
|
||||||
|
with open(p, encoding='utf-8') as f:
|
||||||
|
r = json.load(f)
|
||||||
|
except (OSError, ValueError):
|
||||||
|
continue
|
||||||
|
r['_path'] = p
|
||||||
|
r['_mtime'] = os.path.getmtime(p)
|
||||||
|
out.append(r)
|
||||||
|
return sorted(out, key=lambda r: r.get('started') or '', reverse=True)
|
||||||
|
|
||||||
|
|
||||||
|
def step_of(report, name):
|
||||||
|
for s in report.get('steps', []):
|
||||||
|
if s.get('step') == name:
|
||||||
|
return s
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def task_stats_for(report):
|
||||||
|
"""从 cycle 的 log 找同期的 daily 任务日志, 统计选队/卡死/错误。
|
||||||
|
|
||||||
|
cycle_*.log 里有 "daily 已启动" 的时间, 但精确对上 task 日志更麻烦;
|
||||||
|
这里按 cycle 结束时间往前找最近一份 daily 日志。
|
||||||
|
"""
|
||||||
|
if not os.path.isdir(RUNS_DIR):
|
||||||
|
return None
|
||||||
|
logs = [p for p in glob.glob(os.path.join(RUNS_DIR, 'task_*_daily.log'))]
|
||||||
|
logs = [p for p in logs if os.path.getmtime(p) <= report.get('_mtime', time.time()) + 60]
|
||||||
|
if not logs:
|
||||||
|
return None
|
||||||
|
p = max(logs, key=os.path.getmtime)
|
||||||
|
try:
|
||||||
|
with open(p, encoding='utf-8', errors='replace') as f:
|
||||||
|
txt = f.read()
|
||||||
|
except OSError:
|
||||||
|
return None
|
||||||
|
txt = re.sub(r'\x1b\[[0-9;]*m', '', txt)
|
||||||
|
return {
|
||||||
|
'log': os.path.basename(p),
|
||||||
|
'team_ok': len(re.findall(r'成功找到队伍', txt)),
|
||||||
|
'team_fail': len(re.findall(r'找不到队伍', txt)),
|
||||||
|
'exp': len(re.findall(r'结束执行 一次经验本', txt)),
|
||||||
|
'thread': len(re.findall(r'结束执行 一次纽本', txt)),
|
||||||
|
'empty_team_stall': len(re.findall(r'配队人数OCR得到:\D*0\s*/\s*5', txt)),
|
||||||
|
'errors': len(re.findall(r'\[ERROR\]', txt)),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def fmt_mins(sec):
|
||||||
|
if not sec:
|
||||||
|
return '-'
|
||||||
|
return '%d:%02d' % (sec // 60, sec % 60)
|
||||||
|
|
||||||
|
|
||||||
|
def summarize(reports):
|
||||||
|
rows = []
|
||||||
|
for r in reports:
|
||||||
|
lum = [s for s in r.get('steps', []) if '狂气' in s.get('step', '')]
|
||||||
|
lum_info = lum[-1]['info'] if lum else '-'
|
||||||
|
failed = [s['step'] for s in r.get('steps', []) if not s.get('ok')]
|
||||||
|
rows.append({
|
||||||
|
'started': (r.get('started') or '')[:16],
|
||||||
|
'ok': r.get('ok'),
|
||||||
|
'result': r.get('result'),
|
||||||
|
'elapsed_s': r.get('elapsed_s'),
|
||||||
|
'failed_steps': failed,
|
||||||
|
'lunacy': lum_info,
|
||||||
|
'tasks': task_stats_for(r),
|
||||||
|
})
|
||||||
|
return rows
|
||||||
|
|
||||||
|
|
||||||
|
def main(argv=None):
|
||||||
|
ap = argparse.ArgumentParser(description='汇总持续刷取进度')
|
||||||
|
ap.add_argument('--report-dir', default=DEFAULT_DIR)
|
||||||
|
ap.add_argument('--last', type=int, default=0, help='只看最近 N 轮, 0=全部')
|
||||||
|
ap.add_argument('--json', action='store_true')
|
||||||
|
args = ap.parse_args(argv)
|
||||||
|
|
||||||
|
reports = load_reports(args.report_dir)
|
||||||
|
if args.last:
|
||||||
|
reports = reports[:args.last]
|
||||||
|
rows = summarize(reports)
|
||||||
|
|
||||||
|
base = None
|
||||||
|
if os.path.exists(BASELINE):
|
||||||
|
try:
|
||||||
|
base = int(open(BASELINE, encoding='utf-8').read().strip())
|
||||||
|
except ValueError:
|
||||||
|
base = None
|
||||||
|
|
||||||
|
if args.json:
|
||||||
|
print(json.dumps({'rows': rows, 'lunacy_baseline': base}, ensure_ascii=False, indent=2))
|
||||||
|
return 0
|
||||||
|
|
||||||
|
if not rows:
|
||||||
|
print('还没有轮次报告 (%s)' % args.report_dir)
|
||||||
|
return 1
|
||||||
|
|
||||||
|
print('狂气基线: %s' % ('%d' % base if base is not None else '(无)'))
|
||||||
|
print()
|
||||||
|
print('%-17s %-5s %-7s %-30s %s' % ('开始', 'OK', '耗时', '失败步骤', '任务日志(选队/经验/纽本/卡死/错误)'))
|
||||||
|
print('-' * 104)
|
||||||
|
for r in rows:
|
||||||
|
t = r['tasks']
|
||||||
|
tinfo = ('%s %d/%d/%d/%d/%d' % (t['log'][-24:], t['team_ok'], t['exp'], t['thread'],
|
||||||
|
t['empty_team_stall'], t['errors'])) if t else '-'
|
||||||
|
print('%-17s %-5s %-7s %-30s %s' % (
|
||||||
|
r['started'], '✅' if r['ok'] else '❌', fmt_mins(r['elapsed_s']),
|
||||||
|
','.join(r['failed_steps']) or '-', tinfo))
|
||||||
|
print()
|
||||||
|
tot = len(rows)
|
||||||
|
good = sum(1 for r in rows if r['ok'])
|
||||||
|
print('共 %d 轮, 成功 %d, 失败 %d' % (tot, good, tot - good))
|
||||||
|
if base is not None:
|
||||||
|
print('狂气基线 %d —— 只增不减才算没消费' % base)
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
sys.exit(main())
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
# 注册"到点启动游戏 -> 合成模块 -> 关掉游戏"的计划任务。
|
||||||
|
#
|
||||||
|
# 用法:
|
||||||
|
# powershell -ExecutionPolicy Bypass -File scripts\install_convert_task.ps1
|
||||||
|
# powershell -ExecutionPolicy Bypass -File scripts\install_convert_task.ps1 -EveryHours 6
|
||||||
|
# powershell -ExecutionPolicy Bypass -File scripts\install_convert_task.ps1 -Uninstall
|
||||||
|
#
|
||||||
|
# 节奏怎么定(体力恢复速度):
|
||||||
|
# Limbus 的体力每 6 分钟回 1 点, 上限 126。
|
||||||
|
# 合成 1 个模块要 20 点体力, 所以:
|
||||||
|
# 每 2 小时 -> 约 20 点 -> 1 个模块
|
||||||
|
# 每 4 小时 -> 约 40 点 -> 2 个模块(默认)
|
||||||
|
# 每 6 小时 -> 约 60 点 -> 3 个模块
|
||||||
|
# 只要不顶到 126 上限就不浪费恢复量, 所以更勤快些也不会亏。
|
||||||
|
# 4 小时是"每次都能换到东西"和"别老折腾游戏启动"之间的折中。
|
||||||
|
#
|
||||||
|
# 这个任务和 LcMCPDailyCycle 是分开的: 用户明确要求这次不打任何关卡,
|
||||||
|
# 只挂机攒模块, 所以不能把刷取任务一起打开。
|
||||||
|
param(
|
||||||
|
[double]$EveryHours = 4,
|
||||||
|
[string]$Python = "",
|
||||||
|
[switch]$Uninstall
|
||||||
|
)
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
$Repo = Split-Path -Parent $PSScriptRoot
|
||||||
|
$TaskName = "LcMCPConvertModules"
|
||||||
|
|
||||||
|
if ($Uninstall) {
|
||||||
|
Unregister-ScheduledTask -TaskName $TaskName -Confirm:$false -ErrorAction SilentlyContinue
|
||||||
|
Write-Output "uninstalled $TaskName"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-not $Python) {
|
||||||
|
$Python = Join-Path $Repo "vendor\aalc\.venv\Scripts\pythonw.exe"
|
||||||
|
}
|
||||||
|
if (-not (Test-Path $Python)) {
|
||||||
|
throw "找不到 python: $Python"
|
||||||
|
}
|
||||||
|
$script = Join-Path $PSScriptRoot "convert_modules.py"
|
||||||
|
if (-not (Test-Path $script)) {
|
||||||
|
throw "找不到脚本: $script"
|
||||||
|
}
|
||||||
|
|
||||||
|
# 以当前用户运行。无人值守要点: 不要勾"只在用户登录时运行", 否则注销后不跑。
|
||||||
|
$principal = New-ScheduledTaskPrincipal -UserId "$env:USERDOMAIN\$env:USERNAME" `
|
||||||
|
-LogonType Interactive -RunLevel Limited
|
||||||
|
|
||||||
|
$action = New-ScheduledTaskAction -Execute $Python -WorkingDirectory $Repo `
|
||||||
|
-Argument "-X utf8 `"$script`""
|
||||||
|
|
||||||
|
# 一次跑 5 分钟足够: 启动游戏 + 进主界面 + 合成 + 关掉。给宽一点防止启动慢。
|
||||||
|
$limit = New-TimeSpan -Minutes 15
|
||||||
|
|
||||||
|
# -Once + 长周期重复, 这样才能设成"每 N 小时"
|
||||||
|
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(2) `
|
||||||
|
-RepetitionInterval (New-TimeSpan -Minutes ($EveryHours * 60)) `
|
||||||
|
-RepetitionDuration (New-TimeSpan -Days 3650)
|
||||||
|
|
||||||
|
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries `
|
||||||
|
-StartWhenAvailable -ExecutionTimeLimit $limit -MultipleInstances IgnoreNew
|
||||||
|
|
||||||
|
Register-ScheduledTask -TaskName $TaskName -Action $action -Trigger $trigger `
|
||||||
|
-Principal $principal -Settings $settings -Force | Out-Null
|
||||||
|
|
||||||
|
Write-Output "registered $TaskName (every $EveryHours h, limit=$limit)"
|
||||||
|
Write-Output "reports -> $env:USERPROFILE\lc_mcp\modules\convert_*.json"
|
||||||
|
Write-Output "log -> $env:USERPROFILE\lc_mcp\modules\convert.log"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# 注册登录时启动的 lc-mcp 常驻服务 (交互会话, 能看到游戏窗口)。
|
# 注册登录时启动的 lc-mcp 常驻服务 (交互会话, 能看到游戏窗口)。
|
||||||
# 用法 (在要跑游戏的那个账号下, 普通 PowerShell 即可):
|
# 用法 (在要跑游戏的那个账号下, 普通 PowerShell 即可):
|
||||||
# powershell -ExecutionPolicy Bypass -File scripts\install_logon_task.ps1
|
# powershell -ExecutionPolicy Bypass -File scripts\install_logon_task.ps1
|
||||||
# 可选: -Python <python.exe 路径> 默认用 vendor\aalc\.venv (uv sync 生成)
|
# 可选: -Python <python.exe 路径> 默认用 vendor\aalc\.venv (uv sync 生成)
|
||||||
|
|||||||
@@ -0,0 +1,91 @@
|
|||||||
|
# 注册无人值守用的两个计划任务 (在跑游戏的那个账号下, 普通 PowerShell 即可):
|
||||||
|
# LcMCPKeepDisplay 每 1 分钟跑 keep_display.ps1: 会话掉到 Disc 时重挂 console, 防止截图全黑
|
||||||
|
# LcMCPDailyCycle 定时跑 auto_cycle.py: 刷材料 -> 镜牢 -> 升级/同步, 报告写到 ~\lc_mcp\cycles
|
||||||
|
#
|
||||||
|
# 用法:
|
||||||
|
# powershell -ExecutionPolicy Bypass -File scripts\install_unattended.ps1
|
||||||
|
# 可选: -At 05:30 每日运行时间。游戏每日重置为 06:00 (KST), 即北京时间 05:00
|
||||||
|
# -EveryHours 2.5 改成"每 N 小时重复一轮"以持续刷取; 0 = 只按 -At 每天一次
|
||||||
|
# 单轮上限 = 60 + 75*Mirror 分钟, 间隔要大于它, 否则会被跳过
|
||||||
|
# -Mirror 1 每轮镜牢局数, 0 = 不打镜牢
|
||||||
|
# -Target 34 把队内人格升到的等级
|
||||||
|
# -Python <路径> 默认 vendor\aalc\.venv\Scripts\pythonw.exe (无窗口, 不抢游戏焦点)
|
||||||
|
# -NoWatchdog 只装每日任务
|
||||||
|
# -Uninstall
|
||||||
|
#
|
||||||
|
# 前提: LcMCPServer 已用 install_logon_task.ps1 装好并在运行。
|
||||||
|
# 先手动跑一轮确认无误再装: python scripts\auto_cycle.py --mirror 1
|
||||||
|
param(
|
||||||
|
[string]$At = "05:30",
|
||||||
|
[double]$EveryHours = 0,
|
||||||
|
[int]$Mirror = 1,
|
||||||
|
[int]$Target = 34,
|
||||||
|
[string]$Python = "",
|
||||||
|
[switch]$NoWatchdog,
|
||||||
|
[switch]$Uninstall
|
||||||
|
)
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
$Repo = Split-Path -Parent $PSScriptRoot
|
||||||
|
$Watchdog = "LcMCPKeepDisplay"
|
||||||
|
$Daily = "LcMCPDailyCycle"
|
||||||
|
|
||||||
|
if ($Uninstall) {
|
||||||
|
foreach ($name in @($Watchdog, $Daily)) {
|
||||||
|
Unregister-ScheduledTask -TaskName $name -Confirm:$false -ErrorAction SilentlyContinue
|
||||||
|
Write-Output "removed $name"
|
||||||
|
}
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-not $Python) { $Python = Join-Path $Repo "vendor\aalc\.venv\Scripts\pythonw.exe" }
|
||||||
|
if (-not (Test-Path $Python)) {
|
||||||
|
throw "找不到 Python: $Python`n先在 vendor\aalc 里执行 uv sync, 或用 -Python 指定"
|
||||||
|
}
|
||||||
|
if (-not (Get-ScheduledTask -TaskName "LcMCPServer" -ErrorAction SilentlyContinue)) {
|
||||||
|
Write-Warning "没有找到 LcMCPServer 计划任务, 每日任务需要它: 先运行 scripts\install_logon_task.ps1"
|
||||||
|
}
|
||||||
|
|
||||||
|
$user = "$env:USERDOMAIN\$env:USERNAME"
|
||||||
|
# Limited: keep_display.ps1 自己用 RunAs 静默提权跑 tscon (需要 ConsentPromptBehaviorAdmin=0)
|
||||||
|
$principal = New-ScheduledTaskPrincipal -UserId $user -LogonType Interactive -RunLevel Limited
|
||||||
|
|
||||||
|
if (-not $NoWatchdog) {
|
||||||
|
$ps = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe"
|
||||||
|
$script = Join-Path $PSScriptRoot "keep_display.ps1"
|
||||||
|
$action = New-ScheduledTaskAction -Execute $ps -WorkingDirectory $Repo `
|
||||||
|
-Argument "-NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$script`""
|
||||||
|
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) `
|
||||||
|
-RepetitionInterval (New-TimeSpan -Minutes 1) -RepetitionDuration (New-TimeSpan -Days 3650)
|
||||||
|
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries `
|
||||||
|
-ExecutionTimeLimit (New-TimeSpan -Minutes 3) -MultipleInstances IgnoreNew
|
||||||
|
Register-ScheduledTask -TaskName $Watchdog -Action $action -Trigger $trigger -Principal $principal `
|
||||||
|
-Settings $settings -Force | Out-Null
|
||||||
|
Write-Output "registered $Watchdog (every 1 min) -> $script"
|
||||||
|
}
|
||||||
|
|
||||||
|
$cycle = Join-Path $PSScriptRoot "auto_cycle.py"
|
||||||
|
$action = New-ScheduledTaskAction -Execute $Python -WorkingDirectory $Repo `
|
||||||
|
-Argument "-X utf8 `"$cycle`" --mirror $Mirror --target $Target"
|
||||||
|
# 一轮 daily 约 22 分钟, 每局镜牢实测 39~>70 分钟; 超过上限由计划任务强杀
|
||||||
|
$limit = New-TimeSpan -Minutes (60 + 75 * [Math]::Max($Mirror, 0))
|
||||||
|
if ($EveryHours -gt 0) {
|
||||||
|
# 持续刷取: 每 N 小时重复一轮。开始时间取"现在", 装完即进入节奏。
|
||||||
|
# 注意 New-TimeSpan -Hours 的参数是 [int], 传 2.5 会被截断成 2 小时, 所以用 -Minutes。
|
||||||
|
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) `
|
||||||
|
-RepetitionInterval (New-TimeSpan -Minutes ($EveryHours * 60)) `
|
||||||
|
-RepetitionDuration (New-TimeSpan -Days 3650)
|
||||||
|
$desc = "every $EveryHours h"
|
||||||
|
# 重复周期必须大于单轮上限, 否则会在上一轮还没结束时又起一轮
|
||||||
|
if (($EveryHours * 60) -lt $limit.TotalMinutes) {
|
||||||
|
Write-Warning "EveryHours=$EveryHours ($($EveryHours * 60) 分钟) 短于单轮上限 $limit, 可能重叠; MultipleInstances=IgnoreNew 会跳过, 但建议调大"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$trigger = New-ScheduledTaskTrigger -Daily -At $At
|
||||||
|
$desc = "daily at $At"
|
||||||
|
}
|
||||||
|
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries `
|
||||||
|
-StartWhenAvailable -ExecutionTimeLimit $limit -MultipleInstances IgnoreNew
|
||||||
|
Register-ScheduledTask -TaskName $Daily -Action $action -Trigger $trigger -Principal $principal `
|
||||||
|
-Settings $settings -Force | Out-Null
|
||||||
|
Write-Output "registered $Daily ($desc, mirror=$Mirror, target=Lv.$Target, limit=$limit)"
|
||||||
|
Write-Output "reports -> $env:USERPROFILE\lc_mcp\cycles\cycle_*.json"
|
||||||
+127
-24
@@ -12,6 +12,7 @@ from game_scenes import battle_is_terminal, battle_is_visible, death_retry_scree
|
|||||||
from run_state import prepare_run, save_json, record_claim, claim_is_current, complete_run
|
from run_state import prepare_run, save_json, record_claim, claim_is_current, complete_run
|
||||||
from decision_router import DecisionRouter, DecisionRequired
|
from decision_router import DecisionRouter, DecisionRequired
|
||||||
from jev_client import request_answer
|
from jev_client import request_answer
|
||||||
|
from lc_scene_aliases import normalize
|
||||||
|
|
||||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||||
MIRROR_ASSETS = REPO_ROOT / 'vendor' / 'aalc' / 'assets' / 'images' / 'default' / 'share' / 'mirror'
|
MIRROR_ASSETS = REPO_ROOT / 'vendor' / 'aalc' / 'assets' / 'images' / 'default' / 'share' / 'mirror'
|
||||||
@@ -25,7 +26,9 @@ SYSTEM_RULES = (
|
|||||||
'遇到事件判定先点SKIP跳过对话,跳完后再选择事件选项、罪人或进行判定;剧情同样优先SKIP。'
|
'遇到事件判定先点SKIP跳过对话,跳完后再选择事件选项、罪人或进行判定;剧情同样优先SKIP。'
|
||||||
'事件当前有“选择后获得”且无需判定、无需战斗的选项时直接选择它,不反复滚动;避开写着战斗胜利后的选项。'
|
'事件当前有“选择后获得”且无需判定、无需战斗的选项时直接选择它,不反复滚动;避开写着战斗胜利后的选项。'
|
||||||
'确定确认/进入/开始战斗直接执行。地图优先可达事件和商店,减少战斗。'
|
'确定确认/进入/开始战斗直接执行。地图优先可达事件和商店,减少战斗。'
|
||||||
|
'战斗奖励优先经费,纯P无需囤积E.G.O资源;可附带破裂合成材料的经费奖励优先。'
|
||||||
'选好路线直接回车进入,关卡编队界面也直接回车开战;保留原编队,不再检查人员。'
|
'选好路线直接回车进入,关卡编队界面也直接回车开战;保留原编队,不再检查人员。'
|
||||||
|
'候选路线已由程序核对可达和节点类型,无需再确认已完成的开局配置。多个同类型节点都可达时默认正前方,不因没有事件节点而要求分析。'
|
||||||
'保留当前编队。开局三级饰品三选一必须选择标准负载电池,再确认领取;不能当成额外观测拒绝。'
|
'保留当前编队。开局三级饰品三选一必须选择标准负载电池,再确认领取;不能当成额外观测拒绝。'
|
||||||
'成捆的符咒++、标准负载电池和鸡胸为核心,保留不可出售或合成;仅略过单独的额外观测。其他苦难避开敌方体力上限和防御等级。'
|
'成捆的符咒++、标准负载电池和鸡胸为核心,保留不可出售或合成;仅略过单独的额外观测。其他苦难避开敌方体力上限和防御等级。'
|
||||||
'3层起辛克莱1换3,黑兽奥提斯2换3,其他出战1换3。只在商店强化饰品。'
|
'3层起辛克莱1换3,黑兽奥提斯2换3,其他出战1换3。只在商店强化饰品。'
|
||||||
@@ -41,6 +44,13 @@ def text_items(state):
|
|||||||
return state.get('items') or []
|
return state.get('items') or []
|
||||||
|
|
||||||
|
|
||||||
|
def scene_fingerprint(state):
|
||||||
|
"""Ignore changing clocks and counters when checking failed confirmations."""
|
||||||
|
return tuple(item['text'] for item in text_items(state)
|
||||||
|
if item.get('score', 0) > .93
|
||||||
|
and not re.fullmatch(r'[0-9:.]+', item['text'].replace(' ', '')))
|
||||||
|
|
||||||
|
|
||||||
_SCREEN_CACHE = {}
|
_SCREEN_CACHE = {}
|
||||||
|
|
||||||
|
|
||||||
@@ -70,6 +80,28 @@ def button_enabled(state, item):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def purchased_slot(state, item):
|
||||||
|
"""OCR may omit the orange Purchased badge above a bought skill slot."""
|
||||||
|
try:
|
||||||
|
import cv2
|
||||||
|
import numpy as np
|
||||||
|
template_path = REPO_ROOT / 'assets' / 'ui' / 'purchased_english.png'
|
||||||
|
template = np.array(screen_image(template_path, 'L'))
|
||||||
|
width = state['screen'].get('w', 1920)
|
||||||
|
height = state['screen'].get('h', 1080)
|
||||||
|
if width != 1920:
|
||||||
|
template = cv2.resize(template, None, fx=width/1920, fy=width/1920)
|
||||||
|
cx = item['x'] + item['w']/2
|
||||||
|
area = np.array(screen_image(state['screen']['path'], 'L').crop(
|
||||||
|
(round(cx-width*.075), round(item['y']-height*.2),
|
||||||
|
round(cx+width*.075), round(item['y']-height*.09))))
|
||||||
|
if area.shape[0] < template.shape[0] or area.shape[1] < template.shape[1]:
|
||||||
|
return False
|
||||||
|
return float(cv2.matchTemplate(area, template, cv2.TM_CCOEFF_NORMED).max()) >= .9
|
||||||
|
except (OSError, KeyError, ImportError):
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
@functools.lru_cache(maxsize=64)
|
@functools.lru_cache(maxsize=64)
|
||||||
def _map_template(kind, name, scale):
|
def _map_template(kind, name, scale):
|
||||||
"""地图识别模板, 按截图比例缩放; 窗口尺寸不变时每帧复用, 不再重复读盘和计算特征点。
|
"""地图识别模板, 按截图比例缩放; 窗口尺寸不变时每帧复用, 不再重复读盘和计算特征点。
|
||||||
@@ -234,7 +266,7 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
'y': item['y'] + item['h']//2}},
|
'y': item['y'] + item['h']//2}},
|
||||||
}
|
}
|
||||||
return options
|
return options
|
||||||
if any('REC' in t.upper() for t in texts) and '选项' not in texts and not any(t in combined for t in ('选择一位罪人', '进行判定', '判定成功', '判定失败', '结果')):
|
if any(re.fullmatch(r'REC[●.]*', t, re.I) for t in texts) and '选项' not in texts and not any(t in combined for t in ('选择一位罪人', '进行判定', '判定成功', '判定失败', '结果')):
|
||||||
options['event_advance'] = {'description':'事件选项已经确定,按回车快速推进后续文本。', 'action':{'tool':'advance_dialog','args':{'presses':5}}}
|
options['event_advance'] = {'description':'事件选项已经确定,按回车快速推进后续文本。', 'action':{'tool':'advance_dialog','args':{'presses':5}}}
|
||||||
return options
|
return options
|
||||||
if '应该让谁' in combined and '选择一位罪人' not in combined and '进行判定' not in combined:
|
if '应该让谁' in combined and '选择一位罪人' not in combined and '进行判定' not in combined:
|
||||||
@@ -266,11 +298,12 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
('SKILL1', 'SKILL2') if '辛克莱' in header and state.get('floor', 3) < 3 else ('SKILL1', 'SKILL3'))
|
('SKILL1', 'SKILL2') if '辛克莱' in header and state.get('floor', 3) < 3 else ('SKILL1', 'SKILL3'))
|
||||||
if tuple(i['text'].replace(' ', '') for i in skills) == target:
|
if tuple(i['text'].replace(' ', '') for i in skills) == target:
|
||||||
for item in items:
|
for item in items:
|
||||||
if item['text'] == '购买':
|
if item['text'] in ('购买', '确认') and button_enabled(state, item):
|
||||||
options['buy_swap'] = {
|
options['buy_swap'] = {
|
||||||
'description': '已核对本层所需技能替换 %s→%s,点击购买完成。' % target,
|
'description': '已核对本层所需技能替换 %s→%s,点击购买完成。' % target,
|
||||||
'action': {'tool': 'click', 'args': {'x': item['x']+item['w']//2,
|
'action': {'tool': 'keypress', 'args': {'key': 'enter'}},
|
||||||
'y': item['y']+item['h']//2}},
|
'fallback_action': {'tool': 'click', 'args': {'x': item['x']+item['w']//2,
|
||||||
|
'y': item['y']+item['h']//2}},
|
||||||
}
|
}
|
||||||
return options
|
return options
|
||||||
if any('当前持有技能' in t for t in texts):
|
if any('当前持有技能' in t for t in texts):
|
||||||
@@ -472,6 +505,7 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
party = ('辛克莱', '鸿璐', '希斯克利夫', '奥提斯', '格里高尔', '良秀', '浮士德')
|
party = ('辛克莱', '鸿璐', '希斯克利夫', '奥提斯', '格里高尔', '良秀', '浮士德')
|
||||||
swaps = [(index, item) for index, item in enumerate(items)
|
swaps = [(index, item) for index, item in enumerate(items)
|
||||||
if '替换' in item['text'] and any(name in item['text'] for name in party)
|
if '替换' in item['text'] and any(name in item['text'] for name in party)
|
||||||
|
and not purchased_slot(state, item)
|
||||||
and not any('已购买' in sold['text']
|
and not any('已购买' in sold['text']
|
||||||
and abs(sold['x']+sold['w']/2-item['x']-item['w']/2) < width*.07
|
and abs(sold['x']+sold['w']/2-item['x']-item['w']/2) < width*.07
|
||||||
and 0 < item['y']-sold['y'] < height*.25 for sold in items)]
|
and 0 < item['y']-sold['y'] < height*.25 for sold in items)]
|
||||||
@@ -494,13 +528,17 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
'y': max(0, item['y'] - round(height*.095))}},
|
'y': max(0, item['y'] - round(height*.095))}},
|
||||||
}
|
}
|
||||||
if not swaps and refresh_used < 4:
|
if not swaps and refresh_used < 4:
|
||||||
for index, item in enumerate(items):
|
refreshes = [item for item in items if item['text'].replace(' ', '') == '刷新'
|
||||||
if item['text'].replace(' ', '') == '刷新' and button_enabled(state, item):
|
and button_enabled(state, item)]
|
||||||
options['shop_refresh'] = {
|
if refreshes:
|
||||||
'description': '没有出战角色可替换技能,刷新商店;本店已刷新%d/4次。' % refresh_used,
|
# The keyword panel has another Refresh further right.
|
||||||
'action': {'tool': 'click', 'args': {'x': item['x'] + item['w'] // 2,
|
# Refresh stock, never overwrite this with keyword Refresh.
|
||||||
'y': item['y'] + item['h'] // 2}},
|
item = min(refreshes, key=lambda value: value['x'])
|
||||||
}
|
options['shop_refresh'] = {
|
||||||
|
'description': '没有出战角色可替换技能,刷新商店;本店已刷新%d/4次。' % refresh_used,
|
||||||
|
'action': {'tool': 'click', 'args': {'x': item['x'] + item['w'] // 2,
|
||||||
|
'y': item['y'] + item['h'] // 2}},
|
||||||
|
}
|
||||||
end_screen = battle_is_terminal(state)
|
end_screen = battle_is_terminal(state)
|
||||||
battle = battle_is_visible(state)
|
battle = battle_is_visible(state)
|
||||||
if not end_screen and (battle or previous_battle):
|
if not end_screen and (battle or previous_battle):
|
||||||
@@ -516,10 +554,14 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
options['button_%d' % index] = {
|
options['button_%d' % index] = {
|
||||||
'description': '当前可见且非灰色按钮:%s;点击 OCR 中心。' % label,
|
'description': '当前可见且非灰色按钮:%s;点击 OCR 中心。' % label,
|
||||||
# 直接点已核对过的这一项: 重新按文字搜索要多一次截图+OCR, 还可能命中背景里的同名按钮
|
# 直接点已核对过的这一项: 重新按文字搜索要多一次截图+OCR, 还可能命中背景里的同名按钮
|
||||||
'action': ({'tool': 'keypress', 'args': {'key': 'enter'}} if label in ('进入', '开始战斗')
|
'action': ({'tool': 'keypress', 'args': {'key': 'enter'}} if label in ('进入', '开始战斗', '进行判定', '离开')
|
||||||
else {'tool': 'click', 'args': {'x': item['x'] + item['w']//2,
|
else {'tool': 'click', 'args': {'x': item['x'] + item['w']//2,
|
||||||
'y': item['y'] + item['h']//2}}),
|
'y': item['y'] + item['h']//2}}),
|
||||||
}
|
}
|
||||||
|
if options['button_%d' % index]['action']['tool'] == 'keypress':
|
||||||
|
options['button_%d' % index]['fallback_action'] = {
|
||||||
|
'tool': 'click', 'args': {'x': item['x'] + item['w']//2,
|
||||||
|
'y': item['y'] + item['h']//2}}
|
||||||
if (not battle and not in_shop and state.get('screen', {}).get('path')
|
if (not battle and not in_shop and state.get('screen', {}).get('path')
|
||||||
and Path(state['screen']['path']).is_file()
|
and Path(state['screen']['path']).is_file()
|
||||||
and not any(t in combined for t in ('确认', '继续', '获得E.G.O', 'SKIP', '选项'))):
|
and not any(t in combined for t in ('确认', '继续', '获得E.G.O', 'SKIP', '选项'))):
|
||||||
@@ -558,7 +600,9 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
}
|
}
|
||||||
for index, item in enumerate(items):
|
for index, item in enumerate(items):
|
||||||
if item['x'] > width * 0.52 and height * 0.23 < item['y'] < height * 0.75 and item['h'] > height * 0.025 and item.get('score', 0) > 0.93:
|
if item['x'] > width * 0.52 and height * 0.23 < item['y'] < height * 0.75 and item['h'] > height * 0.025 and item.get('score', 0) > 0.93:
|
||||||
if not any(t in item['text'] for t in ('判定', '获得', '成功', '全体', '战斗胜利')):
|
if (not any(t in item['text'] for t in ('判定', '获得', '成功', '全体', '战斗胜利'))
|
||||||
|
and not re.search(r'check\b|\bgain\b|\be\.?g\.?o\.?\s*gift|(?:advantage|guilt)check',
|
||||||
|
item['text'], re.I)):
|
||||||
outcome = ';'.join(i['text'] for i in items if i['x'] > width*.52
|
outcome = ';'.join(i['text'] for i in items if i['x'] > width*.52
|
||||||
and item['y']+item['h'] < i['y'] < item['y']+height*.085)
|
and item['y']+item['h'] < i['y'] < item['y']+height*.085)
|
||||||
options['event_%d' % index] = {'description': '当前事件选项:' + item['text'] + ';结果:' + outcome,
|
options['event_%d' % index] = {'description': '当前事件选项:' + item['text'] + ';结果:' + outcome,
|
||||||
@@ -567,16 +611,71 @@ def candidates(state, previous_battle=False, refresh_used=0):
|
|||||||
|
|
||||||
|
|
||||||
def decide(cfg, state, options, recent):
|
def decide(cfg, state, options, recent):
|
||||||
description = ('目标:按用户已配置的队伍和速通规则推进当前镜牢。当前楼层:%s\n当前游戏 OCR(坐标仅供辨识):\n' % state.get('floor', '尚未识别') +
|
actions = [key for key in options if key not in ('wait', 'requires_analysis')]
|
||||||
'\n'.join('%s @%d,%d' % (i['text'], i['x'], i['y']) for i in text_items(state)
|
route_scene = actions and all(key.startswith('route_') for key in actions)
|
||||||
if not i['text'].upper().startswith('STEAM')) +
|
sinner_scene = actions and all(key.startswith(('sinner_', 'button_')) for key in actions) and any(key.startswith('sinner_') for key in actions)
|
||||||
'\n截图视觉与可用控件观察(不是预先做出的决定):\n' +
|
if route_scene or sinner_scene:
|
||||||
'\n'.join(val['description'] for key,val in options.items() if key != 'requires_analysis') +
|
permitted = options
|
||||||
'\n最近动作和执行结果:' + json.dumps(recent[-4:], ensure_ascii=False))
|
if sinner_scene:
|
||||||
|
# All explicit maximum-probability cards are legal. An uncertain
|
||||||
|
# colour-only estimate must not compete with an OCR-labelled rate.
|
||||||
|
rated = [(key, re.search(r'预计成功率(极高|非常高|高)', options[key]['description']))
|
||||||
|
for key in actions if key.startswith('sinner_')]
|
||||||
|
rated = [(key, match[1]) for key, match in rated if match]
|
||||||
|
if rated:
|
||||||
|
best = 0 if any(rate != '高' for _, rate in rated) else 1
|
||||||
|
permitted = {key: options[key] for key, rate in rated
|
||||||
|
if (0 if rate != '高' else 1) == best}
|
||||||
|
# These candidates have already been validated against the live scene.
|
||||||
|
# Party setup, gifts and fusion do not affect this immediate choice.
|
||||||
|
instructions = (
|
||||||
|
'目标是最快完成镜牢,只选择所给候选。候选已核对当前画面,不需要再次核对编队或开局配置。'
|
||||||
|
+ ('地图优先商店、事件,再普通战斗,避免精英或集中战斗。同类型默认正前方 route_d;没有事件也直接选择可达战斗。'
|
||||||
|
if route_scene else
|
||||||
|
'当前是事件判定。已有进行判定按钮则选择该按钮;否则选择明确标注极高成功率的 sinner 候选,极高优于高;同档任选一个。不需要额外角色技能信息。')
|
||||||
|
+ '仅在候选互相矛盾或没有有效动作时选择 requires_analysis。')
|
||||||
|
scene = ('镜牢地图,当前高亮可达节点如下:' if route_scene else '事件选择罪人界面,已识别当前可选择的罪人和成功率如下:')
|
||||||
|
description = scene + ';'.join(options[key]['description'] for key in actions)
|
||||||
|
answer = request_answer(cfg, description,
|
||||||
|
{key: val['description'] for key, val in permitted.items()}, instructions)
|
||||||
|
if permitted is not options and answer.get('probabilities') is not None:
|
||||||
|
# The provider only scored permitted cards. The surrounding router
|
||||||
|
# validates a distribution across its original candidate set.
|
||||||
|
answer['candidate_scope'] = list(permitted)
|
||||||
|
answer['probabilities'] = {key: answer['probabilities'].get(key, 0) for key in options}
|
||||||
|
return answer
|
||||||
|
description = ('当前楼层:%s\n当前游戏文字:\n' % state.get('floor', '尚未识别') +
|
||||||
|
'\n'.join(dict.fromkeys(i['text'] for i in text_items(state)
|
||||||
|
if not i['text'].upper().startswith('STEAM'))) +
|
||||||
|
'\n最近执行结果:' + json.dumps(recent[-2:], ensure_ascii=False))
|
||||||
return request_answer(cfg, description,
|
return request_answer(cfg, description,
|
||||||
{key: val['description'] for key, val in options.items()}, SYSTEM_RULES)
|
{key: val['description'] for key, val in options.items()}, SYSTEM_RULES)
|
||||||
|
|
||||||
|
|
||||||
|
def unambiguous_routine(options):
|
||||||
|
"""Execute one validated confirmation; choices still go through the model."""
|
||||||
|
judges = [key for key, value in options.items() if key.startswith('button_')
|
||||||
|
and '进行判定' in value['description']]
|
||||||
|
if len(judges) == 1:
|
||||||
|
return judges[0]
|
||||||
|
actions = [key for key in options if key not in ('wait', 'requires_analysis')]
|
||||||
|
if len(actions) != 1:
|
||||||
|
return None
|
||||||
|
key = actions[0]
|
||||||
|
safe = ('modal_confirm', 'select_startup_battery', 'confirm_startup_battery',
|
||||||
|
'confirm_thunderbranch', 'confirm_reward', 'hardship_confirm',
|
||||||
|
'confirm_swap', 'buy_swap', 'claim_final', 'run_complete', 'retry_network', 'shop_refresh')
|
||||||
|
if key in safe:
|
||||||
|
return key
|
||||||
|
if key.startswith('skill_swap_'):
|
||||||
|
return key
|
||||||
|
if key.startswith('button_') and options[key]['action']['tool'] in ('click', 'keypress'):
|
||||||
|
description = options[key]['description']
|
||||||
|
if any(label in description for label in ('确认', '继续', '进入', '开始战斗', '离开', '下一层', '进行判定')):
|
||||||
|
return key
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def fixed_fallback(options):
|
def fixed_fallback(options):
|
||||||
for key in ('run_complete','required_pack','pack_refresh','select_startup_battery','confirm_startup_battery','select_thunderbranch','confirm_thunderbranch','prepare_thrill','prepare_thunderbranch','decline_extra_observation','retry_network','buy_swap','confirm_swap','confirm_reward','hardship_confirm','modal_confirm','claim_final','close_progress'):
|
for key in ('run_complete','required_pack','pack_refresh','select_startup_battery','confirm_startup_battery','select_thunderbranch','confirm_thunderbranch','prepare_thrill','prepare_thunderbranch','decline_extra_observation','retry_network','buy_swap','confirm_swap','confirm_reward','hardship_confirm','modal_confirm','claim_final','close_progress'):
|
||||||
if key in options:
|
if key in options:
|
||||||
@@ -630,7 +729,8 @@ def execute(bridge, action, deadline=None):
|
|||||||
def call(tool, args=None):
|
def call(tool, args=None):
|
||||||
if STOP_FILE.exists() or deadline is not None and time.monotonic() >= deadline:
|
if STOP_FILE.exists() or deadline is not None and time.monotonic() >= deadline:
|
||||||
return {'ok':False,'stopped':True}
|
return {'ok':False,'stopped':True}
|
||||||
return bridge.call(tool, args)
|
result = bridge.call(tool, args)
|
||||||
|
return normalize(result) if tool == 'get_state' else result
|
||||||
if action['tool'] == 'claim_final':
|
if action['tool'] == 'claim_final':
|
||||||
result = call('click', action['args'])
|
result = call('click', action['args'])
|
||||||
if not result.get('ok'):
|
if not result.get('ok'):
|
||||||
@@ -748,13 +848,12 @@ def main(executor_decider=None):
|
|||||||
save_json(status, {'state': 'stopped', 'step': step, 'run_id': run['run_id']})
|
save_json(status, {'state': 'stopped', 'step': step, 'run_id': run['run_id']})
|
||||||
return
|
return
|
||||||
observation_started = time.monotonic()
|
observation_started = time.monotonic()
|
||||||
state = bridge.call('get_state')
|
state = normalize(bridge.call('get_state'))
|
||||||
observation_ms = round((time.monotonic()-observation_started)*1000)
|
observation_ms = round((time.monotonic()-observation_started)*1000)
|
||||||
if not state.get('ok'):
|
if not state.get('ok'):
|
||||||
state = {'ok': False, 'items': [{'text': 'MCP 截图暂不可用;游戏窗口可能正在重建。' + str(state.get('error','')),
|
state = {'ok': False, 'items': [{'text': 'MCP 截图暂不可用;游戏窗口可能正在重建。' + str(state.get('error','')),
|
||||||
'x':0,'y':0,'w':0,'h':0,'score':1.0}]}
|
'x':0,'y':0,'w':0,'h':0,'score':1.0}]}
|
||||||
fingerprint = tuple(item['text'] for item in text_items(state)
|
fingerprint = scene_fingerprint(state)
|
||||||
if item.get('score', 0) > 0.93 and not item['text'].replace('.', '').isdigit() and not re.fullmatch(r'[0-9:]+', item['text']))
|
|
||||||
if any('正在探' in i['text'] or '主题卡包' in i['text'] for i in text_items(state)):
|
if any('正在探' in i['text'] or '主题卡包' in i['text'] for i in text_items(state)):
|
||||||
context['refresh_used'] = 0
|
context['refresh_used'] = 0
|
||||||
for item in text_items(state):
|
for item in text_items(state):
|
||||||
@@ -782,7 +881,7 @@ def main(executor_decider=None):
|
|||||||
and repeats.get((fingerprint, action_id), 0) >= 1):
|
and repeats.get((fingerprint, action_id), 0) >= 1):
|
||||||
fallback = options[key].get('fallback_action')
|
fallback = options[key].get('fallback_action')
|
||||||
button = next((i for i in text_items(state)
|
button = next((i for i in text_items(state)
|
||||||
if i['text'].replace(' ', '') in ('进入', '开始战斗', '确认', '继续')
|
if i['text'].replace(' ', '') in ('进入', '开始战斗', '确认', '继续', '进行判定')
|
||||||
and button_enabled(state, i)), None)
|
and button_enabled(state, i)), None)
|
||||||
if fallback or button:
|
if fallback or button:
|
||||||
options[key]['action'] = fallback or {'tool': 'click', 'args': {
|
options[key]['action'] = fallback or {'tool': 'click', 'args': {
|
||||||
@@ -810,6 +909,8 @@ def main(executor_decider=None):
|
|||||||
choice, latency = 'event_advance', 0
|
choice, latency = 'event_advance', 0
|
||||||
elif 'battle' in options:
|
elif 'battle' in options:
|
||||||
choice, latency = 'battle', 0
|
choice, latency = 'battle', 0
|
||||||
|
elif unambiguous_routine(options):
|
||||||
|
choice, latency = unambiguous_routine(options), 0
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
decision = router.choose(state, options, recent, run['run_id'])
|
decision = router.choose(state, options, recent, run['run_id'])
|
||||||
@@ -840,6 +941,8 @@ def main(executor_decider=None):
|
|||||||
record['failed_jev_ms'] = decision.failed_jev_ms
|
record['failed_jev_ms'] = decision.failed_jev_ms
|
||||||
if decision.fallback_reason:
|
if decision.fallback_reason:
|
||||||
record['decision_fallback_reason'] = decision.fallback_reason
|
record['decision_fallback_reason'] = decision.fallback_reason
|
||||||
|
if decision.candidate_scope is not None:
|
||||||
|
record['provider_candidate_scope'] = decision.candidate_scope
|
||||||
if choice == 'run_complete':
|
if choice == 'run_complete':
|
||||||
complete_run(RUNTIME_HOME, run, context, state.get('screen'))
|
complete_run(RUNTIME_HOME, run, context, state.get('screen'))
|
||||||
record['state'] = 'completed'
|
record['state'] = 'completed'
|
||||||
|
|||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# 看门狗: 会话掉回 "Disc" 时重新挂到物理控制台, 恢复桌面渲染。
|
||||||
|
#
|
||||||
|
# 背景: DSH / lc-mcp 常驻服务跑在会话 2。RDP 断开后 Windows 会拆掉该会话的
|
||||||
|
# 显示表面, 截图变全黑, AALC 直接失明。把会话挂到 console 后即使无人连接
|
||||||
|
# 也持续渲染。
|
||||||
|
#
|
||||||
|
# 只在会话状态为 Disc(无人连接) 时动作; 用户正通过 RDP/ToDesk 连着
|
||||||
|
# (Active/Conn) 时绝不插手, 否则会把用户挤下线。
|
||||||
|
#
|
||||||
|
# tscon 需要 SeTcbPrivilege, 普通令牌拿不到, 所以用 -Verb RunAs 提权。
|
||||||
|
# 本机 ConsentPromptBehaviorAdmin=0(从不通知), 提权静默通过, 不会弹框。
|
||||||
|
#
|
||||||
|
# 会话号默认取游戏进程所在会话, 找不到游戏时取本脚本所在会话(计划任务以
|
||||||
|
# 登录用户身份运行, 与桌面同一会话)。重启或重新登录后会话号会变, 不要写死。
|
||||||
|
|
||||||
|
param(
|
||||||
|
[int]$SessionId = -1,
|
||||||
|
[string]$Python = "",
|
||||||
|
[string]$LogPath = "$env:USERPROFILE\lc_mcp\keep_display.log",
|
||||||
|
[switch]$Verbose,
|
||||||
|
[switch]$ForceDisc
|
||||||
|
)
|
||||||
|
|
||||||
|
function Write-Log([string]$msg) {
|
||||||
|
$dir = Split-Path -Parent $LogPath
|
||||||
|
if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Path $dir -Force | Out-Null }
|
||||||
|
Add-Content -Path $LogPath -Value ("[{0}] {1}" -f (Get-Date -Format 'yyyy-MM-dd HH:mm:ss'), $msg) -Encoding UTF8
|
||||||
|
$all = @(Get-Content $LogPath -ErrorAction SilentlyContinue)
|
||||||
|
if ($all.Count -gt 400) { $all | Select-Object -Last 400 | Set-Content $LogPath -Encoding UTF8 }
|
||||||
|
}
|
||||||
|
|
||||||
|
# 会话状态: 用 WTS API (qwinsta 在计划任务上下文里拿不到输出)
|
||||||
|
$py = if ($Python) { $Python } else { Join-Path $PSScriptRoot '..\vendor\aalc\.venv\Scripts\python.exe' }
|
||||||
|
if ($SessionId -lt 0) {
|
||||||
|
$game = Get-Process -Name LimbusCompany -ErrorAction SilentlyContinue | Select-Object -First 1
|
||||||
|
$SessionId = if ($game) { $game.SessionId } else { (Get-Process -Id $PID).SessionId }
|
||||||
|
}
|
||||||
|
$statePy = Join-Path $PSScriptRoot 'session_state.py'
|
||||||
|
if (-not (Test-Path $py) -or -not (Test-Path $statePy)) {
|
||||||
|
Write-Log "missing python ($py) or session_state.py ($statePy); abort"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
$state = (& $py -X utf8 $statePy $SessionId 2>&1 | Out-String).Trim()
|
||||||
|
if ($state -notin @('Active', 'Connected', 'Disc', 'Idle')) {
|
||||||
|
Write-Log "session $SessionId state unreadable ('$state'); abort"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($ForceDisc) {
|
||||||
|
Write-Log "ForceDisc: skipping state check (real state was '$state')"
|
||||||
|
$state = 'Disc'
|
||||||
|
} elseif ($state -ne 'Disc') {
|
||||||
|
if ($Verbose) { Write-Log "session $SessionId is $state; nothing to do" }
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Log "session $SessionId is Disc -> re-attaching to console via elevated tscon"
|
||||||
|
$out = Join-Path (Split-Path -Parent $LogPath) 'tscon_last.txt'
|
||||||
|
Remove-Item $out -ErrorAction SilentlyContinue
|
||||||
|
# 之前的版本把命令拼成 -Command 字符串交给 Start-Process, 10-05 的 41 次失败
|
||||||
|
# 全部只留下 "(no output file)", 连 tscon 有没有跑都看不出(多半是引号在
|
||||||
|
# 命令行拼接时被吃掉, 重定向没生效)。改用 -EncodedCommand 原样传递,
|
||||||
|
# 并用 -PassThru 拿提权进程的退出码(= tscon 的退出码)。
|
||||||
|
# 32 位宿主里 System32 会被重定向到 SysWOW64, 那里没有 tscon.exe, 用 Sysnative 绕过。
|
||||||
|
$sysDir = if (Test-Path "$env:SystemRoot\Sysnative") { "$env:SystemRoot\Sysnative" } else { "$env:SystemRoot\System32" }
|
||||||
|
$inner = "& '$sysDir\tscon.exe' $SessionId /dest:console *> '$out'; exit `$LASTEXITCODE"
|
||||||
|
$encoded = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($inner))
|
||||||
|
try {
|
||||||
|
$proc = Start-Process -FilePath "$sysDir\WindowsPowerShell\v1.0\powershell.exe" `
|
||||||
|
-ArgumentList @('-NoProfile', '-NonInteractive', '-EncodedCommand', $encoded) `
|
||||||
|
-Verb RunAs -WindowStyle Hidden -Wait -PassThru -ErrorAction Stop
|
||||||
|
} catch {
|
||||||
|
Write-Log "elevated tscon launch FAILED: $($_.Exception.Message)"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
Start-Sleep -Seconds 2
|
||||||
|
# Get-Content -Raw 一般返回单个字符串, 但文件为空或 $out 被当成通配时可能返回数组,
|
||||||
|
# 那时 .Trim() 会报 "does not contain a method named 'Trim'"。先拼接成字符串再用。
|
||||||
|
$tsconOut = ''
|
||||||
|
if (Test-Path $out) {
|
||||||
|
$raw = @(Get-Content $out -ErrorAction SilentlyContinue) -join ' '
|
||||||
|
$tsconOut = ($raw -replace '\s+', ' ').Trim()
|
||||||
|
}
|
||||||
|
if (-not $tsconOut) { $tsconOut = '(no output)' }
|
||||||
|
$after = (& $py -X utf8 $statePy $SessionId 2>&1 | Out-String).Trim()
|
||||||
|
Write-Log "tscon exit=$($proc.ExitCode) said: $tsconOut | session $SessionId now: $after"
|
||||||
|
|
||||||
|
# 渲染自检: BitBlt 屏幕 DC 成功 = 桌面在出图
|
||||||
|
$renderPy = Join-Path $PSScriptRoot 'render_check.py'
|
||||||
|
if (Test-Path $renderPy) {
|
||||||
|
$rc = (& $py -X utf8 $renderPy 2>&1 | Out-String).Trim()
|
||||||
|
Write-Log "render check: $rc"
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($after -ne 'Active' -and $after -ne 'Connected') {
|
||||||
|
Write-Log "WARN: session $SessionId still '$after' after tscon"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
"""Normalize observed English UI labels for the existing mirror controller."""
|
||||||
|
import re
|
||||||
|
|
||||||
|
LABELS = {
|
||||||
|
'confirm':'确认', 'continue':'继续', 'proceed':'继续', 'enter':'进入', 'cancel':'取消',
|
||||||
|
'leave':'离开', 'close':'关闭', 'startbattle':'开始战斗', 'startcombat':'开始战斗',
|
||||||
|
'battle!':'开始战斗', 'chainbattle!':'开始战斗',
|
||||||
|
'select':'选择', 'selectasinner':'选择一位罪人', 'chooseasinner':'选择一位罪人',
|
||||||
|
'commence':'进行判定', 'commencecheck':'进行判定', 'performcheck':'进行判定', 'checksuccess':'判定成功',
|
||||||
|
'checkfailure':'判定失败', 'checkpassed':'判定成功', 'checkfailed':'判定失败',
|
||||||
|
'result':'结果', 'options':'选项', 'choices':'选项', 'veryhigh':'极高',
|
||||||
|
'high':'高', 'shop':'商店', 'specialshop':'特殊商店', 'refresh':'刷新',
|
||||||
|
'enhancegifts':'强化饰品', 'enhancee.g.ogifts':'强化饰品', 'purchase':'购买',
|
||||||
|
'buy':'购买', 'purchased':'已购买', 'currentownedskills':'当前持有技能', 'skillsowned':'当前持有技能',
|
||||||
|
'thunderbranch':'雷枝', '雷击木':'雷枝', 'talismanbundle':'成捆的符咒',
|
||||||
|
'standard-dutybattery':'标准负载电池', 'standarddutybattery':'标准负载电池',
|
||||||
|
'thrill':'快感', 'selecte.g.ogifts':'选择E.G.O饰品',
|
||||||
|
'selecte.g.ogift':'选择E.G.O饰品', 'declinegifts':'拒绝饰品',
|
||||||
|
'declinegift':'拒绝饰品', 'refusegifts':'拒绝饰品',
|
||||||
|
'refusegift':'拒绝饰品', 'selectede.g.ogift':'选择E.G.O饰品',
|
||||||
|
'gaine.g.ogift':'获得E.G.O饰品', 'gaine.g.ogift!':'获得E.G.O饰品!',
|
||||||
|
'obtaine.g.ogift!':'获得E.G.O饰品!', 'e.g.ogiftobservation':'饰品观测',
|
||||||
|
'e.g.ogiftget!':'获得E.G.O饰品!',
|
||||||
|
'e.g.ogiftsearch':'额外观测', 'eg.dgiftsearch':'额外观测',
|
||||||
|
'nextfloor':'下一层', 'gotonextfloor':'前往下一层', 'proceedtonextfloor':'前往下一层', 'claim':'领取',
|
||||||
|
'additionalhardship':'追加的苦难', 'additionalhardships':'追加的苦难',
|
||||||
|
'obtaine.g.ogift':'获得E.G.O饰品', 'obtaine.g.ogifts':'获得E.G.O饰品',
|
||||||
|
'claimrewards':'领取奖励', 'explorationcomplete':'探索完成',
|
||||||
|
'explorationcompleted':'探索完成', 'dungeoncomplete':'探索完成',
|
||||||
|
'drive':'驾驶席', 'sinners':'罪人', 'exploring:':'探索状态',
|
||||||
|
'beforeentry':'入场前', 'retry':'重试', 'dungeonprogress':'迷宫进度',
|
||||||
|
}
|
||||||
|
|
||||||
|
def normalize(state):
|
||||||
|
if state.get('_lc_labels_normalized'):
|
||||||
|
return state
|
||||||
|
rate_items = []
|
||||||
|
source_items = state.get('items') or []
|
||||||
|
for item in source_items:
|
||||||
|
raw = item['text']
|
||||||
|
compact = re.sub(r'\s+', '', raw).lower().lstrip('×x')
|
||||||
|
compact = compact.replace('e.g.0', 'e.g.o')
|
||||||
|
text = LABELS.get(compact, raw)
|
||||||
|
if compact == 'enhance' and any(re.sub(r'\s+', '', other['text']).lower() == 'gifts'
|
||||||
|
and abs(other['x'] - item['x']) < 80 and 0 < other['y'] - item['y'] < 70
|
||||||
|
for other in source_items):
|
||||||
|
text = '强化饰品'
|
||||||
|
if text == raw:
|
||||||
|
if compact.startswith('aservererrorhasoccurred'):
|
||||||
|
text = '服务器发生错误'
|
||||||
|
elif re.fullmatch(r'retry(?:\d+|[>→»]+)?', compact):
|
||||||
|
text = '重试'
|
||||||
|
elif re.match(r'gain[0-9~〜+\-]+cost', compact):
|
||||||
|
text = '经费 ' + raw
|
||||||
|
elif re.match(r'e\.?g\.?o\.?resource', compact):
|
||||||
|
text = '资源 ' + raw
|
||||||
|
match = re.search(r'select(?:the)?(?:floor)?(\d+)(?:st|nd|rd|th)?floorthemepack', compact)
|
||||||
|
if not match:
|
||||||
|
match = re.search(r'selectfloorthemepack(?:for)?floor(\d+)', compact)
|
||||||
|
if not match:
|
||||||
|
match = re.search(r'selectfloor(\d+)themepack', compact)
|
||||||
|
if match:
|
||||||
|
text = '选择%s层主题卡包' % match[1]
|
||||||
|
elif re.search(r'(?:select|choose).*encounterreward', compact):
|
||||||
|
text = '选择遭遇战奖励卡'
|
||||||
|
elif re.search(r'exploring(?:floor)?\d+', compact):
|
||||||
|
text = '正在探索第%s层' % re.search(r'\d+', compact)[0]
|
||||||
|
elif compact.startswith('exploringfloor'):
|
||||||
|
# A missing/misread floor number still identifies the map.
|
||||||
|
# Leave the stored floor unchanged rather than invent a digit.
|
||||||
|
text = '正在探索 ' + raw
|
||||||
|
elif compact.startswith('select') and re.search(r'\d+/\d+', compact):
|
||||||
|
text = '选择' + re.search(r'\d+/\d+', compact)[0]
|
||||||
|
elif compact.startswith('refresh'):
|
||||||
|
text = raw.replace(raw[:7], '刷新')
|
||||||
|
elif compact.startswith('chooseacharactertoperform'):
|
||||||
|
text = '选择一位罪人'
|
||||||
|
elif re.match(r'who(?:will|should)', compact):
|
||||||
|
text = '应该让谁 ' + raw
|
||||||
|
elif (compact.startswith('skillreplacement') or compact.startswith('replaceskill')
|
||||||
|
or re.match(r'(?:replace|change).*skil', compact)):
|
||||||
|
text = '技能替换 ' + raw
|
||||||
|
elif 'spend' in compact and 'replac' in compact and 'skil' in compact:
|
||||||
|
text = '是否消耗 技能替换 ' + raw
|
||||||
|
# English OCR sometimes merges several adjacent probability labels.
|
||||||
|
# Keep each explicit Very High span as a separate observed candidate.
|
||||||
|
if item.get('y', 0) > state.get('screen', {}).get('h', 1080) * .8 and 'veryhigh' in compact:
|
||||||
|
for match in re.finditer('veryhigh', compact):
|
||||||
|
center = item['x'] + (match.start() + len(match[0]) / 2) * item['w'] / len(compact)
|
||||||
|
rate_items.append(dict(item, text='极高', original_text=raw,
|
||||||
|
x=round(center - 25), w=50))
|
||||||
|
for english, chinese in [('Sinclair','辛克莱'), ('Hong Lu','鸿璐'),
|
||||||
|
('Heathcliff','希斯克利夫'), ('Outis','奥提斯'), ('Gregor','格里高尔'),
|
||||||
|
('Ryoshu','良秀'), ('Faust','浮士德')]:
|
||||||
|
text = text.replace(english, chinese)
|
||||||
|
if text != raw:
|
||||||
|
item['original_text'] = raw
|
||||||
|
item['text'] = text
|
||||||
|
state['items'] = (state.get('items') or []) + rate_items
|
||||||
|
state['_lc_labels_normalized'] = True
|
||||||
|
return state
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user