nb 哇大佬
但是运行起来, 只能领礼包, 不能做人机对战,
领完礼包就退了
```
C:\Users\zsxl\Downloads\autowzry251017>autowzry config.example.yaml
[10-19 00:37:10]0>
>>>>>>>>>>>>>>>>>>>>
autowzry基于airtest-mobileauto开发,旨在演示自动化技术,并非游戏辅助工具。
请勿使用本项目示例代码或技术方案开发任何违反游戏用户协议的工具或应用。
使用本项目或基于本项目开发的内容所产生的一切法律责任由使用者自行承担。
请遵守游戏用户协议,避免任何可能影响其他玩家游戏体验的行为。
本项目完全免费,请警惕任何收费信息。
本项目无任何交流群组,请在GitHub交流。
项目主页: https://github.com/cndaqiang/autowzry
运行教程: https://cndaqiang.github.io/wzry.doc
当前版本提交时间:2025-10-14 16:08:44
<<<<<<<<<<<<<<<<<<<<
[10-19 00:37:11]0>__init__.Config.__init__.main.<module>.读取config.example.yaml
[10-19 00:37:11]autowzry0>__init__.Config.single_execute.execute.main.<module>.读取config.example.yaml
[10-19 00:37:13]autowzry0>控制端(win32)
[10-19 00:37:13]autowzry0>客户端(USBAndroid)
[10-19 00:37:13]autowzry0>ADB =(C:\Users\zsxl\AppData\Local\Android\Sdk\platform-tools\adb.exe)
[10-19 00:37:13]autowzry0>LINK(Android:///emulator-5554)
[10-19 00:37:13]autowzry0>LINKhead(Android:///emulator-5554)
[10-19 00:37:13]autowzry0>LINKtype(android)
[10-19 00:37:13]autowzry0>LINKURL(emulator-5554)
[10-19 00:37:13]autowzry0>LINKport()
[10-19 00:37:13]autowzry0>Android:///emulator-5554:开始第1/3次连接
[10-19 00:37:14]autowzry0>Android:///emulator-5554:链接成功
[10-19 00:37:17]autowzry0>读取 [android.960.540.dict.0.yaml]
[10-19 00:37:17]autowzry0>__init__.read_dict.__init__.__init__.single_execute.execute.main.<module>.读取android.960.540.dict.0.yaml
[10-19 00:37:17]autowzry0>删除 [C:\Users\zsxl\AppData\Local\Temp\airtest_mobileauto\autowzry\.tmp.WZRY.0.PID.txt] 成功
[10-19 00:37:17]autowzry0>创建 [C:\Users\zsxl\AppData\Local\Temp\airtest_mobileauto\autowzry\.tmp.WZRY.0.PID.txt].[1.03717]
[10-19 00:37:17]autowzry0>本次运行PID:[1.03717]
[10-19 00:37:17]autowzry0> self.调试文件FILE = WZRY.0.调试文件.txt
[10-19 00:37:17]autowzry0> self.运行模式FILE = WZRY.0.运行模式.txt
[10-19 00:37:17]autowzry0> self.无法进行组队FILE = WZRY.无法进行组队FILE.txt
[10-19 00:37:17]autowzry0> self.重新登录FILE = WZRY.0.重新登录FILE.txt
[10-19 00:37:17]autowzry0> self.Tool.辅助同步文件 = NeedRebarrier.txt
[10-19 00:37:17]autowzry0> self.Tool.独立同步文件 = NeedRebarrier.0.1.txt
[10-19 00:37:17]autowzry0> self.Tool.stopfile = C:\Users\zsxl\AppData\Local\Temp\airtest_mobileauto\autowzry\.tmp.barrier.EXIT.txt
[10-19 00:37:17]autowzry0> self.重新登录FILE = WZRY.0.重新登录FILE.txt
[10-19 00:37:17]autowzry0>读取 [WZRY.图片更新.txt] 成功
[10-19 00:37:17]autowzry0>run_class_command.__init__.初始化.__init__.single_execute.execute.main.<module>
[10-19 00:37:17]autowzry0> python: self.房主头像 = Template(r"tpl1756468472227.png", record_pos=(0.354, -0.164), resolution=(960, 540), target_pos=9)
[10-19 00:37:17]autowzry0>保存 [android.960.540.dict.0.yaml]
[10-19 00:37:17]autowzry0>运行文件名: autowzry.exe
[10-19 00:37:17]autowzry0>读取 [C:\Users\zsxl\AppData\Local\Temp\airtest_mobileauto\autowzry\.tmp.WZRY.0.PID.txt] 成功
[10-19 00:37:17]autowzry0>读取 [WZRY.0.调试文件.txt] 成功
[10-19 00:37:17]autowzry0>run_class_command.RUN.single_execute.execute.main.<module>
[00:37:18][ERROR]<airtest.core.android.cap_methods.screen_proxy> b''
b''
[00:37:18][ERROR]<airtest.core.android.cap_methods.screen_proxy> b'chmod: /data/local/tmp/minicap: No such file or directory\r\n'
b'chmod: /data/local/tmp/minicap: No such file or directory\r\n'
[00:37:18][ERROR]<airtest.core.android.cap_methods.screen_proxy> Minicap setup up failed!
Minicap setup up failed!
[10-19 00:37:20]autowzry0>读取 [WZRY.0.运行模式.txt] 成功
[10-19 00:37:20]autowzry0>run_class_command.RUN.single_execute.execute.main.<module>
[10-19 00:37:20]autowzry0> python: s1 = 2
[10-19 00:37:20]autowzry0> python: s2 = 3 + s1
[10-19 00:37:20]autowzry0> python: if self.jinristep <= s1: self.对战模式 = "火焰山" # "5v5匹配"
[10-19 00:37:20]autowzry0> python: if self.jinristep <= s1: self.触摸对战 = self.标准模式 = self.青铜段位 = True
[10-19 00:37:20]autowzry0> python: if s1 < self.jinristep: self.组队模式 = False
[10-19 00:37:20]autowzry0> python: if s1 < self.jinristep <= s2: self.对战模式 = "模拟战"
[10-19 00:37:20]autowzry0> python: if not self.组队模式 and self.totalnode_bak > 1: self.Tool.touchfile(self.无法进行组队FILE,"非组队模式 or nstep对战结束")
[10-19 00:37:20]autowzry0> python: wzydday = 3 #
[10-19 00:37:20]autowzry0> python: s3 = 10 + s2 if self.Tool.time_getweek() >= wzydday else 0 + s2
[10-19 00:37:20]autowzry0> python: if self.Tool.var_dict["运行参数.青铜段位"] and self.mynode == 0: s3 = s2 #星耀段位已达上限, 大号不用再打了
Traceback (most recent call last):
File "C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\airtest_mobileauto\control.py", line 487, in run_class_command
exec(i_command)
File "<string>", line 1, in <module>
KeyError: '运行参数.青铜段位'
[10-19 00:37:20]autowzry0> python: if s2< self.jinristep <= s3: self.对战模式 = "5v5匹配" # 大号去刷红色熟练度和奖励
[10-19 00:37:20]autowzry0> python: if s2< self.jinristep <= s3 and self.mynode > 0: self.对战模式 = "5v5匹配" # 新号随便玩
[10-19 00:37:20]autowzry0> python: if s2< self.jinristep <= s3: self.标准模式 = self.触摸对战 = False
[10-19 00:37:20]autowzry0> python: s4 = 10 + s3 if self.Tool.time_getweek() >= wzydday else 30 + s3
[10-19 00:37:20]autowzry0> python: if s3< self.jinristep <= s4 and self.mynode == 0: self.对战模式 = "5v5匹配" #
[10-19 00:37:20]autowzry0> python: uptime=22.9
[10-19 00:37:20]autowzry0> python: self.对战时间=[1.0,uptime]
[10-19 00:37:20]autowzry0> python: self.限时组队时间=uptime
[10-19 00:37:20]autowzry0> python: if self.jinristep > s4: self.对战时间[1]=self.对战时间[0]+0.1
[10-19 00:37:20]autowzry0> python: if self.jinristep in [s1, s2, s3, s4]: self.对战结束返回房间 = False #s1, s2, s3, s4 切换模式, 提前返回大厅
[10-19 00:37:20]autowzry0> python: self.自动选择英雄 = True
[10-19 00:37:20]autowzry0> python: self.启动礼包功能 = True
[10-19 00:37:20]autowzry0> python: self.礼包功能_邮件礼包 = True
[10-19 00:37:24]autowzry0>====================
[10-19 00:37:24]autowzry0>只战一天, 领取礼包后退出
[10-19 00:37:24]autowzry0>保存 [android.960.540.dict.0.yaml]
[10-19 00:37:28]autowzry0>打开APP[com.tencent.tmgp.sgame]中
[10-19 00:37:48]autowzry0>第[1]次寻找王者礼包.每日礼包返回按钮(1/5):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1694442171115.png)
[10-19 00:37:52]autowzry0>第[1]次寻找王者礼包.每日礼包返回按钮(2/5):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1707399262936.png)
[10-19 00:37:55]autowzry0>第[1]次寻找王者礼包.每日礼包返回按钮(3/5):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1694442136196.png)
[10-19 00:37:59]autowzry0>第[1]次寻找王者礼包.每日礼包返回按钮(4/5):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1692949580380.png)
[10-19 00:38:02]autowzry0>第[1]次寻找王者礼包.每日礼包返回按钮(5/5):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1707301421376.png)
[10-19 00:38:05]autowzry0>第[1]次寻找大厅元素(1/3):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1723219359665.png)
[10-19 00:38:09]autowzry0>第[1]次寻找大厅元素(2/3):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1739510088247.png)
[10-19 00:38:12]autowzry0>第[1]次寻找大厅元素(3/3):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1723219381063.png)
[10-19 00:38:15]autowzry0>判断大厅中.王者礼包. 活动更新,大厅界面改变,将采用动态判断措施
[10-19 00:38:15]autowzry0>touch (record_pos) 位置大厅个人(19, 30)
[00:38:17][ERROR]<airtest.core.android.touch_methods.touch_proxy> stdout[b''] stderr[b'chmod: /data/local/tmp/minitouch: No such file or directory\r\n']
stdout[b''] stderr[b'chmod: /data/local/tmp/minitouch: No such file or directory\r\n']
[00:38:17][WARNING]<airtest.core.android.touch_methods.touch_proxy> MINITOUCH setup up failed!
MINITOUCH setup up failed!
airtest\core\android\touch_methods\touch_proxy.py:82: UserWarning: Currently using ADB touch, the efficiency may be very low.
warnings.warn("Currently using ADB touch, the efficiency may be very low.")
[10-19 00:38:19]autowzry0>校验完成,游戏界面已更新,将采用兼容模式
[10-19 00:38:21]autowzry0>touch 返回.1
[10-19 00:38:34]autowzry0>NotFound 返回.2
[10-19 00:38:37]autowzry0>保存 [android.960.540.dict.0.yaml]
[10-19 00:38:40]autowzry0>当前[每日礼包_邮件礼包]功能仅适配至[2025年10月01日],后续时间可能无法使用
[10-19 00:38:44]autowzry0>第[2]次寻找大厅元素(1/3):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1723219359665.png)
[10-19 00:38:47]autowzry0>第[2]次寻找大厅元素(2/3):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1739510088247.png)
[10-19 00:38:50]autowzry0>第[2]次寻找大厅元素(3/3):Template(C:\Users\zsxl\Downloads\autowzry251017\_MEI456402\assets\tpl1723219381063.png)
[10-19 00:38:53]autowzry0>判断大厅中.每日礼包_邮件礼包. 活动更新,大厅界面改变,将采用动态判断措施
[10-19 00:38:53]autowzry0>touch (record_pos) 位置大厅个人(19, 30)
[10-19 00:38:55]autowzry0>校验完成,游戏界面已更新,将采用兼容模式
[10-19 00:38:57]autowzry0>touch 返回.1
[10-19 00:39:10]autowzry0>NotFound 返回.2
[10-19 00:39:14]autowzry0>保存 [android.960.540.dict.0.yaml]
[10-19 00:39:17]autowzry0>set_timelimit: 每日礼包_邮件礼包.运行.0.次
[10-19 00:39:17]autowzry0>touch (record_pos) 位置大厅邮件(826, 29)
[10-19 00:39:21]autowzry0>touch (saved) 好友邮件
[10-19 00:39:28]autowzry0>touch 收到邮件
[10-19 00:39:36]autowzry0>NotFound 快速领取
[10-19 00:39:38]autowzry0>touch 系统邮件
[10-19 00:39:47]autowzry0>NotFound 系统礼物关闭.1
[10-19 00:39:52]autowzry0>touch 系统快速领取
[10-19 00:39:57]autowzry0>touch (record_pos) 王者礼包_点击继续.屏幕中心(788, 486)
[10-19 00:40:07]autowzry0>NotFound 系统礼物关闭.1
[10-19 00:40:13]autowzry0>touch 黄色礼物确定.1
[10-19 00:40:26]autowzry0>NotFound 黄色礼物确定.2
[10-19 00:40:33]autowzry0>NotFound 下次再选礼物
[10-19 00:40:36]autowzry0>NotFound 系统礼物关闭.1
[10-19 00:40:44]autowzry0>NotFound 系统礼物确定
[10-19 00:40:47]autowzry0>NotFound 系统礼物确定.1
[10-19 00:40:53]autowzry0>touch 返回.1
[10-19 00:41:06]autowzry0>NotFound 返回.2
[10-19 00:41:09]autowzry0>立刻结束程序END.只战一天,本进程结束
[10-19 00:41:09]autowzry0>关闭APP[com.tencent.tmgp.sgame]中
[10-19 00:41:15]autowzry0>尝试关闭设备中...
[10-19 00:41:15]autowzry0>run_command.关闭设备.END.RUN.single_execute.execute.main.<module>
[10-19 00:41:15]autowzry0> sysrun:'C:\Users\zsxl\AppData\Local\Android\Sdk\platform-tools\adb.exe' disconnect emulator-5554