From 0a2cb7e0e11e6684060abd07d4d6b2ddbc0f8f7e Mon Sep 17 00:00:00 2001 From: W1NDes Date: Mon, 18 Aug 2025 16:54:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(alas):=20=E6=B7=BB=E5=8A=A0GameDied?= =?UTF-8?q?=E7=9A=84=E9=87=8D=E5=90=AF=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alas.py | 14 ++++++++++++++ campaign/event_20250814_cn/ht1.py | 4 +++- campaign/event_20250814_cn/t1.py | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/alas.py b/alas.py index c747ba496..e0860b4d1 100644 --- a/alas.py +++ b/alas.py @@ -712,6 +712,20 @@ class AzurLaneAutoScript: content=f"<{self.config_name}> RequestHumanTakeover", ) exit(1) + except GameNotRunningError as e: + if str(e) == "Game died": + logger.warning("Game died when restarting") + self.is_first_task = False + continue + else: + logger.exception(e) + self.save_error_log() + handle_notify( + self.config.Error_OnePushConfig, + title=f"Alas <{self.config_name}> crashed", + content=f"<{self.config_name}> Exception occured", + ) + exit(1) except Exception as e: logger.exception(e) self.save_error_log() diff --git a/campaign/event_20250814_cn/ht1.py b/campaign/event_20250814_cn/ht1.py index f7fd51596..7a89e3098 100644 --- a/campaign/event_20250814_cn/ht1.py +++ b/campaign/event_20250814_cn/ht1.py @@ -73,7 +73,9 @@ class Config: MAP_SWIPE_MULTIPLY = (1.267, 1.290) MAP_SWIPE_MULTIPLY_MINITOUCH = (1.225, 1.248) MAP_SWIPE_MULTIPLY_MAATOUCH = (1.189, 1.211) - + STAGE_INCREASE_CUSTOM = [ + 'HT1 > HT2 > HT3 > HT4 > HT5 > HT6', + ] class Campaign(CampaignBase): MAP = MAP diff --git a/campaign/event_20250814_cn/t1.py b/campaign/event_20250814_cn/t1.py index 19470fc9e..ec7118672 100644 --- a/campaign/event_20250814_cn/t1.py +++ b/campaign/event_20250814_cn/t1.py @@ -73,7 +73,9 @@ class Config: MAP_SWIPE_MULTIPLY = (1.267, 1.290) MAP_SWIPE_MULTIPLY_MINITOUCH = (1.225, 1.248) MAP_SWIPE_MULTIPLY_MAATOUCH = (1.189, 1.211) - + STAGE_INCREASE_CUSTOM = [ + 'HT1 > HT2 > HT3 > HT4 > HT5 > HT6', + ] class Campaign(CampaignBase): MAP = MAP