Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小米6参数 #1236

Open
CiaoFox opened this issue Apr 29, 2018 · 17 comments
Open

小米6参数 #1236

CiaoFox opened this issue Apr 29, 2018 · 17 comments

Comments

@CiaoFox
Copy link

CiaoFox commented Apr 29, 2018

正在从 F:\wechat_jump_game-master/config/1920x1080/config.json 加载配置文件
Screen: Physical size: 1080x1920
Density: Physical density: 480
Device: sagit
Phone OS: 8.0.0
Host OS: win32
Python: 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]

遇到问题:
无法成功跳出任何一步,每次都是跳到最远处。已经将mi6的json改名放入1920x1080中,但是依然无法跳出任何一步。
我跳出数步之后再运行程序,但是要么刚好跳过最远处,要么就是跳跃一个很低的距离,依然无法使用。

@leon332157
Copy link
Collaborator

@CiaoFox 请打开模拟点击

@ohoh3000
Copy link

遇到同问题了,模拟点击已经开启了

@leon332157
Copy link
Collaborator

@CiaoFox @Clayeo 屏幕有没有adb输出?

@leon332157
Copy link
Collaborator

@CiaoFox @Clayeo 脚本里重定向了输出,你应该看的到adb的输出,包括x轴和y轴

@ohoh3000
Copy link

Screen: Physical size: 1080x1920
Density: Physical density: 480
Device: sagit
Phone OS: 8.0.0
Host OS: win32
Python: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]


▒▒▒÷▒ʽ 0 ▒▒ȡ▒▒ͼ
start scan Y axis: 690
1525097470 336 1109 788.5 845
shell input swipe 429 1528 426 1480 1032
start scan Y axis: 640
1525097473 0 0 0 0
shell input swipe 714 1710 692 1722 200
start scan Y axis: 690
1525097476 336 1109 788.5 845
shell input swipe 477 1467 442 1586 1032
start scan Y axis: 640
1525097479 0 0 0 0
shell input swipe 738 1446 643 1312 200
start scan Y axis: 640
1525097482 0 0 0 0
shell input swipe 629 1762 478 1608 200

@ohoh3000
Copy link

同mi6,每次都跳过了很远,有的时候又很近,配置把mi6的配置文件复制粘贴到1920x1080,改成默认的config.json的,但是跳的不对,没有成功过一次

@leon332157
Copy link
Collaborator

@Clayeo 所以现在能跳了吗

@leon332157
Copy link
Collaborator

@Clayeo 你看一下 #62 #61 里面有没有

@ohoh3000
Copy link

ohoh3000 commented May 1, 2018

不能,改配置感觉没变化,运行时也提示确实是载入的是那个config.json, 一直都能跳啊,就是从来没跳对。不弄了

@leon332157 leon332157 reopened this May 1, 2018
@leon332157
Copy link
Collaborator

@Clayeo 好像是有问题,之前好几个人说修改配置没反应,我需要看下脚本

@leon332157
Copy link
Collaborator

@Clayeo 麻烦问你下你用的是哪个脚本?

@ohoh3000
Copy link

ohoh3000 commented May 1, 2018

python wechat_jump_auto.py 这个

@CiaoFox
Copy link
Author

CiaoFox commented May 4, 2018

已经成功跳跃,但是是改动了新的参数,按照楼下某个参数贴微调json数据之后依然没有实现,于是开始查看按压参数,最终通过不断修改scale参数实现了基本每次都跳跃到中心。
scale = 0.655 * 2 / head_diameter
actual_distance = distance * scale * (math.sqrt(6) / 2)
press_time = (-945 + math.sqrt(945 ** 2 + 4 * 105 *
36 * actual_distance)) / (2 * 105) * 1000
press_time *= press_coefficient
press_time = max(press_time, 200) # 设置 200ms 是最小的按压时间
press_time = int(press_time)

JSON的参数
{
"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": 1600
}
}

@CiaoFox
Copy link
Author

CiaoFox commented May 4, 2018

@Clayeo
@leon332157
修改参数后实现,具体已经发在楼上。我看到最后一次更新是在3,4个月之前,也许是跳一跳在这段时间内更新过。

@CiaoFox
Copy link
Author

CiaoFox commented May 4, 2018

@leon332157
另外关于作弊代码,我之前一次跳到400+的分数之后关闭程序开始手动跳跃,大概跳了十来步之后跳下台子。成绩能上榜。我认为也许跳一跳的防ban代码可以通过在数次跳跃到中心之后减小跳跃时间和增大落点误差值来避免(类似于人的行为)。

@leon332157
Copy link
Collaborator

@CiaoFox 谢谢参数,关于作弊代码的话可以试试,但是现在微信检查非常严厉再加上现在貌似也没什么人玩了,有时间再改吧。 😄

@leon332157 leon332157 changed the title MI6,使用基本代码一步都没法成功。 小米6参数 May 4, 2018
@leon332157 leon332157 reopened this May 4, 2018
@CiaoFox
Copy link
Author

CiaoFox commented May 10, 2018

@leon332157 非常谢谢dalao还在关注着这个项目并且回复我的问题。

@isdotjim
Copy link

搭个车...
想邀请Repo参与者来w3c.group创建项目的对应小组。w3c.group是类似知识星球的社群工具,小组可设置为付费且有赞助功能,同时也是一个区块链主导的创作者社区。这是相关介绍:
http://t.cn/Ai1vLcCU
http://t.cn/Ai1vLcCG
http://t.cn/Ai1vLcCA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants