panshujia / pcr-farm-script Goto Github PK
View Code? Open in Web Editor NEW公主连结农场脚本
公主连结农场脚本
用mumu模拟器多开,adb devices总共只有一个设备,请问有什么其他的选择控制哪个界面的方法吗。
还有login函数的参数只有2个,main里给了3个。
有没有大佬知道这个错误是什么原因导致的?
Traceback (most recent call last):
File "Z:/python/first/farm.py", line 199, in
login(lines[i], [accountList[i + step * 4].split(' ')[0], accountList[i + step * 4].split(' ')[1][0:-1]])
File "Z:/python/first/farm.py", line 120, in login
if Image_to_position(image, m=0) != False:
File "Z:/python/first/farm.py", line 43, in Image_to_position
template = resize_img(image_path)
File "Z:/python/first/farm.py", line 33, in resize_img
height, width = img1.shape[:2]
新农场的截图点击速度比旧的快不少,建议在 进去→确认公告,点击主线→点击3-1,地下城1层确认战斗→点击支援,地下城开战→点击撤退这几个地方加几个sleep,有时候会因为速度过快,后面的操作接不上。
按readme说的安装好了adb和cv2,但打开main.py时,cmd窗口闪一下就没了,不能运行,所以来讨个教程。(萌新不懂)
rt
up我又来咨询了qwq
看了login函数没找到,请问这两部是怎么解决的
退出登录后需要一直点右上角切换账号才能出现登录界面,否则会直接进游戏。
之后登录会直接显示账号而不是ID那个图片,怎么定位和删除原账号的。
(还有tohomepage函数是做什么的)
File "c:/Users/Viper/Desktop/pcr-farm-script-master/main.py", line 205
time.sleep(4)
^
SyntaxError: invalid syntax
问一下这个是什么原因
大佬我90行的to homepage显示list out of range,所属错误为tohomepage(lines)是什么问题WWW,请教大佬
Traceback (most recent call last):
File "Z:/python/first/farm.py", line 201, in
tohomepage(lines)
File "Z:/python/first/farm.py", line 93, in tohomepage
screenshot(nameList[0])
IndexError: list index out of range
无法使用自己截取的图片,笔记本分辨率1600900,雷电模拟器分辨率1280720
手机截取的图片也识别不了,不知道在哪设置参数
农场号升级怎么办,怎么用if判断是升级了呢??
还有mainrun 和 manrunQuick有什么区别呢。。。
运行脚本报错,已安装adb,cmd 输入 adb 可识别。
另外txt里面的账号密码需要加单引号么
老哥如果不介意的话 能否留个联系方式 请教下
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.