wangshub / wechat_jump_game

微信《跳一跳》Python 辅助
https://zhuanlan.zhihu.com/p/32452473
Apache License 2.0
13.84k stars 4.31k forks source link

参数不行的发这里 #62

Open binderclip opened 6 years ago

binderclip commented 6 years ago

现在只能做到一直跳下去(参数设置的合理的情况下),每次正中心是最终的目标。 常用调试思路:

=======

  1. 更新最新的代码
  2. 按下面的方式填写

模板如下

机型: 分辨率(具体到宽高): 电脑系统: 问题描述: (另外请尽量附一张 screenshot_backups 目录下的 _d.png 结尾画了线的图)

kongcz commented 6 years ago

IOError: [Errno 2] No such file or directory: './1.png'的确认下adb是否正常 命令行输入adb devices能否找到设备,如果提示dll文件问题的把adb全都拷到python工程目录下再试试

kaige2012 commented 6 years ago

把两个dll和adb拷到wechat_jump_game-master文件夹下就可以了,搞了半天没搞懂。。。

zhu-ting commented 6 years ago

机型:小米6 分辨率(具体到宽高):1920×1080 电脑系统:Mac 问题描述:跳了两个超准的之后方向不对了

direction_error

kioyong commented 6 years ago

小米MIX2的 请将 "under_game_score_y" 从300 改为 540, 可以跑分了, 原理是默认 1080 1920 的值 default 300, 小米MIX2的屏幕是 1080 2160 , 所以 under_game_score_y = 300 + (2160 - 1920) = 540 , 其他宽 为 1080 高不一样的手机也可以根据这样修改 @qisq777 @WersonLu

调试参数 { "under_game_score_y": 540, "press_coefficient": 1.400, (感觉还需要往上调点) "piece_base_height_1_2": 20, "piece_body_width": 70 }

hcder commented 6 years ago

方向不对或者是误差巨大的看一下是不是开了侧边栏

Raindr0p commented 6 years ago

在我的小米6上(1920x1080),mac下运行程序,将press_coefficient设为1.45即可正常运行,分数1000+

pangerl commented 6 years ago

机型:锤子M1l 分辨率:2560x1440 根据这个参数没挂过,就是不知道程序不稳定,还是我连接不稳定,刷一会儿脚本就会报错,但是游戏不会中断,重新执行脚本就可以继续了。 under_game_score_y = 390 press_coefficient = 1.04 piece_base_height_1_2 = 26 piece_body_width = 110

kiang70 commented 6 years ago

@kioyong 小米MIX2屏幕分辨率大了,不是都大在上边 了,怎么能直接加呢?根据我我实际测量 调试参数 { "under_game_score_y": 409, "press_coefficient": 1.400, (感觉还需要往上调点) "piece_base_height_1_2": 35, "piece_body_width": 80 } sample_board_x1, sample_board_y1, sample_board_x2, sample_board_y2 = 336.5, 1302, 789, 1041

3000+无压力

jimapple commented 6 years ago

piece_base_height_1_2 = 25 piece_body_width = 80 1.414 1920*1080 完美

xwsg commented 6 years ago

坚果pro2 2160x1080 采用以下配置,至少可刷到1000+

{
    "under_game_score_y": 300,
    "press_coefficient": 1.393,
    "piece_base_height_1_2": 20,
    "piece_body_width": 70
}
strongwong commented 6 years ago

小米5x 1920*1080 win10 最高200多 "press_coefficient": 1.494, "piece_base_height_1_2": 30, "piece_body_width": 80。 感觉是死在魔方识别错误。 1514664503_d

michelle6147 commented 6 years ago

三星 S8 Plus 分辨率2960*1440 到现在没试出来一个有用的参数 求一个可以用的参数

francisxie commented 6 years ago

press_time = math.pow(distance,0.85) press_coefficient 改为 press_time = distance press_coefficient 正常运行 1加3t 配置{ "under_game_score_y": 300, "press_coefficient": 1.392, "piece_base_height_1_2": 25, "piece_body_width": 80 }

asksajd commented 6 years ago

我是小白,可以帮我看下这是什么错误吗,谢谢

Load config file from ./config/2560x1440/config.json Traceback (most recent call last): File "D:\python\wechat_jump_game-master\wechat_jump_auto.py", line 62, in <mod ule> is_debug = config['debug'] KeyError: 'debug'

francisxie commented 6 years ago

is_debug =1

zy654781296 commented 6 years ago

机型:小米5s 分辨率(具体到宽高):1920*1080 电脑系统:win7 问题描述: 1514702073_d

zy654781296 commented 6 years ago

机型:小米5s 分辨率(具体到宽高):1920*1080 电脑系统:win7 问题描述: 第一步直接跳飞了,参数改小的话,又没法继续 1514702105_d

Vampire112 commented 6 years ago

MI4的参数怎么设置

simonzhoup commented 6 years ago

机型:小米6 分辨率(具体到宽高):1920*1080 电脑系统:ubuntu 16.4 问题描述: 只能跳几十分 1514719442_d

zhouCode commented 6 years ago

机型:小米6 分辨率:1920 x 1080 电脑系统:windows 10 修改参数:总感觉参数没啥影响,最小调到0.68,最大调过10,20,甚至999感觉区别都不是很大

还有发现一个问题就是, 离得近的方块经常跳不准(不管参数多大都会跳的近一些),离得远的方块经常就会跳到中心 1514719300_d

cold-snap commented 6 years ago

机型:小米6 分辨率(具体到宽高):1920*1080 电脑系统:win10 问题描述: 只能跳二三百分,离得近的经常跳偏 1514723791_d 1514723794 1514723794_d

zengmiaokun commented 6 years ago

手机S7 EDGE =====
Screen: Physical size: 1440x2560 Density: Physical density: 640 Override density: 560 DeviceType: SM-G9350

电脑系统:deepin 15.5 问题:一直都是0个,跳不准。

elton commented 6 years ago

===== Screen: Physical size: 1440x2960 Override size: 1080x2220 Density: Physical density: 560 Override density: 420 DeviceType: SM-G9550

不好用,都是0个

8oAssamo8 commented 6 years ago

机型:红米note3 分辨率:1920x1080 电脑系统:win10 1709 问题描述:

Screen: Physical size: 1080x1920 Density: Physical density: 480 DeviceType: Redmi Note 3

List of devices attached 75aa12a6 device

Traceback (most recent call last): File "wechat_jump_auto.py", line 234, in main() File "wechat_jump_auto.py", line 221, in main im = Image.open('./autojump.png') File "C:\Users\Shinelon\AppData\Local\Programs\Python\Python35\lib\site-packages\PIL\Image.py", line 2572, in open % (filename if filename else fp)) OSError: cannot identify image file './autojump.png'

hongyunfei commented 6 years ago

这个怎么玩的,有朋友教一下吗。QQ19502438

MostarChow commented 6 years ago

机型:一加5T 分辨率(具体到宽高): Screen: Physical size: 1080x2160 Density: Physical density: 420 问题描述: 一般跳到第三个开始偏移,不超过20分 1514742851_d

追加: 将 "press_coefficient" 改为 1.393 完美

vactowb commented 6 years ago

Screen: Physical size: 1440x2560 Density: Physical density: 640 DeviceType: SM-G9250 OS: darwin Python: 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]


List of devices attached 04157df4aa4fb93a device

Traceback (most recent call last): File "wechat_jump_auto.py", line 236, in main() File "wechat_jump_auto.py", line 223, in main im = Image.open('./autojump.png') File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2572, in open % (filename if filename else fp)) IOError: cannot identify image file './autojump.png'

ghost commented 6 years ago

Screen: Density: DeviceType: OS: win32 Python: 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)]


List of devices attached

error: device not found Traceback (most recent call last): File "auto.py", line 236, in main() File "auto.py", line 223, in main im = Image.open('./autojump.png') File "C:\Users\acer\AppData\Local\Programs\Python\Python35\lib\site-packages\PIL\Image.py", line 2572, in open % (filename if filename else fp)) OSError: cannot identify image file './autojump.png'

ls-v commented 6 years ago

image

blessu commented 6 years ago

机型:iPhone 7 分辨率(具体到宽高):-- 电脑系统:mac 问题描述:

建议将 wechat_jump_auto_iOS.py 中的

 if abs(pixel[0] - last_pixel[0]) + abs(pixel[1] - last_pixel[1]) + abs(pixel[2] - last_pixel[2]) > 10

改为

if abs(pixel[0] - last_pixel[0]) + abs(pixel[1] - last_pixel[1]) + abs(pixel[2] - last_pixel[2]) > 2

对于一些圆形带条纹board效果好,完成了500到1000以上的质变

此外

time.sleep(random.uniform(1, 1.1))   # 为了保证截图的时候应落稳了,多延迟一会儿

改成

time.sleep(random.uniform(1.4, 1.5))   # 为了保证截图的时候应落稳了,多延迟一会儿

这样可以吃到大多数的5/10/15/20。

cold-snap commented 6 years ago

小米6 win10 1920 1080 更新脚本后直接跳偏了,大约到20左右 1514781714_d 1514781745_d 1514781756_d 1514781775_d 1514781783_d

dmego commented 6 years ago

@cold-snap 关闭悬浮球

dadatom commented 6 years ago

修改参数再运行程序参数依然使用上一个配置的参数 _ _20180101145328

zhouCode commented 6 years ago

Screen: Physical size: 1080x1920 Density: Physical density: 480 DeviceType: MI 6 OS: win32 Python: 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] 每次识别图像很准,都能识别到正中心,但是跳的时候尤其距离近的方块,总是跳的近一些,基本每次都在200-250左右

catduck2010 commented 6 years ago

Screen: Physical size: 1440x2960 Density: Physical density: 560 DeviceType: SM-G9550 OS: win32 Python: 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] 三星S8+求一个能用的参数……跳的太远了……

dadatom commented 6 years ago

Screen: Physical size: 1080x1920 Density: Physical density: 460 Override density: 480 DeviceType: MI 5 OS: linux Python: 3.5.4rc1 (default, Jul 25 2017, 08:53:34) [GCC 6.4.0 20170704]


List of devices attached c90a4bc9 device

采用方式1获取截图 Traceback (most recent call last): File "wechat_jump_auto.py", line 380, in main() File "wechat_jump_auto.py", line 369, in main piece_x, piece_y, board_x, board_y = find_piece_and_board(im) File "wechat_jump_auto.py", line 203, in find_piece_and_board im_pixel=im.load() File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 212, in load s = read(self.decodermaxblock) File "/usr/lib/python3/dist-packages/PIL/PngImagePlugin.py", line 591, in load_read cid, pos, length = self.png.read() File "/usr/lib/python3/dist-packages/PIL/PngImagePlugin.py", line 116, in read raise SyntaxError("broken PNG file (chunk %s)" % repr(cid)) SyntaxError: broken PNG file (chunk b'AT\x8co') //真心看不懂啊.....大神帮帮忙

wizholy commented 6 years ago

一定要注意关掉悬浮球才可生效

QiLey commented 6 years ago

Screen: Physical size: 1080x1920 Density: Physical density: 480 DeviceType: PLK-TL01H OS: win32 Python: 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)]


List of devices attached A2JDU16705001835 device

Traceback (most recent call last): File "wechat_jump_auto.py", line 356, in main() File "wechat_jump_auto.py", line 343, in main im = Image.open('./autojump.png') File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 2519, in open % (filename if filename else fp)) OSError: cannot identify image file './autojump.png' //What's the problem?

yk133 commented 6 years ago

{ "under_game_score_y": 340, "press_coefficient": 2.27, "piece_base_height_1_2": 25, "piece_body_width": 80, "swipe" : { "x1": 500, "y1": 1600, "x2": 500, "y2": 1603 } }

360 N4 360OS3 改了好久的参数。。。终于能比较稳了。。【但是很奇怪。。。明明是1920*1080.。。

Gaturae commented 6 years ago

HTC M8 1920*1080 win7 vmo2dyf la _ ttyh8zk24q

连续两次都是跳这个点的时候,跳过了一点点掉下去了

cold-snap commented 6 years ago

谢谢,我关掉试试

发送自 Windows 10 版邮件应用

发件人: Dmego 发送时间: 2018年1月1日 14:44 收件人: wangshub/wechat_jump_game 抄送: Dali Yang; Mention 主题: Re: [wangshub/wechat_jump_game] 参数不行的发这里 (#62)

@cold-snap 关闭悬浮球 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

lsli0116 commented 6 years ago

Screen: Physical size: 1440x2880 Density: Physical density: 640 DeviceType: HTC 2Q4D200 OS: win32 Python: 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] 1514790998_d 参数: { "under_game_score_y": 300, "press_coefficient": 1.04, "piece_base_height_1_2": 28, "piece_body_width": 110, "swipe" : { "x1": 320, "y1": 410, "x2": 320, "y2": 410 } }

xuegaomian commented 6 years ago

红米5
分辨率1440*720这个参数咋设置???

Nyancat520 commented 6 years ago

机型:小米 note4x 分辨率(具体到宽高):1920X1080 电脑系统:win10 问题描述:不稳定一会跳100多一会200-400就失败了 这是现在的参数,还算跳的稳点,最多400多,不然只能100多: { "under_game_score_y": 300, "press_coefficient": 1.492, "piece_base_height_1_2": 20, "piece_body_width": 70, "swipe" : { "x1": 500, "y1": 1600, "x2": 500, "y2": 1602 } } 问题图片

ATrueFans commented 6 years ago

Screen: Physical size: 1440x2560 Density: Physical density: 640 DeviceType: VKY-AL00 OS: win32 Python: 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64) ]


采用方式2获取截图 scan_start_y: 903 Traceback (most recent call last): File "wechat_jump_auto.py", line 288, in main() File "wechat_jump_auto.py", line 277, in main piece_x, piece_y, board_x, board_y = find_piece_and_board(im) File "wechat_jump_auto.py", line 202, in find_piece_and_board for j in range(board_x_start, board_x_end): TypeError: 'float' object cannot be interpreted as an integer

bujueshi commented 6 years ago

{ "under_game_score_y": 300, "press_coefficient": 1.45, "piece_base_height_1_2": 20, "piece_body_width": 70, "swipe" : { "x1": 500, "y1": 1600, "x2": 500, "y2": 1602 } } 小米6 参数如上 能自动跳,但是200多分就会掉下去 希望哪位大神能给个好一点的参数

cloudflyz commented 6 years ago

机型:小米6 分辨率:1920 x 1080 电脑系统:windows 10 修改参数:"press_coefficient": 1.44,

700多的时候,方向出了点问题 1514864507_d

xuegaomian commented 6 years ago

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information.

= RESTART: C:\Users\XUE\Desktop\wechat_jump_game-master\wechat_jump_auto.py = Load default config 如果你的脚本无法工作,上报issue时请copy如下信息:


Screen: Physical size: 720x1440 Density: Physical density: 320 DeviceType: Redmi 5 OS: win32 Python: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]


采用方式2获取截图 ('scan_start_y: ', 530) (1514871850, 252, 804, 525, 646) adb shell input swipe 360 1188 360 1188 734

today010up commented 6 years ago

C:\Users\today\Desktop\game-master>python wechat_jump_auto.py Load config file from C:\Users\today\Desktop\game-master/config/1920x1080/config.json Traceback (most recent call last): File "wechat_jump_auto.py", line 248, in main() File "wechat_jump_auto.py", line 225, in main op = yes_or_no('请确保手机打开了 ADB 并连接了电脑,然后打开跳一跳游戏再用本程序,确定开始?') File "wechat_jump_auto.py", line 209, in yes_or_no i = raw_input(prompt) NameError: name 'raw_input' is not defined

luoxy123 commented 6 years ago

华为荣耀9 1920x1080的 参数如下:

{
    "under_game_score_y": 300,
    "press_coefficient": 1.393,
    "piece_base_height_1_2": 20,
    "piece_body_width": 70,
    "swipe": {
        "x1": 500,
        "y1": 1600,
        "x2": 500,
        "y2": 1602
    }
}

screenshot_20180102-231239

一直跳到了3000多分,不敢刷太高就停下来了