Closed hanstation2 closed 1 month ago
同样出现了 SP 识别不到的问题,其他如 EX、T、HT 均正常识别了。Log 信息如下:
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
EVENTSP
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2024-07-26 21:18:29.146 | INFO | Reuse forward: ForwardItem(serial='127.0.0.1:5555', local='tcp:20401',
remote='tcp:53516')
2024-07-26 21:18:29.152 | INFO | [Device Orientation] 0 (Normal)
2024-07-26 21:18:29.154 | INFO | Reuse forward: ForwardItem(serial='127.0.0.1:5555', local='tcp:20776',
remote='localabstract:minitouch')
2024-07-26 21:18:29.158 | INFO | v 1
2024-07-26 21:18:29.159 | INFO | ^ 2 32767 32767 0
2024-07-26 21:18:29.159 | INFO | $ 5013
2024-07-26 21:18:29.161 | INFO | minitouch running on port: 20776, pid: 5013
2024-07-26 21:18:29.161 | INFO | max_contact: 2; max_x: 32767; max_y: 32767; max_pressure: 0
2024-07-26 21:18:29.202 | INFO | [Screen_size] 1280x720
2024-07-26 21:18:29.483 | INFO | early_ocr_import call
2024-07-26 21:18:29.484 | INFO | early_ocr_import start
2024-07-26 21:18:29.488 | INFO | Loading OCR dependencies
═════════════════════════════════════════════════════════ SP ══════════════════════════════════════════════════════════
2024-07-26 21:18:29.501 | INFO | SP
2024-07-26 21:18:29.501 | INFO | Count: 0
2024-07-26 21:18:29.540 | INFO | UI get current page
2024-07-26 21:18:29.680 | INFO | [UI] page_event
2024-07-26 21:18:29.681 | INFO | Already at page_event
2024-07-26 21:18:29.702 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:29.706 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:30.101 | INFO | early_ocr_import finish
2024-07-26 21:18:30.113 | INFO | Loading OCR model: ./bin/cnocr_models/azur_lane
2024-07-26 21:18:30.162 | INFO | [campaign 0.416s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:30.164 | INFO | [Chapter] t
2024-07-26 21:18:30.164 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:30.165 | INFO | [Index] 1
2024-07-26 21:18:30.167 | WARNING | Stage not found: sp
2024-07-26 21:18:30.225 | INFO | UI get current page
2024-07-26 21:18:30.231 | INFO | [UI] page_event
2024-07-26 21:18:30.232 | INFO | Already at page_event
2024-07-26 21:18:30.233 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:30.234 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:30.301 | INFO | [campaign 0.025s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:30.302 | INFO | [Chapter] t
2024-07-26 21:18:30.303 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:30.305 | INFO | [Index] 1
2024-07-26 21:18:30.306 | WARNING | Stage not found: sp
2024-07-26 21:18:30.370 | INFO | UI get current page
2024-07-26 21:18:30.378 | INFO | [UI] page_event
2024-07-26 21:18:30.381 | INFO | Already at page_event
2024-07-26 21:18:30.382 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:30.384 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:30.450 | INFO | [campaign 0.025s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:30.451 | INFO | [Chapter] t
2024-07-26 21:18:30.452 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:30.453 | INFO | [Index] 1
2024-07-26 21:18:30.454 | WARNING | Stage not found: sp
2024-07-26 21:18:30.514 | INFO | UI get current page
2024-07-26 21:18:30.522 | INFO | [UI] page_event
2024-07-26 21:18:30.523 | INFO | Already at page_event
2024-07-26 21:18:30.525 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:30.526 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:30.587 | INFO | [campaign 0.023s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:30.588 | INFO | [Chapter] t
2024-07-26 21:18:30.589 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:30.590 | INFO | [Index] 1
2024-07-26 21:18:30.591 | WARNING | Stage not found: sp
2024-07-26 21:18:30.648 | INFO | UI get current page
2024-07-26 21:18:30.654 | INFO | [UI] page_event
2024-07-26 21:18:30.657 | INFO | Already at page_event
2024-07-26 21:18:30.660 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:30.661 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:30.730 | INFO | [campaign 0.024s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:30.731 | INFO | [Chapter] t
2024-07-26 21:18:30.732 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:30.733 | INFO | [Index] 1
2024-07-26 21:18:30.734 | WARNING | Stage not found: sp
2024-07-26 21:18:30.811 | INFO | UI get current page
2024-07-26 21:18:30.817 | INFO | [UI] page_event
2024-07-26 21:18:30.818 | INFO | Already at page_event
2024-07-26 21:18:30.821 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:30.822 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:30.881 | INFO | [campaign 0.022s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:30.882 | INFO | [Chapter] t
2024-07-26 21:18:30.882 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:30.882 | INFO | [Index] 1
2024-07-26 21:18:30.884 | WARNING | Stage not found: sp
2024-07-26 21:18:30.958 | INFO | UI get current page
2024-07-26 21:18:30.964 | INFO | [UI] page_event
2024-07-26 21:18:30.964 | INFO | Already at page_event
2024-07-26 21:18:30.965 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:30.967 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.021 | INFO | [campaign 0.023s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.023 | INFO | [Chapter] t
2024-07-26 21:18:31.024 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.025 | INFO | [Index] 1
2024-07-26 21:18:31.026 | WARNING | Stage not found: sp
2024-07-26 21:18:31.081 | INFO | UI get current page
2024-07-26 21:18:31.086 | INFO | [UI] page_event
2024-07-26 21:18:31.087 | INFO | Already at page_event
2024-07-26 21:18:31.089 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.090 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.154 | INFO | [campaign 0.024s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.155 | INFO | [Chapter] t
2024-07-26 21:18:31.156 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.157 | INFO | [Index] 1
2024-07-26 21:18:31.158 | WARNING | Stage not found: sp
2024-07-26 21:18:31.221 | INFO | UI get current page
2024-07-26 21:18:31.228 | INFO | [UI] page_event
2024-07-26 21:18:31.228 | INFO | Already at page_event
2024-07-26 21:18:31.231 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.231 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.288 | INFO | [campaign 0.021s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.290 | INFO | [Chapter] t
2024-07-26 21:18:31.291 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.292 | INFO | [Index] 1
2024-07-26 21:18:31.293 | WARNING | Stage not found: sp
2024-07-26 21:18:31.351 | INFO | UI get current page
2024-07-26 21:18:31.358 | INFO | [UI] page_event
2024-07-26 21:18:31.360 | INFO | Already at page_event
2024-07-26 21:18:31.361 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.362 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.419 | INFO | [campaign 0.021s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.420 | INFO | [Chapter] t
2024-07-26 21:18:31.422 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.423 | INFO | [Index] 1
2024-07-26 21:18:31.424 | WARNING | Stage not found: sp
2024-07-26 21:18:31.483 | INFO | UI get current page
2024-07-26 21:18:31.490 | INFO | [UI] page_event
2024-07-26 21:18:31.491 | INFO | Already at page_event
2024-07-26 21:18:31.492 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.493 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.554 | INFO | [campaign 0.023s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.556 | INFO | [Chapter] t
2024-07-26 21:18:31.558 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.559 | INFO | [Index] 1
2024-07-26 21:18:31.560 | WARNING | Stage not found: sp
2024-07-26 21:18:31.617 | INFO | UI get current page
2024-07-26 21:18:31.624 | INFO | [UI] page_event
2024-07-26 21:18:31.626 | INFO | Already at page_event
2024-07-26 21:18:31.627 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.628 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.685 | INFO | [campaign 0.021s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.686 | INFO | [Chapter] t
2024-07-26 21:18:31.687 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.688 | INFO | [Index] 1
2024-07-26 21:18:31.688 | WARNING | Stage not found: sp
2024-07-26 21:18:31.750 | INFO | UI get current page
2024-07-26 21:18:31.757 | INFO | [UI] page_event
2024-07-26 21:18:31.758 | INFO | Already at page_event
2024-07-26 21:18:31.759 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.761 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.822 | INFO | [campaign 0.025s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.824 | INFO | [Chapter] t
2024-07-26 21:18:31.825 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.826 | INFO | [Index] 1
2024-07-26 21:18:31.827 | WARNING | Stage not found: sp
2024-07-26 21:18:31.892 | INFO | UI get current page
2024-07-26 21:18:31.898 | INFO | [UI] page_event
2024-07-26 21:18:31.899 | INFO | Already at page_event
2024-07-26 21:18:31.900 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:31.900 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:31.962 | INFO | [campaign 0.027s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:31.963 | INFO | [Chapter] t
2024-07-26 21:18:31.965 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:31.966 | INFO | [Index] 1
2024-07-26 21:18:31.967 | WARNING | Stage not found: sp
2024-07-26 21:18:32.024 | INFO | UI get current page
2024-07-26 21:18:32.030 | INFO | [UI] page_event
2024-07-26 21:18:32.031 | INFO | Already at page_event
2024-07-26 21:18:32.032 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:32.033 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:32.088 | INFO | [campaign 0.020s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:32.089 | INFO | [Chapter] t
2024-07-26 21:18:32.090 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:32.091 | INFO | [Index] 1
2024-07-26 21:18:32.092 | WARNING | Stage not found: sp
2024-07-26 21:18:32.150 | INFO | UI get current page
2024-07-26 21:18:32.157 | INFO | [UI] page_event
2024-07-26 21:18:32.158 | INFO | Already at page_event
2024-07-26 21:18:32.158 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:32.160 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:32.215 | INFO | [campaign 0.021s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:32.217 | INFO | [Chapter] t
2024-07-26 21:18:32.218 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:32.218 | INFO | [Index] 1
2024-07-26 21:18:32.219 | WARNING | Stage not found: sp
2024-07-26 21:18:32.276 | INFO | UI get current page
2024-07-26 21:18:32.283 | INFO | [UI] page_event
2024-07-26 21:18:32.284 | INFO | Already at page_event
2024-07-26 21:18:32.285 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:32.286 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:32.344 | INFO | [campaign 0.023s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:32.346 | INFO | [Chapter] t
2024-07-26 21:18:32.347 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:32.347 | INFO | [Index] 1
2024-07-26 21:18:32.348 | WARNING | Stage not found: sp
2024-07-26 21:18:32.402 | INFO | UI get current page
2024-07-26 21:18:32.410 | INFO | [UI] page_event
2024-07-26 21:18:32.411 | INFO | Already at page_event
2024-07-26 21:18:32.412 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:32.413 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:32.473 | INFO | [campaign 0.022s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:32.474 | INFO | [Chapter] t
2024-07-26 21:18:32.475 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:32.476 | INFO | [Index] 1
2024-07-26 21:18:32.477 | WARNING | Stage not found: sp
2024-07-26 21:18:32.539 | INFO | UI get current page
2024-07-26 21:18:32.545 | INFO | [UI] page_event
2024-07-26 21:18:32.546 | INFO | Already at page_event
2024-07-26 21:18:32.547 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:32.548 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:32.604 | INFO | [campaign 0.021s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:32.605 | INFO | [Chapter] t
2024-07-26 21:18:32.606 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:32.607 | INFO | [Index] 1
2024-07-26 21:18:32.608 | WARNING | Stage not found: sp
2024-07-26 21:18:32.659 | INFO | UI get current page
2024-07-26 21:18:32.664 | INFO | [UI] page_event
2024-07-26 21:18:32.664 | INFO | Already at page_event
2024-07-26 21:18:32.665 | INFO | [Mode_switch_20240725] combat
2024-07-26 21:18:32.666 | INFO | <<< UI ENSURE INDEX >>>
2024-07-26 21:18:32.726 | INFO | [campaign 0.023s] ['T1', 'EX', 'HT2', 'T3']
2024-07-26 21:18:32.727 | INFO | [Chapter] t
2024-07-26 21:18:32.728 | INFO | [Stage] t1, ex, ht2, t3
2024-07-26 21:18:32.728 | INFO | [Index] 1
2024-07-26 21:18:32.729 | WARNING | Stage not found: sp
2024-07-26 21:18:32.781 | WARNING | Campaign name error
2024-07-26 21:18:32.782 | ERROR | ScriptEnd: Campaign name error
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ │
│ D:\Game\AzurLaneAutoScript\alas.py:69 in run │
│ │
│ 66 │ │ try: │
│ 67 │ │ │ if not skip_first_screenshot: │
│ 68 │ │ │ │ self.device.screenshot() │
│ > 69 │ │ │ self.__getattribute__(command)() │
│ 70 │ │ │ return True │
│ 71 │ │ except TaskEnd: │
│ 72 │ │ │ return True │
│ │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ command = 'event_sp' │ │
│ │ e = ScriptEnd('Campaign name error') │ │
│ │ self = │ │
│ │ skip_first_screenshot = False │ │
│ └────────────────────────────────────────────────────────────────────────────────┘ │
│ D:\Game\AzurLaneAutoScript\alas.py:279 in event_sp │
│ │
│ 276 │ │
│ 277 │ def event_sp(self): │
│ 278 │ │ from module.event.campaign_sp import CampaignSP │
│ > 279 │ │ CampaignSP(config=self.config, device=self.device).run() │
│ 280 │ │
│ 281 │ def maritime_escort(self): │
│ 282 │ │ from module.event.maritime_escort import MaritimeEscort │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ CampaignSP = │ │
│ │ self = │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Game\AzurLaneAutoScript\module\event\campaign_sp.py:17 in run │
│ │
│ 14 │ │ │ self.config.task_stop() │
│ 15 │ │ │
│ 16 │ │ try: │
│ > 17 │ │ │ super().run(name=self.config.Campaign_Name, │
│ folder=self.config.Campaign_Event, total=1) │
│ 18 │ │ except TaskEnd: │
│ 19 │ │ │ # Catch task switch │
│ 20 │ │ │ pass │
│ │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ __class__ = │ │
│ │ args = () │ │
│ │ kwargs = {} │ │
│ │ self = │ │
│ └────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Game\AzurLaneAutoScript\module\campaign\run.py:368 in run │
│ │
│ 365 │ │ │ │ │ self.campaign.ensure_auto_search_exit() │
│ 366 │ │ │ │ │ self.campaign.ensure_campaign_ui(name=self.stage, mode=mode) │
│ 367 │ │ │ else: │
│ > 368 │ │ │ │ self.campaign.ensure_campaign_ui(name=self.stage, mode=mode) │
│ 369 │ │ │ self.handle_commission_notice() │
│ 370 │ │ │ │
│ 371 │ │ │ # if in hard mode, check remain times │
│ │
│ ┌────────────────────────────────── locals ───────────────────────────────────┐ │
│ │ folder = 'event_20240725_cn' │ │
│ │ mode = 'normal' │ │
│ │ name = 'sp' │ │
│ │ self = │ │
│ │ total = 1 │ │
│ └─────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Game\AzurLaneAutoScript\module\campaign\campaign_ui.py:217 in ensure_campaign_ui │
│ │
│ 214 │ │ │ self.device.screenshot() │
│ 215 │ │ │
│ 216 │ │ logger.warning('Campaign name error') │
│ > 217 │ │ raise ScriptEnd('Campaign name error') │
│ 218 │ │
│ 219 │ def commission_notice_show_at_campaign(self): │
│ 220 │ │ """ │
│ │
│ ┌─────────────────────────────────── locals ───────────────────────────────────┐ │
│ │ mode = 'normal' │ │
│ │ n = 19 │ │
│ │ name = 'sp' │ │
│ │ self = │ │
│ └──────────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ScriptEnd: Campaign name error
2024-07-26 21:18:32.925 | WARNING | Saving error: ./log/error/1721999912925
我也是无法识别SP活动图,但是请问HT图您是如何让alas正常识别的
+1
我也是无法识别SP活动图,但是请问HT图您是如何让alas正常识别的
先手动切到HT图再开
遇到同样问题,正在研究时,刚好看到1点56的更新,目前此问题应该已经恢复,感谢各位Contributor
我也是无法识别SP活动图,但是请问HT图您是如何让alas正常识别的
先手动切到HT图再开
哦哦多谢指导,我昨晚尝试了把每次活动D图的D1>D2>D3改成HT1>HT2>HT3也可以
感谢各位大佬,此BUG已解决ヾ(≧▽≦*)o
在提问之前...
描述你的问题
新活动“幻梦间奏曲”的活动每日sp无法识别,只能识别到 ['EX', 'HT1', 'HT2', 'T3'] 这4个关卡,不是HT3是因为在T3刷低耗 (╹ڡ╹ )
如何复现
None
预期行为
正确识别SP关卡
相关 Logs
截图
None
还有别的吗?
感谢大佬们的付出,经常能看到活动配置凌晨更新,非常感谢 ╰(°▽°)╯