LmeSzinc / AzurLaneAutoScript

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

防止紧急委托数量过多 未成功触发 #2228

Open xzjjasper opened 1 year ago

xzjjasper commented 1 year ago

在提问之前...

描述你的问题

7*24挂机alas,使用 刷紧急委托 并打开了 防止紧急委托数量过多功能,19点左右看了一下,每日高价值委托剩余至少4个,但还在运行 刷紧急委托。似乎是偶发问题,以往在上午每日高价值委托基本就已经刷完。想请教下 防止紧急委托数量过多 规则是否是:存在未运行的每日委托就会推迟运行 刷紧急委托?功能没问题的话是否是我的委托过滤器有问题?

委托过滤器为自定义:

DailyEvent > Gem-8 > Gem-4 > Gem-2
> ExtraCube-0:30 > UrgentCube-1:30 > UrgentCube-1:45 > UrgentCube-3 
> ExtraDrill-5:20 > ExtraDrill-2 > ExtraDrill-3:20
> UrgentCube-2:15 > UrgentCube-4
> ExtraDrill-1 > UrgentCube-6 > ExtraCube-1:30 
> ExtraDrill-2:40 > ExtraDrill-0:20
> NightDrill-8 > NightDrill-7 > NightDrill-6
> UrgentBox-6 > ExtraCube-4 > ExtraCube-3 > UrgentBox-3 > UrgentBox-1 > ExtraCube-5
> NightOil > NightCube 
> DailyChip > DailyResource
> ExtraPart-1:30 > ExtraOil-4 > ExtraPart-1
> Extra-0:20 > Extra-0:30 > Extra-1:00 > Extra-1:30 > Extra-2:00
> shortest

如何复现

No response

预期行为

No response

相关 Logs

═══════════════════════════════════════════════════════ COMMISSION SCAN ════════════════════════════════════════════════════════ INFO 19:31:08.516 │ COMMISSION SCAN
INFO 19:31:08.520 │ [Commission_switch] daily
INFO 19:31:08.523 │ Click ( 52, 237) @ COMMISSION_URGENT
INFO 19:31:09.528 │ [Commission_switch] daily
INFO 19:31:10.646 │ [Commission_switch] urgent
INFO 19:31:10.650 │ [COMMISSION_SCROLL_AREA] 0.36 (265.5-182.0)/(599-364)
────────────────────────────────────────────────────────── SCAN DAILY ────────────────────────────────────────────────────────── INFO 19:31:10.654 │ SCAN DAILY
INFO 19:31:10.656 │ [Commission_switch] urgent
INFO 19:31:10.659 │ Click ( 60, 153) @ COMMISSION_DAILY
INFO 19:31:11.764 │ [Commission_switch] urgent
INFO 19:31:12.642 │ [Commission_switch] daily
INFO 19:31:12.646 │ [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)
INFO 19:31:12.649 │ COMMISSION_SCROLL_AREA set to 0.0
INFO 19:31:12.651 │ [COMMISSION_SCROLL_AREA] 0.36 (286.0-252.5)/(599-505)
INFO 19:31:12.654 │ Swipe (1256, 364) -> (1256, 282)
INFO 19:31:13.571 │ [COMMISSION_SCROLL_AREA] 0.13 (254.11320754716982-238.5)/(599-477)
INFO 19:31:14.525 │ [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)
INFO 19:31:14.528 │ <<< COMMISSION DETECT >>>
INFO 19:31:14.551 │ Loading OCR model: ./bin/cnocr_models/tw
INFO 19:31:14.710 │ [COMMISSION 0.179s] 日常資源開發
INFO 19:31:14.729 │ Loading OCR model: ./bin/cnocr_models/azur_lane
INFO 19:31:14.794 │ [COMMISSION 0.081s] IV
INFO 19:31:14.898 │ [DURATION 0.100s] 01:33:26
INFO 19:31:14.901 │ [Commission] 日常資源開發 | Ⅳ (Genre: daily_resource, Status: running, Duration: 1:33:26)
INFO 19:31:15.022 │ [COMMISSION 0.117s] 高階科研任務
INFO 19:31:15.056 │ [COMMISSION 0.031s]
INFO 19:31:15.140 │ [DURATION 0.080s] 10:00:00
INFO 19:31:15.143 │ [Commission] 高階科研任務 | (Genre: major_comm, Status: pending, Duration: 10:00:00)
INFO 19:31:15.259 │ [COMMISSION 0.113s] 日常資源開發
INFO 19:31:15.285 │ [COMMISSION 0.023s] IV
INFO 19:31:15.341 │ [DURATION 0.053s] 02:00:00
INFO 19:31:15.345 │ [Commission] 日常資源開發 | Ⅳ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:15.491 │ [COMMISSION 0.143s] 日常資源開發V
INFO 19:31:15.519 │ [COMMISSION 0.023s] VI
INFO 19:31:15.633 │ [DURATION 0.111s] 02:00:00
INFO 19:31:15.636 │ [Commission] 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:15.640 │ [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)
INFO 19:31:15.643 │ [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)
INFO 19:31:15.648 │ COMMISSION_SCROLL_AREA set to 1
INFO 19:31:15.652 │ [COMMISSION_SCROLL_AREA] 0.01 (252.5-252.0)/(599-504)
INFO 19:31:15.657 │ Swipe (1256, 329) -> (1259, 470)
INFO 19:31:16.630 │ [COMMISSION_SCROLL_AREA] 0.99 (346.0-252.5)/(599-505)
INFO 19:31:16.633 │ <<< COMMISSION DETECT >>>
INFO 19:31:16.741 │ [COMMISSION 0.105s] 高階科研任務
INFO 19:31:16.771 │ [COMMISSION 0.026s]
INFO 19:31:16.818 │ [DURATION 0.044s] 10:00:00
INFO 19:31:16.822 │ [Commission] 高階科研任務 | (Genre: major_comm, Status: pending, Duration: 10:00:00)
INFO 19:31:17.006 │ [COMMISSION 0.181s] 日常資源開發V
INFO 19:31:17.033 │ [COMMISSION 0.024s] IV
INFO 19:31:17.089 │ [DURATION 0.053s] 02:00:00
INFO 19:31:17.093 │ [Commission] 日常資源開發V | Ⅳ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:17.251 │ [COMMISSION 0.154s] 日常資源開發V
INFO 19:31:17.277 │ [COMMISSION 0.022s] VI
INFO 19:31:17.327 │ [DURATION 0.047s] 02:00:00
INFO 19:31:17.330 │ [Commission] 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:17.484 │ [COMMISSION 0.150s] 日常資源開發V
INFO 19:31:17.512 │ [COMMISSION 0.024s] VI
INFO 19:31:17.563 │ [DURATION 0.047s] 02:00:00
INFO 19:31:17.566 │ [Commission] 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:17.570 │ [COMMISSION_SCROLL_AREA] 0.99 (346.0-252.5)/(599-505)
───────────────────────────────────────────────────────── SCAN URGENT ────────────────────────────────────────────────────────── INFO 19:31:17.574 │ SCAN URGENT
INFO 19:31:17.577 │ [Commission_switch] daily
INFO 19:31:17.579 │ Click ( 54, 255) @ COMMISSION_URGENT
INFO 19:31:18.127 │ [Commission_switch] daily
INFO 19:31:18.736 │ [Commission_switch] urgent
INFO 19:31:18.739 │ [COMMISSION_SCROLL_AREA] 1.00 (416.5-182.0)/(599-364)
INFO 19:31:18.743 │ COMMISSION_SCROLL_AREA set to 0.0
INFO 19:31:18.747 │ [COMMISSION_SCROLL_AREA] 1.00 (416.5-182.0)/(599-364)
INFO 19:31:18.750 │ Swipe (1255, 490) -> (1257, 141)
INFO 19:31:19.808 │ [COMMISSION_SCROLL_AREA] 0.00 (182.5-182.0)/(599-364)
INFO 19:31:19.812 │ <<< COMMISSION DETECT >>>
INFO 19:31:19.920 │ [COMMISSION 0.104s] BW要員護衛
INFO 19:31:19.947 │ [COMMISSION 0.024s]
INFO 19:31:20.016 │ [DURATION 0.065s] 01:33:15
INFO 19:31:20.021 │ [Commission] BW要員護衛 | (Genre: urgent_gem, Status: running, Duration: 1:33:15)
INFO 19:31:20.155 │ [COMMISSION 0.131s] 敵襲川
INFO 19:31:20.184 │ [COMMISSION 0.025s] II
INFO 19:31:20.314 │ [DURATION 0.127s] 01:25:55
INFO 19:31:20.317 │ [Commission] 敵襲川 | Ⅱ (Genre: urgent_cube, Status: running, Duration: 1:25:55)
INFO 19:31:20.432 │ [COMMISSION 0.111s] BW裝備研發
INFO 19:31:20.467 │ [COMMISSION 0.031s]
INFO 19:31:20.563 │ [DURATION 0.092s] 00:19:31
INFO 19:31:20.567 │ [Commission] BW裝備研發 | (Genre: urgent_box, Status: running, Duration: 0:19:31)
INFO 19:31:20.688 │ [COMMISSION 0.116s] 支援土蒙爾島
WARNING 19:31:20.691 │ Name with unknown genre: 支援土蒙爾島
INFO 19:31:20.718 │ [COMMISSION 0.024s]
INFO 19:31:20.792 │ [DURATION 0.069s] 00:30:00
INFO 19:31:20.857 │ [EXPIRE 0.061s] 00:36:18
INFO 19:31:20.859 │ [Commission] 支援土蒙爾島 | (Invalid)
WARNING 19:31:20.862 │ Found 1 invalid commission, retry commission detect
INFO 19:31:21.230 │ <<< COMMISSION DETECT >>>
INFO 19:31:21.364 │ [COMMISSION 0.129s] BW要員護衛
INFO 19:31:21.402 │ [COMMISSION 0.034s]
INFO 19:31:21.452 │ [DURATION 0.047s] 01:33:13
INFO 19:31:21.455 │ [Commission] BW要員護衛 | (Genre: urgent_gem, Status: running, Duration: 1:33:13)
INFO 19:31:21.647 │ [COMMISSION 0.188s] 敵襲川
INFO 19:31:21.674 │ [COMMISSION 0.024s] II
INFO 19:31:21.726 │ [DURATION 0.048s] 01:25:53
INFO 19:31:21.730 │ [Commission] 敵襲川 | Ⅱ (Genre: urgent_cube, Status: running, Duration: 1:25:53)
INFO 19:31:21.897 │ [COMMISSION 0.164s] BW裝備研發
INFO 19:31:21.936 │ [COMMISSION 0.036s]
INFO 19:31:21.983 │ [DURATION 0.045s] 00:19:29
INFO 19:31:21.987 │ [Commission] BW裝備研發 | (Genre: urgent_box, Status: running, Duration: 0:19:29)
INFO 19:31:22.123 │ [COMMISSION 0.133s] 支援土蒙爾島
WARNING 19:31:22.127 │ Name with unknown genre: 支援土蒙爾島
INFO 19:31:22.167 │ [COMMISSION 0.038s]
INFO 19:31:22.216 │ [DURATION 0.046s] 00:30:00
INFO 19:31:22.262 │ [EXPIRE 0.043s] 00:36:16
INFO 19:31:22.267 │ [Commission] 支援土蒙爾島 | (Invalid)
WARNING 19:31:22.271 │ Found 1 invalid commission, retry commission detect
INFO 19:31:22.275 │ trials of commission detect exhausted, stop
INFO 19:31:22.278 │ [COMMISSION_SCROLL_AREA] 0.00 (182.5-182.0)/(599-364)
INFO 19:31:22.282 │ [COMMISSION_SCROLL_AREA] 0.00 (182.5-182.0)/(599-364)
INFO 19:31:22.286 │ COMMISSION_SCROLL_AREA set to 1
INFO 19:31:22.290 │ [COMMISSION_SCROLL_AREA] 0.00 (182.5-182.0)/(599-364)
INFO 19:31:22.294 │ Swipe (1254, 259) -> (1258, 599)
INFO 19:31:23.067 │ [COMMISSION_SCROLL_AREA] 1.00 (416.5-182.0)/(599-364)
INFO 19:31:23.070 │ <<< COMMISSION DETECT >>>
INFO 19:31:23.174 │ [COMMISSION 0.100s] 支援土蒙爾島
WARNING 19:31:23.178 │ Name with unknown genre: 支援土蒙爾島
INFO 19:31:23.205 │ [COMMISSION 0.023s]
INFO 19:31:23.255 │ [DURATION 0.046s] 00:30:00
INFO 19:31:23.307 │ [EXPIRE 0.049s] 00:36:14
INFO 19:31:23.311 │ [Commission] 支援土蒙爾島 | (Invalid)
INFO 19:31:23.488 │ [COMMISSION 0.173s] 保衛運輸部隊川
INFO 19:31:23.516 │ [COMMISSION 0.024s] II
INFO 19:31:23.641 │ [DURATION 0.122s] 01:30:00
INFO 19:31:23.700 │ [EXPIRE 0.057s] 02:00:35
INFO 19:31:23.704 │ [Commission] 保衛運輸部隊川 | Ⅱ (Genre: urgent_drill, Status: pending, Duration: 1:30:00, Expire:
2:00:35)
INFO 19:31:23.814 │ [COMMISSION 0.106s] 支援卡波羅島
INFO 19:31:23.900 │ [COMMISSION 0.083s]
INFO 19:31:23.960 │ [DURATION 0.057s] 01:40:00
INFO 19:31:24.007 │ [EXPIRE 0.044s] 00:50:19
INFO 19:31:24.010 │ [Commission] 支援卡波羅島 | (Genre: urgent_book, Status: pending, Duration: 1:40:00, Expire: 0:50:19)
INFO 19:31:24.137 │ [COMMISSION 0.123s] 殲滅敵主力部隊
INFO 19:31:24.175 │ [COMMISSION 0.034s]
INFO 19:31:24.230 │ [DURATION 0.051s] 02:00:00
INFO 19:31:24.278 │ [EXPIRE 0.045s] 04:26:59
INFO 19:31:24.281 │ [Commission] 殲滅敵主力部隊 | (Genre: urgent_drill, Status: pending, Duration: 2:00:00, Expire:
4:26:59)
WARNING 19:31:24.285 │ Found 1 invalid commission, retry commission detect
INFO 19:31:24.716 │ <<< COMMISSION DETECT >>>
INFO 19:31:24.828 │ [COMMISSION 0.108s] 支援土蒙爾島
WARNING 19:31:24.832 │ Name with unknown genre: 支援土蒙爾島
INFO 19:31:24.885 │ [COMMISSION 0.049s]
INFO 19:31:24.948 │ [DURATION 0.059s] 00:30:00
INFO 19:31:24.994 │ [EXPIRE 0.043s] 00:36:13
INFO 19:31:24.997 │ [Commission] 支援土蒙爾島 | (Invalid)
INFO 19:31:25.116 │ [COMMISSION 0.116s] 保衛運輸部隊川
INFO 19:31:25.176 │ [COMMISSION 0.056s] II
INFO 19:31:25.236 │ [DURATION 0.057s] 01:30:00
INFO 19:31:25.282 │ [EXPIRE 0.043s] 02:00:34
INFO 19:31:25.286 │ [Commission] 保衛運輸部隊川 | Ⅱ (Genre: urgent_drill, Status: pending, Duration: 1:30:00, Expire:
2:00:34)
INFO 19:31:25.423 │ [COMMISSION 0.134s] 支援卡波羅島
INFO 19:31:25.450 │ [COMMISSION 0.023s]
INFO 19:31:25.513 │ [DURATION 0.059s] 01:40:00
INFO 19:31:25.561 │ [EXPIRE 0.045s] 00:50:18
INFO 19:31:25.564 │ [Commission] 支援卡波羅島 | (Genre: urgent_book, Status: pending, Duration: 1:40:00, Expire: 0:50:18)
INFO 19:31:25.707 │ [COMMISSION 0.141s] 殲滅敵主力部隊
INFO 19:31:25.741 │ [COMMISSION 0.026s]
INFO 19:31:25.789 │ [DURATION 0.044s] 02:00:00
INFO 19:31:25.835 │ [EXPIRE 0.043s] 04:26:58
INFO 19:31:25.838 │ [Commission] 殲滅敵主力部隊 | (Genre: urgent_drill, Status: pending, Duration: 2:00:00, Expire:
4:26:58)
WARNING 19:31:25.842 │ Found 1 invalid commission, retry commission detect
INFO 19:31:25.844 │ trials of commission detect exhausted, stop
INFO 19:31:25.848 │ [COMMISSION_SCROLL_AREA] 1.00 (416.5-182.0)/(599-364)
────────────────────────────────────────────────────── SHOWING COMMISSION ────────────────────────────────────────────────────── INFO 19:31:25.854 │ SHOWING COMMISSION
INFO 19:31:25.857 │ Daily commission
INFO 19:31:25.860 │ [Commission] 日常資源開發 | Ⅳ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:25.863 │ [Commission] 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00)
INFO 19:31:25.867 │ [Commission] 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00, Repeat: 2)
INFO 19:31:25.871 │ [Commission] 高階科研任務 | (Genre: major_comm, Status: pending, Duration: 10:00:00)
INFO 19:31:25.875 │ [Commission] 日常資源開發 | Ⅳ (Genre: daily_resource, Status: running, Duration: 1:33:26)
INFO 19:31:25.879 │ Urgent commission
INFO 19:31:25.882 │ [Commission] 支援土蒙爾島 | (Invalid)
INFO 19:31:25.885 │ [Commission] 支援土蒙爾島 | (Invalid)
INFO 19:31:25.889 │ [Commission] 支援卡波羅島 | (Genre: urgent_book, Status: pending, Duration: 1:40:00, Expire: 0:50:18)
INFO 19:31:25.894 │ [Commission] 保衛運輸部隊川 | Ⅱ (Genre: urgent_drill, Status: pending, Duration: 1:30:00, Expire:
2:00:34)
INFO 19:31:25.899 │ [Commission] 殲滅敵主力部隊 | (Genre: urgent_drill, Status: pending, Duration: 2:00:00, Expire:
4:26:58)
INFO 19:31:25.905 │ [Commission] BW裝備研發 | (Genre: urgent_box, Status: running, Duration: 0:19:29)
INFO 19:31:25.909 │ [Commission] 敵襲川 | Ⅱ (Genre: urgent_cube, Status: running, Duration: 1:25:53)
INFO 19:31:25.913 │ [Commission] BW要員護衛 | (Genre: urgent_gem, Status: running, Duration: 1:33:13)
INFO 19:31:25.917 │ [Running] 4/4
INFO 19:31:25.920 │ [Commission Filter] custom
INFO 19:31:25.924 │ [Filter_sort] 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00, Repeat: 2) > 日常資源開發V | Ⅵ (Genre: daily_resource, Status: pending, Duration: 2:00:00) > 日常資源開發 | Ⅳ (Genre:
daily_resource, Status: pending, Duration: 2:00:00) > shortest
════════════════════════════════════════════════════════ COMMISSION RUN ════════════════════════════════════════════════════════ INFO 19:31:25.932 │ COMMISSION RUN
INFO 19:31:25.935 │ No commission chose
INFO 19:31:25.939 │ Commission finish: ['2023-02-10 19:50:50', '2023-02-10 20:57:14', '2023-02-10 21:04:34', '2023-02-10
21:04:40']
INFO 19:31:25.942 │ Delay task Commission to 2023-02-10 19:50:50 (target=datetime.datetime(2023, 2, 10, 19, 50, 50))
INFO 19:31:25.965 │ Bind task {'General', 'Commission', 'Alas'}
INFO 19:31:25.968 │ Save config ./config\alas.json, Commission.Scheduler.NextRun=datetime.datetime(2023, 2, 10, 19, 50, 50) INFO 19:31:25.983 │ Daily commission: 3, filtered_urgent: 0
INFO 19:31:25.988 │ Scheduler: End task Commission
INFO 19:31:25.992 │ [Server] tw
INFO 19:31:26.012 │ Bind task {'General', 'Alas'}
INFO 19:31:26.017 │ Pending tasks: ['GemsFarming']
INFO 19:31:26.020 │ [Task] GemsFarming (Enable, 2023-02-10 17:19:21)
INFO 19:31:26.022 │ Bind task {'General', 'TaskBalancer', 'Alas', 'GemsFarming', 'EventGeneral'}
INFO 19:31:26.037 │ Scheduler: Start task GemsFarming

截图

No response

还有别的吗?

No response

xzjjasper commented 1 year ago

好吧是符合规则 if daily > 0 and filtered_urgent >= 1: elif filtered_urgent >= 4: 的,可以当作偶发现象?把daily优先级提高后应该不会出现这个问题了,但我看我自定义的过滤器和预设的24h差不太多,也就是说preset也可能出现这种一直不做daily的可能性

LmeSzinc commented 1 year ago

24小时刷委托就不需要做夜间委托了,> NightDrill-8 > NightDrill-7 > NightDrill-6 这些可以全删掉