-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
bug / 缺陷Something isn't workingSomething isn't working
Description
在提问之前...
- 我已经搜索了现有的 issues
- 我在提问题之前至少花费了 5 分钟来思考和准备
- 我已经阅读了 Wiki 中的 常见问题(FAQ)
- 我正在使用最新版的 Alas
描述你的问题
开启达成关卡成就后停止并选择100%通关+三星,并选择达成关卡成就后向前开荒,进行到D3后多次报错无法进行
如何复现
开启达成关卡成就后停止并选择100%通关+三星,并选择达成关卡成就后向前开荒,等待自动开荒时多次卡在D3后报错
预期行为
No response
相关 Logs
WARNING 23:35:33.624 │ Map walk out of step.
ERROR 23:35:36.334 │ MapWalkError: walk_out_of_step
╭────────────────── Traceback (most recent call last) ───────────────────╮
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\map\fl │
│ eet.py:501 in goto │
│ │
│ 499 │ │ │ │ │ │ self._goto(grids[0], expected='') │
│ 500 │ │ │ │ try: │
│ ❱ 501 │ │ │ │ │ self._goto(node, expected=expected if node │
│ 502 │ │ │ │ except MapWalkError: │
│ 503 │ │ │ │ │ logger.warning('Map walk error.') │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ expected = 'combat' │ │
│ │ location = (2, 7) │ │
│ │ node = (5, 6) │ │
│ │ node_ = (5, 6) │ │
│ │ nodes = [(7, 6), (5, 6), (3, 6), (2, 7)] │ │
│ │ nodes_ = [(5, 6)] │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object │ │
│ │ at 0x000001F28D384788> │ │
│ │ step = 2 │ │
│ │ step_optimize = True │ │
│ │ turning_optimize = False │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\map\fl │
│ eet.py:379 in _goto │
│ │
│ 377 │ │ │ │ │
│ 378 │ │ │ │ if self.handle_walk_out_of_step(): │
│ ❱ 379 │ │ │ │ │ raise MapWalkError('walk_out_of_step') │
│ 380 │ │ │ │ │
│ 381 │ │ │ │ # Arrive │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ ambushed_retry = Timer(limit=0.0/0.5, count=0/2) │ │
│ │ arrive_timer = Timer(limit=0.0/0.5, count=0/2) │ │
│ │ arrive_unexpected_timer = Timer(limit=0.0/1.5, count=0/6) │ │
│ │ arrived = False │ │
│ │ expected = '' │ │
│ │ extra = 0 │ │
│ │ grid = E6 │ │
│ │ is_portal = False │ │
│ │ location = (5, 6) │ │
│ │ may_submarine_icon = False │ │
│ │ mystery = False │ │
│ │ result = 'nothing' │ │
│ │ result_mystery = '' │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign │ │
│ │ object at 0x000001F28D384788> │ │
│ │ walk_timeout = Timer(limit=8.268/20, count=0/0) │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
╰────────────────────────────────────────────────────────────────────────╯
MapWalkError: walk_out_of_step
During handling of the above exception, another exception occurred:
╭────────────────── Traceback (most recent call last) ───────────────────╮
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\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 = 'event' │ │
│ │ e = MapWalkError('walk_out_of_step') │ │
│ │ self = <alas.AzurLaneAutoScript object at │ │
│ │ 0x000001F2BC829108> │ │
│ │ skip_first_screenshot = False │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\alas.py:367 │
│ in event │
│ │
│ 365 │ │ from module.campaign.run import CampaignRun │
│ 366 │ │ CampaignRun(config=self.config, device=self.device).run( │
│ ❱ 367 │ │ │ name=self.config.Campaign_Name, folder=self.config.C │
│ mode=self.config.Campaign_Mode) │
│ 368 │ │
│ 369 │ def event2(self): │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ CampaignRun = <class 'module.campaign.run.CampaignRun'> │ │
│ │ self = <alas.AzurLaneAutoScript object at │ │
│ │ 0x000001F2BC829108> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\campai │
│ gn\run.py:426 in run │
│ │
│ 424 │ │ │ self.device.click_record_clear() │
│ 425 │ │ │ try: │
│ ❱ 426 │ │ │ │ self.campaign.run() │
│ 427 │ │ │ except ScriptEnd as e: │
│ 428 │ │ │ │ logger.hr('Script end') │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ folder = 'event_20251218_cn' │ │
│ │ mode = 'normal' │ │
│ │ name = 'd3' │ │
│ │ self = <module.campaign.run.CampaignRun object at │ │
│ │ 0x000001F2FF970988> │ │
│ │ total = 0 │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\campai │
│ gn\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 ──────────────────────────────╮ │
│ │ _ = 4 │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\campai │
│ gn\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 = 3 │ │
│ │ result = False │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\base\d │
│ ecorator.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] │ │
│ │ func = <function CampaignBase.battle_function at │ │
│ │ 0x000001F28D6D7C18> │ │
│ │ kwargs = {} │ │
│ │ logger = <Logger alas (INFO)> │ │
│ │ name = 'battle_function' │ │
│ │ record = { │ │
│ │ │ 'options': {'MAP_CLEAR_ALL_THIS_TIME': True}, │ │
│ │ │ 'func': <function CampaignBase.battle_function at │ │
│ │ 0x000001F28D6D7CA8> │ │
│ │ } │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\campai │
│ gn\campaign_base.py:74 in battle_function │
│ │
│ 72 │ │ │ │ │ return True │
│ 73 │ │ │ │ self.clear_mechanism() │
│ ❱ 74 │ │ │ │ return self.battle_default() │
│ 75 │ │ else: │
│ 76 │ │ │ result = self.battle_boss() │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ remain = <module.map.map_grids.SelectedGrids object at │ │
│ │ 0x000001F2B5078948> │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\campai │
│ gn\campaign_base.py:15 in battle_default │
│ │
│ 13 │ │
│ 14 │ def battle_default(self): │
│ ❱ 15 │ │ if self.clear_enemy(): │
│ 16 │ │ │ return True │
│ 17 │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas │
│ maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\map\map.py:211 │
│ in clear_enemy │
│ │
│ 209 │ │ │ logger.hr('Clear enemy') │
│ 210 │ │ │ self.show_select_grids(grids, **kwargs) │
│ ❱ 211 │ │ │ self.clear_chosen_enemy(grids[0]) │
│ 212 │ │ │ return True │
│ 213 │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ grids = <module.map.map_grids.SelectedGrids object at │ │
│ │ 0x000001F2B50382C8> │ │
│ │ kwargs = {'strongest': True} │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ │ target = 'default_mode' │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas │
│ maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\map\map.py:31 │
│ in clear_chosen_enemy │
│ │
│ 29 │ │ if self.emotion.is_calculate and self.config.Campaign_Us │
│ 30 │ │ │ self.emotion.wait(fleet_index=self.fleet_current_ind │
│ ❱ 31 │ │ self.goto(grid, expected=expected) │
│ 32 │ │ │
│ 33 │ │ self.full_scan() │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ battle_count = 3 │ │
│ │ expected = 'combat' │ │
│ │ grid = C8 │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object at │ │
│ │ 0x000001F28D384788> │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\map\fl │
│ eet.py:508 in goto │
│ │
│ 506 │ │ │ │ │ nodes_ = self.map.find_path(node, step=1, t │
│ 507 │ │ │ │ │ for node_ in nodes_: │
│ ❱ 508 │ │ │ │ │ │ self._goto(node_, expected=expected if │
│ '') │
│ 509 │ │ else: │
│ 510 │ │ │ self._goto(location, expected=expected) │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ expected = 'combat' │ │
│ │ location = (2, 7) │ │
│ │ node = (5, 6) │ │
│ │ node_ = (5, 6) │ │
│ │ nodes = [(7, 6), (5, 6), (3, 6), (2, 7)] │ │
│ │ nodes_ = [(5, 6)] │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign object │ │
│ │ at 0x000001F28D384788> │ │
│ │ step = 2 │ │
│ │ step_optimize = True │ │
│ │ turning_optimize = False │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\alas maa\alas\AlasApp_0.4.7_fullcn\AzurLaneAutoScript\module\map\fl │
│ eet.py:379 in _goto │
│ │
│ 377 │ │ │ │ │
│ 378 │ │ │ │ if self.handle_walk_out_of_step(): │
│ ❱ 379 │ │ │ │ │ raise MapWalkError('walk_out_of_step') │
│ 380 │ │ │ │ │
│ 381 │ │ │ │ # Arrive │
│ │
│ ╭────────────────────────────── locals ──────────────────────────────╮ │
│ │ ambushed_retry = Timer(limit=0.0/0.5, count=0/2) │ │
│ │ arrive_checker = False │ │
│ │ arrive_predict = '' │ │
│ │ arrive_timer = Timer(limit=0.0/0.5, count=0/2) │ │
│ │ arrive_unexpected_timer = Timer(limit=0.0/1.5, count=0/6) │ │
│ │ arrived = False │ │
│ │ expected = '' │ │
│ │ extra = 0 │ │
│ │ grid = F4 │ │
│ │ is_portal = False │ │
│ │ location = (5, 6) │ │
│ │ may_submarine_icon = False │ │
│ │ mystery = False │ │
│ │ result = 'nothing' │ │
│ │ result_mystery = '' │ │
│ │ self = <campaign.event_20251218_cn.d3.Campaign │ │
│ │ object at 0x000001F28D384788> │ │
│ │ walk_timeout = Timer(limit=3.171/20, count=2/0) │ │
│ ╰────────────────────────────────────────────────────────────────────╯ │
╰────────────────────────────────────────────────────────────────────────╯
MapWalkError: walk_out_of_step
WARNING 23:35:36.575 │ Saving error: ./log/error/1766331336575
INFO 23:35:36.899 │ No provider specified, skip sending
截图
No response
还有别的吗?
No response
xlgamer2
Metadata
Metadata
Assignees
Labels
bug / 缺陷Something isn't workingSomething isn't working