{"id":20548786,"url":"https://github.com/natescarlet/auto-derby","last_synced_at":"2025-09-02T04:30:43.249Z","repository":{"id":37487066,"uuid":"369886116","full_name":"NateScarlet/auto-derby","owner":"NateScarlet","description":"🐎🖥《赛马娘》（ウマ娘: Pretty Derby）辅助脚本 ","archived":true,"fork":false,"pushed_at":"2024-12-27T14:12:13.000Z","size":157716,"stargazers_count":468,"open_issues_count":9,"forks_count":105,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T00:02:24.064Z","etag":null,"topics":["automation","umamusume","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NateScarlet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-22T19:03:33.000Z","updated_at":"2025-04-01T06:14:29.000Z","dependencies_parsed_at":"2023-01-17T16:47:02.445Z","dependency_job_id":null,"html_url":"https://github.com/NateScarlet/auto-derby","commit_stats":null,"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"purl":"pkg:github/NateScarlet/auto-derby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateScarlet%2Fauto-derby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateScarlet%2Fauto-derby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateScarlet%2Fauto-derby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateScarlet%2Fauto-derby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NateScarlet","download_url":"https://codeload.github.com/NateScarlet/auto-derby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NateScarlet%2Fauto-derby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273233064,"owners_count":25068725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","umamusume","windows"],"created_at":"2024-11-16T02:14:48.430Z","updated_at":"2025-09-02T04:30:38.280Z","avatar_url":"https://github.com/NateScarlet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **📦仓库归档**：\n\u003e \n\u003e 作者去玩别的游戏了\n\u003e \n\u003e 有需要可以检查有没有在维护的[衍生分支](https://github.com/NateScarlet/auto-derby/network)可以满足需求\n\n# auto-derby\n\n![version](https://img.shields.io/github/v/tag/NateScarlet/auto-derby?label=version)\n[![python](https://github.com/NateScarlet/auto-derby/actions/workflows/python-app.yml/badge.svg)](https://github.com/NateScarlet/auto-derby/actions/workflows/python-app.yml)\n[![Join the chat at https://gitter.im/auto-derby/community](https://badges.gitter.im/auto-derby/community.svg)](https://gitter.im/auto-derby/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\n自动化养马\n\n| :exclamation: 脚本违反用户协议 请勿公开宣传 \u003cbr\u003e The script violates the user agreement, please do not publicize |\n| ---------------------------------------------------------------------------------------------------------------- |\n\n[FAQ](https://github.com/NateScarlet/auto-derby/wiki/FAQ)\n\n[育成结果 Nurturing result](https://github.com/NateScarlet/auto-derby/wiki/Nurturing-result)\n\n## 功能\n\n- [x] 支持客户端\n  - [x] DMM （前台）\n  - [x] _实验性_ 安卓 ADB 连接（后台）开发基于 1080x1920 分辨率\n- [x] 团队赛 (Team race)\n  - [x] 有胜利确定奖励时吃帕菲\n- [x] 日常赛 (Daily race)\n- [x] PvP 活动赛 (Champions meeting)\n- [x] 传奇赛 (Legend race)\n  - [x] 自动领奖励\n- [x] 活动抽奖转盘 (Roulette derby)\n- [x] 自定义限时商店处理\n  - [x] 插件 limited_sale_buy_everything：自动买下所有物品\n  - [x] 插件 limited_sale_buy_first_3：自动买前 3 个物品\n  - [x] 插件 limited_sale_ignore：无视限时商店\n- [x] 育成 (Nurturing)\n  - 剧本适配\n    - [x] 新設！　 URA ファイナルズ！！\n    - [x] アオハル杯～輝け、チームの絆～\n    - [x] Make a new track!! ～クライマックス開幕～\n  - [x] 自动选择训练\n    - [x] 基于当前属性\n    - [x] 基于训练效果\n    - [x] 基于训练等级\n    - [ ] 基于精确体力消耗\n    - [x] 基于羁绊值获取量\n    - [x] 暑期集训保留体力\n    - [ ] 年末抽奖前消耗体力\n  - [x] 遇到新事件选项请求人工处理，后续相同事件使用相同选择\n  - [x] 自动参加比赛\n    - [x] 预估比赛结果，如果不能仅靠属性拿冠军则暂停请求人工确认\n    - [x] 自动选择比赛跑法\n      - [x] 基于属性和适性\n      - [ ] 基于对手跑法选择跑法（倾向人数少的跑法）\n  - [x] 支持友人卡\n    - [x] 基于友人卡事件效果主动外出\n- [x] 支持 [python 插件](https://github.com/NateScarlet/auto-derby/wiki/Plugins)\n\n## 使用方法\n\n需求 DMM 版 和 python3.8\n\n### 安装依赖\n\nShift + 右键 点击项目文件夹空白处 - `在此处打开命令窗口` 在其中运行\n\n```shell\npy -3.8 -m pip install -r requirements.txt\n```\n\n### 启动\n\n双击 `launcher.cmd` 可通过一个简单的 GUI 进行启动\n\n或者手动调用模块：\n\n```shell\npy -3.8 -m auto_derby 工作名称\n```\n\n工作名称随便输入错误的名字会提示当前支持的工作\n\n### 更新版本\n\n用户数据默认储存在 `data` 文件夹下。\n\n复制 `data` 文件夹到新版本项目文件夹即可继承数据。\n\n## 问题反馈\n\n通过 [Github issues](https://github.com/NateScarlet/auto-derby/issues) 提交反馈\n\n启动器勾选 debug 时会在项目目录下生成相关调试信息，反馈时请将相关信息一同附上\n\n反馈前请手动清理敏感信息（例如用户名、机器名）\n\n### launcher.log\n\n启动器日志\n\n### auto_derby.log\n\n运行日志，`.1` `.2` `.3` 后缀的文件为之前日志的备份\n\n### debug\n\n调试数据，`.1` `.2` `.3` 后缀的文件夹为之前调试数据的备份。\n\nlast_screenshot.png 为脚本最后看到的游戏画面。\n界面识别相关问题不要提供在出错后手动进行的截图。\n\nlog.jsonl 和 images 为网页日志内容和图片，可用 ./scripts/view_web_log.py 查看。\n训练识别相关问题因为是异步处理的截图，光提供 last_screenshot 没有用。\n\n## 贡献代码\n\nPR 提到开发 (dev) 分支，CI 会自动跑测试。\n\n一个 PR 只解决一个问题。\n\n开发依赖在 dev-requirements.txt。\n\n运行命令时候可用的环境变量见 .env.example，推荐用 godotenv 工具来执行命令。\n\n如果 CI lint 阶段出错，运行 `make format` 应该能自动修复。\n\n本地跑测试使用 `make test`。\n\n添加新图片模版后使用 `make -C auto-derby/templates` 生成索引。\n\n限制图片模版位置使用 `./scripts/capture_template_position.py` 或者用画图编辑。\n画图编辑完后推荐运行 `make -C auto-derby/templates {模版名称}.pos.png` 来将图片转为 1bit 深度来减小体积。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatescarlet%2Fauto-derby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatescarlet%2Fauto-derby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatescarlet%2Fauto-derby/lists"}