AzurLaneAutoScript
AzurLaneAutoScript copied to clipboard
跨月每日由于等待时间过长导致自动重启游戏
在提问之前...
- [x] 我已经搜索了现有的 issues
- [x] 我在提问题之前至少花费了 5 分钟来思考和准备
- [x] 我已经阅读了 Wiki 中的 常见问题(FAQ)
- [x] 我正在使用最新版的 Alas
描述你的问题
如题目,在进行跨越每日时,由于点击 MISSION_OVERVIEW_ENTER 尝试次数过多导致 Alas 认为游戏卡死进而重启游戏。
我尝试在重启游戏前停止了 Alas 并重启,但 Alas 认为距离下次跨月太远因此直接退出了大世界,所以日志有一段很奇怪
如何复现
- 打开跨越每日
- 等待跨月
预期行为
正常等待完毕,并且进行 32 号的任务
相关 Logs
════════════════════════════════ OPSI CLEAR DAILY ═════════════════════════════════
INFO 01:00:00.006 │ OPSI CLEAR DAILY
═══════════════════════════ OS MISSION OVERVIEW ACCEPT ════════════════════════════
INFO 01:00:00.008 │ OS MISSION OVERVIEW ACCEPT
INFO 01:00:00.017 │ Click (1154, 673) @ MAP_GOTO_GLOBE
ERROR 01:00:00.024 │ MaaTouchSyncTimeout: Too many incorrect sync response
INFO 01:00:00.028 │ disconnected 127.0.0.1:16385
INFO 01:00:00.039 │ connected to 127.0.0.1:16385
INFO 01:00:00.040 │ <<< DETECT DEVICE >>>
INFO 01:00:00.041 │ Here are the available devices, copy to
Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"
INFO 01:00:00.043 │ 127.0.0.1:16385
INFO 01:00:00.043 │ 127.0.0.1:7555
INFO 01:00:00.045 │ <<< MAATOUCH INIT >>>
INFO 01:00:00.307 │ [Device Orientation] 1 (HOME key on the right)
INFO 01:00:00.702 │ ^ 10 1280 720 255
INFO 01:00:00.704 │ $ 255
INFO 01:00:00.706 │ MaaTouch stream connected
INFO 01:00:00.707 │ max_contact: 10; max_x: 1280; max_y: 720; max_pressure: 255
INFO 01:00:00.813 │ Create forward: ForwardItem(serial='127.0.0.1:16385',
local='tcp:20645', remote='tcp:53516')
INFO 01:00:03.013 │ <<< UI CLICK >>>
INFO 01:00:03.025 │ Click (1178, 653) @ MISSION_OVERVIEW_ENTER
INFO 01:00:06.323 │ Click (1189, 647) @ MISSION_OVERVIEW_ENTER
INFO 01:00:09.637 │ Click (1169, 672) @ MISSION_OVERVIEW_ENTER
INFO 01:00:12.945 │ Click (1158, 658) @ MISSION_OVERVIEW_ENTER
INFO 01:00:16.258 │ Click (1210, 659) @ MISSION_OVERVIEW_ENTER
INFO 01:00:19.574 │ Click (1161, 664) @ MISSION_OVERVIEW_ENTER
INFO 01:00:22.877 │ Click (1177, 653) @ MISSION_OVERVIEW_ENTER
INFO 01:00:26.193 │ Click (1213, 682) @ MISSION_OVERVIEW_ENTER
INFO 01:00:29.496 │ Click (1170, 648) @ MISSION_OVERVIEW_ENTER
INFO 01:00:32.807 │ Click (1189, 683) @ MISSION_OVERVIEW_ENTER
INFO 01:00:36.125 │ Click (1142, 663) @ MISSION_OVERVIEW_ENTER
INFO 01:00:39.443 │ Function calls:
<string> L1 <module>
spawn.py L105 spawn_main()
spawn.py L118 _main()
process.py L297 _bootstrap()
process.py L99 run()
process_manager.py L166 run_process()
alas.py L551 loop()
alas.py L69 run()
alas.py L343 opsi_cross_month()
os_run.py L115 opsi_cross_month()
operation_siren.py L154 os_cross_month()
mission.py L192 os_mission_overview_accept()
ui.py L119 ui_click()
control.py L37 click()
device.py L259 handle_control_check()
device.py L295 click_record_check()
device.py L43 show_function_call()
WARNING 01:00:39.446 │ Too many click for a button: MISSION_OVERVIEW_ENTER
WARNING 01:00:39.447 │ History click: ['MAIN_GOTO_CAMPAIGN_WHITE',
'CAMPAIGN_MENU_GOTO_OS', 'MAP_GOTO_GLOBE', 'MISSION_OVERVIEW_ENTER',
'MISSION_OVERVIEW_ENTER', 'MISSION_OVERVIEW_ENTER',
'MISSION_OVERVIEW_ENTER', 'MISSION_OVERVIEW_ENTER',
'MISSION_OVERVIEW_ENTER', 'MISSION_OVERVIEW_ENTER',
'MISSION_OVERVIEW_ENTER', 'MISSION_OVERVIEW_ENTER',
'MISSION_OVERVIEW_ENTER', 'MISSION_OVERVIEW_ENTER',
'MISSION_OVERVIEW_ENTER']
ERROR 01:00:39.447 │ GameTooManyClickError: Too many click for a button:
MISSION_OVERVIEW_ENTER
WARNING 01:00:39.450 │ Saving error: ./log/error/1748707239450
WARNING 01:00:39.695 │ Game stuck, com.bilibili.azurlane will be restarted in 10
seconds
WARNING 01:00:39.697 │ If you are playing by hand, please stop Alas
INFO 01:00:39.698 │ Task call: Restart
INFO 01:00:39.705 │ Bind task ['General', 'Alas', 'OpsiGeneral',
'OpsiCrossMonth']
INFO 01:00:39.707 │ Save config ./config\alas.json,
Restart.Scheduler.NextRun=datetime.datetime(2025, 6, 1, 1, 0, 39),
Restart.Scheduler.Enable=True
[alas] exited. Reason: Manual stop
═══════════════════════════════════════════════════════════════════════════════════
START
═══════════════════════════════════════════════════════════════════════════════════
INFO 01:01:01.508 │ Start scheduler loop: alas
INFO 01:01:01.599 │ [Server] cn
INFO 01:01:01.612 │ Bind task ['General', 'Alas']
[alas] exited. Reason: Manual stop
═══════════════════════════════════════════════════════════════════════════════════
START
═══════════════════════════════════════════════════════════════════════════════════
INFO 01:01:09.677 │ Start scheduler loop: alas
INFO 01:01:09.764 │ [Server] cn
INFO 01:01:09.778 │ Bind task ['General', 'Alas']
INFO 01:01:25.280 │ Server "暴雨行动" is available.
INFO 01:01:25.284 │ Pending tasks: ['OpsiCrossMonth', 'Exercise', 'Meowfficer',
'Guild', 'Gacha', 'ShopFrequent', 'Freebies', 'OpsiExplore', 'Minigame',
'Awaken', 'OpsiAshBeacon', 'OpsiDaily', 'OpsiShop', 'OpsiAbyssal',
'OpsiObscure', 'Daily', 'Hard', 'OpsiAshAssist', 'OpsiMonthBoss',
'EventSp', 'EventC', 'Main', 'OpsiMeowfficerFarming',
'OpsiHazard1Leveling']
INFO 01:01:25.287 │ [Task] OpsiCrossMonth (Enable, 2025-06-01 00:50:00)
INFO 01:01:25.288 │ Bind task ['General', 'Alas', 'OpsiGeneral',
'OpsiCrossMonth']
═════════════════════════════════════ DEVICE ══════════════════════════════════════
INFO 01:01:26.011 │ DEVICE
INFO 01:01:26.012 │ [IS_ON_PHONE_CLOUD] False
INFO 01:01:26.013 │ [AdbBinary] C:\Users\SaltWood\Desktop\AzurLaneAutoScript\to
olkit\Lib\site-packages\adbutils\binaries\adb.exe
INFO 01:01:26.014 │ [AdbClient] AdbClient(127.0.0.1, 5037)
INFO 01:01:26.015 │ <<< DETECT DEVICE >>>
INFO 01:01:26.016 │ Here are the available devices, copy to
Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"
INFO 01:01:26.019 │ 127.0.0.1:16385
INFO 01:01:26.020 │ 127.0.0.1:7555
INFO 01:01:26.020 │ MuMu12 serial switched 127.0.0.1:16384 -> 127.0.0.1:16385
INFO 01:01:26.026 │ already connected to 127.0.0.1:16385
INFO 01:01:26.027 │ [AdbDevice] AdbDevice(serial=127.0.0.1:16385)
INFO 01:01:26.028 │ [PackageName] com.bilibili.azurlane
INFO 01:01:26.029 │ [Server] cn
INFO 01:01:26.037 │ [nemud.player_version]
INFO 01:01:26.039 │ [customer.app_keptlive] false
INFO 01:01:26.040 │ Screenshot interval set to 0.3s
INFO 01:01:26.041 │ <<< MAATOUCH INIT >>>
INFO 01:01:26.041 │ Scheduler: Start task `OpsiCrossMonth`
═══════════════════════════════════════════════════════════════════════════════════
OPSICROSSMONTH
═══════════════════════════════════════════════════════════════════════════════════
INFO 01:01:26.045 │ Update droidcast resolution
INFO 01:01:26.057 │ newCommandTimeout updated to 168h0m0s
INFO 01:01:26.059 │ [Device Orientation] 1 (HOME key on the right)
INFO 01:01:26.060 │ [u2.Device] Device(atx_agent_url=http://127.0.0.1:9268)
INFO 01:01:26.076 │ [Device Orientation] 1 (HOME key on the right)
INFO 01:01:26.078 │ Droicast resolution: (720, 1280)
INFO 01:01:26.079 │ Reuse forward: ForwardItem(serial='127.0.0.1:16385',
local='tcp:20645', remote='tcp:53516')
INFO 01:01:26.193 │ [Screen_size] 1280x720
INFO 01:01:26.227 │ ^ 10 1280 720 255
INFO 01:01:26.228 │ $ 255
INFO 01:01:26.229 │ MaaTouch stream connected
INFO 01:01:26.233 │ max_contact: 10; max_x: 1280; max_y: 720; max_pressure: 255
INFO 01:01:26.614 │ early_ocr_import call
═════════════════════════════════════ OS INIT ═════════════════════════════════════
INFO 01:01:26.616 │ early_ocr_import start
INFO 01:01:26.618 │ OS INIT
INFO 01:01:26.621 │ Loading OCR dependencies
INFO 01:01:26.672 │ <<< UI CLICK >>>
INFO 01:01:26.674 │ Click ( 53, 40) @ GLOBE_GOTO_MAP
INFO 01:01:27.431 │ <<< ZONE INIT >>>
INFO 01:01:27.438 │ early_ocr_import finish
INFO 01:01:27.439 │ Get zone name
INFO 01:01:31.969 │ Loading OCR model: ./bin/cnocr_models/cnocr
INFO 01:01:32.040 │ [MAP_NAME 0.083s] NA海域西南B-安全海域
INFO 01:01:32.041 │ Map name processed: NA海域西南B
INFO 01:01:32.043 │ [Zone] [22|NA Ocean SW Sector B]
──────────────────────────────── AFTER AUTO SEARCH ────────────────────────────────
INFO 01:01:32.044 │ AFTER AUTO SEARCH
INFO 01:01:32.057 │ No EMP debuff on current fleet
INFO 01:01:32.062 │ [HP] 98% 98% 98% 98% 98% 98%
INFO 01:01:32.068 │ [Repair icon] [False, False, False, False, False, False]
INFO 01:01:32.070 │ No ship found to be below threshold 40%, continue OS
exploration
INFO 01:01:32.071 │ Handle after auto search finished, solved=False
INFO 01:01:32.072 │ Current fleet is not afflicted with the low resolve debuff
INFO 01:01:32.073 │ In zone 22, 44, 154, skip running first auto search
INFO 01:01:32.075 │ Ash beacon status: light
INFO 01:01:32.088 │ Loading OCR model: ./bin/cnocr_models/azur_lane
INFO 01:01:32.147 │ [ASH_COLLECT_STATUS 0.071s] 70/200
INFO 01:01:32.164 │ [ASH_DAILY_STATUS 0.015s] 0/200
INFO 01:01:32.166 │ [OpsiNextReset] 2025-07-01 01:00:00
ERROR 01:01:32.167 │ Too long to next reset, OpSi might reset already. Running
OpsiCrossMonth is meaningless, stopped.
INFO 01:01:32.168 │ Delay task `OpsiCrossMonth` to 2025-07-01 00:50:00
(target=datetime.datetime(2025, 7, 1, 0, 50))
INFO 01:01:32.173 │ Bind task ['General', 'Alas', 'OpsiGeneral',
'OpsiCrossMonth']
INFO 01:01:32.175 │ Save config ./config\alas.json,
OpsiCrossMonth.Scheduler.NextRun=datetime.datetime(2025, 7, 1, 0, 50)
INFO 01:01:32.181 │ Scheduler: End task `OpsiCrossMonth`
INFO 01:01:32.182 │ [Server] cn
INFO 01:01:32.189 │ Bind task ['General', 'Alas']
INFO 01:01:32.192 │ Pending tasks: ['Exercise', 'Meowfficer', 'Guild', 'Gacha',
'ShopFrequent', 'Freebies', 'OpsiExplore', 'Minigame', 'Awaken',
'OpsiAshBeacon', 'OpsiDaily', 'OpsiShop', 'OpsiAbyssal', 'OpsiObscure',
'Daily', 'Hard', 'OpsiAshAssist', 'OpsiMonthBoss', 'EventSp', 'EventC',
'Main', 'OpsiMeowfficerFarming', 'OpsiHazard1Leveling']
INFO 01:01:32.194 │ [Task] Exercise (Enable, 2025-06-01 01:00:00)
INFO 01:01:32.195 │ Bind task ['General', 'Alas', 'Exercise']
INFO 01:01:32.207 │ Scheduler: Start task `Exercise`
截图
此处由于本人系统时区为 UTC+09:00,因此显示为 2025-06-01T01:00:00+09:00
还有别的吗?
搜索 跨月每日 发现 Issue #4766 可能是同一个问题,但是因为没有提供信息被关闭,因此开了一个新的 Issue.
猜测是因为黄鸡的破服务器在跨月时有较多的时间需要处理,服务器暂时卡顿(比如一大堆用 Alas 的玩家的游戏在等跨月)导致。 cc @LmeSzinc
既然如此,是否考虑关闭此 Issue?
跨月失败+1 我也觉得跨月可以弄个等待时间的设置,就是让每步操作之间允许多等一段时间消小黄鸡之类的,耽误点时间我不会太介意()我在领任务阶段就跳小黄鸡了,发现的时候没来得及暂停直接给重启游戏了