AzurLaneAutoScript
AzurLaneAutoScript copied to clipboard
日服活动图b3刷紧急委托一进地图就报错
在提问之前...
- [x] 我已经搜索了现有的 issues
- [x] 我在提问题之前至少花费了 5 分钟来思考和准备
- [x] 我已经阅读了 Wiki 中的 常见问题(FAQ)
- [x] 我正在使用最新版的 Alas
描述你的问题
昨天还好好的,今天早上一起来就无限报错,进图第一场战斗就log提示错误停止了
如何复现
- 前往 'B3'
- 点击 '自律战斗'
- 滑动到 '第一场战斗'
- 出现问题
预期行为
修复问题
相关 Logs
─────────────────────────────────────── B3 ────────────────────────────────────────
INFO 10:55:39.057 │ B3
INFO 10:55:39.057 │ <<< ENTER MAP >>>
INFO 10:55:39.134 │ Click ( 855, 287) @ b3
INFO 10:55:39.393 │ [MAP_MODE_SWITCH] hard
INFO 10:55:39.395 │ Click ( 173, 592) @ MAP_MODE_SWITCH_NORMAL
INFO 10:55:39.594 │ [MAP_MODE_SWITCH] normal
INFO 10:55:39.597 │ [Map_clear_percentage] 11%
INFO 10:55:39.796 │ [MAP_MODE_SWITCH] normal
INFO 10:55:39.800 │ [Map_clear_percentage] 62%
INFO 10:55:40.197 │ [MAP_MODE_SWITCH] normal
INFO 10:55:40.199 │ [Map_clear_percentage] 99%
INFO 10:55:40.209 │ [MAP_CLEAR_ALL_THIS_TIME] False
INFO 10:55:40.210 │ [Map_info] 99%, star_1, star_2, 100_percent_clear,
clear_mode
INFO 10:55:40.212 │ [StopCondition_MapAchievement] non_stop
INFO 10:55:40.213 │ Clear_Mode set to on
INFO 10:55:40.213 │ [Clear_Mode] on
INFO 10:55:40.219 │ No auto search option.
INFO 10:55:40.219 │ Click (1018, 493) @ MAP_PREPARATION
INFO 10:55:40.599 │ Handling 2x book setting, mode=prep.
INFO 10:55:40.607 │ Using fleet: [5, 4, 0]
INFO 10:55:40.632 │ Hard satisfied: Fleet_1: None, Fleet_2: None, Submarine:
None
INFO 10:55:40.635 │ [map_allow_submarine] True
INFO 10:55:40.637 │ Click (1120, 330) @ FLEET_2_CLEAR
INFO 10:55:40.688 │ Click (1158, 468) @ SUBMARINE_CLEAR
INFO 10:55:40.804 │ Click (1056, 218) @ FLEET_1_CHOOSE
INFO 10:55:41.001 │ Current selected: [5]
INFO 10:55:41.002 │ Click (1030, 242) @ FLEET_1_CHOOSE
INFO 10:55:41.202 │ Click (1073, 334) @ FLEET_2_CHOOSE
INFO 10:55:41.404 │ Current selected: [5]
INFO 10:55:41.405 │ Click (1095, 532) @ FLEET_2_BAR_INDEX_4
INFO 10:55:41.605 │ Click (1105, 595) @ FLEET_PREPARATION
INFO 10:55:47.242 │ [Loading] 2%
WARNING 10:55:47.243 │ Entered map with is_combat_loading appeared
INFO 10:55:47.252 │ No fleet lock option.
INFO 10:55:47.253 │ <<< MAP INIT >>>
INFO 10:55:47.254 │ Load map_data, has_loop=False, use_loop=True
INFO 10:55:47.255 │ Load spawn_data, has_loop=False, use_loop=True
INFO 10:55:47.256 │ grid_connection: wall=False, portal=False
INFO 10:55:47.257 │ Load mechanism, land_base=False, maze=False,
fortress=False, bouncing_enemy=False
WARNING 10:55:47.277 │ Image to detect is not in_map
INFO 10:55:47.364 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:47.373 │ Image to detect is not in_map
INFO 10:55:47.443 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:47.451 │ Image to detect is not in_map
INFO 10:55:47.530 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:47.538 │ Image to detect is not in_map
INFO 10:55:47.610 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:47.739 │ Image to detect is not in_map
INFO 10:55:47.812 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:47.939 │ Image to detect is not in_map
INFO 10:55:48.005 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:48.140 │ Image to detect is not in_map
INFO 10:55:48.208 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:48.341 │ Image to detect is not in_map
INFO 10:55:48.410 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:48.543 │ Image to detect is not in_map
INFO 10:55:48.610 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:48.742 │ Image to detect is not in_map
INFO 10:55:48.809 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:48.944 │ Image to detect is not in_map
INFO 10:55:49.006 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:49.146 │ Image to detect is not in_map
INFO 10:55:49.258 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:49.347 │ Image to detect is not in_map
INFO 10:55:49.432 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:49.547 │ Image to detect is not in_map
INFO 10:55:49.626 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:49.749 │ Image to detect is not in_map
INFO 10:55:49.814 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:49.958 │ Image to detect is not in_map
INFO 10:55:50.040 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:50.149 │ Image to detect is not in_map
INFO 10:55:50.215 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:50.351 │ Image to detect is not in_map
INFO 10:55:50.414 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:50.554 │ Image to detect is not in_map
INFO 10:55:50.636 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:50.754 │ Image to detect is not in_map
INFO 10:55:50.818 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:50.953 │ Image to detect is not in_map
INFO 10:55:51.023 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:51.154 │ Image to detect is not in_map
INFO 10:55:51.223 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:51.356 │ Image to detect is not in_map
INFO 10:55:51.428 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:51.557 │ Image to detect is not in_map
INFO 10:55:51.623 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:51.759 │ Image to detect is not in_map
INFO 10:55:51.822 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:51.960 │ Image to detect is not in_map
INFO 10:55:52.030 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:52.161 │ Image to detect is not in_map
INFO 10:55:52.242 │ [Package_name] com.YoStarJP.AzurLane
WARNING 10:55:52.361 │ Image to detect is not in_map
INFO 10:55:52.432 │ [Package_name] com.YoStarJP.AzurLane
ERROR 10:55:52.432 │ MapDetectionError: Image to detect is not in_map
╭────────────────── Traceback (most recent call last) ───────────────────╮
│ │
│ D:\leidian\AzurLaneAutoScript\alas.py:69 in run │
│ │
│ 67 │ │ │ if not skip_first_screenshot: │
│ 68 │ │ │ │ self.device.screenshot() │
│ ❱ 69 │ │ │ self.__getattribute__(command)() │
│ 70 │ │ │ return True │
│ 71 │ │ except TaskEnd: │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ command = 'gems_farming' │ │
│ │ e = MapDetectionError('Image to detect is not │ │
│ │ in_map') │ │
│ │ self = <alas.AzurLaneAutoScript object at │ │
│ │ 0x000001DAD0754F88> │ │
│ │ skip_first_screenshot = False │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ D:\leidian\AzurLaneAutoScript\alas.py:412 in gems_farming │
│ │
│ 410 │ │ from module.campaign.gems_farming import GemsFarming │
│ 411 │ │ GemsFarming(config=self.config, device=self.device).run( │
│ ❱ 412 │ │ │ name=self.config.Campaign_Name, folder=self.config.C │
│ mode=self.config.Campaign_Mode) │
│ 413 │ │
│ 414 │ def island_production(self): │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ GemsFarming = <class 'module.campaign.gems_farming.GemsFarming'> │ │
│ │ self = <alas.AzurLaneAutoScript object at │ │
│ │ 0x000001DAD0754F88> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\campaign\gems_farming.py:657 in │
│ run │
│ │
│ 655 │ │ │ │
│ 656 │ │ │ try: │
│ ❱ 657 │ │ │ │ super().run(name=name, folder=folder, total=tota │
│ 658 │ │ │ except CampaignEnd as e: │
│ 659 │ │ │ │ if "Emotion" in e.args[0]: │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ __class__ = <class 'module.campaign.gems_farming.GemsFarming'> │ │
│ │ folder = 'event_20260908_cn' │ │
│ │ is_limit = 0 │ │
│ │ mode = 'normal' │ │
│ │ name = 'B3' │ │
│ │ self = <module.campaign.gems_farming.GemsFarming object at │ │
│ │ 0x000001DA9034B4C8> │ │
│ │ total = 0 │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\campaign\run.py:438 in run │
│ │
│ 436 │ │ │ self.device.click_record_clear() │
│ 437 │ │ │ try: │
│ ❱ 438 │ │ │ │ self.campaign.run() │
│ 439 │ │ │ except ScriptEnd as e: │
│ 440 │ │ │ │ logger.hr('Script end') │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ folder = 'event_20260908_cn' │ │
│ │ mode = 'normal' │ │
│ │ name = 'b3' │ │
│ │ self = <module.campaign.gems_farming.GemsFarming object at │ │
│ │ 0x000001DA9034B4C8> │ │
│ │ total = 0 │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\campaign\campaign_base.py:130 in │
│ run │
│ │
│ 128 │ │ if not self.map_is_auto_search: │
│ 129 │ │ │ self.handle_map_fleet_lock() │
│ ❱ 130 │ │ │ self.map_init(self.MAP) │
│ 131 │ │ else: │
│ 132 │ │ │ self.map = self.MAP │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ self = <module.campaign.gems_farming.GemsFarming.load_campaign.<l… │ │
│ │ object at 0x000001DA915B9408> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\map\fleet.py:849 in map_init │
│ │
│ 847 │ │ logger.hr('Map init') │
│ 848 │ │ self.map_data_init(map_) │
│ ❱ 849 │ │ self.map_control_init() │
│ 850 │ │
│ 851 │ def map_data_init(self, map_): │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ map_ = <module.map.map_base.CampaignMap object at │ │
│ │ 0x000001DA914E66C8> │ │
│ │ self = <module.campaign.gems_farming.GemsFarming.load_campaign.<l… │ │
│ │ object at 0x000001DA915B9408> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\map\fleet.py:890 in │
│ map_control_init │
│ │
│ 888 │ │ Such as select strategy, calculate hp and level, init c │
│ map scan. │
│ 889 │ │ """ │
│ ❱ 890 │ │ self.update() │
│ 891 │ │ switched = self.handle_fleet_reverse() │
│ 892 │ │ if not switched: │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ self = <module.campaign.gems_farming.GemsFarming.load_campaign.<l… │ │
│ │ object at 0x000001DA915B9408> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\map\camera.py:298 in update │
│ │
│ 296 │ │ │ # _update_view() │
│ 297 │ │ │ try: │
│ ❱ 298 │ │ │ │ success = self._update_view() │
│ 299 │ │ │ │ if not success: │
│ 300 │ │ │ │ │ continue │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ allow_error = False │ │
│ │ camera = True │ │
│ │ error_confirm = Timer(limit=5.176/5, count=28/10) │ │
│ │ is_grid_center = <function │ │
│ │ Camera.update.<locals>.is_grid_center at │ │
│ │ 0x000001DA90C61708> │ │
│ │ is_still_prev = <function │ │
│ │ Camera.update.<locals>.is_still_prev at │ │
│ │ 0x000001DA90C61678> │ │
│ │ prev_center_offset = None │ │
│ │ self = <module.campaign.gems_farming.GemsFarming.lo… │ │
│ │ object at 0x000001DA915B9408> │ │
│ │ swipe_wait_timeout = Timer(limit=5.176/0.35, count=28/1) │ │
│ │ swiped = True │ │
│ │ wait_swipe = False │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\map\camera.py:207 in _update_view │
│ │
│ 205 │ │ │ │ raise GameNotRunningError │
│ 206 │ │ │ else: │
│ ❱ 207 │ │ │ │ raise e │
│ 208 │ │ │
│ 209 │ │ return True │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ self = <module.campaign.gems_farming.GemsFarming.load_campaign.<l… │ │
│ │ object at 0x000001DA915B9408> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\leidian\AzurLaneAutoScript\module\map\camera.py:120 in _update_view │
│ │
│ 118 │ │ │ │ │ and not self.is_in_strategy_air_strike(): │
│ 119 │ │ │ │ logger.warning('Image to detect is not in_map') │
│ ❱ 120 │ │ │ │ raise MapDetectionError('Image to detect is not │
│ 121 │ │ │ self.view.load(self.device.image) │
│ 122 │ │ except MapDetectionError as e: │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ self = <module.campaign.gems_farming.GemsFarming.load_campaign.<l… │ │
│ │ object at 0x000001DA915B9408> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
╰────────────────────────────────────────────────────────────────────────╯
MapDetectionError: Image to detect is not in_map
WARNING 10:55:52.950 │ Saving error: ./log/error/1789095352950
INFO 10:55:53.367 │ No provider specified, skip sending
截图
No response
还有别的吗?
No response
https://github.com/LmeSzinc/AzurLaneAutoScript/issues/5969 相同问题,关闭周回模式后恢复正常
同问题
今天下午三点半的更新过后该问题似乎已不再出现
46fe341db463aa82a3ee4dbdd3899042561dd7ec