Git Product home page Git Product logo

Comments (18)

CiaoFox avatar CiaoFox commented on July 3, 2024 11

已经成功跳跃,但是是改动了新的参数,按照楼下某个参数贴微调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
}
}

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

@CiaoFox 请打开模拟点击

from wechat_jump_game.

ohoh3000 avatar ohoh3000 commented on July 3, 2024

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

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

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

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

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

from wechat_jump_game.

ohoh3000 avatar ohoh3000 commented on July 3, 2024

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

from wechat_jump_game.

ohoh3000 avatar ohoh3000 commented on July 3, 2024

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

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

@Clayeo 所以现在能跳了吗

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

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

from wechat_jump_game.

ohoh3000 avatar ohoh3000 commented on July 3, 2024

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

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

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

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

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

from wechat_jump_game.

ohoh3000 avatar ohoh3000 commented on July 3, 2024

python wechat_jump_auto.py 这个

from wechat_jump_game.

CiaoFox avatar CiaoFox commented on July 3, 2024

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

from wechat_jump_game.

CiaoFox avatar CiaoFox commented on July 3, 2024

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

from wechat_jump_game.

leon332157 avatar leon332157 commented on July 3, 2024

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

from wechat_jump_game.

CiaoFox avatar CiaoFox commented on July 3, 2024

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

from wechat_jump_game.

Related Issues (20)

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.