1
0
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:
whoamikyo
2021-02-13 00:53:19 -03:00
parent df15fc4b57
commit e72605ba95
6 changed files with 58 additions and 36 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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