Giter Site home page Giter Site logo

pcr-farm-script's Issues

设备列表只有一个

用mumu模拟器多开,adb devices总共只有一个设备,请问有什么其他的选择控制哪个界面的方法吗。
还有login函数的参数只有2个,main里给了3个。

'NoneType' object has no attribute 'shape' 问题

有没有大佬知道这个错误是什么原因导致的?
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,有时候会因为速度过快,后面的操作接不上。

请问是怎么解决切换账号和输入问题的

up我又来咨询了qwq
看了login函数没找到,请问这两部是怎么解决的
退出登录后需要一直点右上角切换账号才能出现登录界面,否则会直接进游戏。
之后登录会直接显示账号而不是ID那个图片,怎么定位和删除原账号的。
(还有tohomepage函数是做什么的)

SyntaxError: invalid syntax

File "c:/Users/Viper/Desktop/pcr-farm-script-master/main.py", line 205
time.sleep(4)
^
SyntaxError: invalid syntax

问一下这个是什么原因

93行tohomepage显示list out of range

大佬我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
手机截取的图片也识别不了,不知道在哪设置参数

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.