Open GPS22115 opened 2 years ago
潜艇图功能实现异常,进入潜艇图时不断重复(click (0,-1))的无意义点击,且在手动停止运行后无法识别潜艇图的存在,即便潜艇图实际上已经开启 *alas潜艇图时间已手动重置
不清楚如何复现,因为是自动运行,并没有对其做特殊操作
正确识别潜艇图并自动作战
2022-08-13 10:18:36.809 | INFO | BATTLE_2 2022-08-13 10:18:36.811 | INFO | Using function: battle_0 2022-08-13 10:18:36.813 | INFO | Filter enemy: [E5, C3, E4, D6, E7, C6], preserve=1 2022-08-13 10:18:36.815 | INFO | <<< CLEAR FILTER ENEMY >>> 2022-08-13 10:18:36.817 | INFO | targetEnemyScale:default_mode 2022-08-13 10:18:36.819 | INFO | Clear enemy: C3 2022-08-13 10:18:36.821 | INFO | [Fleet_1: F6] Fleet_2: E6 2022-08-13 10:18:36.838 | INFO | Bind task {'Sos', 'General', 'Alas'} 2022-08-13 10:18:36.840 | INFO | Save config ./config\alas4.json, Sos.Emotion.Fleet1Value=97, Sos.Emotion.Fleet1Record=datetime.datetime(2022, 8, 13, 10, 18, 36), Sos.Emotion.Fleet2Value=119, Sos.Emotion.Fleet2Record=datetime.datetime(2022, 8, 13, 10, 18, 36) 2022-08-13 10:18:36.879 | INFO | [Emotion fleet_1] 97 2022-08-13 10:18:36.881 | INFO | [Emotion fleet_2] 119 2022-08-13 10:18:36.883 | INFO | Fleet set to 1 2022-08-13 10:18:36.890 | INFO | Fleet: 1, fleet_current_index: 1 2022-08-13 10:18:36.892 | INFO | In sight: C3 2022-08-13 10:18:36.894 | INFO | Focus to: D3 2022-08-13 10:18:36.896 | INFO | Map swipe: (0, -2) 2022-08-13 10:18:36.899 | INFO | Swipe ( 381, 289) -> ( 381, 568) 2022-08-13 10:18:37.969 | INFO | tile_center: 0.920 (good match) 2022-08-13 10:18:37.986 | INFO | 0.062s _ edge_lines: 2 hori, 2 vert 2022-08-13 10:18:37.989 | INFO | Edges: /_\ homo_loca: ( 31, 65) 2022-08-13 10:18:37.994 | INFO | center_loca: (3, 2) 2022-08-13 10:18:38.014 | INFO | Map swipe predict: None (0.019s, no match) 2022-08-13 10:18:38.017 | INFO | Camera: D3 2022-08-13 10:18:38.019 | INFO | camera_corrected: D3 -> D5 2022-08-13 10:18:38.021 | INFO | Camera: D5 2022-08-13 10:18:38.071 | INFO | 0.048s predict: 39 2022-08-13 10:18:38.074 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:38.076 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:38.078 | INFO | -- -- 3L -- -- -- -- -- 2022-08-13 10:18:38.079 | INFO | -- -- ss -- 3L -- -- -- 2022-08-13 10:18:38.081 | INFO | -- -- -- -- 2E -- -- .. 2022-08-13 10:18:38.083 | INFO | Map swipe: (0, -2) 2022-08-13 10:18:38.087 | INFO | Swipe ( 343, 294) -> ( 343, 566) 2022-08-13 10:18:39.100 | INFO | tile_center: 0.870 (5 matches) 2022-08-13 10:18:39.113 | INFO | 0.070s _ edge_lines: 1 hori, 2 vert 2022-08-13 10:18:39.115 | INFO | Edges: / \ homo_loca: ( 29, 55) 2022-08-13 10:18:39.120 | INFO | center_loca: (3, 0) 2022-08-13 10:18:39.134 | INFO | Map swipe predict: None (0.013s, no match) 2022-08-13 10:18:39.137 | INFO | Camera: D3 2022-08-13 10:18:39.139 | INFO | camera_corrected: D3 -> D1 2022-08-13 10:18:39.141 | INFO | Camera: D1 2022-08-13 10:18:39.170 | INFO | 0.028s predict: 23 2022-08-13 10:18:39.172 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:39.174 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:39.176 | INFO | -- -- 3L -- -- -- -- .. 2022-08-13 10:18:39.178 | INFO | Map swipe: (0, 2) 2022-08-13 10:18:39.181 | INFO | Swipe ( 381, 460) -> ( 383, 193) 2022-08-13 10:18:40.219 | INFO | tile_center: 0.918 (good match) 2022-08-13 10:18:40.236 | INFO | 0.064s _ edge_lines: 2 hori, 2 vert 2022-08-13 10:18:40.238 | INFO | Edges: /_\ homo_loca: ( 32, 58) 2022-08-13 10:18:40.243 | INFO | center_loca: (3, 2) 2022-08-13 10:18:40.259 | INFO | Map swipe predict: None (0.014s, no match) 2022-08-13 10:18:40.261 | INFO | Camera: D3 2022-08-13 10:18:40.263 | INFO | camera_corrected: D3 -> D5 2022-08-13 10:18:40.265 | INFO | Camera: D5 2022-08-13 10:18:40.315 | INFO | 0.049s predict: 39 2022-08-13 10:18:40.317 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:40.320 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:40.322 | INFO | -- -- 3L -- -- -- -- -- 2022-08-13 10:18:40.324 | INFO | -- -- ss -- 3L -- -- -- 2022-08-13 10:18:40.326 | INFO | -- -- -- -- 2E -- -- .. 2022-08-13 10:18:40.327 | INFO | Map swipe: (0, -2) 2022-08-13 10:18:40.330 | INFO | Swipe ( 362, 277) -> ( 361, 554) 2022-08-13 10:18:41.322 | INFO | tile_center: 0.920 (good match) 2022-08-13 10:18:41.336 | INFO | 0.058s _ edge_lines: 1 hori, 2 vert 2022-08-13 10:18:41.338 | INFO | Edges: / \ homo_loca: ( 31, 64) 2022-08-13 10:18:41.343 | INFO | center_loca: (3, 0) 2022-08-13 10:18:41.357 | INFO | Map swipe predict: None (0.013s, no match) 2022-08-13 10:18:41.360 | INFO | Camera: D3 2022-08-13 10:18:41.362 | INFO | camera_corrected: D3 -> D1 2022-08-13 10:18:41.364 | INFO | Camera: D1 2022-08-13 10:18:41.393 | INFO | 0.027s predict: 23 2022-08-13 10:18:41.395 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:41.397 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:41.399 | INFO | -- -- 3L -- -- -- -- .. 2022-08-13 10:18:41.402 | INFO | Map swipe: (0, 2) 2022-08-13 10:18:41.405 | INFO | Swipe ( 420, 468) -> ( 420, 191) 2022-08-13 10:18:42.468 | INFO | tile_center: 0.935 (good match) 2022-08-13 10:18:42.486 | INFO | 0.064s _ edge_lines: 1 hori, 2 vert 2022-08-13 10:18:42.488 | INFO | Edges: / \ homo_loca: ( 31, 56) 2022-08-13 10:18:42.492 | INFO | center_loca: (3, 2) 2022-08-13 10:18:42.508 | INFO | Map swipe predict: None (0.014s, no match) 2022-08-13 10:18:42.511 | INFO | Camera: D3 2022-08-13 10:18:42.513 | INFO | Camera: D3 2022-08-13 10:18:42.570 | INFO | 0.055s predict: 39 2022-08-13 10:18:42.571 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:42.574 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:18:42.576 | INFO | -- -- 3L -- -- -- -- -- 2022-08-13 10:18:42.578 | INFO | -- -- ss -- 3L -- -- -- 2022-08-13 10:18:42.580 | INFO | -- -- -- -- 2E -- -- .. 2022-08-13 10:18:42.582 | INFO | Map swipe: (0, 0) 2022-08-13 10:18:42.586 | INFO | Global C3 (camera=D3) -> Local C3 (center=D3) 2022-08-13 10:18:42.588 | INFO | Click ( 490, 340) @ C3 2022-08-13 10:18:47.074 | INFO | Combat preparation. 2022-08-13 10:18:47.092 | INFO | Bind task {'Sos', 'General', 'Alas'} 2022-08-13 10:18:47.094 | INFO | Save config ./config\alas4.json, Sos.Emotion.Fleet1Value=97, Sos.Emotion.Fleet1Record=datetime.datetime(2022, 8, 13, 10, 18, 47), Sos.Emotion.Fleet2Value=119, Sos.Emotion.Fleet2Record=datetime.datetime(2022, 8, 13, 10, 18, 47) 2022-08-13 10:18:47.135 | INFO | [Emotion fleet_1] 97 2022-08-13 10:18:47.137 | INFO | [Emotion fleet_2] 119 2022-08-13 10:18:47.140 | INFO | [Automation] ON 2022-08-13 10:18:47.143 | INFO | Click (1170, 676) @ BATTLE_PREPARATION 2022-08-13 10:18:48.045 | INFO | [Automation] ON 2022-08-13 10:18:48.529 | INFO | [Loading] 12% 2022-08-13 10:18:48.531 | INFO | Screenshot interval set to 1.0s 2022-08-13 10:18:54.448 | INFO | <<< EMOTION REDUCE >>> 2022-08-13 10:18:54.466 | INFO | Bind task {'Sos', 'General', 'Alas'} 2022-08-13 10:18:54.469 | INFO | Save config ./config\alas4.json, Sos.Emotion.Fleet1Value=95, Sos.Emotion.Fleet1Record=datetime.datetime(2022, 8, 13, 10, 18, 54), Sos.Emotion.Fleet2Value=119, Sos.Emotion.Fleet2Record=datetime.datetime(2022, 8, 13, 10, 18, 54) 2022-08-13 10:18:54.494 | INFO | [Emotion fleet_1] 95 2022-08-13 10:18:54.496 | INFO | [Emotion fleet_2] 119 2022-08-13 10:18:54.497 | INFO | Combat execute 2022-08-13 10:19:00.432 | INFO | Combat auto check timer reached 2022-08-13 10:19:28.789 | INFO | Click (1049, 660) @ BATTLE_STATUS_S 2022-08-13 10:19:28.842 | INFO | Screenshot interval set to 0.3s 2022-08-13 10:19:28.843 | INFO | Combat status 2022-08-13 10:19:28.845 | INFO | [expected_end] with_searching 2022-08-13 10:19:29.505 | INFO | Click (1025, 660) @ BATTLE_STATUS_S 2022-08-13 10:19:29.843 | INFO | Click (1034, 657) @ GET_ITEMS_1 2022-08-13 10:19:30.505 | INFO | Click (1094, 638) @ EXP_INFO_S 2022-08-13 10:19:31.405 | INFO | Click (1095, 637) @ EXP_INFO_S 2022-08-13 10:19:32.081 | INFO | Click (1080, 637) @ EXP_INFO_S 2022-08-13 10:19:39.171 | INFO | Enemy searching timeout. 2022-08-13 10:19:39.588 | INFO | Combat end. 2022-08-13 10:19:39.592 | INFO | [HP] 98% 98% 98% 95% ____ ____ 2022-08-13 10:19:39.594 | INFO | Global C3 (camera=D3) -> Local C3 (center=D3) 2022-08-13 10:19:40.056 | INFO | Arrive C3 (is_fleet) 2022-08-13 10:19:40.058 | INFO | Arrive C3 confirm. Result: combat. Expected: combat 2022-08-13 10:19:40.107 | INFO | 0.047s predict: 39 2022-08-13 10:19:40.109 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:19:40.111 | INFO | -- -- -- -- -- -- -- -- 2022-08-13 10:19:40.112 | INFO | -- -- FL -- -- -- -- -- 2022-08-13 10:19:40.114 | INFO | -- -- ss -- 3L -- -- -- 2022-08-13 10:19:40.116 | INFO | -- -- -- -- 2E -- -- .. 2022-08-13 10:19:40.121 | INFO | Full scan start, mode=normal 2022-08-13 10:19:40.124 | INFO | [enemy_missing] EN: 1, MY: 0, SI: 0, BO: 0, CA: 0 2022-08-13 10:19:40.126 | INFO | [enemy_may____] EN: 1, MY: 0, SI: 0, BO: 0, CA: 0 2022-08-13 10:19:40.128 | INFO | Focus to: D3 2022-08-13 10:19:40.130 | INFO | Map swipe: (0, 0) 2022-08-13 10:19:40.132 | INFO | [enemy_missing] EN: 1, MY: 0, SI: 0, BO: 0, CA: 0 2022-08-13 10:19:40.135 | INFO | [enemy_may____] EN: 2, MY: 0, SI: 0, BO: 0, CA: 0 2022-08-13 10:19:40.137 | INFO | Focus to: D5 2022-08-13 10:19:40.139 | INFO | Map swipe: (0, 2) 2022-08-13 10:19:40.143 | INFO | Swipe ( 538, 458) -> ( 538, 190) 2022-08-13 10:19:41.207 | INFO | tile_center: 0.937 (good match) 2022-08-13 10:19:41.227 | INFO | 0.068s _ edge_lines: 3 hori, 2 vert 2022-08-13 10:19:41.229 | INFO | Edges: /_\ homo_loca: ( 30, 58) 2022-08-13 10:19:41.233 | INFO | center_loca: (3, 0) 2022-08-13 10:19:41.246 | INFO | Map swipe predict: None (0.011s, no match) 2022-08-13 10:19:41.249 | INFO | Camera: D5 2022-08-13 10:19:41.251 | INFO | camera_corrected: D5 -> D6 2022-08-13 10:19:41.254 | INFO | Camera: D6 2022-08-13 10:19:41.274 | INFO | 0.018s predict: 15 2022-08-13 10:19:41.275 | INFO | -- -- 3M 3L Fl -- -- 3E 2022-08-13 10:19:41.277 | INFO | -- -- -- -- 3L -- -- .. 2022-08-13 10:19:41.279 | INFO | Map swipe: (0, -1) 2022-08-13 10:19:41.281 | INFO | Map swipe: (0, -1) 2022-08-13 10:19:41.283 | INFO | Map swipe: (0, -1) 2022-08-13 10:19:41.285 | INFO | Map swipe: (0, -1) ...(省略多次) 2022-08-13 10:24:40.103 | INFO | Map swipe: (0, -1) 2022-08-13 10:24:40.108 | INFO | Map swipe: (0, -1) ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ START ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ 2022-08-13 10:24:43.681 | INFO | Start scheduler loop: alas4 2022-08-13 10:24:43.755 | INFO | [Server] cn 2022-08-13 10:24:43.779 | INFO | Bind task {'Alas', 'General'} 2022-08-13 10:24:43.783 | INFO | Pending tasks: ['Sos'] 2022-08-13 10:24:43.786 | INFO | [Task] Sos (Enable, 2022-08-13 00:00:00) 2022-08-13 10:24:43.788 | INFO | Bind task {'Alas', 'General', 'Sos'} ═══════════════════════════════════════════════════════ DEVICE ════════════════════════════════════════════════════════ 2022-08-13 10:24:46.331 | INFO | DEVICE 2022-08-13 10:24:46.335 | INFO | [AdbBinary] H:\Game\AzurLaneAutoScript\toolkit\Lib\site-packages\adbutils\binaries\adb.exe 2022-08-13 10:24:46.339 | INFO | [AdbClient] AdbClient(127.0.0.1, 5037) 2022-08-13 10:24:46.341 | INFO | <<< DETECT DEVICE >>> 2022-08-13 10:24:46.343 | INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto" 2022-08-13 10:24:46.346 | INFO | 127.0.0.1:62001 2022-08-13 10:24:46.348 | INFO | 127.0.0.1:62025 2022-08-13 10:24:46.354 | INFO | already connected to 127.0.0.1:62001 2022-08-13 10:24:46.356 | INFO | [AdbDevice] AdbDevice(serial=127.0.0.1:62001) 2022-08-13 10:24:46.359 | INFO | [PackageName] com.bilibili.azurlane 2022-08-13 10:24:46.361 | INFO | [Server] cn 2022-08-13 10:24:46.363 | INFO | Screenshot interval set to 0.3s 2022-08-13 10:24:46.365 | INFO | Scheduler: Start task `Sos` ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ SOS ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ 2022-08-13 10:24:46.852 | INFO | [Screen_size] 1280x720 ════════════════════════════════════════════════════ CAMPAIGN SOS ═════════════════════════════════════════════════════ 2022-08-13 10:24:47.304 | INFO | CAMPAIGN SOS 2022-08-13 10:24:47.306 | INFO | <<< UI ENSURE >>> 2022-08-13 10:24:47.307 | INFO | UI get current page 2022-08-13 10:24:47.612 | INFO | Unknown ui page 2022-08-13 10:24:47.621 | INFO | Click (1234, 38) @ GOTO_MAIN 2022-08-13 10:24:47.624 | INFO | <<< MINITOUCH INIT >>> 2022-08-13 10:24:47.644 | INFO | [Device Orientation] 0 (Normal) 2022-08-13 10:24:47.647 | INFO | Reuse forward: ForwardItem(serial='127.0.0.1:62001', local='tcp:20104', remote='localabstract:minitouch') 2022-08-13 10:24:47.652 | INFO | v 1 2022-08-13 10:24:47.654 | INFO | ^ 2 1280 720 0 2022-08-13 10:24:47.656 | INFO | $ 3114 2022-08-13 10:24:47.658 | INFO | minitouch running on port: 20104, pid: 3114 2022-08-13 10:24:47.659 | INFO | max_contact: 2; max_x: 1280; max_y: 720; max_pressure: 0 2022-08-13 10:24:48.158 | INFO | Unknown ui page 2022-08-13 10:24:48.369 | INFO | WITHDRAW button found, wait until map loaded to prevent bugs in game client 2022-08-13 10:24:51.373 | INFO | Click ( 821, 698) @ WITHDRAW 2022-08-13 10:24:51.923 | INFO | [UI] page_main 2022-08-13 10:24:51.925 | INFO | Goto page_campaign 2022-08-13 10:24:51.927 | INFO | <<< UI GOTO PAGE_CAMPAIGN >>> 2022-08-13 10:24:51.932 | INFO | Page switch: page_main -> page_campaign_menu 2022-08-13 10:24:51.934 | INFO | Click (1090, 326) @ MAIN_GOTO_CAMPAIGN 2022-08-13 10:24:52.346 | INFO | Page switch: page_mission -> page_main 2022-08-13 10:24:52.348 | INFO | Click (1243, 30) @ GOTO_MAIN 2022-08-13 10:24:53.087 | INFO | Click (1021, 652) @ GET_ITEMS_1 2022-08-13 10:24:57.484 | INFO | Page switch: page_mission -> page_main 2022-08-13 10:24:57.486 | INFO | Click (1244, 33) @ GOTO_MAIN 2022-08-13 10:24:57.998 | INFO | Page switch: page_main -> page_campaign_menu 2022-08-13 10:24:58.000 | INFO | Click (1132, 356) @ MAIN_GOTO_CAMPAIGN 2022-08-13 10:24:59.585 | INFO | WITHDRAW button found, wait until map loaded to prevent bugs in game client 2022-08-13 10:25:02.588 | INFO | Click ( 852, 684) @ WITHDRAW 2022-08-13 10:25:02.969 | INFO | Click ( 805, 508) @ POPUP_CONFIRM_UI_ADDITIONAL 2022-08-13 10:25:04.253 | INFO | Page arrive: page_campaign 2022-08-13 10:25:04.267 | INFO | Loading OCR model: ./bin/cnocr_models/azur_lane 2022-08-13 10:25:04.355 | INFO | [OCR_SIGNAL 0.101s] 0 2022-08-13 10:25:04.357 | INFO | [SOS signal] 0 2022-08-13 10:25:04.359 | INFO | All SOS signals cleared 2022-08-13 10:25:04.361 | INFO | Delay task `Sos` to 2022-08-14 00:00:00 (server_update='00:00') 2022-08-13 10:25:04.373 | INFO | Bind task {'Alas', 'General', 'Sos'} 2022-08-13 10:25:04.375 | INFO | Save config ./config\alas4.json, Sos.Scheduler.NextRun=datetime.datetime(2022, 8, 14, 0, 0) 2022-08-13 10:25:04.409 | INFO | Scheduler: End task `Sos` 2022-08-13 10:25:04.411 | INFO | [Server] cn 2022-08-13 10:25:04.429 | INFO | Bind task {'Alas', 'General'} 2022-08-13 10:25:04.431 | INFO | No task pending 2022-08-13 10:25:04.433 | INFO | [Task] OpsiObscure (Enable, 2022-08-13 10:36:45) 2022-08-13 10:25:04.435 | INFO | Bind task {'OpsiObscure', 'Alas', 'General', 'OpsiGeneral'} 2022-08-13 10:25:04.459 | INFO | Wait until 2022-08-13 10:36:45 for task `OpsiObscure` 2022-08-13 10:25:04.461 | INFO | Goto main page during wait 2022-08-13 10:25:04.863 | INFO | [u2.Device] Device(atx_agent_url=http://127.0.0.1:58181) 2022-08-13 10:25:04.906 | INFO | [Package_name] com.bilibili.azurlane 2022-08-13 10:25:04.909 | INFO | App is already running, goto main page 2022-08-13 10:25:04.910 | INFO | <<< UI ENSURE >>> 2022-08-13 10:25:04.912 | INFO | UI get current page 2022-08-13 10:25:04.919 | INFO | [UI] page_campaign 2022-08-13 10:25:04.921 | INFO | Goto page_main 2022-08-13 10:25:04.923 | INFO | <<< UI GOTO PAGE_MAIN >>> 2022-08-13 10:25:04.952 | INFO | Page switch: page_campaign -> page_main 2022-08-13 10:25:04.954 | INFO | Click (1246, 34) @ GOTO_MAIN 2022-08-13 10:25:05.857 | INFO | Page arrive: page_main 2022-08-13 10:36:50.930 | INFO | Scheduler: Start task `OpsiObscure`
[Uploading 2022-08-13_alas4.txt…]()
[Uploading 2022-08-13_gui.txt…]()
这应该是一个两年多的bug,随机出现概率很低,我猜是因为这两个函数的 if 条件不一样
https://github.com/LmeSzinc/AzurLaneAutoScript/blob/560a192ecb0a7cc9a595c70845087d61f4c13f80/module/map/camera.py#L29-L60
https://github.com/LmeSzinc/AzurLaneAutoScript/blob/560a192ecb0a7cc9a595c70845087d61f4c13f80/module/map/camera.py#L292-L308
修了,但是这个问题很难复现,issue先保持打开
好的,感谢大佬:D
近期使用最新版打潜艇图时出现了同样的问题,应该是没有完全修复
2022-10-22_alas.txt
@YeZhetai 你的 log 和 这个 issue 不是同一个问题
在提问之前...
描述你的问题
潜艇图功能实现异常,进入潜艇图时不断重复(click (0,-1))的无意义点击,且在手动停止运行后无法识别潜艇图的存在,即便潜艇图实际上已经开启 *alas潜艇图时间已手动重置
如何复现
不清楚如何复现,因为是自动运行,并没有对其做特殊操作
预期行为
正确识别潜艇图并自动作战
相关 Logs
截图
还有别的吗?
[Uploading 2022-08-13_alas4.txt…]()
[Uploading 2022-08-13_gui.txt…]()