Skip to content

Releases: YKLovePython/ournotes-autoplay

v2.0.0 —— 零标定(几何从游戏数据算) / zero-calibration

Choose a tag to compare

@YKLovePython YKLovePython released this 16 Oct 09:57

谛听 v2.0.0 —— 零标定版本

你按第 1 个音符,它把整首打完。 落点全部由游戏自己的数据算出来,跟你的手指点在哪无关;
你的第一下只提供时间(内核时间戳)。

这一版最大的变化:把"要标定的"变成"要算的"

演奏区几何不再靠量画面,而是从游戏场景 EmbScene/Live 里读出来:

从游戏数据读到的 值
判定平面(judgementScreenBottomPosition = 2.24,平面半高 ±5.4) y = −3.16 → 屏高的 79.26%
谱面 24 格(laneCount = 24) 格距 0.64237 平面单位
演奏相机 fov / 判定平面到相机的距离 54° / 10.6078(该处视锥半高 5.4048 ≈ 平面半高 5.4)

⇒ 平面 1:1 铺在屏幕高度上、横向居中,于是:

1 平面单位 = 屏高 H / 10.8 像素
x(格位 c)  = W/2 + (c − 12) × 0.64237 × H / 10.8
判定线 y   = H × 0.79259

换手机、换分辨率都不需要标定。 实测复核(31 张实机 2510×1156 无损截图):
车道线间距残差中位 −1.1%。

顺带修掉的老问题(这就是重做的原因)

旧实现 真值 后果
判定线 y 83.04%(取了下面那条装饰紫线) 79.26% 偏低 44 px
每格宽度 71.7 px 68.8 px 偏宽 5.5%
最外侧格落点 393 px 430 px 偏 37 px,掉到最外侧车道命中区之外

用法(四步)

  1. 下载下面这个 zip,解压;
  2. 手机打开 USB 调试、插线、弹窗勾"始终允许";
  3. 游戏里选好歌和难度,停在有 LIVE START 的那一页;
  4. 双击 谛听.exe → 回车选歌、回车选难度 → 演奏画面出来后按第 1 个音符。

启动会自动跑只读自检;选歌界面按 c = 完整自检(含试建虚拟触摸屏)。
便携版自带运行库,不用装 Python(Windows 10/11 x64 + 安卓手机)。

校验与时间存证

  • 发布包 SHA-256:4220681dd8f44072d791e3f9bd1d2dbdd533cc95d94c6ead2e9ecb7adfb49311
  • RFC 3161 可信时间戳(FreeTSA):timestamp/Diting-OurNotes-Autoplay-v2.0.0-win64.zip.tsr
  • 比特币时间戳(OpenTimestamps):timestamp/Diting-OurNotes-Autoplay-v2.0.0-win64.zip.ots
  • 独立验证方法:timestamp/验证方法_v2.0.0.md

交流群 227897560 | B站 作业快没了


Diting v2.0.0 — zero-calibration release

You tap the first note; it plays the rest. Every touch position is computed from the game's own
scene data — nothing to calibrate, nothing to measure by eye. Your first tap only supplies a
timestamp (its kernel timestamp).

Geometry is now read out of the game's EmbScene/Live scene (judgement line at 79.26 % of screen
height
; 24-unit lane grid, 0.64237 units apart; lane camera fov = 54°; judgement plane 10.6078
units from the camera, where the frustum half-height 5.4048 equals the plane's half-height 5.4),
which yields a one-line device rule: the plane maps 1:1 onto the screen height, centred
horizontally
→ 1 plane unit = H / 10.8 px. No calibration on a new phone.
Verified against 31 full-resolution screenshots taken on the device (lane-line spacing residual
−1.1 % median).

Usage

  1. Download the zip below and extract it.
  2. Enable USB debugging, connect the phone, accept the prompt (“always allow”).
  3. Pick a song and difficulty in the game and stop on the page with LIVE START.
  4. Double-click 谛听.exe, press Enter twice, then tap the first note when the play screen appears.

A read-only self-check runs at startup; press c in the song list for the full check.
The portable build bundles its own runtime — no Python needed (Windows 10/11 x64 + Android).

Release SHA-256: 4220681dd8f44072d791e3f9bd1d2dbdd533cc95d94c6ead2e9ecb7adfb49311
(RFC 3161 + Bitcoin timestamp proofs under timestamp/.)

For study and technical research only. Automation may violate the game's terms of service —
use at your own risk, never on your main account. MIT licensed.

v1.0.1 一键自检 · 仅适配 Windows + 安卓 · 点击即用

Choose a tag to compare

@YKLovePython YKLovePython released this 09 Oct 18:30

v1.0.1 — 一键自检 · 明确适配范围 · 点击即用

⚠️ 适配范围(重要)

仅验证于:Windows 10/11 电脑 + 安卓手机。

  • macOS、Linux 电脑:不支持(adb / 触控链路未适配、未测试)
  • iPhone / iPad:不支持(本项目走的是 Android 的 adb + UHID 通道)
  • 上一个版本(v1.0.0)同样只在这套组合上验证过——本次把它明确标注出来。

本次更新

变化 说明
新增「一键自检」 便携版里双击 一键自检.bat(或 人手起手.exe --check)。它会依次检查:系统环境 / 依赖库 / 程序文件 / 谱面数据 / adb / 手机连接(USB 还是无线)/ 手机型号·安卓版本·屏幕·前台应用·触摸屏 / 触控注入通道能否建立。结果打印并保存到 logs\自检_日期_时间.txt —— 把这个文件发给作者,环境类问题基本一次定位。
开跑前自动自检 启动时会快速检查依赖、谱面数据、adb 和手机,缺什么当场提示,不再等到跑一半才报错。
双击 exe 就能用 程序自己把控制台切成 UTF-8,中文不再乱码;启动.bat 仍然保留(等价)。
报错更好懂 连不上手机、掉线等情况会给出具体排查步骤,而不是一串 Python 报错。

下载

文件 说明
ournotes-autoplay-portable-win64.zip 免环境 Windows 版(98 MB)。解压 → 双击 启动.bat 或 人手起手.exe。内置 Python、numpy、OpenCV、ffmpeg、adb,不用装任何东西。
OurNotes-Autoplay-20261003.zip 2026-10-03 封存并加了时间戳的源码包(比特币区块 969627 + FreeTSA RFC3161),证据见仓库 timestamp/。

用法(三步)

  1. 解压,双击 启动.bat
  2. 选歌(回车 = 上次那首;也可输关键字或曲目号)
  3. 脚本自己点 LIVE START → 你按第 1 个音符 → 松手,剩下的它自己打完

出问题:先双击 一键自检.bat,把 logs\自检_*.txt 发出来。

English

Verified platform: Windows PC + Android phone only. macOS, Linux and iOS are not
supported and have not been tested (this was also true for v1.0.0 — now stated explicitly).

  • New one-click environment check (一键自检.bat / 人手起手.exe --check): verifies
    system, libraries, program files, chart data, adb, the phone connection (USB or wireless),
    device details and whether the touch-injection channel can be created. Writes
    logs\自检_*.txt — send that file to get a bug diagnosed quickly.
  • Pre-flight check on startup: missing dependencies / data / phone are reported up front.
  • Double-click and run: the program sets the console to UTF-8 itself, so the Chinese UI
    renders correctly without the .bat.
  • Clearer errors for "phone not found" / "connection dropped".

Downloads: the portable Windows build (nothing to install) and the timestamped sealed
source archive.


作者:B 站 作业快没了 · 交流群 227897560 · 交流贴
介绍页:https://github.com/YKLovePython/bandori-ournotes-autoplay

仅供研究与学习;自动化游玩可能违反游戏服务条款,账号风险自负。

v1.0.0 完整源码 · 免环境 Windows 版 · 时间戳封存包

Choose a tag to compare

@YKLovePython YKLovePython released this 09 Oct 18:19

⚠️ 适配范围:仅验证于 Windows 电脑 + 安卓手机。 macOS / Linux / iOS 设备不支持,也未做验证。
⚠️ Verified platform: Windows PC + Android phone only. macOS / Linux / iOS are not supported and were not tested.


v1.0.0 — 完整源码 · 免环境 Windows 版 · 时间戳封存包

《BanG Dream! Our Notes》人机协同自动演奏的完整实现,今天全部公开。

你按第 1 个音符,脚本从第 2 个音符起把整首打完。 原厂 Android、免 root;
触控走 scrcpy-server 的虚拟 HID 触摸屏;谱面驱动,支持长条横移跟随与头尾轻扫。


下载

文件 是什么 用法
ournotes-autoplay-portable-win64.zip 免环境 Windows 版(98 MB)——内置 Python 3.11、numpy、OpenCV、ffmpeg 和 adb,不用装任何东西 解压 → 双击 启动.bat
OurNotes-Autoplay-20261003.zip 2026-10-03 封存并加了时间戳的源码包(149 KB) 时间证据,见仓库 timestamp/

便携版用法:解压 → 手机开 USB 调试(或配无线调试)→ 双击 启动.bat → 选歌 →
脚本自己点 LIVE START → 你按第 1 个音符 → 剩下的它自己打完。
详细说明见包内 使用说明.txt。


时间戳存证(先承诺、后揭示,现已闭环)

2026-10-03 先把 OurNotes-Autoplay-20261003.zip 的哈希写进了比特币区块链,
当时代码并未公开。今天把源码和同一个封存包一起公开,任何人都可以端到端核对:

封存包 SHA-256 : 80109e206e2d2562bbea5443ea6307c114765c76d3dce334114827b85215b6af
比特币          : 区块 969627(区块时间 2026-10-02 19:37:33 UTC = 北京 2026-10-03 03:37:33)
RFC 3161        : FreeTSA 签发,genTime 2026-10-02 19:30:36 UTC(北京 03:30:36)

验证方法(不需要信任作者,也不需要信任 GitHub):

# 1) 下载本 Release 里的 OurNotes-Autoplay-20261003.zip,算它的 SHA-256
certutil -hashfile OurNotes-Autoplay-20261003.zip SHA256

# 2) 用仓库 timestamp/ 里的 .ots 验证它被写进了比特币区块 969627
python timestamp/ots_verify_independent.py OurNotes-Autoplay-20261003.zip timestamp/OurNotes-Autoplay-20261003.zip.ots

# 3) 用 timestamp/ 里的 .tsr 与证书验证 TSA 签名
openssl ts -verify -in timestamp/OurNotes-Autoplay-20261003.zip.tsr \
                   -data OurNotes-Autoplay-20261003.zip \
                   -CAfile timestamp/freetsa_cacert.pem -untrusted timestamp/freetsa_tsa.crt

English

Full public release of the human-in-the-loop autoplay for BanG Dream! Our Notes:
you tap the first note, it plays the rest. Stock Android, no root, virtual HID
touchscreen via scrcpy-server, chart-driven, with hold-bar following and flick support.

  • ournotes-autoplay-portable-win64.zip — ready-to-run Windows build (Python, OpenCV,
    ffmpeg and adb bundled; nothing to install). Unzip and run 启动.bat.
  • OurNotes-Autoplay-20261003.zip — the sealed source archive whose SHA-256 was anchored
    into Bitcoin block 969627 on 2026-10-03, before the code was published.

The source is public now, so the whole claim is verifiable end to end: hash the archive,
check it against the Bitcoin block, and compare it with this repository.


作者:B 站 作业快没了 · 交流群 227897560 · 交流贴
介绍页:https://github.com/YKLovePython/bandori-ournotes-autoplay

仅供研究与学习;自动化游玩可能违反游戏服务条款,账号风险自负。