Coder Social home page Coder Social logo

dwayneten / jgm-automator Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 12.0 2.84 MB

《家国梦》游戏自动化脚本 收取金币💰/自动送货📦/升级建筑🏗/刷新火车🚂/极速开红包相册💌

License: MIT License

Python 100.00%
jiaguomeng python

jgm-automator's Introduction

 

jgm-automator's People

Contributors

dwayneten avatar jiahonzheng avatar qq4199 avatar shinewei527 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jgm-automator's Issues

启动很慢

每次main.py运行后,控制台等好久都没输出,我每次都敲好多回车后才开始运行(不确定我的回车起没起作用),不知道这是什么原因

Opencv报OutOfMemory

用的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'

main.py 运行一段时间就出错

我读不懂代码,所以贴错误信息问问该如何解决,希望得到你的帮助!

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么,夜神执行一段时间后卡的要死,不执行没事

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.