make sure adb is ready for any path
- Install matplotlib:
- for Python 2: pip install matplotlib
- for Python 3: pip3 install matplotlib
- Connect your Android phone to your computer and select 'USB for file transfer'.
- Open the game and be ready to jump.
- Run the main.py and a screenshot will popup shortly.
- Click the character bottom and then click the destination center.
- The character will jump automatically.
- Close the screenshot window and ready for another jump.
- Enjoy!
The script uses adb to get the screenshot and calculate the coordination of your two click(start point and stop point) and give a proper jumping
Deep Learning version is under development...
Windows User before "npm install sleep", please install windows-build-tools first(which is sometimes not useful)
npm install --global --production windows-build-tools
You can also delete "sleep" related code(but have big risk if server verifies timestamp)
install nodejs, execute below steps in wx_t1t_hack.js dir
- npm init --y
- npm install crypto-js request-promise sleep
replace session id with yours modify score and associated i in loop (session id could be fetched by fiddle or charles)
Update:
- referer version:5->6
- data version: 1->2
- data format:add fields [steps, timestamp]
Please do not post score over 1000, otherwise you have risk, such as ban!
在使用前确保adb程序已经安装并且能在任何路径下执行adb命令
- 安装matplotlib库:
- Python 2: pip install matplotlib
- Python 3: pip3 install matplotlib
- 连接你的安卓手机到你电脑上,选择USB文件传送
- 启动游戏,进入起跳画面
- 运行main.py,游戏截图会自动出现
- 点击角色的底部中间,然后再点击需要跳到的地方的位置
- 自动开始起跳
- 关闭截图窗口,进入下一次起跳阶段
- 玩的开心!
脚本用adb获取屏幕截图并计算鼠标两次点击的距离,换算成起跳时间
机器学习(强化学习)版正在开发中,敬请期待...
安装nodejs,在脚本wx_t1t_hack.js目录下执行
- npm init --y
- npm install crypto-js request-promise sleep
Windows用户 npm install sleep 在windows需要额外安装编译套件并且不保证成功
npm install --global --production windows-build-tools
也可以删除sleep相关代码(如果服务器校验timestamp,风险会很大)。
修改脚本wx_t1t_hack.js的senssion_id为你自己的session id 分数和对应的i的循环次数改成相应大致分数范围 (session id可以通过fiddle或者charles得到)
据观察,目前上万的用户会被关小黑屋(其他用户不可见你的分数),上千的也有被ban的可能。 不知道是因为数据不可信还是分数太高本身的原因,玩家务必控制分数在三位数。
更新:
- referer版本:5->6
- 数据版本: 1->2
- 数据格式:添加字段[steps, timestamp]