autoStart INFO

This commit is contained in:
W1NDes 2024-12-10 07:49:58 +08:00
parent 98d5066ea8
commit 554a9478ae

View File

@ -123,8 +123,10 @@ class AzurLaneAutoScript:
title=f"Alas <{self.config_name}> auto restarted",
content=f"Command \"{command}\" failed because GamePageUnknownError, but alas auto restarted",
)
self.config.task_call('Restart')
self.GameRestartBecauseErrorTimes += 1
logger.critical(f'left Restart Time: {self.AutoRestart_AttemptsToRestart-self.GameRestartBecauseErrorTimes}')
self.config.task_call('Restart')
self.device.sleep(10)
return False
else:
@ -163,6 +165,7 @@ class AzurLaneAutoScript:
)
self.config.task_call('Restart')
self.GameRestartBecauseErrorTimes += 1
logger.critical(f'left Restart Time: {self.AutoRestart_AttemptsToRestart-self.GameRestartBecauseErrorTimes}')
self.device.sleep(10)
return False
else:
@ -625,6 +628,7 @@ class AzurLaneAutoScript:
)
self.config.task_call('Restart')
self.GameRestartBecauseErrorTimes += 1
logger.critical(f'left Restart Time: {self.AutoRestart_AttemptsToRestart-self.GameRestartBecauseErrorTimes}')
self.device.sleep(10)
else:
self.GameRestartBecauseErrorTimes = 0