dwayneten / jgm-automator Goto Github PK
View Code? Open in Web Editor NEW《家国梦》游戏自动化脚本 收取金币💰/自动送货📦/升级建筑🏗/刷新火车🚂/极速开红包相册💌
License: MIT License
《家国梦》游戏自动化脚本 收取金币💰/自动送货📦/升级建筑🏗/刷新火车🚂/极速开红包相册💌
License: MIT License
每次main.py运行后,控制台等好久都没输出,我每次都敲好多回车后才开始运行(不确定我的回车起没起作用),不知道这是什么原因
如上,不更新游戏会在重启游戏的时候弹窗卡住,更新了就无法识别火车
用的Mumu模拟器,刷金币的时间间隔设为0,运行火车只收橙半小时左右就会出现
电脑是8G内存,模拟器默认配置4G内存
Traceback (most recent call last): File "C:\Program Files\Python37\lib\multiprocessing\process.py", line 297, in _bootstrap self.run() File "C:\Program Files\Python37\lib\multiprocessing\process.py", line 99, in run self._target(*self._args, **self._kwargs) File "D:\github\python\JGM-Automator\main.py", line 15, in main instance.start() File "D:\github\python\JGM-Automator\automator.py", line 166, in start has_goods |= self._match_target(screen, target) File "D:\github\python\JGM-Automator\automator.py", line 249, in _match_target result = UIMatcher.match(screen, target) File "D:\github\python\JGM-Automator\cv.py", line 39, in match res = cv2.matchTemplate(screen, template, cv2.TM_CCOEFF_NORMED) cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\core\src\alloc.cpp:72: error: (-4:Insufficient memory) Failed to allocate 49838424 bytes in function 'cv::OutOfMemoryError'
感觉和uiautomator2的这个bug有关 截图导致模拟器死机,怎么解决?
Process Process-1:
Traceback (most recent call last):
File "C:\Users\soamber\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "C:\Users\soamber\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "E:\辅助\JGM-Automator-master\main.py", line 15, in main
instance.start()
File "E:\辅助\JGM-Automator-master\automator.py", line 142, in start
if not self._need_continue():
File "E:\辅助\JGM-Automator-master\automator.py", line 80, in _need_continue
self._upgrade_to(target_level)
File "E:\辅助\JGM-Automator-master\automator.py", line 367, in _upgrade_to
tmp = UIMatcher.plain(tmp)
File "E:\辅助\JGM-Automator-master\cv.py", line 107, in plain
erode = cv2.erode(image, kernel)
cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\core\src\matrix.cpp:757: error: (-215:Assertion failed) dims <= 2 && step[0] > 0 in function 'cv::Mat::locateROI'
你好,我用了自动收货脚本 ,发现火车第三个位置的史诗货物是收不到,连接的MUMU模拟器,不知道是什么原因!
我读不懂代码,所以贴错误信息问问该如何解决,希望得到你的帮助!
read_params_file: parameter not found: ??
Process Process-1:
Traceback (most recent call last):
File "C:\Users\win\AppData\Local\Programs\Python\Python37-32\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "C:\Users\win\AppData\Local\Programs\Python\Python37-32\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "F:\Documents\JGM-Automator-master\main.py", line 15, in main
instance.start()
File "F:\Documents\JGM-Automator-master\automator.py", line 213, in start
self._upgrade()
File "F:\Documents\JGM-Automator-master\automator.py", line 335, in _upgrade
need_upgrade_building_seq = self._select_min_building()
File "F:\Documents\JGM-Automator-master\automator.py", line 307, in _select_min_building
txt = UIMatcher.image_to_txt(tmp, plus='-l chi_sim --psm 7')
File "F:\Documents\JGM-Automator-master\cv.py", line 79, in image_to_txt
txt_name + ' ' + plus, shell=True) # 生成同名txt文件
File "C:\Users\win\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\win\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'tesseract --dpi 72 ./tmp/tmp.jpg ./tmp/tmp -l chi_sim --psm 7' returned non-zero exit status 1.
想问一下作者大大用的是mumu么,夜神执行一段时间后卡的要死,不执行没事
运送货物的时候,我看日志是没有匹配到,分辨率都调成1920(长) * 1080(宽),dpi是320, 请问dpi调成多少合适?
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.