LmeSzinc / AzurLaneAutoScript

Azur Lane bot (CN/EN/JP/TW) 碧蓝航线脚本 | 无缝委托科研,全自动大世界
https://alas.azurlane.cloud
GNU General Public License v3.0
6.77k stars 800 forks source link

Mob Fleet sometimes gets used for boss battle, potentially causing loss (which causes program to do nothing) #237

Closed Vonr closed 3 years ago

Vonr commented 3 years ago

Describe the bug Mob Fleet sometimes gets used for boss battle, potentially causing loss (which causes program to do nothing).

To Reproduce Steps to reproduce the behavior:

  1. Setup latest version of ALAS
  2. Use my settings
  3. Run 3-4 using campaign mode (probably works on any map but didn't test)
  4. Eventually, the bug should occur where the incorrect (mob) fleet is used for the boss battle.

Expected behavior Boss fleet used for boss battle. Mob fleet only used for normal, non-boss battles

Config

[Command]
command = Setting

[Setting]
enable_exception = yes
enable_stop_condition = no
enable_fast_forward = no
if_count_greater_than = 0
if_time_reach = 0
if_oil_lower_than = 0
if_map_reach = no
if_get_ship = no
if_trigger_emotion_control = no
if_reach_lv120 = no
if_dock_full = no
enable_fleet_control = yes
enable_map_fleet_lock = no
fleet_index_1 = 2
fleet_formation_1 = formation_2
fleet_auto_mode_1 = combat_auto
fleet_step_1 = 3
fleet_index_2 = 1
fleet_formation_2 = formation_1
fleet_auto_mode_2 = combat_auto
fleet_step_2 = 3
fleet_index_3 = 2
fleet_formation_3 = formation_2
fleet_auto_mode_3 = combat_auto
fleet_step_3 = 3
fleet_index_4 = do_not_use
submarine_mode = when_boss_combat
enable_emotion_reduce = yes
ignore_low_emotion_warn = no
emotion_recover_1 = not_in_dormitory
emotion_control_1 = avoid_yellow_face
hole_fleet_married_1 = no
emotion_recover_2 = not_in_dormitory
emotion_control_2 = avoid_yellow_face
hole_fleet_married_2 = no
emotion_recover_3 = dormitory_floor_1
emotion_control_3 = avoid_yellow_face
hole_fleet_married_3 = no
enable_hp_balance = yes
enable_low_hp_withdraw = yes
scout_hp_difference_threshold = 0.2
emergency_repair_single_threshold = -1
emergency_repair_hole_threshold = 0.6
scout_hp_weights = 1000,1000,1000
low_hp_withdraw_threshold = 0.2
enable_retirement = yes
retire_method = one_click_retire
retire_amount = retire_all
enhance_favourite = no
enhance_order_string = 
retire_n = yes
retire_r = no
retire_sr = no
retire_ssr = no
enable_drop_screenshot = yes
drop_screenshot_folder = ./screenshots
command = setting

[Reward]
command = reward
enable_reward = yes
reward_interval = 10, 40
reward_stop_game_during_interval = no
enable_daily_reward = no
enable_oil_reward = yes
enable_coin_reward = yes
enable_mission_reward = yes
enable_commission_reward = yes
enable_tactical_reward = yes
enable_dorm_reward = yes
enable_dorm_feed = yes
dorm_feed_interval = 278, 480
dorm_collect_interval = 60, 180
dorm_feed_filter = 20000 > 10000 > 5000 > 3000 > 2000 > 1000
commission_time_limit = 0
duration_shorter_than_2 = 11
duration_longer_than_6 = -11
expire_shorter_than_2 = 11
expire_longer_than_6 = -11
daily_comm = 120
major_comm = 0
extra_drill = 20
extra_part = 60
extra_cube = 80
extra_oil = 90
extra_book = 70
urgent_drill = 45
urgent_part = 95
urgent_cube = 165
urgent_book = 95
urgent_box = 195
urgent_gem = 205
urgent_ship = 155
tactical_book_tier_max = 3
tactical_book_tier_min = 2
tactical_exp_first = yes
tactical_if_no_book_satisfied = cancel_tactical
enable_research_reward = no
research_use_cube = no
research_use_coin = yes
research_use_part = yes
research_filter_preset = series_3_than_2
research_filter_string = 
buy_meowfficer = 0
enable_data_key_collect = no

[Emulator]
command = emulator
serial = 127.0.0.1:5555
package_name = com.YoStarEN.AzurLane
enable_error_log_and_screenshot_save = yes
enable_perspective_error_image_save = no
device_screenshot_method = ADB
device_control_method = uiautomator2
combat_screenshot_interval = 1.
enable_update_check = no
update_method = api
update_proxy = 
github_token = 

[Daily]
enable_daily_mission = yes
enable_hard_campaign = no
enable_exercise = no
enable_raid_daily = no
enable_event_ab = no
enable_event_sp = no
event_name_ab = event_20201029_cn
event_ab_chapter = chapter_ab
event_sp_mob_fleet = 1
daily_mission_1 = daily_gun
daily_mission_2 = index_1
daily_mission_4 = index_1
daily_mission_5 = index_1
daily_fleet = 1
daily_equipment = 0
hard_campaign = 10-4
hard_fleet = 1
hard_equipment = 0
exercise_choose_mode = max_exp
exercise_preserve = 0
exercise_try = 1
exercise_hp_threshold = 0.40
exercise_low_hp_confirm = 1.0
exercise_equipment = 0
raid_daily_name = raid_20200624
raid_hard = yes
raid_normal = yes
raid_easy = yes
command = daily

[Main]
command = main
main_stage = 3-4
campaign_mode = normal

[Event]
command = event
event_stage = sp2
event_name = event_20201029_cn

[Sos]
sos_fleets_chapter_3 = 4, 0
sos_fleets_chapter_4 = 4, 0
sos_fleets_chapter_5 = 4, 0
sos_fleets_chapter_6 = 4, 0
sos_fleets_chapter_7 = 4, 6
sos_fleets_chapter_8 = 4, 6
sos_fleets_chapter_9 = 5, 6, 1
sos_fleets_chapter_10 = 5, 6, 1

[Raid]
raid_name = raid_20200624
raid_mode = hard
raid_use_ticket = no

[Semi_auto]
command = semi_auto
enable_semi_map_preparation = yes
enable_semi_story_skip = yes

[C11_affinity_farming]
affinity_battle_count = 200

[C72_mystery_farming]
command = c72_mystery_farming
boss_fleet_step_on_a3 = yes

[C122_leveling]
command = c122_leveling
s3_enemy_tolerance = 0

[C124_leveling]
non_s3_enemy_enter_tolerance = 1
non_s3_enemy_withdraw_tolerance = 0
ammo_pick_up_124 = 3
command = c124_leveling

[EmotionRecord]
fleet_1_emotion = 83
fleet_1_savetime = 2020-11-07_15:12:46
fleet_2_emotion = 119
fleet_2_savetime = 2020-11-07_15:12:46
fleet_3_emotion = 150
fleet_3_savetime = 2020-11-07_15:12:46

[DailyRecord]
daily = 2020-01-01_00:00:00
hard = 2020-01-01_00:00:00
exercise = 2020-01-01_00:00:00
raid = 2020-01-01_00:00:00
exercise_count = 0

[RewardRecord]
meowfficer = 2020-01-01_00:00:00
dorm_feed = 2020-11-07_12:33:03
dorm_collect = 2020-11-07_15:00:30
data_key = 2020-01-01_00:00:00

[EventABRecord]
a1 = 2020-01-01_00:00:00
a2 = 2020-01-01_00:00:00
a3 = 2020-01-01_00:00:00
a4 = 2020-01-01_00:00:00
b1 = 2020-01-01_00:00:00
b2 = 2020-01-01_00:00:00
b3 = 2020-01-01_00:00:00
b4 = 2020-01-01_00:00:00
c1 = 2020-01-01_00:00:00
c2 = 2020-01-01_00:00:00
c3 = 2020-01-01_00:00:00
c4 = 2020-01-01_00:00:00
d1 = 2020-01-01_00:00:00
d2 = 2020-01-01_00:00:00
d3 = 2020-01-01_00:00:00
d4 = 2020-01-01_00:00:00
sp = 2020-01-01_00:00:00
t1 = 2020-01-01_00:00:00
t2 = 2020-01-01_00:00:00
t3 = 2020-01-01_00:00:00
t4 = 2020-01-01_00:00:00
t5 = 2020-01-01_00:00:00
t6 = 2020-01-01_00:00:00
ht1 = 2020-01-01_00:00:00
ht2 = 2020-01-01_00:00:00
ht3 = 2020-01-01_00:00:00
ht4 = 2020-01-01_00:00:00
ht5 = 2020-01-01_00:00:00
ht6 = 2020-01-01_00:00:00

Screenshots image image image

Log Not applicable.

LmeSzinc commented 3 years ago

Fixed in #243 Added a retry mechanism when clicking fleet switch.