活动图推图发生bug
在提问之前...
- [X] 我已经搜索了现有的 issues
- [X] 我在提问题之前至少花费了 5 分钟来思考和准备
- [X] 我已经阅读了 Wiki 中的 常见问题(FAQ)
- [X] 我正在使用最新版的 Alas
描述你的问题
如下设置进行推图时多次触发bug
如何复现
- 前往 '...'
- 点击 '....'
- 滑动到 '....'
- 出现问题
预期行为
正常推图
相关 Logs
2023-08-04 01:45:56.031 | INFO | Using function: clear_all
2023-08-04 01:45:56.032 | INFO | No fleet caught by siren.
2023-08-04 01:45:56.032 | INFO | Enemy remain: [H4, B6, G3, B7, D7, A3]
2023-08-04 01:45:56.033 | INFO | <<< CLEAR ENEMY >>>
2023-08-04 01:45:56.034 | INFO | sort=('cost_2',)
2023-08-04 01:45:56.034 | INFO | Grids: [G3, A3, D7, H4, B6, B7]
2023-08-04 01:45:56.035 | INFO | targetEnemyScale:default_mode
2023-08-04 01:45:56.036 | INFO | Clear enemy: G3
2023-08-04 01:45:56.037 | INFO | [Fleet_1: C3] Fleet_2: D3
2023-08-04 01:45:56.050 | INFO | Bind task {'General', 'Alas', 'TaskBalancer', 'EventGeneral', 'Event2'}
2023-08-04 01:45:56.051 | INFO | Save config ./config\alas.json, Event2.Emotion.Fleet1Value=119,
Event2.Emotion.Fleet1Record=datetime.datetime(2023, 8, 4, 1, 45, 56), Event2.Emotion.Fleet2Value=87,
Event2.Emotion.Fleet2Record=datetime.datetime(2023, 8, 4, 1, 45, 56)
2023-08-04 01:45:56.058 | INFO | [Emotion fleet_1] 119
2023-08-04 01:45:56.060 | INFO | [Emotion fleet_2] 87
2023-08-04 01:45:56.061 | INFO | Full path: [C3, D3, E3, F3, G3]
2023-08-04 01:45:56.062 | INFO | Path: [E3, G3]
2023-08-04 01:45:56.064 | INFO | Fleet set to 1
2023-08-04 01:45:56.071 | INFO | Fleet: 2, fleet_current_index: 1
2023-08-04 01:45:56.072 | INFO | In sight: E3
2023-08-04 01:45:56.073 | INFO | Focus to: D3
2023-08-04 01:45:56.074 | INFO | Map swipe: (0, -3)
2023-08-04 01:45:56.078 | INFO | Swipe ( 490, 237) -> ( 491, 545)
2023-08-04 01:45:56.859 | INFO | tile_center: 0.920 (good match)
2023-08-04 01:45:56.871 | INFO | 0.051s _ edge_lines: 1 hori, 1 vert
2023-08-04 01:45:56.872 | INFO | Edges: / homo_loca: ( 28, 66)
2023-08-04 01:45:56.876 | INFO | center_loca: (3, 2)
2023-08-04 01:45:56.893 | INFO | Map swipe predict: None (0.017s, no match)
2023-08-04 01:45:56.895 | INFO | Camera: D3
2023-08-04 01:45:56.895 | INFO | Camera: D3
2023-08-04 01:45:56.951 | INFO | 0.055s predict: 39
2023-08-04 01:45:56.952 | INFO | -- -- -- -- -- -- -- --
2023-08-04 01:45:56.954 | INFO | -- -- -- -- -- -- -- --
2023-08-04 01:45:56.955 | INFO | 2E -- FL Fl -- -- SI --
2023-08-04 01:45:56.956 | INFO | -- -- -- -- ss -- -- SI
2023-08-04 01:45:56.957 | INFO | -- -- -- -- -- -- -- ..
2023-08-04 01:45:56.958 | INFO | Map swipe: (0, 0)
2023-08-04 01:45:56.959 | INFO | Global E3 (camera=D3) -> Local E3 (center=D3)
2023-08-04 01:45:56.960 | INFO | Click ( 764, 371) @ E3
2023-08-04 01:45:57.713 | INFO | Arrive E3 (is_fleet)
2023-08-04 01:46:00.414 | INFO | Arrive E3 confirm. Result: nothing. Expected:
2023-08-04 01:46:00.415 | INFO | Round: 4, enemy_round: {0: 4, 1: 3}
2023-08-04 01:46:00.471 | INFO | 0.055s predict: 39
2023-08-04 01:46:00.473 | INFO | -- -- -- -- -- -- -- --
2023-08-04 01:46:00.474 | INFO | -- -- -- -- -- -- -- --
2023-08-04 01:46:00.475 | INFO | -- 2E -- Fl FL -- -- --
2023-08-04 01:46:00.476 | INFO | -- -- -- -- ss SI -- --
2023-08-04 01:46:00.477 | INFO | -- 2E -- -- -- -- -- ..
2023-08-04 01:46:00.478 | INFO | Full scan start, mode=movable
2023-08-04 01:46:00.479 | INFO | [enemy_missing] EN: 4, MY: 0, SI: 2, BO: 0, CA: 0
2023-08-04 01:46:00.479 | INFO | [enemy_may____] EN: 2, MY: 0, SI: 2, BO: 1, CA: 2
2023-08-04 01:46:00.480 | INFO | Focus to: D2
2023-08-04 01:46:00.481 | INFO | Map swipe: (0, -1)
2023-08-04 01:46:00.484 | INFO | Swipe ( 642, 182) -> ( 641, 282)
2023-08-04 01:46:01.124 | INFO | tile_center: 0.942 (good match)
2023-08-04 01:46:01.137 | INFO | 0.054s _ edge_lines: 1 hori, 1 vert
2023-08-04 01:46:01.139 | INFO | Edges: / homo_loca: ( 28, 91)
2023-08-04 01:46:01.143 | INFO | center_loca: (3, 2)
2023-08-04 01:46:01.159 | INFO | Map swipe predict: None (0.015s, no match)
2023-08-04 01:46:01.160 | INFO | Camera: D2
2023-08-04 01:46:01.161 | INFO | camera_corrected: D2 -> D3
2023-08-04 01:46:01.162 | INFO | Camera: D3
2023-08-04 01:46:01.217 | INFO | 0.054s predict: 39
2023-08-04 01:46:01.218 | INFO | -- -- -- -- -- -- -- --
2023-08-04 01:46:01.219 | INFO | -- -- -- -- -- -- -- --
2023-08-04 01:46:01.220 | INFO | -- 2E -- Fl FL -- -- --
2023-08-04 01:46:01.221 | INFO | -- -- -- -- ss SI -- --
2023-08-04 01:46:01.222 | INFO | -- 2E -- -- -- -- -- ..
2023-08-04 01:46:01.223 | INFO | Map swipe: (0, -1)
2023-08-04 01:46:01.226 | INFO | Swipe ( 630, 193) -> ( 629, 275)
2023-08-04 01:46:01.822 | WARNING | Image to detect is not in_map
2023-08-04 01:46:02.141 | WARNING | Image to detect is not in_map
2023-08-04 01:46:02.431 | WARNING | Image to detect is not in_map
2023-08-04 01:46:02.727 | WARNING | Image to detect is not in_map
2023-08-04 01:46:03.018 | WARNING | Image to detect is not in_map
2023-08-04 01:46:03.327 | WARNING | Image to detect is not in_map
2023-08-04 01:46:03.622 | WARNING | Image to detect is not in_map
2023-08-04 01:46:03.923 | WARNING | Image to detect is not in_map
2023-08-04 01:46:04.232 | WARNING | Image to detect is not in_map
2023-08-04 01:46:04.527 | WARNING | Image to detect is not in_map
2023-08-04 01:46:04.841 | WARNING | Image to detect is not in_map
2023-08-04 01:46:05.129 | WARNING | Image to detect is not in_map
2023-08-04 01:46:05.433 | WARNING | Image to detect is not in_map
2023-08-04 01:46:05.733 | WARNING | Image to detect is not in_map
2023-08-04 01:46:06.029 | WARNING | Image to detect is not in_map
2023-08-04 01:46:06.347 | WARNING | Image to detect is not in_map
2023-08-04 01:46:06.641 | WARNING | Image to detect is not in_map
2023-08-04 01:46:06.952 | WARNING | Image to detect is not in_map
2023-08-04 01:46:06.962 | ERROR | MapDetectionError: Image to detect is not in_map
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\alas.py:68 in run │
│ │
│ 65 │ def run(self, command): │
│ 66 │ │ try: │
│ 67 │ │ │ self.device.screenshot() │
│ > 68 │ │ │ self.__getattribute__(command)() │
│ 69 │ │ │ return True │
│ 70 │ │ except TaskEnd: │
│ 71 │ │ │ return True │
│ │
│ ┌───────────────────────────── locals ─────────────────────────────┐ │
│ │ command = 'event2' │ │
│ │ e = MapDetectionError('Image to detect is not in_map') │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x000002B1F0228E08> │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\alas.py:359 in event2 │
│ │
│ 356 │ def event2(self): │
│ 357 │ │ from module.campaign.run import CampaignRun │
│ 358 │ │ CampaignRun(config=self.config, device=self.device).run( │
│ > 359 │ │ │ name=self.config.Campaign_Name, folder=self.config.Campaign_Event, │
│ mode=self.config.Campaign_Mode) │
│ 360 │ │
│ 361 │ def raid(self): │
│ 362 │ │ from module.raid.run import RaidRun │
│ │
│ ┌─────────────────────────────── locals ───────────────────────────────┐ │
│ │ CampaignRun = <class 'module.campaign.run.CampaignRun'> │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x000002B1F0228E08> │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\campaign\run.py:366 in run │
│ │
│ 363 │ │ │ │
│ 364 │ │ │ # Run │
│ 365 │ │ │ try: │
│ > 366 │ │ │ │ self.campaign.run() │
│ 367 │ │ │ except ScriptEnd as e: │
│ 368 │ │ │ │ logger.hr('Script end') │
│ 369 │ │ │ │ logger.info(str(e)) │
│ │
│ ┌──────────────────────────────── locals ─────────────────────────────────┐ │
│ │ folder = 'event_20230803_cn' │ │
│ │ mode = 'normal' │ │
│ │ name = 'sp3' │ │
│ │ self = <module.campaign.run.CampaignRun object at 0x000002B1F162BB08> │ │
│ │ total = 0 │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\campaign\campaign_base.py:141 in run │
│ │
│ 138 │ │ for _ in range(20): │
│ 139 │ │ │ try: │
│ 140 │ │ │ │ if not self.map_is_auto_search: │
│ > 141 │ │ │ │ │ self.execute_a_battle() │
│ 142 │ │ │ │ else: │
│ 143 │ │ │ │ │ self.auto_search_execute_a_battle() │
│ 144 │ │ │ except CampaignEnd: │
│ │
│ ┌─────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ _ = 1 │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └───────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\campaign\campaign_base.py:100 in execute_a_battle │
│ │
│ 97 │ │ result = False │
│ 98 │ │ for _ in range(10): │
│ 99 │ │ │ try: │
│ > 100 │ │ │ │ result = self.battle_function() │
│ 101 │ │ │ │ break │
│ 102 │ │ │ except MapEnemyMoved: │
│ 103 │ │ │ │ if self.battle_count > prev: │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ _ = 1 │ │
│ │ prev = 1 │ │
│ │ result = False │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\base\decorator.py:70 in wrapper │
│ │
│ 67 │ │ │ │ │ if not all(flag): │
│ 68 │ │ │ │ │ │ continue │
│ 69 │ │ │ │ │ │
│ > 70 │ │ │ │ │ return record['func'](self, *args, **kwargs) │
│ 71 │ │ │ │ │
│ 72 │ │ │ │ logger.warning(f'No option fits for {name}, using the last define │
│ func.') │
│ 73 │ │ │ │ return func(self, *args, **kwargs) │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ args = () │ │
│ │ cls = <class 'module.base.decorator.Config'> │ │
│ │ flag = [True] │ │
│ │ func = <function CampaignBase.battle_function at 0x000002B2132C20D8> │ │
│ │ kwargs = {} │ │
│ │ logger = <Logger alas (INFO)> │ │
│ │ name = 'battle_function' │ │
│ │ record = { │ │
│ │ │ 'options': {'MAP_CLEAR_ALL_THIS_TIME': True}, │ │
│ │ │ 'func': <function CampaignBase.battle_function at 0x000002B2132C2168> │ │
│ │ } │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\campaign\campaign_base.py:65 in battle_function │
│ │
│ 62 │ │ logger.info(f'Enemy remain: {remain}') │
│ 63 │ │ if remain.count > 0: │
│ 64 │ │ │ if self.config.MAP_HAS_MOVABLE_NORMAL_ENEMY: │
│ > 65 │ │ │ │ if self.clear_any_enemy(sort=('cost_2',)): │
│ 66 │ │ │ │ │ return True │
│ 67 │ │ │ │ return self.battle_default() │
│ 68 │ │ │ else: │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ remain = <module.map.map_grids.SelectedGrids object at 0x000002B213446888> │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\map.py:494 in clear_any_enemy │
│ │
│ 491 │ │ │ │ expected = 'siren' │
│ 492 │ │ │ else: │
│ 493 │ │ │ │ expected = '' │
│ > 494 │ │ │ self.clear_chosen_enemy(grid, expected=expected) │
│ 495 │ │ │ return True │
│ 496 │ │ │
│ 497 │ │ return False │
│ │
│ ┌───────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ expected = 'siren' │ │
│ │ grid = G3 │ │
│ │ grids = <module.map.map_grids.SelectedGrids object at 0x000002B21396C4C8> │ │
│ │ kwargs = {'sort': ('cost_2',)} │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └───────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\map.py:27 in clear_chosen_enemy │
│ │
│ 24 │ │ self.show_fleet() │
│ 25 │ │ if self.emotion.is_calculate and self.config.Campaign_UseFleetLock: │
│ 26 │ │ │ self.emotion.wait(fleet_index=self.fleet_current_index) │
│ > 27 │ │ self.goto(grid, expected=expected) │
│ 28 │ │ │
│ 29 │ │ self.full_scan() │
│ 30 │ │ self.find_path_initial() │
│ │
│ ┌───────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ expected = 'combat_siren' │ │
│ │ grid = G3 │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └───────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\fleet.py:494 in goto │
│ │
│ 491 │ │ │ │ │ │ grids = grids.sort('cost') │
│ 492 │ │ │ │ │ │ self._goto(grids[0], expected='') │
│ 493 │ │ │ │ try: │
│ > 494 │ │ │ │ │ self._goto(node, expected=expected if node == nodes[-1] else '') │
│ 495 │ │ │ │ except MapWalkError: │
│ 496 │ │ │ │ │ logger.warning('Map walk error.') │
│ 497 │ │ │ │ │ self.predict() │
│ │
│ ┌───────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ expected = 'combat_siren' │ │
│ │ location = (6, 2) │ │
│ │ node = (4, 2) │ │
│ │ nodes = [(4, 2), (6, 2)] │ │
│ │ optimize = True │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └───────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\fleet.py:456 in _goto │
│ │
│ 453 │ │ if self.round_is_new: │
│ 454 │ │ │ if result != 'combat': │
│ 455 │ │ │ │ self.predict() │
│ > 456 │ │ │ self.full_scan_movable(enemy_cleared=result == 'combat') │
│ 457 │ │ │ self.find_path_initial() │
│ 458 │ │ │ raise MapEnemyMoved │
│ 459 │ │ if self.round_maze_changed: │
│ │
│ ┌───────────────────────────────────────────── locals ─────────────────────────────────────────────┐ │
│ │ ambushed_retry = Timer(limit=0.0/2.5, count=2/2) │ │
│ │ arrive_checker = True │ │
│ │ arrive_predict = '(MAP_WALK_USE_CURRENT_FLEET, is_current_fleet)' │ │
│ │ arrive_timer = Timer(limit=9.254/2.5, count=10/2) │ │
│ │ arrive_unexpected_timer = Timer(limit=9.254/3.5, count=0/6) │ │
│ │ arrived = True │ │
│ │ expected = '' │ │
│ │ extra = 0 │ │
│ │ grid = E3 │ │
│ │ is_portal = False │ │
│ │ location = (4, 2) │ │
│ │ may_submarine_icon = False │ │
│ │ mystery = False │ │
│ │ result = 'nothing' │ │
│ │ result_mystery = '' │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ │ walk_timeout = Timer(limit=9.958/20, count=4/0) │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\fleet.py:583 in full_scan_movable │
│ │
│ 580 │ │ │ │ │ grid.wipe_out() │
│ 581 │ │ │ │ for grid in self.movable_before_normal: │
│ 582 │ │ │ │ │ grid.wipe_out() │
│ > 583 │ │ │ │ self.full_scan(mode='movable') │
│ 584 │ │ │ │ self.track_movable(enemy_cleared=enemy_cleared, siren=True) │
│ 585 │ │ │ │ self.track_movable(enemy_cleared=enemy_cleared, siren=False) │
│ 586 │ │ │ else: │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ enemy_cleared = False │ │
│ │ grid = D7 │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\fleet.py:543 in full_scan │
│ │
│ 540 │ │ │ mode = 'decoy' │
│ 541 │ │ super().full_scan( │
│ 542 │ │ │ queue=queue, must_scan=must_scan, battle_count=self.battle_count, │
│ mystery_count=self.mystery_count, │
│ > 543 │ │ │ siren_count=self.siren_count, carrier_count=self.carrier_count, mode=mode) │
│ 544 │ │ │
│ 545 │ │ if self.config.FLEET_2 and not self.fleet_2_location: │
│ 546 │ │ │ fleets = self.map.select(is_fleet=True, is_current_fleet=False) │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ __class__ = <class 'module.map.fleet.Fleet'> │ │
│ │ mode = 'movable' │ │
│ │ must_scan = None │ │
│ │ queue = None │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:367 in full_scan │
│ │
│ 364 │ │ │ │ │ break │
│ 365 │ │ │ │
│ 366 │ │ │ queue = queue.sort_by_camera_distance(self.camera) │
│ > 367 │ │ │ self.focus_to(queue[0]) │
│ 368 │ │ │ self.focus_to_grid_center(0.25) │
│ 369 │ │ │ success = self.map.update(grids=self.view, camera=self.camera, mode=mode) │
│ 370 │ │ │ if not success: │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ battle_count = 1 │ │
│ │ carrier_count = 0 │ │
│ │ mode = 'movable' │ │
│ │ must_scan = None │ │
│ │ mystery_count = 0 │ │
│ │ queue = <module.map.map_grids.SelectedGrids object at 0x000002B2131EEB88> │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ │ siren_count = 1 │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:331 in focus_to │
│ │
│ 328 │ │ while 1: │
│ 329 │ │ │ vector = np.array(location) - self.camera │
│ 330 │ │ │ swipe = tuple(np.min([np.abs(vector), swipe_limit], axis=0) * │
│ np.sign(vector)) │
│ > 331 │ │ │ has_swiped = self.map_swipe(swipe) │
│ 332 │ │ │ │
│ 333 │ │ │ if not has_swiped: │
│ 334 │ │ │ │ break │
│ │
│ ┌─────────────────────────────────────── locals ───────────────────────────────────────┐ │
│ │ has_swiped = True │ │
│ │ location = (3, 1) │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ │ swipe = (0, -1) │ │
│ │ swipe_limit = (4, 3) │ │
│ │ vector = array([ 0, -1]) │ │
│ └──────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:83 in map_swipe │
│ │
│ 80 │ │ self._prev_swipe = vector │
│ 81 │ │ vector = np.array(vector) │
│ 82 │ │ vector = np.array([0.5, 0.5]) - self.view.center_offset + vector │
│ > 83 │ │ return self._map_swipe(vector) │
│ 84 │ │
│ 85 │ def focus_to_grid_center(self, tolerance=None): │
│ 86 │ │ """ │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ │ vector = array([ 0.00648493, -0.78144611]) │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:60 in _map_swipe │
│ │
│ 57 │ │ │ vector = -vector │
│ 58 │ │ │ self.device.swipe_vector(vector, name=name, box=box, │
│ whitelist_area=whitelist, blacklist_area=blacklist) │
│ 59 │ │ │ self.device.sleep(0.3) │
│ > 60 │ │ │ self.update() │
│ 61 │ │ │ return True │
│ 62 │ │ else: │
│ 63 │ │ │ # Drop swipe │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ blacklist = [ │ │
│ │ │ (303, 330, 454, 433), │ │
│ │ │ (569, 330, 713, 433), │ │
│ │ │ (270, 524, 437, 646), │ │
│ │ │ (836, 423, 995, 534), │ │
│ │ │ (289, 402, 447, 511), │ │
│ │ │ (566, 402, 714, 511), │ │
│ │ │ (254, 611, 428, 742), │ │
│ │ │ (843, 501, 1008, 621) │ │
│ │ ] │ │
│ │ box = (123, 159, 1175, 628) │ │
│ │ distance = array([148.60188308, 105.50374172]) │ │
│ │ name = 'MAP_SWIPE_0_-1' │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ │ vector = array([-0.96367324, 82.44548813]) │ │
│ │ whitelist = [ │ │
│ │ │ (604, 257, 675, 290), │ │
│ │ │ (742, 641, 833, 712), │ │
│ │ │ (448, 641, 539, 712), │ │
│ │ │ (728, 257, 797, 290), │ │
│ │ │ (223, 340, 285, 382), │ │
│ │ │ (854, 257, 918, 290), │ │
│ │ │ (1047, 641, 1123, 712) │ │
│ │ ] │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:250 in update │
│ │
│ 247 │ │ confirm_timer = Timer(5, count=10).start() │
│ 248 │ │ while 1: │
│ 249 │ │ │ try: │
│ > 250 │ │ │ │ success = self._update(camera=camera) │
│ 251 │ │ │ │ if success: │
│ 252 │ │ │ │ │ break │
│ 253 │ │ │ │ else: │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ allow_error = False │ │
│ │ camera = True │ │
│ │ confirm_timer = Timer(limit=5.241/5, count=18/10) │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:188 in _update │
│ │
│ 185 │ │ │ │ │ self.device.click(GAME_TIPS) │
│ 186 │ │ │ │ │ return False │
│ 187 │ │ │ │ else: │
│ > 188 │ │ │ │ │ raise e │
│ 189 │ │ │ elif 'Camera outside map' in str(e): │
│ 190 │ │ │ │ string = str(e) │
│ 191 │ │ │ │ logger.warning(string) │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ camera = True │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\PCUSER\Desktop\AzurLaneAutoScript\module\map\camera.py:123 in _update │
│ │
│ 120 │ │ │ if not self.is_in_map() \ │
│ 121 │ │ │ │ │ and not self.is_in_strategy_submarine_move(): │
│ 122 │ │ │ │ logger.warning('Image to detect is not in_map') │
│ > 123 │ │ │ │ raise MapDetectionError('Image to detect is not in_map') │
│ 124 │ │ │ self.view.load(self.device.image) │
│ 125 │ │ except MapDetectionError as e: │
│ 126 │ │ │ if self.info_bar_count(): │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ camera = True │ │
│ │ self = <campaign.event_20230803_cn.sp3.Campaign object at 0x000002B1EC96BDC8> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
MapDetectionError: Image to detect is not in_map
2023-08-04 01:46:07.637 | WARNING | Saving error: ./log/error/1691084767637
截图
还有别的吗?
No response
连续多次出现,没有人为干涉
好像是因为里面所有的船都会在你行动两次后自己行动一次,然后应用没有加检测是在地图界面还是作战准备界面,所以会出现应用想要在地图上移动舰船但是游戏已经在作站准备界面了,因此出现错误
同bug
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
EVENT
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
═════════════════════════════════════════════════════════ SP1 ═════════════════════════════════════════════════════════
2023-08-04 14:04:33.216 | INFO | SP1
2023-08-04 14:04:33.217 | INFO | Count: 0
2023-08-04 14:04:33.228 | INFO | UI get current page
2023-08-04 14:04:33.236 | INFO | [UI] page_os
2023-08-04 14:04:33.238 | INFO | <<< UI GOTO PAGE_CAMPAIGN_MENU >>>
2023-08-04 14:04:33.246 | INFO | Page switch: page_os -> page_main
2023-08-04 14:04:33.248 | INFO | Click (1241, 34) @ GOTO_MAIN
2023-08-04 14:04:33.798 | INFO | Page switch: page_main -> page_campaign_menu
2023-08-04 14:04:33.801 | INFO | Click (1084, 336) @ MAIN_GOTO_CAMPAIGN
2023-08-04 14:04:35.058 | INFO | Page arrive: page_campaign_menu
2023-08-04 14:04:35.070 | INFO | Event available
2023-08-04 14:04:35.072 | INFO | <<< UI GOTO PAGE_SP >>>
2023-08-04 14:04:35.076 | INFO | Page switch: page_campaign_menu -> page_sp
2023-08-04 14:04:35.078 | INFO | Click ( 646, 241) @ CAMPAIGN_MENU_GOTO_EVENT
2023-08-04 14:04:35.902 | INFO | Page arrive: page_sp
2023-08-04 14:04:35.904 | INFO | <<< UI ENSURE INDEX >>>
2023-08-04 14:04:35.943 | INFO | No stage found.
2023-08-04 14:04:36.259 | INFO | No stage found.
2023-08-04 14:04:36.551 | INFO | [campaign 0.019s] SP1
2023-08-04 14:04:36.552 | INFO | [Chapter] sp
2023-08-04 14:04:36.553 | INFO | [Stage] sp1
2023-08-04 14:04:36.555 | INFO | [Index] 1
2023-08-04 14:04:36.605 | INFO | [OCR_OIL 0.032s] 14820
───────────────────────────────────────────────────────── SP1 ─────────────────────────────────────────────────────────
2023-08-04 14:04:36.608 | INFO | SP1
2023-08-04 14:04:36.610 | INFO | Expect emotion reduce: (10, 0)
2023-08-04 14:04:36.630 | INFO | Bind task {'Alas', 'EventGeneral', 'TaskBalancer', 'Event', 'General'}
2023-08-04 14:04:36.632 | INFO | Save config ./config\alas-t1.json, Event.Emotion.Fleet1Value=119,
Event.Emotion.Fleet1Record=datetime.datetime(2023, 8, 4, 14, 4, 36), Event.Emotion.Fleet2Value=119,
Event.Emotion.Fleet2Record=datetime.datetime(2023, 8, 4, 14, 4, 36)
2023-08-04 14:04:36.642 | INFO | [Emotion fleet_1] 119
2023-08-04 14:04:36.644 | INFO | [Emotion fleet_2] 119
2023-08-04 14:04:36.646 | INFO | <<< ENTER MAP >>>
2023-08-04 14:04:36.697 | INFO | Click ( 271, 315) @ sp1
2023-08-04 14:04:37.237 | INFO | [Map_clear_percentage] 0.0
2023-08-04 14:04:37.511 | INFO | [Map_clear_percentage] 0.0
2023-08-04 14:04:37.851 | INFO | [Map_clear_percentage] 0.0
2023-08-04 14:04:37.854 | INFO | [MAP_CLEAR_ALL_THIS_TIME] True
2023-08-04 14:04:37.856 | INFO | [Map_info] 0%,
2023-08-04 14:04:37.857 | INFO | [StopCondition_MapAchievement] map_3_stars
2023-08-04 14:04:37.859 | INFO | [Walk_Speedup] on
2023-08-04 14:04:37.877 | INFO | No auto search option.
2023-08-04 14:04:37.879 | INFO | Click ( 957, 501) @ MAP_PREPARATION
2023-08-04 14:04:38.408 | INFO | Using fleet: [3, 2, 0]
2023-08-04 14:04:38.433 | INFO | Hard satisfied: Fleet_1: None, Fleet_2: None, Submarine: None
2023-08-04 14:04:38.436 | INFO | Click (1132, 476) @ SUBMARINE_CLEAR
2023-08-04 14:04:38.703 | INFO | Click (1151, 320) @ FLEET_2_CLEAR
2023-08-04 14:04:39.032 | INFO | Click (1045, 199) @ FLEET_1_CHOOSE
2023-08-04 14:04:39.332 | INFO | Current selected: [1]
2023-08-04 14:04:39.333 | INFO | Click (1048, 337) @ FLEET_1_BAR_INDEX_3
2023-08-04 14:04:39.621 | INFO | Click (1039, 329) @ FLEET_2_CHOOSE
2023-08-04 14:04:39.943 | INFO | Current selected: [3]
2023-08-04 14:04:39.946 | INFO | Click (1119, 434) @ FLEET_2_BAR_INDEX_2
2023-08-04 14:04:40.260 | INFO | Click (1038, 591) @ FLEET_PREPARATION
2023-08-04 14:04:40.528 | INFO | Click (1234, 31) @ STORY_LETTERS_ONLY
2023-08-04 14:04:40.852 | INFO | Click ( 779, 507) @ POPUP_CONFIRM_STORY_SKIP
2023-08-04 14:04:45.949 | INFO | Enemy searching appeared.
2023-08-04 14:04:46.148 | INFO | No fleet lock option.
2023-08-04 14:04:46.150 | INFO | <<< MAP INIT >>>
2023-08-04 14:04:46.151 | INFO | Load map_data, has_loop=False, use_loop=False
2023-08-04 14:04:46.152 | INFO | Load spawn_data, has_loop=False, use_loop=False
2023-08-04 14:04:46.153 | INFO | grid_connection: wall=False, portal=False
2023-08-04 14:04:46.155 | INFO | Load mechanism, land_base=False, maze=False, fortress=False, bouncing_enemy=False
2023-08-04 14:04:46.553 | INFO | vanish_point: ( 641, -1600)
2023-08-04 14:04:46.553 | INFO | distant_point: (-2122, -1600)
2023-08-04 14:04:46.583 | INFO | 0.137s _ Horizontal: 7 (7 inner, 2 edge)
2023-08-04 14:04:46.585 | INFO | Edges: /_ Vertical: 10 (8 inner, 1 edge)
2023-08-04 14:04:46.587 | INFO | [homo_storage] ((9, 6), [(220.18, 115.629), (1234.307, 115.629), (83.498, 672.605),
(1426.859, 672.605)])
2023-08-04 14:04:46.643 | INFO | tile_center: 0.942 (good match)
2023-08-04 14:04:46.655 | INFO | 0.066s _ edge_lines: 3 hori, 1 vert
2023-08-04 14:04:46.657 | INFO | Edges: /_ homo_loca: ( 6, 125)
2023-08-04 14:04:46.663 | INFO | center_loca: (3, 3)
2023-08-04 14:04:46.665 | INFO | camera_corrected: A1 -> D4
2023-08-04 14:04:46.666 | INFO | Camera: D4
2023-08-04 14:04:46.756 | INFO | 0.088s predict: 47
2023-08-04 14:04:46.757 | INFO | -- -- -- -- -- -- -- -- --
2023-08-04 14:04:46.759 | INFO | -- -- -- -- -- -- 2E -- ..
2023-08-04 14:04:46.761 | INFO | Fl -- -- -- -- -- -- -- ..
2023-08-04 14:04:46.762 | INFO | -- -- -- DD -- -- -- -- ..
2023-08-04 14:04:46.763 | INFO | .. -- -- -- -- -- -- -- ..
2023-08-04 14:04:46.765 | INFO | .. -- 1E -- -- -- -- -- ..
2023-08-04 14:04:46.766 | INFO | Fleet set to 1
2023-08-04 14:04:46.780 | INFO | Fleet: 1, fleet_current_index: 1
2023-08-04 14:04:46.783 | INFO | [Map_buff] double_line
2023-08-04 14:04:46.784 | INFO | Skip strategy bar check.
2023-08-04 14:04:46.789 | INFO | [HP] 98% ____ ____ 98% ____ ____
2023-08-04 14:04:46.791 | INFO | Ensure edge in sight.
2023-08-04 14:04:46.792 | INFO | Full scan start, mode=normal
2023-08-04 14:04:46.794 | INFO | [enemy_missing] EN: 1, MY: 0, SI: 1, BO: 0, CA: 0
2023-08-04 14:04:46.795 | INFO | [enemy_may____] EN: 0, MY: 0, SI: 0, BO: 0, CA: 0
2023-08-04 14:04:46.796 | INFO | Focus to: D4
2023-08-04 14:04:46.797 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:46.800 | INFO | Swipe ( 740, 503) -> ( 771, 456)
2023-08-04 14:04:47.482 | INFO | tile_center: 0.942 (good match)
2023-08-04 14:04:47.494 | INFO | 0.055s _ edge_lines: 3 hori, 1 vert
2023-08-04 14:04:47.496 | INFO | Edges: /_ homo_loca: ( 33, 64)
2023-08-04 14:04:47.500 | INFO | center_loca: (3, 3)
2023-08-04 14:04:47.502 | INFO | Camera: D4
2023-08-04 14:04:47.586 | INFO | 0.083s predict: 48
2023-08-04 14:04:47.588 | INFO | -- -- -- -- -- -- -- -- --
2023-08-04 14:04:47.589 | INFO | -- -- -- -- -- -- 2E -- ..
2023-08-04 14:04:47.590 | INFO | Fl -- -- -- -- -- -- -- ..
2023-08-04 14:04:47.591 | INFO | -- -- -- DD -- -- -- -- ..
2023-08-04 14:04:47.592 | INFO | Fl -- -- -- -- -- -- -- ..
2023-08-04 14:04:47.593 | INFO | -- -- 1E -- -- -- -- .. ..
2023-08-04 14:04:47.594 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:47.596 | INFO | [enemy_missing] EN:-1, MY: 0, SI: 0, BO: 0, CA: 0
2023-08-04 14:04:47.597 | INFO | [enemy_may____] EN: 0, MY: 0, SI: 0, BO: 0, CA: 3
2023-08-04 14:04:47.598 | INFO | Focus to: D2
2023-08-04 14:04:47.599 | INFO | Map swipe: (0, -2)
2023-08-04 14:04:47.601 | INFO | Swipe (1131, 177) -> (1134, 379)
2023-08-04 14:04:48.370 | INFO | tile_center: 0.942 (good match)
2023-08-04 14:04:48.381 | INFO | 0.052s _ edge_lines: 1 hori, 1 vert
2023-08-04 14:04:48.383 | INFO | Edges: / homo_loca: ( 36, 67)
2023-08-04 14:04:48.387 | INFO | center_loca: (3, 1)
2023-08-04 14:04:48.407 | INFO | Map swipe predict: None (0.019s, no match)
2023-08-04 14:04:48.410 | INFO | Camera: D2
2023-08-04 14:04:48.412 | INFO | Camera: D2
2023-08-04 14:04:48.461 | INFO | 0.048s predict: 31
2023-08-04 14:04:48.463 | INFO | -- -- -- -- -- -- -- --
2023-08-04 14:04:48.464 | INFO | -- -- -- -- -- -- 2E --
2023-08-04 14:04:48.465 | INFO | FL -- -- -- -- -- -- --
2023-08-04 14:04:48.466 | INFO | -- -- -- DD -- -- -- ..
2023-08-04 14:04:48.467 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:48.468 | INFO | [enemy_missing] EN:-1, MY: 0, SI: 0, BO: 0, CA: 0
2023-08-04 14:04:48.469 | INFO | [enemy_may____] EN: 0, MY: 0, SI: 0, BO: 0, CA: 3
2023-08-04 14:04:48.470 | INFO | Focus to: F2
2023-08-04 14:04:48.471 | INFO | Map swipe: (2, 0)
2023-08-04 14:04:48.473 | INFO | Swipe ( 564, 275) -> ( 277, 272)
2023-08-04 14:04:49.278 | INFO | tile_center: 0.922 (good match)
2023-08-04 14:04:49.287 | INFO | 0.049s _ edge_lines: 1 hori, 1 vert
2023-08-04 14:04:49.288 | INFO | Edges: \ homo_loca: ( 35, 63)
2023-08-04 14:04:49.291 | INFO | grids_offset: (1, 0)
2023-08-04 14:04:49.293 | INFO | center_loca: (3, 1)
2023-08-04 14:04:49.303 | INFO | Map swipe predict: None (0.010s, no match)
2023-08-04 14:04:49.305 | INFO | Camera: F2
2023-08-04 14:04:49.306 | INFO | Camera: F2
2023-08-04 14:04:49.350 | INFO | 0.043s predict: 28
2023-08-04 14:04:49.351 | INFO | -- -- -- -- -- -- --
2023-08-04 14:04:49.353 | INFO | -- -- -- -- 2E -- --
2023-08-04 14:04:49.354 | INFO | -- -- -- -- -- -- --
2023-08-04 14:04:49.355 | INFO | -- DD -- -- -- -- --
2023-08-04 14:04:49.356 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:49.357 | INFO | [enemy_missing] EN:-1, MY: 0, SI: 0, BO: 0, CA: 0
2023-08-04 14:04:49.358 | INFO | [enemy_may____] EN: 0, MY: 0, SI: 0, BO: 0, CA: 3
2023-08-04 14:04:49.359 | INFO | Focus to: F4
2023-08-04 14:04:49.360 | INFO | Map swipe: (0, 2)
2023-08-04 14:04:49.362 | INFO | Swipe ( 877, 398) -> ( 878, 195)
2023-08-04 14:04:50.141 | INFO | tile_center: 0.955 (good match)
2023-08-04 14:04:50.153 | INFO | 0.053s _ edge_lines: 3 hori, 1 vert
2023-08-04 14:04:50.154 | INFO | Edges: _\ homo_loca: ( 36, 71)
2023-08-04 14:04:50.158 | INFO | center_loca: (4, 3)
2023-08-04 14:04:50.172 | INFO | Map swipe predict: None (0.013s, no match)
2023-08-04 14:04:50.173 | INFO | Camera: F4
2023-08-04 14:04:50.174 | INFO | Camera: F4
2023-08-04 14:04:50.245 | INFO | 0.070s predict: 43
2023-08-04 14:04:50.247 | INFO | -- -- -- -- -- -- -- --
2023-08-04 14:04:50.248 | INFO | .. -- -- -- -- 2E -- --
2023-08-04 14:04:50.249 | INFO | .. -- -- -- -- -- -- --
2023-08-04 14:04:50.250 | INFO | .. -- DD -- -- -- -- --
2023-08-04 14:04:50.251 | INFO | .. -- -- -- -- -- -- --
2023-08-04 14:04:50.251 | INFO | .. 1E -- -- -- -- -- --
2023-08-04 14:04:50.252 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:50.254 | INFO | [enemy_missing] EN:-1, MY: 0, SI: 0, BO: 0, CA: 0
2023-08-04 14:04:50.255 | INFO | [enemy_may____] EN: 0, MY: 0, SI: 0, BO: 0, CA: 3
2023-08-04 14:04:50.256 | INFO | A B C D E F G H I
2023-08-04 14:04:50.257 | INFO | 1 ++ ++ ++ -- -- -- -- -- --
2023-08-04 14:04:50.258 | INFO | 2 -- -- -- -- -- -- 2E ++ ++
2023-08-04 14:04:50.259 | INFO | 3 FL -- -- -- -- -- -- -- ++
2023-08-04 14:04:50.260 | INFO | 4 -- -- -- DD -- -- -- -- --
2023-08-04 14:04:50.261 | INFO | 5 Fl -- -- -- ++ -- -- -- --
2023-08-04 14:04:50.262 | INFO | 6 -- ++ 1E -- -- -- -- ++ --
2023-08-04 14:04:50.262 | INFO | Predict fleet_2 to be A5
2023-08-04 14:04:50.262 | INFO | <<< FIND CURRENT FLEET >>>
2023-08-04 14:04:50.263 | INFO | Fleets: [A3, A5]
2023-08-04 14:04:50.264 | INFO | [Fleet_1: A3] Fleet_2: A5
2023-08-04 14:04:50.267 | INFO | A B C D E F G H I
2023-08-04 14:04:50.268 | INFO | 1 9999 9999 9999 5 6 7 8 9 10
2023-08-04 14:04:50.269 | INFO | 2 1 2 3 4 5 6 7 9999 9999
2023-08-04 14:04:50.270 | INFO | 3 0 1 2 3 4 5 6 7 9999
2023-08-04 14:04:50.271 | INFO | 4 1 2 3 4 5 6 7 8 9
2023-08-04 14:04:50.271 | INFO | 5 2 3 4 5 9999 7 8 9 10
2023-08-04 14:04:50.272 | INFO | 6 3 9999 5 6 7 8 9 9999 11
────────────────────────────────────────────────────── BATTLE_0 ───────────────────────────────────────────────────────
2023-08-04 14:04:50.274 | INFO | BATTLE_0
2023-08-04 14:04:50.275 | INFO | Using function: clear_all
2023-08-04 14:04:50.276 | INFO | Enemy remain: [G2, C6, D4]
2023-08-04 14:04:50.276 | INFO | <<< CLEAR ENEMY >>>
2023-08-04 14:04:50.278 | INFO | sort=('cost_2',)
2023-08-04 14:04:50.278 | INFO | Grids: [C6, D4, G2]
2023-08-04 14:04:50.279 | INFO | targetEnemyScale:default_mode
2023-08-04 14:04:50.280 | INFO | Clear enemy: C6
2023-08-04 14:04:50.281 | INFO | [Fleet_1: A3] Fleet_2: A5
2023-08-04 14:04:50.292 | INFO | Bind task {'Alas', 'EventGeneral', 'TaskBalancer', 'Event', 'General'}
2023-08-04 14:04:50.294 | INFO | Save config ./config\alas-t1.json, Event.Emotion.Fleet1Value=119,
Event.Emotion.Fleet1Record=datetime.datetime(2023, 8, 4, 14, 4, 50), Event.Emotion.Fleet2Value=119,
Event.Emotion.Fleet2Record=datetime.datetime(2023, 8, 4, 14, 4, 50)
2023-08-04 14:04:50.300 | INFO | [Emotion fleet_1] 119
2023-08-04 14:04:50.301 | INFO | [Emotion fleet_2] 119
2023-08-04 14:04:50.302 | INFO | Full path: [A3, A4, A5, B5, C5, C6]
2023-08-04 14:04:50.303 | INFO | Path: [B5, C5, C6]
2023-08-04 14:04:50.304 | INFO | Fleet set to 1
2023-08-04 14:04:50.309 | INFO | Fleet: 1, fleet_current_index: 1
2023-08-04 14:04:50.310 | INFO | In sight: B5
2023-08-04 14:04:50.312 | INFO | Focus to: E4
2023-08-04 14:04:50.313 | INFO | Map swipe: (-1, 0)
2023-08-04 14:04:50.315 | INFO | Swipe ( 512, 463) -> ( 656, 457)
2023-08-04 14:04:51.080 | INFO | tile_center: 0.942 (good match)
2023-08-04 14:04:51.092 | INFO | 0.053s _ edge_lines: 3 hori, 1 vert
2023-08-04 14:04:51.093 | INFO | Edges: _\ homo_loca: ( 39, 63)
2023-08-04 14:04:51.097 | INFO | center_loca: (4, 3)
2023-08-04 14:04:51.113 | INFO | Map swipe predict: None (0.015s, no match)
2023-08-04 14:04:51.115 | INFO | Camera: E4
2023-08-04 14:04:51.116 | INFO | Camera: E4
2023-08-04 14:04:51.197 | INFO | 0.080s predict: 48
2023-08-04 14:04:51.198 | INFO | -- -- -- -- -- -- -- -- --
2023-08-04 14:04:51.199 | INFO | .. -- -- -- -- -- 2E -- --
2023-08-04 14:04:51.200 | INFO | .. -- -- -- -- -- -- -- --
2023-08-04 14:04:51.201 | INFO | .. -- -- DD -- -- -- -- --
2023-08-04 14:04:51.202 | INFO | .. -- -- -- -- -- -- -- --
2023-08-04 14:04:51.203 | INFO | .. -- 1E -- -- -- -- -- ..
2023-08-04 14:04:51.204 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:51.205 | INFO | Global B5 (camera=E4) -> Local B5 (center=E4)
2023-08-04 14:04:51.206 | INFO | Click ( 217, 430) @ B5
2023-08-04 14:04:52.350 | INFO | Arrive B5 (is_fleet)
2023-08-04 14:04:52.959 | INFO | Arrive B5 confirm. Result: nothing. Expected:
2023-08-04 14:04:52.961 | INFO | Round: 1, enemy_round: {0: 2}
2023-08-04 14:04:52.964 | INFO | Fleet set to 1
2023-08-04 14:04:52.970 | INFO | Fleet: 1, fleet_current_index: 1
2023-08-04 14:04:52.971 | INFO | In sight: C5
2023-08-04 14:04:52.973 | INFO | Focus to: E4
2023-08-04 14:04:52.974 | INFO | Map swipe: (0, 0)
2023-08-04 14:04:52.975 | INFO | Global C5 (camera=E4) -> Local C5 (center=E4)
2023-08-04 14:04:52.976 | INFO | Click ( 340, 442) @ C5
2023-08-04 14:04:53.532 | INFO | Arrive C5 (is_fleet)
2023-08-04 14:04:55.054 | INFO | Arrive C5 confirm. Result: nothing. Expected:
2023-08-04 14:04:55.056 | INFO | Round: 2, enemy_round: {0: 2}
2023-08-04 14:04:55.140 | INFO | 0.083s predict: 48
2023-08-04 14:04:55.142 | INFO | -- -- -- -- -- -- -- -- --
2023-08-04 14:04:55.143 | INFO | .. -- -- -- -- -- -- -- --
2023-08-04 14:04:55.144 | INFO | .. -- -- -- -- -- 2E -- --
2023-08-04 14:04:55.145 | INFO | .. -- -- -- -- -- -- -- --
2023-08-04 14:04:55.146 | INFO | .. -- FL -- -- -- -- -- --
2023-08-04 14:04:55.147 | INFO | .. -- -- 1E -- -- -- -- ..
2023-08-04 14:04:55.148 | INFO | Full scan start, mode=movable
2023-08-04 14:04:55.149 | INFO | [enemy_missing] EN: 1, MY: 0, SI: 1, BO: 0, CA: 0
2023-08-04 14:04:55.150 | INFO | [enemy_may____] EN: 2, MY: 0, SI: 2, BO: 0, CA: 2
2023-08-04 14:04:55.151 | INFO | Focus to: F4
2023-08-04 14:04:55.152 | INFO | Map swipe: (1, 0)
2023-08-04 14:04:55.154 | INFO | Swipe ( 641, 470) -> ( 495, 470)
2023-08-04 14:04:55.876 | WARNING | Image to detect is not in_map
2023-08-04 14:04:56.137 | WARNING | Image to detect is not in_map
2023-08-04 14:04:56.452 | WARNING | Image to detect is not in_map
2023-08-04 14:04:56.754 | WARNING | Image to detect is not in_map
2023-08-04 14:04:57.069 | WARNING | Image to detect is not in_map
2023-08-04 14:04:57.377 | WARNING | Image to detect is not in_map
2023-08-04 14:04:57.660 | WARNING | Image to detect is not in_map
2023-08-04 14:04:57.986 | WARNING | Image to detect is not in_map
2023-08-04 14:04:58.273 | WARNING | Image to detect is not in_map
2023-08-04 14:04:58.577 | WARNING | Image to detect is not in_map
2023-08-04 14:04:58.857 | WARNING | Image to detect is not in_map
2023-08-04 14:04:59.155 | WARNING | Image to detect is not in_map
2023-08-04 14:04:59.473 | WARNING | Image to detect is not in_map
2023-08-04 14:04:59.774 | WARNING | Image to detect is not in_map
2023-08-04 14:05:00.083 | WARNING | Image to detect is not in_map
2023-08-04 14:05:00.384 | WARNING | Image to detect is not in_map
2023-08-04 14:05:00.668 | WARNING | Image to detect is not in_map
2023-08-04 14:05:00.971 | WARNING | Image to detect is not in_map
2023-08-04 14:05:00.983 | ERROR | MapDetectionError: Image to detect is not in_map
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ │
│ D:\Program Files\AzurLaneAutoScript\alas.py:68 in run │
│ │
│ 65 │ def run(self, command): │
│ 66 │ │ try: │
│ 67 │ │ │ self.device.screenshot() │
│ > 68 │ │ │ self.__getattribute__(command)() │
│ 69 │ │ │ return True │
│ 70 │ │ except TaskEnd: │
│ 71 │ │ │ return True │
│ │
│ ┌───────────────────────────── locals ─────────────────────────────┐ │
│ │ command = 'event' │ │
│ │ e = MapDetectionError('Image to detect is not in_map') │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x000002D1E6007B08> │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ D:\Program Files\AzurLaneAutoScript\alas.py:358 in event │
│ │
│ 355 │ def event(self): │
│ 356 │ │ from module.campaign.run import CampaignRun │
│ 357 │ │ CampaignRun(config=self.config, device=self.device).run( │
│ > 358 │ │ │ name=self.config.Campaign_Name, folder=self.config.Campaign_Event, │
│ mode=self.config.Campaign_Mode) │
│ 359 │ │
│ 360 │ def event2(self): │
│ 361 │ │ from module.campaign.run import CampaignRun │
│ │
│ ┌─────────────────────────────── locals ───────────────────────────────┐ │
│ │ CampaignRun = <class 'module.campaign.run.CampaignRun'> │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x000002D1E6007B08> │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\campaign\run.py:366 in run │
│ │
│ 363 │ │ │ │
│ 364 │ │ │ # Run │
│ 365 │ │ │ try: │
│ > 366 │ │ │ │ self.campaign.run() │
│ 367 │ │ │ except ScriptEnd as e: │
│ 368 │ │ │ │ logger.hr('Script end') │
│ 369 │ │ │ │ logger.info(str(e)) │
│ │
│ ┌──────────────────────────────── locals ─────────────────────────────────┐ │
│ │ folder = 'event_20230803_cn' │ │
│ │ mode = 'normal' │ │
│ │ name = 'sp1' │ │
│ │ self = <module.campaign.run.CampaignRun object at 0x000002D1C62DCC48> │ │
│ │ total = 0 │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\campaign\campaign_base.py:141 in run │
│ │
│ 138 │ │ for _ in range(20): │
│ 139 │ │ │ try: │
│ 140 │ │ │ │ if not self.map_is_auto_search: │
│ > 141 │ │ │ │ │ self.execute_a_battle() │
│ 142 │ │ │ │ else: │
│ 143 │ │ │ │ │ self.auto_search_execute_a_battle() │
│ 144 │ │ │ except CampaignEnd: │
│ │
│ ┌─────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └───────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\campaign\campaign_base.py:100 in execute_a_battle │
│ │
│ 97 │ │ result = False │
│ 98 │ │ for _ in range(10): │
│ 99 │ │ │ try: │
│ > 100 │ │ │ │ result = self.battle_function() │
│ 101 │ │ │ │ break │
│ 102 │ │ │ except MapEnemyMoved: │
│ 103 │ │ │ │ if self.battle_count > prev: │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ prev = 0 │ │
│ │ result = False │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\base\decorator.py:70 in wrapper │
│ │
│ 67 │ │ │ │ │ if not all(flag): │
│ 68 │ │ │ │ │ │ continue │
│ 69 │ │ │ │ │ │
│ > 70 │ │ │ │ │ return record['func'](self, *args, **kwargs) │
│ 71 │ │ │ │ │
│ 72 │ │ │ │ logger.warning(f'No option fits for {name}, using the last define │
│ func.') │
│ 73 │ │ │ │ return func(self, *args, **kwargs) │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ args = () │ │
│ │ cls = <class 'module.base.decorator.Config'> │ │
│ │ flag = [True] │ │
│ │ func = <function CampaignBase.battle_function at 0x000002D1C6CDD048> │ │
│ │ kwargs = {} │ │
│ │ logger = <Logger alas (INFO)> │ │
│ │ name = 'battle_function' │ │
│ │ record = { │ │
│ │ │ 'options': {'MAP_CLEAR_ALL_THIS_TIME': True}, │ │
│ │ │ 'func': <function CampaignBase.battle_function at 0x000002D1C6CDD708> │ │
│ │ } │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\campaign\campaign_base.py:65 in battle_function │
│ │
│ 62 │ │ logger.info(f'Enemy remain: {remain}') │
│ 63 │ │ if remain.count > 0: │
│ 64 │ │ │ if self.config.MAP_HAS_MOVABLE_NORMAL_ENEMY: │
│ > 65 │ │ │ │ if self.clear_any_enemy(sort=('cost_2',)): │
│ 66 │ │ │ │ │ return True │
│ 67 │ │ │ │ return self.battle_default() │
│ 68 │ │ │ else: │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ remain = <module.map.map_grids.SelectedGrids object at 0x000002D1C6D02348> │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\map.py:494 in clear_any_enemy │
│ │
│ 491 │ │ │ │ expected = 'siren' │
│ 492 │ │ │ else: │
│ 493 │ │ │ │ expected = '' │
│ > 494 │ │ │ self.clear_chosen_enemy(grid, expected=expected) │
│ 495 │ │ │ return True │
│ 496 │ │ │
│ 497 │ │ return False │
│ │
│ ┌───────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ expected = '' │ │
│ │ grid = C6 │ │
│ │ grids = <module.map.map_grids.SelectedGrids object at 0x000002D1C6A75248> │ │
│ │ kwargs = {'sort': ('cost_2',)} │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └───────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\map.py:27 in clear_chosen_enemy │
│ │
│ 24 │ │ self.show_fleet() │
│ 25 │ │ if self.emotion.is_calculate and self.config.Campaign_UseFleetLock: │
│ 26 │ │ │ self.emotion.wait(fleet_index=self.fleet_current_index) │
│ > 27 │ │ self.goto(grid, expected=expected) │
│ 28 │ │ │
│ 29 │ │ self.full_scan() │
│ 30 │ │ self.find_path_initial() │
│ │
│ ┌───────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ expected = 'combat' │ │
│ │ grid = C6 │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └───────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\fleet.py:494 in goto │
│ │
│ 491 │ │ │ │ │ │ grids = grids.sort('cost') │
│ 492 │ │ │ │ │ │ self._goto(grids[0], expected='') │
│ 493 │ │ │ │ try: │
│ > 494 │ │ │ │ │ self._goto(node, expected=expected if node == nodes[-1] else '') │
│ 495 │ │ │ │ except MapWalkError: │
│ 496 │ │ │ │ │ logger.warning('Map walk error.') │
│ 497 │ │ │ │ │ self.predict() │
│ │
│ ┌───────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ expected = 'combat' │ │
│ │ location = (2, 5) │ │
│ │ node = (2, 4) │ │
│ │ nodes = [(1, 4), (2, 4), (2, 5)] │ │
│ │ optimize = True │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └───────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\fleet.py:456 in _goto │
│ │
│ 453 │ │ if self.round_is_new: │
│ 454 │ │ │ if result != 'combat': │
│ 455 │ │ │ │ self.predict() │
│ > 456 │ │ │ self.full_scan_movable(enemy_cleared=result == 'combat') │
│ 457 │ │ │ self.find_path_initial() │
│ 458 │ │ │ raise MapEnemyMoved │
│ 459 │ │ if self.round_maze_changed: │
│ │
│ ┌───────────────────────────────────────────── locals ─────────────────────────────────────────────┐ │
│ │ ambushed_retry = Timer(limit=0.0/1.5, count=2/2) │ │
│ │ arrive_checker = True │ │
│ │ arrive_predict = '(MAP_WALK_USE_CURRENT_FLEET, is_current_fleet)' │ │
│ │ arrive_timer = Timer(limit=7.462/1.5, count=6/2) │ │
│ │ arrive_unexpected_timer = Timer(limit=7.462/2.5, count=0/6) │ │
│ │ arrived = True │ │
│ │ expected = '' │ │
│ │ extra = 0 │ │
│ │ grid = C5 │ │
│ │ is_portal = False │ │
│ │ location = (2, 4) │ │
│ │ may_submarine_icon = False │ │
│ │ mystery = False │ │
│ │ result = 'nothing' │ │
│ │ result_mystery = '' │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ │ walk_timeout = Timer(limit=7.968/20, count=2/0) │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\fleet.py:583 in full_scan_movable │
│ │
│ 580 │ │ │ │ │ grid.wipe_out() │
│ 581 │ │ │ │ for grid in self.movable_before_normal: │
│ 582 │ │ │ │ │ grid.wipe_out() │
│ > 583 │ │ │ │ self.full_scan(mode='movable') │
│ 584 │ │ │ │ self.track_movable(enemy_cleared=enemy_cleared, siren=True) │
│ 585 │ │ │ │ self.track_movable(enemy_cleared=enemy_cleared, siren=False) │
│ 586 │ │ │ else: │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ enemy_cleared = False │ │
│ │ grid = C6 │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\fleet.py:543 in full_scan │
│ │
│ 540 │ │ │ mode = 'decoy' │
│ 541 │ │ super().full_scan( │
│ 542 │ │ │ queue=queue, must_scan=must_scan, battle_count=self.battle_count, │
│ mystery_count=self.mystery_count, │
│ > 543 │ │ │ siren_count=self.siren_count, carrier_count=self.carrier_count, mode=mode) │
│ 544 │ │ │
│ 545 │ │ if self.config.FLEET_2 and not self.fleet_2_location: │
│ 546 │ │ │ fleets = self.map.select(is_fleet=True, is_current_fleet=False) │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ __class__ = <class 'module.map.fleet.Fleet'> │ │
│ │ mode = 'movable' │ │
│ │ must_scan = None │ │
│ │ queue = None │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:367 in full_scan │
│ │
│ 364 │ │ │ │ │ break │
│ 365 │ │ │ │
│ 366 │ │ │ queue = queue.sort_by_camera_distance(self.camera) │
│ > 367 │ │ │ self.focus_to(queue[0]) │
│ 368 │ │ │ self.focus_to_grid_center(0.25) │
│ 369 │ │ │ success = self.map.update(grids=self.view, camera=self.camera, mode=mode) │
│ 370 │ │ │ if not success: │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ battle_count = 0 │ │
│ │ carrier_count = 0 │ │
│ │ mode = 'movable' │ │
│ │ must_scan = None │ │
│ │ mystery_count = 0 │ │
│ │ queue = <module.map.map_grids.SelectedGrids object at 0x000002D1C75D72C8> │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ │ siren_count = 0 │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:331 in focus_to │
│ │
│ 328 │ │ while 1: │
│ 329 │ │ │ vector = np.array(location) - self.camera │
│ 330 │ │ │ swipe = tuple(np.min([np.abs(vector), swipe_limit], axis=0) * │
│ np.sign(vector)) │
│ > 331 │ │ │ has_swiped = self.map_swipe(swipe) │
│ 332 │ │ │ │
│ 333 │ │ │ if not has_swiped: │
│ 334 │ │ │ │ break │
│ │
│ ┌─────────────────────────────────────── locals ───────────────────────────────────────┐ │
│ │ location = (5, 3) │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ │ swipe = (1, 0) │ │
│ │ swipe_limit = (4, 3) │ │
│ │ vector = array([1, 0]) │ │
│ └──────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:83 in map_swipe │
│ │
│ 80 │ │ self._prev_swipe = vector │
│ 81 │ │ vector = np.array(vector) │
│ 82 │ │ vector = np.array([0.5, 0.5]) - self.view.center_offset + vector │
│ > 83 │ │ return self._map_swipe(vector) │
│ 84 │ │
│ 85 │ def focus_to_grid_center(self, tolerance=None): │
│ 86 │ │ """ │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ │ vector = array([1.02059484e+00, 8.08413818e-04]) │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:60 in _map_swipe │
│ │
│ 57 │ │ │ vector = -vector │
│ 58 │ │ │ self.device.swipe_vector(vector, name=name, box=box, │
│ whitelist_area=whitelist, blacklist_area=blacklist) │
│ 59 │ │ │ self.device.sleep(0.3) │
│ > 60 │ │ │ self.update() │
│ 61 │ │ │ return True │
│ 62 │ │ else: │
│ 63 │ │ │ # Drop swipe │
│ │
│ ┌─────────────────────────────────────────────── locals ───────────────────────────────────────────────┐ │
│ │ blacklist = [(818, 227, 962, 320), (419, 503, 579, 624), (695, 227, 834, 320), (271, 503, 437, 624)] │ │
│ │ box = (123, 159, 1175, 628) │ │
│ │ distance = array([143.41234345, 101.5148756 ]) │ │
│ │ name = 'MAP_SWIPE_1_0' │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ │ vector = array([-1.46365898e+02, -8.20660282e-02]) │ │
│ │ whitelist = [ │ │
│ │ │ (467, 432, 546, 483), │ │
│ │ │ (980, 257, 1036, 290), │ │
│ │ │ (846, 180, 903, 207), │ │
│ │ │ (278, 110, 327, 130), │ │
│ │ │ (42, 533, 105, 594), │ │
│ │ │ (883, 533, 961, 594), │ │
│ │ │ (966, 180, 1019, 207), │ │
│ │ │ (167, 110, 212, 130), │ │
│ │ │ (57, 110, 96, 130) │ │
│ │ ] │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:250 in update │
│ │
│ 247 │ │ confirm_timer = Timer(5, count=10).start() │
│ 248 │ │ while 1: │
│ 249 │ │ │ try: │
│ > 250 │ │ │ │ success = self._update(camera=camera) │
│ 251 │ │ │ │ if success: │
│ 252 │ │ │ │ │ break │
│ 253 │ │ │ │ else: │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ allow_error = False │ │
│ │ camera = True │ │
│ │ confirm_timer = Timer(limit=5.309/5, count=18/10) │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:188 in _update │
│ │
│ 185 │ │ │ │ │ self.device.click(GAME_TIPS) │
│ 186 │ │ │ │ │ return False │
│ 187 │ │ │ │ else: │
│ > 188 │ │ │ │ │ raise e │
│ 189 │ │ │ elif 'Camera outside map' in str(e): │
│ 190 │ │ │ │ string = str(e) │
│ 191 │ │ │ │ logger.warning(string) │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ camera = True │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\Program Files\AzurLaneAutoScript\module\map\camera.py:123 in _update │
│ │
│ 120 │ │ │ if not self.is_in_map() \ │
│ 121 │ │ │ │ │ and not self.is_in_strategy_submarine_move(): │
│ 122 │ │ │ │ logger.warning('Image to detect is not in_map') │
│ > 123 │ │ │ │ raise MapDetectionError('Image to detect is not in_map') │
│ 124 │ │ │ self.view.load(self.device.image) │
│ 125 │ │ except MapDetectionError as e: │
│ 126 │ │ │ if self.info_bar_count(): │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ camera = True │ │
│ │ self = <campaign.event_20230803_cn.sp1.Campaign object at 0x000002D1C6A9ED88> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
MapDetectionError: Image to detect is not in_map
2023-08-04 14:05:01.782 | WARNING | Saving error: ./log/error/1691129101782
エラーが起こる前に、「| WARNING | Image to detect is not in_map」というワーニングが出てきた。恐らく艦隊を移動する前に自分で動ける敵艦隊に遭遇したのでしょう…つまりこういうこと:艦隊を移動→敵艦隊が移動→艦隊遭遇→出撃画面が出る→Alasは次の行動はムーブだと認識し、マップにいないのでエラー発生
在错误发生前,有“| WARNING | Image to detect is not in_map”的警告出现。大概是因为舰队移动前遇到了能够自己移动的敌方舰队。也就是说:舰队移动→敌方舰队移动→舰队遭遇→出现出击画面→Alas认为接下来行动是移动,因为不在地图中所以发生错误。