小米6参数
CiaoFox opened this issue · comments
正在从 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中,但是依然无法跳出任何一步。
我跳出数步之后再运行程序,但是要么刚好跳过最远处,要么就是跳跃一个很低的距离,依然无法使用。
遇到同问题了,模拟点击已经开启了
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
同mi6,每次都跳过了很远,有的时候又很近,配置把mi6的配置文件复制粘贴到1920x1080,改成默认的config.json的,但是跳的不对,没有成功过一次
不能,改配置感觉没变化,运行时也提示确实是载入的是那个config.json, 一直都能跳啊,就是从来没跳对。不弄了
python wechat_jump_auto.py 这个
已经成功跳跃,但是是改动了新的参数,按照楼下某个参数贴微调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
}
}
@Clayeo
@leon332157
修改参数后实现,具体已经发在楼上。我看到最后一次更新是在3,4个月之前,也许是跳一跳在这段时间内更新过。
@leon332157
另外关于作弊代码,我之前一次跳到400+的分数之后关闭程序开始手动跳跃,大概跳了十来步之后跳下台子。成绩能上榜。我认为也许跳一跳的防ban代码可以通过在数次跳跃到中心之后减小跳跃时间和增大落点误差值来避免(类似于人的行为)。
@leon332157 非常谢谢dalao还在关注着这个项目并且回复我的问题。
搭个车...
想邀请Repo参与者来w3c.group创建项目的对应小组。w3c.group是类似知识星球的社群工具,小组可设置为付费且有赞助功能,同时也是一个区块链主导的创作者社区。这是相关介绍:
http://t.cn/Ai1vLcCU
http://t.cn/Ai1vLcCG
http://t.cn/Ai1vLcCA