AzurLaneAutoScript
AzurLaneAutoScript copied to clipboard
演习策略为 保留5次直到周五18点 时到时限后未清空
在提问之前...
- [X] 我已经搜索了现有的 issues
- [X] 我在提问题之前至少花费了 5 分钟来思考和准备
- [X] 我已经阅读了 Wiki 中的 常见问题(FAQ)
- [X] 我正在使用最新版的 Alas
描述你的问题
选择演习策略为保留5次到周五下午18点,但周六24点后未清空,仍保留5次
如何复现
在周五18-24人为不清空,如剩5次后关掉alas,周六0点后再打开,在周六0点后不会清空
预期行为
在周五18点后任何时段都清空
相关 Logs
INFO 01:18:22.186 │ Scheduler: Start task `Exercise`
═══════════════════════════════════════════════════════════════════════════════════
EXERCISE
═══════════════════════════════════════════════════════════════════════════════════
INFO 01:18:22.188 │ Reuse forward: ForwardItem(serial='127.0.0.1:62001',
local='tcp:20598', remote='tcp:53516')
INFO 01:18:22.362 │ [Screen_size] 1280x720
INFO 01:18:22.411 │ <<< UI ENSURE >>>
INFO 01:18:22.412 │ UI get current page
INFO 01:18:22.423 │ [UI] page_main
INFO 01:18:22.424 │ Goto page_exercise
INFO 01:18:22.425 │ <<< UI GOTO PAGE_EXERCISE >>>
INFO 01:18:22.432 │ Page switch: page_main -> page_campaign_menu
INFO 01:18:22.433 │ Click (1079, 365) @ MAIN_GOTO_CAMPAIGN
INFO 01:18:22.433 │ <<< MINITOUCH INIT >>>
INFO 01:18:22.462 │ [Device Orientation] 0 (Normal)
INFO 01:18:22.463 │ Reuse forward: ForwardItem(serial='127.0.0.1:62001',
local='tcp:20997', remote='localabstract:minitouch')
INFO 01:18:22.475 │ v 1
INFO 01:18:22.476 │ ^ 2 1280 720 0
INFO 01:18:22.477 │ $ 3310
INFO 01:18:22.477 │ minitouch running on port: 20997, pid: 3310
INFO 01:18:22.478 │ max_contact: 2; max_x: 1280; max_y: 720; max_pressure: 0
INFO 01:18:23.318 │ Page switch: page_campaign_menu -> page_exercise
INFO 01:18:23.319 │ Click (1074, 605) @ CAMPAIGN_MENU_GOTO_EXERCISE
INFO 01:18:24.214 │ Page arrive: page_exercise
INFO 01:18:24.215 │ [Change_opponent_count] 0
INFO 01:18:24.216 │ [Exercise_ExerciseStrategy] fri18
INFO 01:18:24.226 │ Loading OCR model: ./bin/cnocr_models/cnocr
INFO 01:18:24.288 │ [OCR_PERIOD_REMAIN 0.071s] 1天22:41:35
INFO 01:18:24.290 │ Exercise period remain: 1 day, 22:41:35
INFO 01:18:24.291 │ Preserve 5 exercise
INFO 01:18:24.300 │ Loading OCR model: ./bin/cnocr_models/azur_lane
INFO 01:18:24.338 │ [OCR_EXERCISE_REMAIN 0.047s] 5
INFO 01:18:24.339 │ Delay task `Exercise` to 2023-10-21 12:00:00
(server_update='00:00, 12:00, 18:00')
INFO 01:18:24.351 │ Bind task {'Exercise', 'General', 'Alas'}
INFO 01:18:24.352 │ Save config ./config\alas.json,
Exercise.Exercise.OpponentRefreshValue=0,
Exercise.Exercise.OpponentRefreshRecord=datetime.datetime(2023, 10, 21, 1,
18, 24), Exercise.Scheduler.NextRun=datetime.datetime(2023, 10, 21, 12, 0)
INFO 01:18:24.380 │ Bind task {'Exercise', 'General', 'Alas'}
INFO 01:18:24.382 │ Scheduler: End task `Exercise`
截图
No response
还有别的吗?
AzurLaneAutoScript/module/exercise/exercise.py 64 - 73 行
ADMIRAL_TRIAL_HOUR_INTERVAL = {
# "aggressive": [336, 0]
"sun18": [6, 0],
"sun12": [12, 6],
"sun0": [24, 12],
"sat18": [30, 24],
"sat12": [36, 30],
"sat0": [48, 36],
"fri18": [56, 48]
}
AzurLaneAutoScript/module/exercise/exercise.py 219 - 226 行
if admiral_start > int(remain_time.total_seconds() // 3600) >= admiral_end: # set time for getting admiral
logger.info('Reach set time for admiral trial, using all attempts.')
self.preserve = 0
elif int(remain_time.total_seconds() // 3600) < 6: # if not set to "sun18", still depleting at sunday 18pm.
logger.info('Exercise period remain less than 6 hours, using all attempts.')
self.preserve = 0
else:
logger.info(f'Preserve {self.preserve} exercise')
为何只在设定的区间内清空,过了之后就不清空了,可以解释一下这样设计的原理吗? 如果是故意设计成这样的,那么能否增加直接设置清空时间点的选项? 或者修改策略的文字描述,“直到”用词应该不太对。
因为如果你当天没有打上元帅,周日晚上还能有个补救机会。 文字叙述你可以提交pr改进。
因为如果你当天没有打上元帅,周日晚上还能有个补救机会。 文字叙述你可以提交pr改进。
理解了