Closed zly7 closed 1 month ago
判断逻辑在conbat.py这里
def dungeon_run(
self, dungeon: DungeonList, team: int = None, wave_limit: int = 0, support_character: str = None):
"""
Run dungeon, and handle daily support
Args:
dungeon:
team: 1 to 6.
wave_limit: Limit combat runs, 0 means no limit.
support_character: Support character name
Returns:
int: Run count
Pages:
in: Any
out: page_main
"""
require = self.require_compulsory_support()
if require and self.support_once:
logger.info('Run once with support')
count = self._dungeon_run(dungeon=dungeon, team=team, wave_limit=1,
support_character=self.config.DungeonSupport_Character)
logger.info('Run the rest waves without compulsory support')
if wave_limit >= 2 or wave_limit == 0:
# Already at page_name with DUNGEON_COMBAT_INTERACT
if wave_limit >= 2:
wave_limit -= 1
count += self._dungeon_run(dungeon=dungeon, team=team, wave_limit=wave_limit,
support_character=support_character, skip_ui_switch=True)
return count
这里不知道为什么wave_limit要设计成1
══════════════════════════════════ DUNGEON RUN ══════════════════════════════════
INFO 11:08:16.954 │ DUNGEON RUN
INFO 11:08:16.956 │ Dungeon: DungeonList(Stagnant_Shadow_Gloam), team=1,
wave_limit=0, support_character=None
INFO 11:08:16.957 │ Combat enter from map
INFO 11:09:15.964 │ Function calls:
<string> L1 <module>
spawn.py L116 spawn_main()
spawn.py L129 _main()
process.py L314 _bootstrap()
process.py L108 run()
process_manager.py L152 run_process()
alas.py L274 loop()
alas.py L79 run()
src.py L31 dungeon()
dungeon.py L340 run()
dungeon.py L208 dungeon_run()
dungeon.py L64 _dungeon_run()
interact.py L33 combat_enter_from_map()
device.py L150 screenshot()
device.py L202 stuck_record_check()
device.py L46 show_function_call()
WARNING 11:09:15.966 │ Wait too long
WARNING 11:09:15.967 │ Waiting for {'GET_LIGHT_CONE', 'COMBAT_PREPARE',
'COMBAT_AGAIN', 'COMBAT_TEAM_PREPARE', 'REWARD_ENTER',
'MAIN_GOTO_CHARACTER', 'DUNGEON_COMBAT_INTERACT'}
INFO 11:09:15.988 │ [Package_name] com.miHoYo.hkrpg
ERROR 11:09:15.989 │ GameStuckError: Wait too long
WARNING 11:09:15.992 │ Saving error: ./log/error/1728011355992
WARNING 11:09:16.452 │ Game stuck, com.miHoYo.hkrpg will be restarted in 10
seconds
WARNING 11:09:16.453 │ If you are playing by hand, please stop Src
INFO 11:09:16.454 │ Task call: Restart
INFO 11:09:16.457 │ Bind task ['Alas', 'Dungeon']
INFO 11:09:16.458 │ Save config ./config\src.json,
Restart.Scheduler.NextRun=datetime.datetime(2024, 10, 4, 11, 9, 16),
Restart.Scheduler.Enable=True
INFO 11:09:26.511 │ Scheduler: End task `Dungeon`
之后的补充报错
我刷取灵砂材料,遇到同样的问题
需要解锁副本,只有10体力本能选择战斗轮次,突破材料自然是CombatMultiWave=False
感谢!emmm,可能我想问的是为啥不能打完一次马上继续打第二次直到体力耗完或者材料符合就打之后的材料?而不是返回地图然后结束触发异常,这感觉有点奇怪
任务是联动的,游戏每日需要你使用一次支援
在提问之前...
描述你的问题
每日副本只进行了一次作战,没办法连续作战
如何复现
预期行为
打完飞霄晋阶继续打,但是现在是打完一次一杯酪的时代 会返回到主界面
相关 Logs
截图
还有别的吗?
研究了一会发现是这里不知道为啥是False [CombatMultiWave] False 这个东西在哪里设置啊,我打开config那个文件没找到CombatMultiWave这个设置