mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 16:47:03 +08:00
Fix: fixed bluestacks hyper-v multi-instance support
This commit is contained in:
@@ -141,7 +141,7 @@ class CampaignBase(CampaignUI, Map, AutoSearchCombat):
|
||||
self.auto_search_execute_a_battle()
|
||||
except CampaignEnd:
|
||||
logger.hr('Campaign end')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Campaign end')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Map cleared')
|
||||
return True
|
||||
|
||||
# Exception
|
||||
|
||||
@@ -86,6 +86,7 @@ class LoginHandler(Combat):
|
||||
continue
|
||||
|
||||
logger.warning('Login failed more than 3')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Login failed more than 3')
|
||||
raise ScriptError('Login failed more than 3')
|
||||
|
||||
def app_restart(self):
|
||||
@@ -127,6 +128,7 @@ class LoginHandler(Combat):
|
||||
def handle_game_stuck(self):
|
||||
logger.warning(f'{self.config.PACKAGE_NAME} will be restart in 10 seconds')
|
||||
logger.warning('If you are playing by hand, please stop Alas')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Game stucked, will be restart in 10 seconds')
|
||||
self.device.sleep(10)
|
||||
|
||||
self.app_restart()
|
||||
|
||||
@@ -269,6 +269,7 @@ class Fleet(Camera, AmbushHandler):
|
||||
continue
|
||||
|
||||
if self.handle_walk_out_of_step():
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Walk out of step error, please check GUI.')
|
||||
raise MapWalkError('walk_out_of_step')
|
||||
|
||||
# Arrive
|
||||
|
||||
Reference in New Issue
Block a user