takagisanmie / NIKKEAutoScript

胜利女神:NIKKE 自动日常脚本
342 stars 23 forks source link

调度器按开始过后啥都没发生 #38

Closed keithwkx closed 2 months ago

keithwkx commented 2 months ago

调度器按开始过后啥都没发生。其本上按了3秒就变回开始

takagisanmie commented 2 months ago

在任务管理器结束所有的python.exe,然后重启脚本试试

keithwkx commented 2 months ago

@takagisanmie 还是不行。试问是否有discord之类的可以联系一下吗?

keithwkx commented 2 months ago

@takagisanmie https://i.imgur.com/d6ogpco.gif 您看看,目前这样

takagisanmie commented 2 months ago

你运行main.py,看一下报了什么错误

keithwkx commented 2 months ago

你运行main.py,看一下报了什么错误

看了一下好像没什么报错:/ INFO 2024-07-16 15:57:18.311 │ pyw_name: main ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ START ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ INFO 2024-07-16 15:57:18.813 │ Start scheduler loop: nkas INFO 2024-07-16 15:57:18.819 │ task: NKAS (Enable, 1989-12-27 00:00:00) INFO 2024-07-16 15:57:18.820 │ Bind task {'General', 'NKAS'} INFO 2024-07-16 15:57:18.822 │ Save config ./config/nkas.json, Event.Event.Event='event_5' write: ./config/nkas.json INFO 2024-07-16 15:57:18.829 │ [Server] intl INFO 2024-07-16 15:57:18.830 │ Pending tasks: ['Restart', 'Reward', 'Commission', 'Shop', 'Conversation', 'RookieArena', 'SimulationRoom', 'TribeTower', 'Daily'] INFO 2024-07-16 15:57:18.832 │ [Task] Restart (Enable, 2023-05-01 04:00:00) INFO 2024-07-16 15:57:18.833 │ Bind task {'Restart', 'General', 'NKAS'} ════════════════════════════════════════════════════════ DEVICE ════════════════════════════════════════════════════════ INFO 2024-07-16 15:57:29.959 │ DEVICE INFO 2024-07-16 15:57:30.016 │ [AdbBinary] D:\My Games\NKAS\toolkit\android-platform-tools\adb.exe INFO 2024-07-16 15:57:30.018 │ [AdbClient] AdbClient(127.0.0.1, 5037) INFO 2024-07-16 15:57:30.020 │ <<< DETECT DEVICE >>> INFO 2024-07-16 15:57:30.022 │ Here are the available devices, copy to NKAS.Emulator.Serial to use it or set NKAS.Emulator.Serial="auto" INFO 2024-07-16 15:57:30.025 │ emulator-5554 INFO 2024-07-16 15:57:30.027 │ "emulator-5554" is a emulator-* serial, skip adb connect INFO 2024-07-16 15:57:30.029 │ [AdbDevice] AdbDevice(serial=emulator-5554) INFO 2024-07-16 15:57:30.031 │ [PackageName] com.proximabeta.nikke INFO 2024-07-16 15:57:30.031 │ Skip task Restart at scheduler start INFO 2024-07-16 15:57:30.033 │ Delay task Restart to 2024-07-17 04:00:00 (server_update='04:00') INFO 2024-07-16 15:57:30.040 │ Bind task {'Restart', 'General', 'NKAS'} INFO 2024-07-16 15:57:30.042 │ Save config ./config/nkas.json, Restart.Scheduler.NextRun=datetime.datetime(2024, 7, 17, 4, 0), Event.Event.Event='event_5' write: ./config/nkas.json INFO 2024-07-16 15:57:30.061 │ task: NKAS (Enable, 1989-12-27 00:00:00) INFO 2024-07-16 15:57:30.062 │ Bind task {'General', 'NKAS'} INFO 2024-07-16 15:57:30.063 │ Save config ./config/nkas.json, Event.Event.Event='event_5' write: ./config/nkas.json INFO 2024-07-16 15:57:30.073 │ [Server] intl INFO 2024-07-16 15:57:30.074 │ Pending tasks: ['Reward', 'Commission', 'Shop', 'Conversation', 'RookieArena', 'SimulationRoom', 'TribeTower', 'Daily'] INFO 2024-07-16 15:57:30.076 │ [Task] Reward (Enable, 2023-04-30 19:13:31) INFO 2024-07-16 15:57:30.077 │ Bind task {'General', 'NKAS', 'Reward'} INFO 2024-07-16 15:57:30.078 │ Scheduler: Start task Reward ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ REWARD ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ INFO 2024-07-16 15:57:30.083 │ Create forward: ForwardItem(serial='emulator-5554', local='tcp:20193', remote='tcp:53516') INFO 2024-07-16 15:57:30.085 │ tcp:20193 --> tcp:53516 ERROR 2024-07-16 15:57:30.099 │ ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) INFO 2024-07-16 15:57:30.101 │ <<< DROIDCAST INIT >>> INFO 2024-07-16 15:57:30.103 │ Stopping DroidCast [W 240716 15:57:30 init:218] [pid:48404] atx-agent has something wrong, auto recovering [D 240716 15:57:30 init:317] [pid:48404] [emulator-5554] device emulator-5554 is online [I 240716 15:57:30 init:156] uiautomator2 version: 2.16.22 [D 240716 15:57:30 init:167] Shell: ('/data/local/tmp/atx-agent', 'server', '--stop') [I 240716 15:57:30 init:346] Install atx-agent 0.10.0 [D 240716 15:57:30 init:62] Download https://tool.appetizer.io/openatx/atx-agent/releases/download/0.10.0/atx-agent_0.10.0_linux_386.tar.gz [D 240716 15:57:32 init:111] download error from mirror(HTTPSConnectionPool(host='tool.appetizer.io', port=443): Max retries exceeded with url: /openatx/atx-agent/releases/download/0.10.0/atx-agent_0.10.0_linux_386.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E2693DE90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))), use origin source [D 240716 15:57:32 init:62] Download https://github.com/openatx/atx-agent/releases/download/0.10.0/atx-agent_0.10.0_linux_386.tar.gz atx-agent_0.10.0_linux_386.tar.gz |⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿| 4.2 MB/4.2 MB [D 240716 15:57:34 init:238] Push to /data/local/tmp/atx-agent:0755 [D 240716 15:57:34 init:167] Shell: ('/data/local/tmp/atx-agent', 'server', '--nouia', '-d', '--addr', '127.0.0.1:7912') [I 240716 15:57:34 init:350] Check atx-agent version [D 240716 15:57:34 init:359] Forward: local:tcp:51630 -> remote:tcp:7912 [D 240716 15:57:35 init:359] Forward: local:tcp:51630 -> remote:tcp:7912 [D 240716 15:57:35 init:362] atx-agent version 0.10.0 [D 240716 15:57:35 init:366] device wlan ip: route ip+net: no such network interface [I 240716 15:57:35 init:878] [pid:48404] [emulator-5554] newCommandTimeout updated to 168h0m0s INFO 2024-07-16 15:57:35.521 │ [u2.Device] Device(atx_agent_url=http://127.0.0.1:51630) INFO 2024-07-16 15:57:35.538 │ Pushing DroidCast apk INFO 2024-07-16 15:57:35.539 │ Execute: ['D:\My Games\NKAS\toolkit\android-platform-tools\adb.exe', '-s', 'emulator-5554', 'push', './bin/DroidCast/DroidCast_raw-release-1.0.apk', '/data/local/tmp/DroidCast_raw.apk'] INFO 2024-07-16 15:57:35.783 │ Starting DroidCast apk INFO 2024-07-16 15:57:35.789 │ ShellBackgroundResponse(success=True, pid=11216, description='Successfully started program: CLASSPATH=/data/local/tmp/DroidCast_raw.apk app_process / ink.mol.droidcast_raw.Main > /dev/null') INFO 2024-07-16 15:57:35.791 │ Reuse forward: ForwardItem(serial='emulator-5554', local='tcp:20193', remote='tcp:53516') INFO 2024-07-16 15:57:35.792 │ [DroidCast] http://127.0.0.1:20193/screenshot?format=png INFO 2024-07-16 15:57:36.047 │ [DroidCast] offline INFO 2024-07-16 15:57:36.330 │ [DroidCast] online INFO 2024-07-16 15:57:36.682 │ <<< UI ENSURE >>> INFO 2024-07-16 15:57:36.684 │ UI get current page INFO 2024-07-16 15:57:36.915 │ Unknown ui page can not find model file C:\Users\User\AppData\Roaming\cnstd\1.2\ppocr\ch_PP-OCRv3_det_infer.onnx ch_PP-OCRv3_det_infer-onnx.zip: 100%|█████████████████████████████████████████████| 2.22M/2.22M [00:00<00:00, 10.1MB/s] INFO 2024-07-16 15:57:39.356 │ [Package_name] com.hypergryph.arknights.bilibili WARNING 2024-07-16 15:57:39.357 │ Game not running INFO 2024-07-16 15:57:39.358 │ Task call: Restart INFO 2024-07-16 15:57:39.363 │ Bind task {'General', 'NKAS', 'Reward'} INFO 2024-07-16 15:57:39.364 │ Save config ./config/nkas.json, Restart.Scheduler.NextRun=datetime.datetime(2024, 7, 16, 15, 57, 39), Restart.Scheduler.Enable=True, Event.Event.Event='event_5' write: ./config/nkas.json INFO 2024-07-16 15:57:39.373 │ Scheduler: End task Reward INFO 2024-07-16 15:57:39.384 │ task: NKAS (Enable, 1989-12-27 00:00:00) INFO 2024-07-16 15:57:39.386 │ Bind task {'General', 'NKAS'} INFO 2024-07-16 15:57:39.388 │ Save config ./config/nkas.json, Event.Event.Event='event_5' write: ./config/nkas.json INFO 2024-07-16 15:57:39.395 │ [Server] intl INFO 2024-07-16 15:57:39.395 │ Pending tasks: ['Restart', 'Reward', 'Commission', 'Shop', 'Conversation', 'RookieArena', 'SimulationRoom', 'TribeTower', 'Daily'] INFO 2024-07-16 15:57:39.397 │ [Task] Restart (Enable, 2024-07-16 15:57:39) INFO 2024-07-16 15:57:39.398 │ Bind task {'Restart', 'General', 'NKAS'} INFO 2024-07-16 15:57:39.400 │ Scheduler: Start task Restart ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ RESTART ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ INFO 2024-07-16 15:57:39.471 │ <<< APP RESTART >>> INFO 2024-07-16 15:57:39.472 │ App stop: com.proximabeta.nikke INFO 2024-07-16 15:57:39.492 │ App start: com.proximabeta.nikke INFO 2024-07-16 15:57:39.617 │ <<< APP LOGIN >>> INFO 2024-07-16 15:57:39.640 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:57:49.986 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:57:53.882 │ <<< MINITOUCH INIT >>> INFO 2024-07-16 15:57:53.891 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:57:53.892 │ Create forward: ForwardItem(serial='emulator-5554', local='tcp:20849', remote='localabstract:minitouch') INFO 2024-07-16 15:57:53.893 │ tcp:20849 --> localabstract:minitouch INFO 2024-07-16 15:57:53.896 │ INFO 2024-07-16 15:57:53.897 │ INFO 2024-07-16 15:57:54.900 │ INFO 2024-07-16 15:57:54.902 │ INFO 2024-07-16 15:57:55.905 │ INFO 2024-07-16 15:57:55.906 │ ERROR 2024-07-16 15:57:55.907 │ MinitouchNotInstalledError: Received empty data from minitouch, probably because minitouch is not installed INFO 2024-07-16 15:57:55.909 │ Install uiautomator2 [I 240716 15:57:55 init:156] uiautomator2 version: 2.16.22 [I 240716 15:57:55 init:373] Install minicap, minitouch [D 240716 15:57:55 init:62] Download https://tool.appetizer.io/openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/x86_64/bin/minitouch [D 240716 15:57:57 init:111] download error from mirror(HTTPSConnectionPool(host='tool.appetizer.io', port=443): Max retries exceeded with url: /openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/x86_64/bin/minitouch (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E2802AD90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))), use origin source [D 240716 15:57:57 init:62] Download https://github.com/openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/x86_64/bin/minitouch minitouch |⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿| 38.2 KB/38.2 KB [D 240716 15:57:58 init:238] Push to /data/local/tmp/minitouch:0755 [D 240716 15:57:58 init:62] Download https://tool.appetizer.io/openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/x86_64/lib/android-28/minicap.so [D 240716 15:58:00 init:111] download error from mirror(HTTPSConnectionPool(host='tool.appetizer.io', port=443): Max retries exceeded with url: /openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/x86_64/lib/android-28/minicap.so (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E28089F50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))), use origin source [D 240716 15:58:00 init:62] Download https://github.com/openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/x86_64/lib/android-28/minicap.so minicap.so |⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿| 27.1 KB/27.1 KB [D 240716 15:58:01 init:238] Push to /data/local/tmp/minicap.so:0755 [D 240716 15:58:01 init:62] Download https://tool.appetizer.io/openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/x86_64/bin/minicap [D 240716 15:58:03 init:111] download error from mirror(HTTPSConnectionPool(host='tool.appetizer.io', port=443): Max retries exceeded with url: /openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/x86_64/bin/minicap (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E2802A0D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))), use origin source [D 240716 15:58:03 init:62] Download https://github.com/openatx/stf-binaries/raw/0.3.0/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/x86_64/bin/minicap minicap |⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿| 654.7 KB/654.7 KB [D 240716 15:58:04 init:238] Push to /data/local/tmp/minicap:0755 [D 240716 15:58:04 init:256] apk-debug package-info: None [D 240716 15:58:04 init:257] apk-debug-test package-info: None [I 240716 15:58:04 init:386] Install com.github.uiautomator, com.github.uiautomator.test 2.3.3 [D 240716 15:58:04 init:167] Shell: ('pm', 'uninstall', 'com.github.uiautomator') [D 240716 15:58:04 init:167] Shell: ('pm', 'uninstall', 'com.github.uiautomator.test') [D 240716 15:58:04 init:62] Download https://tool.appetizer.io/openatx/android-uiautomator-server/releases/download/2.3.3/app-uiautomator.apk [D 240716 15:58:06 init:111] download error from mirror(HTTPSConnectionPool(host='tool.appetizer.io', port=443): Max retries exceeded with url: /openatx/android-uiautomator-server/releases/download/2.3.3/app-uiautomator.apk (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E28087990>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))), use origin source [D 240716 15:58:06 init:62] Download https://github.com/openatx/android-uiautomator-server/releases/download/2.3.3/app-uiautomator.apk app-uiautomator.apk |⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿| 2.1 MB/2.1 MB [D 240716 15:58:08 init:238] Push to /data/local/tmp/app-uiautomator.apk:0644 [D 240716 15:58:08 init:167] Shell: ('pm', 'install', '-r', '-t', '/data/local/tmp/app-uiautomator.apk') [I 240716 15:58:08 init:331] - app-uiautomator.apk installed [D 240716 15:58:08 init:62] Download https://tool.appetizer.io/openatx/android-uiautomator-server/releases/download/2.3.3/app-uiautomator-test.apk [D 240716 15:58:11 init:111] download error from mirror(HTTPSConnectionPool(host='tool.appetizer.io', port=443): Max retries exceeded with url: /openatx/android-uiautomator-server/releases/download/2.3.3/app-uiautomator-test.apk (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E28095CD0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))), use origin source [D 240716 15:58:11 init:62] Download https://github.com/openatx/android-uiautomator-server/releases/download/2.3.3/app-uiautomator-test.apk app-uiautomator-test.apk |⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿| 1.0 MB/1.0 MB [D 240716 15:58:12 init:238] Push to /data/local/tmp/app-uiautomator-test.apk:0644 [D 240716 15:58:12 init:167] Shell: ('pm', 'install', '-r', '-t', '/data/local/tmp/app-uiautomator-test.apk') [I 240716 15:58:12 init:331] - app-uiautomator-test.apk installed [D 240716 15:58:12 init:167] Shell: ('/data/local/tmp/atx-agent', 'server', '--stop') [D 240716 15:58:13 init:295] Real version: [0, 10, 0], Expect version: [0, 10, 0] [D 240716 15:58:13 init:167] Shell: ('/data/local/tmp/atx-agent', 'server', '--nouia', '-d', '--addr', '127.0.0.1:7912') [I 240716 15:58:13 init:350] Check atx-agent version [D 240716 15:58:13 init:359] Forward: local:tcp:51630 -> remote:tcp:7912 [D 240716 15:58:14 init:359] Forward: local:tcp:51630 -> remote:tcp:7912 [D 240716 15:58:14 init:362] atx-agent version 0.10.0 [D 240716 15:58:14 init:366] device wlan ip: route ip+net: no such network interface Successfully init AdbDevice(serial=emulator-5554) INFO 2024-07-16 15:58:14.235 │ Removing minicap INFO 2024-07-16 15:58:14.252 │ <<< MINITOUCH INIT >>> INFO 2024-07-16 15:58:14.263 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:58:14.265 │ Create forward: ForwardItem(serial='emulator-5554', local='tcp:20451', remote='localabstract:minitouch') INFO 2024-07-16 15:58:14.266 │ tcp:20451 --> localabstract:minitouch INFO 2024-07-16 15:58:14.268 │ INFO 2024-07-16 15:58:14.269 │ INFO 2024-07-16 15:58:15.274 │ v 1 INFO 2024-07-16 15:58:15.276 │ ^ 2 32767 32767 0 INFO 2024-07-16 15:58:15.277 │ $ 11463 INFO 2024-07-16 15:58:15.277 │ minitouch running on port: 20451, pid: 11463 INFO 2024-07-16 15:58:15.279 │ max_contact: 2; max_x: 32767; max_y: 32767; max_pressure: 0 INFO 2024-07-16 15:58:15.339 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:58:27.371 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:58:38.038 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:58:48.269 │ [Device Orientation] 0 (Normal) INFO 2024-07-16 15:58:59.867 │ [Device Orientation] 0 (Normal)

keithwkx commented 2 months ago

WARNING 2024-07-16 16:01:53.672 │ Unable to get device orientation, assume it is normal INFO 2024-07-16 16:01:53.674 │ [Device Orientation] 0 (Normal) ERROR 2024-07-16 16:01:56.731 │ ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=20193): Max retries exceeded with url: /screenshot?width=720&height=1280 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000020E268F6910>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

keithwkx commented 2 months ago

好像是无法锁定模拟器?

keithwkx commented 2 months ago

刚刚main.py跑了起来。模拟器自己动了。就只是开了nkas无法开始

keithwkx commented 2 months ago

没事了,我直接跑python不用原本包括的gui就可以了 image