We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这个bug是概率触发的(也就是说不是每次打14-4都会触发),但我目前不清楚如何触发,我都是挂着,好久不来看,然后一来看就发现alas报错然后停止了。卡在下面的界面。已经多次触发这种情况了。
No response
──────────────────────────────────── BATTLE_0 ───────────────────────────────────── INFO 19:12:45.230 │ BATTLE_0 INFO 19:12:45.231 │ Using function: battle_0 INFO 19:12:45.232 │ Pick up light house on A9 INFO 19:12:45.233 │ Fleet set to 1 INFO 19:12:45.235 │ Fleet: 1, fleet_current_index: 1 INFO 19:12:45.236 │ In sight: A9 INFO 19:12:45.237 │ Focus to: D7 INFO 19:12:45.238 │ Map swipe: (-4, 3) INFO 19:12:45.240 │ Swipe ( 634, 523) -> (1124, 263) INFO 19:12:45.716 │ [prev.center_offset] [0.49808786 0.4931143 ] INFO 19:12:45.868 │ tile_center: 0.955 (good match) INFO 19:12:45.875 │ 0.060s edge_lines: 1 hori, 1 vert INFO 19:12:45.877 │ Edges: /_ homo_loca: ( 18, 74) INFO 19:12:45.882 │ center_loca: (1, 3) INFO 19:12:45.884 │ [view.center_offset] [0.59808776 0.41454275] INFO 19:12:45.897 │ Map swipe predict: None (0.013s, no match) INFO 19:12:45.898 │ Camera: E5 INFO 19:12:45.899 │ camera_corrected: E5 -> B8 INFO 19:12:45.900 │ Camera: B8 INFO 19:12:45.932 │ 0.031s predict: 31 INFO 19:12:45.934 │ -- -- -- -- -- -- -- INFO 19:12:45.934 │ -- -- -- -- -- -- .. INFO 19:12:45.935 │ -- -- -- -- -- -- .. INFO 19:12:45.936 │ -- -- -- -- -- -- .. INFO 19:12:45.937 │ -- -- -- -- -- -- .. INFO 19:12:45.937 │ Map swipe: (2, -1) INFO 19:12:45.939 │ Swipe ( 729, 496) -> ( 495, 576) INFO 19:12:46.242 │ [prev.center_offset] [0.59808776 0.41454275] INFO 19:12:46.707 │ tile_center: 0.942 (good match) INFO 19:12:46.716 │ 0.041s edge_lines: 1 hori, 1 vert INFO 19:12:46.717 │ Edges: /_ homo_loca: ( 92, 102) INFO 19:12:46.721 │ center_loca: (2, 3) INFO 19:12:46.722 │ [view.center_offset] [0.06951656 0.2145428 ] INFO 19:12:46.732 │ Map swipe predict: None (0.009s, no match) INFO 19:12:46.734 │ Camera: D7 INFO 19:12:46.736 │ camera_corrected: D7 -> C8 INFO 19:12:46.737 │ Camera: C8 INFO 19:12:46.766 │ 0.029s predict: 33 INFO 19:12:46.766 │ -- -- -- -- -- -- -- INFO 19:12:46.768 │ -- -- -- -- -- -- -- INFO 19:12:46.769 │ -- -- -- -- -- -- -- INFO 19:12:46.770 │ -- -- -- -- -- -- .. INFO 19:12:46.770 │ -- -- -- -- -- -- .. INFO 19:12:46.771 │ Map swipe: (1, -1) INFO 19:12:46.773 │ Swipe ( 688, 506) -> ( 511, 569) INFO 19:12:47.046 │ [prev.center_offset] [0.06951656 0.2145428 ] INFO 19:12:47.206 │ tile_center: 0.955 (good match) INFO 19:12:47.215 │ 0.061s edge_lines: 1 hori, 1 vert INFO 19:12:47.216 │ Edges: /_ homo_loca: (128, 84) INFO 19:12:47.220 │ center_loca: (3, 3) INFO 19:12:47.221 │ [view.center_offset] [0.81237354 0.34311402] INFO 19:12:47.369 │ tile_center: 0.955 (good match) INFO 19:12:47.378 │ 0.045s edge_lines: 1 hori, 1 vert INFO 19:12:47.380 │ Edges: /_ homo_loca: (128, 84) INFO 19:12:47.384 │ center_loca: (3, 3) INFO 19:12:47.387 │ [view.center_offset] [0.81237354 0.34311402] INFO 19:12:47.531 │ tile_center: 0.955 (good match) INFO 19:12:47.547 │ 0.054s edge_lines: 1 hori, 1 vert INFO 19:12:47.549 │ Edges: /_ homo_loca: (128, 84) INFO 19:12:47.554 │ center_loca: (3, 3) INFO 19:12:47.554 │ [view.center_offset] [0.81237354 0.34311402] INFO 19:12:47.567 │ Map swipe predict: None (0.013s, no match) INFO 19:12:47.569 │ Camera: D7 INFO 19:12:47.570 │ Camera: D7 INFO 19:12:47.613 │ 0.042s predict: 48 INFO 19:12:47.614 │ -- -- -- -- -- -- -- -- -- INFO 19:12:47.615 │ -- -- -- -- -- -- -- -- -- INFO 19:12:47.616 │ -- -- -- -- -- -- -- -- .. INFO 19:12:47.617 │ -- -- -- -- -- -- -- -- .. INFO 19:12:47.618 │ .. -- -- -- -- -- -- -- .. INFO 19:12:47.619 │ .. -- -- -- -- -- -- -- .. INFO 19:12:47.620 │ Map swipe: (0, 0) INFO 19:12:47.622 │ Swipe ( 733, 283) -> ( 772, 269) INFO 19:12:47.816 │ [prev.center_offset] [0.81237354 0.34311402] INFO 19:12:48.686 │ tile_center: 0.955 (good match) INFO 19:12:48.694 │ 0.046s edge_lines: 1 hori, 1 vert INFO 19:12:48.696 │ Edges: /_ homo_loca: (128, 84) INFO 19:12:48.700 │ center_loca: (3, 3) INFO 19:12:48.701 │ [view.center_offset] [0.81237354 0.34311402] INFO 19:12:48.702 │ Camera: D7 INFO 19:12:48.745 │ 0.041s predict: 48 INFO 19:12:48.747 │ -- -- -- -- -- -- -- -- -- INFO 19:12:48.748 │ -- -- -- -- -- -- -- -- -- INFO 19:12:48.749 │ -- -- -- -- -- -- -- -- .. INFO 19:12:48.749 │ -- -- -- -- -- -- -- -- .. INFO 19:12:48.750 │ .. -- -- -- -- -- -- -- .. INFO 19:12:48.750 │ .. -- -- -- -- -- -- -- .. INFO 19:12:48.751 │ Map swipe: (0, 0) INFO 19:12:48.754 │ Swipe ( 746, 290) -> ( 785, 276) INFO 19:12:48.947 │ [prev.center_offset] [0.81237354 0.34311402] INFO 19:12:49.086 │ tile_center: 0.913 (good match) INFO 19:12:49.095 │ 0.045s edge_lines: 1 hori, 1 vert INFO 19:12:49.097 │ Edges: /_ homo_loca: ( 32, 61) INFO 19:12:49.100 │ center_loca: (3, 3) INFO 19:12:49.102 │ [view.center_offset] [0.49808779 0.50739988] INFO 19:12:49.103 │ Camera: D7 INFO 19:12:49.147 │ 0.043s predict: 48 INFO 19:12:49.149 │ -- -- -- 3E -- -- -- -- -- INFO 19:12:49.150 │ -- -- -- -- -- -- -- -- .. INFO 19:12:49.150 │ -- -- -- -- -- -- -- -- .. INFO 19:12:49.151 │ -- -- -- -- -- -- -- -- .. INFO 19:12:49.152 │ -- -- -- -- -- -- -- -- .. INFO 19:12:49.152 │ -- -- -- -- -- -- -- .. .. INFO 19:12:49.153 │ Map swipe: (0, 0) INFO 19:12:49.154 │ Global A9 (camera=D7) -> Local A6 (center=D4) INFO 19:12:49.156 │ Click ( 233, 571) @ A6 INFO 19:12:59.948 │ Arrive A9 (is_fleet) INFO 19:13:00.555 │ Arrive A9 confirm. Result: nothing. Expected: ERROR 19:13:00.557 │ KeyError: () ╭────────────────── Traceback (most recent call last) ───────────────────╮ │ │ │ D:\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 = 'main2' │ │ │ │ e = KeyError(()) │ │ │ │ self = <alas.AzurLaneAutoScript object at │ │ │ │ 0x00000164716A77C8> │ │ │ │ skip_first_screenshot = False │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ D:\AzurLaneAutoScript\alas.py:349 in main2 │ │ │ │ 347 │ │ from module.campaign.run import CampaignRun │ │ 348 │ │ CampaignRun(config=self.config, device=self.device).run( │ │ ❱ 349 │ │ │ name=self.config.Campaign_Name, folder=self.config.C │ │ mode=self.config.Campaign_Mode) │ │ 350 │ │ │ 351 │ def main3(self): │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ CampaignRun = <class 'module.campaign.run.CampaignRun'> │ │ │ │ self = <alas.AzurLaneAutoScript object at │ │ │ │ 0x00000164716A77C8> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\campaign\run.py:394 in run │ │ │ │ 392 │ │ │ self.device.click_record_clear() │ │ 393 │ │ │ try: │ │ ❱ 394 │ │ │ │ self.campaign.run() │ │ 395 │ │ │ except ScriptEnd as e: │ │ 396 │ │ │ │ logger.hr('Script end') │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ folder = 'campaign_main' │ │ │ │ mode = 'normal' │ │ │ │ name = 'campaign_14_4' │ │ │ │ self = <module.campaign.run.CampaignRun object at │ │ │ │ 0x000001643895B9C8> │ │ │ │ total = 0 │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\campaign\campaign_base.py:141 in run │ │ │ │ 139 │ │ │ try: │ │ 140 │ │ │ │ if not self.map_is_auto_search: │ │ ❱ 141 │ │ │ │ │ self.execute_a_battle() │ │ 142 │ │ │ │ else: │ │ 143 │ │ │ │ │ self.auto_search_execute_a_battle() │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ _ = 0 │ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at │ │ │ │ 0x000001643A74AB08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\campaign\campaign_base.py:100 in │ │ execute_a_battle │ │ │ │ 98 │ │ for _ in range(10): │ │ 99 │ │ │ try: │ │ ❱ 100 │ │ │ │ result = self.battle_function() │ │ 101 │ │ │ │ break │ │ 102 │ │ │ except MapEnemyMoved: │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ _ = 0 │ │ │ │ prev = 0 │ │ │ │ result = False │ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at │ │ │ │ 0x000001643A74AB08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\base\decorator.py:70 in wrapper │ │ │ │ 68 │ │ │ │ │ │ continue │ │ 69 │ │ │ │ │ │ │ ❱ 70 │ │ │ │ │ return record['func'](self, *args, **kwargs) │ │ 71 │ │ │ │ │ │ 72 │ │ │ │ logger.warning(f'No option fits for {name}, usin │ │ func.') │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ args = () │ │ │ │ cls = <class 'module.base.decorator.Config'> │ │ │ │ flag = [True, True] │ │ │ │ func = <function CampaignBase.battle_function at │ │ │ │ 0x0000016439FF70D8> │ │ │ │ kwargs = {} │ │ │ │ logger = <Logger alas (INFO)> │ │ │ │ name = 'battle_function' │ │ │ │ record = { │ │ │ │ │ 'options': { │ │ │ │ │ │ 'MAP_CLEAR_ALL_THIS_TIME': False, │ │ │ │ │ │ 'POOR_MAP_DATA': False │ │ │ │ │ }, │ │ │ │ │ 'func': <function CampaignBase.battle_function at │ │ │ │ 0x0000016439FF70D8> │ │ │ │ } │ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at │ │ │ │ 0x000001643A74AB08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\campaign\campaign_base.py:90 in │ │ battle_function │ │ │ │ 88 │ │ func = self.__getattribute__(func) │ │ 89 │ │ │ │ ❱ 90 │ │ result = func() │ │ 91 │ │ │ │ 92 │ │ return result │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ extra_battle = 0 │ │ │ │ func = <bound method Campaign.battle_0 of │ │ │ │ <campaign.campaign_main.campaign_14_4.Campaign │ │ │ │ object at 0x000001643A74AB08>> │ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign │ │ │ │ object at 0x000001643A74AB08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\campaign\campaign_main\campaign_14_4.py:115 in │ │ battle_0 │ │ │ │ 113 │ │ │ 114 │ def battle_0(self): │ │ ❱ 115 │ │ self.pick_up_light_house(A9) │ │ 116 │ │ │ │ 117 │ │ if self.clear_roadblocks([road_A8, road_H9], weakest=Fal │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at │ │ │ │ 0x000001643A74AB08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\campaign\campaign_main\campaign_14_base.py:68 in │ │ pick_up_light_house │ │ │ │ 66 │ │ elif grid.is_accessible: │ │ 67 │ │ │ logger.info(f'Pick up light house on {grid}') │ │ ❱ 68 │ │ │ self.goto(grid) │ │ 69 │ │ │ self.picked_light_house.append(grid) │ │ 70 │ │ │ self.ensure_no_info_bar() │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ grid = A9 │ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at │ │ │ │ 0x000001643A74AB08> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\map\fleet.py:510 in goto │ │ │ │ 508 │ │ │ │ │ │ self._goto(node_, expected=expected if │ │ '') │ │ 509 │ │ else: │ │ ❱ 510 │ │ │ self._goto(location, expected=expected) │ │ 511 │ │ │ 512 │ def find_path_initial(self): │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ expected = '' │ │ │ │ location = (0, 8) │ │ │ │ self = <campaign.campaign_main.campaign_14_4.Campaign │ │ │ │ object at 0x000001643A74AB08> │ │ │ │ step_optimize = False │ │ │ │ turning_optimize = False │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\map\fleet.py:446 in _goto │ │ │ │ 444 │ │ │ │ break │ │ 445 │ │ │ │ ❱ 446 │ │ self.map[self.fleet_current].is_fleet = False │ │ 447 │ │ self.map[location].wipe_out() │ │ 448 │ │ self.map[location].is_fleet = True │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ ambushed_retry = Timer(limit=0.0/0.5, count=2/2) │ │ │ │ arrive_checker = True │ │ │ │ arrive_predict = '(is_fleet)' │ │ │ │ arrive_timer = Timer(limit=0.613/0.5, count=3/2) │ │ │ │ arrive_unexpected_timer = Timer(limit=0.613/1.5, count=0/6) │ │ │ │ arrived = True │ │ │ │ expected = '' │ │ │ │ extra = 0 │ │ │ │ grid = A6 │ │ │ │ is_portal = False │ │ │ │ location = (0, 8) │ │ │ │ may_submarine_icon = False │ │ │ │ mystery = False │ │ │ │ result = 'nothing' │ │ │ │ result_mystery = '' │ │ │ │ self = <campaign.campaign_main.campaign_14_4.C… │ │ │ │ object at 0x000001643A74AB08> │ │ │ │ walk_timeout = Timer(limit=11.355/20, count=62/0) │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\AzurLaneAutoScript\module\map\map_base.py:50 in __getitem__ │ │ │ │ 48 │ │ │ GridInfo: │ │ 49 │ │ """ │ │ ❱ 50 │ │ return self.grids[tuple(item)] │ │ 51 │ │ │ 52 │ def __contains__(self, item): │ │ │ │ ╭────────────────────────────── locals ──────────────────────────────╮ │ │ │ item = () │ │ │ │ self = <module.map.map_base.CampaignMap object at │ │ │ │ 0x000001643A1C1608> │ │ │ ╰────────────────────────────────────────────────────────────────────╯ │ ╰────────────────────────────────────────────────────────────────────────╯ KeyError: () WARNING 19:13:00.891 │ Saving error: ./log/error/1735038780891 INFO 19:13:01.364 │ No provider specified, skip sending
log.txt
The text was updated successfully, but these errors were encountered:
上传 ./log/error/1735038780891
Sorry, something went wrong.
No branches or pull requests
在提问之前...
描述你的问题
这个bug是概率触发的(也就是说不是每次打14-4都会触发),但我目前不清楚如何触发,我都是挂着,好久不来看,然后一来看就发现alas报错然后停止了。卡在下面的界面。已经多次触发这种情况了。
如何复现
预期行为
No response
相关 Logs
截图
log.txt
还有别的吗?
No response
The text was updated successfully, but these errors were encountered: