正在从 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中,但是依然无法跳出任何一步。
我跳出数步之后再运行程序,但是要么刚好跳过最远处,要么就是跳跃一个很低的距离,依然无法使用。
@CiaoFox 请打开模拟点击
遇到同问题了,模拟点击已经开启了
@CiaoFox @Clayeo 屏幕有没有adb输出?
@CiaoFox @Clayeo 脚本里重定向了输出,你应该看的到adb的输出,包括x轴和y轴
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的,但是跳的不对,没有成功过一次
@Clayeo 所以现在能跳了吗
@Clayeo 你看一下 #62 #61 里面有没有
不能,改配置感觉没变化,运行时也提示确实是载入的是那个config.json, 一直都能跳啊,就是从来没跳对。不弄了
@Clayeo 好像是有问题,之前好几个人说修改配置没反应,我需要看下脚本
@Clayeo 麻烦问你下你用的是哪个脚本?
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代码可以通过在数次跳跃到中心之后减小跳跃时间和增大落点误差值来避免(类似于人的行为)。
@CiaoFox 谢谢参数,关于作弊代码的话可以试试,但是现在微信检查非常严厉再加上现在貌似也没什么人玩了,有时间再改吧。 😄
@leon332157 非常谢谢dalao还在关注着这个项目并且回复我的问题。
Most helpful comment
已经成功跳跃,但是是改动了新的参数,按照楼下某个参数贴微调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
}
}