{"id":50544732,"url":"https://github.com/alicejump/ok-gm","last_synced_at":"2026-06-08T00:00:55.972Z","repository":{"id":362210431,"uuid":"1257221390","full_name":"AliceJump/ok-gm","owner":"AliceJump","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-03T20:57:14.000Z","size":6727,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T23:16:33.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliceJump.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-02T13:29:16.000Z","updated_at":"2026-06-03T20:57:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AliceJump/ok-gm","commit_stats":null,"previous_names":["alicejump/ok-gm"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/AliceJump/ok-gm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceJump%2Fok-gm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceJump%2Fok-gm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceJump%2Fok-gm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceJump%2Fok-gm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliceJump","download_url":"https://codeload.github.com/AliceJump/ok-gm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceJump%2Fok-gm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34042554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":[],"created_at":"2026-06-03T23:00:27.602Z","updated_at":"2026-06-08T00:00:55.966Z","avatar_url":"https://github.com/AliceJump.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg \n    src=\"icons/icon.png\"\n    alt=\"ok-gm game automation tool logo\"\n    width=\"256\"\n    height=\"256\"\n  /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eok-gm\u003c/h1\u003e\n\n\u003cp\u003e\n一个基于图像识别的学马仕自动化程序，部分功能支持后台运行，基于 \u003ca href=\"https://github.com/ok-oldking/ok-script\"\u003eok-script\u003c/a\u003e 开发。\n\u003cbr /\u003e\nAn image-recognition-based automation tool for End Field, with background mode support, developed with \u003ca href=\"https://github.com/ok-oldking/ok-script\"\u003eok-script\u003c/a\u003e.\n\u003c/p\u003e\n\n\u003cp\u003e\u003ci\u003e通过模拟 Windows 用户接口进行操作，无内存读取、无文件修改\u003c/i\u003e\u003c/p\u003e\n\n\n\u003c!-- Badges --\u003e\n\u003cdiv align=\"center\"\u003e\n\n![平台](https://img.shields.io/badge/platform-Windows-blue)\n[![GitHub release](https://img.shields.io/github/v/release/alicejump/ok-gm)](https://github.com/alicejump/ok-gm/releases)\n[![总下载量](https://img.shields.io/github/downloads/alicejump/ok-gm/total)](https://github.com/alicejump/ok-gm/releases)\n[![Discord](https://img.shields.io/discord/296598043787132928?color=5865f2\u0026label=%20Discord)](https://discord.gg/vVyCatEBgA)\n\n\u003c/div\u003e\n\n## Downloads\n\n![downloads](./assets/downloads.svg)\n\n### [English Readme](README_en.md) | 中文说明\n\n---\n\n## ⚠️ 免责声明\n\n本软件为外部辅助工具，旨在自动化《学园偶像大师》的部分游戏流程。它完全通过模拟常规用户界面与游戏交互，遵循相关法律法规。本项目旨在简化用户的重复性操作，不会破坏游戏平衡或提供不公平优势，也绝不会修改任何游戏文件或数据。\n\n本软件开源、免费，仅供个人学习与交流使用，请勿用于任何商业或营利性目的。开发者团队拥有本项目的最终解释权。因使用本软件而产生的任何问题，均与本项目及开发者无关。\n\n\n**使用本软件即表示您已阅读、理解并同意以上声明，并自愿承担一切潜在风险。**\n\n## 🚀 快速开始\n\n1. **下载安装包**：从下方的“下载渠道”中选择一个，下载最新的 `ok-gm-win32-China-setup.exe` 安装文件。\n2. **安装程序**：双击 `ok-gm-win32-China-setup.exe` 文件，并按照安装向导的提示完成安装。\n3. **运行程序**：安装完成后，从桌面快捷方式或开始菜单启动 `ok-gm` 即可。\n\n## 📥 下载渠道\n\n* **[GitHub](https://github.com/alicejump/ok-gm/releases)**: 官方发布页，全球访问速度快。（**请下载 `setup.exe`\n  安装包，而不是 `Source Code` 源码压缩包**）\n\n\n## 运行要求与推荐设置\n\n- 系统：Windows\n- 游戏分辨率：推荐 9:16（1080x1920 最佳），最低 720x1280（低于该分辨率可能导致识别与定位异常）\n- 语言：当前部分功能仅支持简体中文\n- 运行权限：建议管理员权限运行（源码模式必须）\n- 路径：安装/运行路径尽量使用纯英文\n- 帧率：推荐稳定 60 FPS，用于战斗和导航任务\n\n---\n\n\n## 功能一览（按任务类型）\n\n### 日常任务\n - 竞技场\n - 收资金\n - 买商店\n - 工作\n - 升级一次支援卡\n - 领任务\n\n\n### 定时任务\n- 支持将一次性任务(比如 `日常任务`)加入 Windows 任务计划，按设定时间自动启动执行\n\n### 辅助能力\n- OCR 识别、模板匹配、HSV 颜色识别\n- UI 自动化、按键模拟\n- 日志、异常处理、流程调度\n\n## 🔧 疑难解答 (Troubleshooting)\n\n如果遇到问题，请在提问前按以下步骤逐一排查：\n\n1. **安装路径**：请确保软件安装在**纯英文路径**下（例如 `D:\\Games\\ok-gm`），不要安装在 `C:\\Program Files` 或包含中文字符的文件夹中。\n2. **杀毒软件**：将软件的安装目录添加到您的杀毒软件（包括 Windows Defender）的**信任区或白名单**中，以防文件被误删或拦截。\n3. **显示设置**：\n    * 关闭所有显卡滤镜（如 NVIDIA Game Filter）和锐化功能，除非部分功能要求。\n    * 使用游戏默认的亮度设置。\n    * 关闭任何在游戏画面上显示信息的叠加层（如 MSI Afterburner、Fraps 等显示的帧率）。\n4. **自定义按键**：如果您修改了游戏内的默认按键，请务必在 `ok-gm` 的设置中进行同步配置。仅支持设置中列出的按键。\n5. **软件版本**：检查并确保您使用的是最新版本的 `ok-gm`。\n6. **游戏性能**：请确保游戏能稳定在 **60 FPS** 运行。如果帧率不稳定，请尝试降低游戏画质或分辨率。\n7. **游戏断线**：如频繁遇到与服务器断开连接的问题，可以尝试先手动打开游戏运行5分钟后再启动本工具，或在断线后直接重新登录，不要退出游戏。\n8. **寻求帮助**：如果以上步骤都无法解决您的问题，请通过社区渠道提交详细的错误报告。\n9. **游戏/软件语言** 本软件目前部分功能仅支持简体中文，不支持其他语言。\n\n---\n\n## 💻 开发者专区\n\n### 从源码运行 (Python)\n\n本项目仅支持 Python 3.12 版本, 必须以管理员权限启动CMD, PyCharm, VSCode。\n\n```bash\n# 若首次 clone 未带子模块参数，请先执行\ngit submodule update --init --recursive\n\n# 安装或更新依赖\npip install -r requirements.txt --upgrade\n\n# 运行 Release 版本\npython main.py\n\n# 运行 Debug 版本\npython main_debug.py\n```\n\n### 命令行参数\n\n您可以通过命令行参数实现自动化启动。\n\n``` pwsh\n# 启动后自动执行第1个任务『日常任务』，并在任务完成后退出程序\nok-gm.exe -t 1 -e\n```\n\n* `-t` 或 `--task`: 启动后自动执行第N个任务。`1` 代表任务列表（文件 [./src/config.py](./src/config.py) 列表 `onetime_tasks`）中的第1个（也就是『日常任务』）。\n* `-e` 或 `--exit`: 任务执行完毕后自动退出程序。\n\n### 开发调试与测试\n\n```bash\n# 执行 tests/ 下全部测试脚本（PowerShell）\n./run_tests.ps1\n\n# 或逐个运行 unittest\npython -m unittest tests/TestEssenceRecognizer.py\n```\n\n若你在开发“识别类任务”（OCR/模板/颜色识别），建议优先在 `main_debug.py` 下调试，配合日志与截图目录排查。\n\n## 💬 加入我们\n\n* **QQ 交流群**: \n* **QQ 频道**: [点击加入](https://pd.qq.com/s/djmm6l44y) (群满或获取最新资讯)\n* **开发者群**:  ( **注意**:\n  此群仅面向有开发能力、拥有Github账号、希望参与贡献的开发者，入群前请确保您已能够从源码成功运行项目。)\n\n本项目基于 [ok-script](https://github.com/ok-oldking/ok-script)\n框架开发，简单易维护。欢迎有兴趣的开发者使用 [ok-script](https://github.com/ok-oldking/ok-script) 开发您自己的自动化项目。\n\n## 🔗 使用ok-script的项目：\n\n* 终末地 [https://github.com/AliceJump/ok-end-field](https://github.com/AliceJump/ok-end-field)\n* 鸣潮 [https://github.com/ok-oldking/ok-wuthering-waves](https://github.com/ok-oldking/ok-wuthering-waves)\n* 鸣潮(日常一条龙-优化版) [https://github.com/zzc-tongji/ok-ww-enhanced](https://github.com/zzc-tongji/ok-ww-enhanced)\n* 原神(停止维护,\n  但是后台过剧情可用) [https://github.com/ok-oldking/ok-genshin-impact](https://github.com/ok-oldking/ok-genshin-impact)\n* 少前2 [https://github.com/ok-oldking/ok-gf2](https://github.com/ok-oldking/ok-gf2)\n* 星铁 [https://github.com/Shasnow/ok-starrailassistant](https://github.com/Shasnow/ok-starrailassistant)\n* 星痕共鸣 [https://github.com/Sanheiii/ok-star-resonance](https://github.com/Sanheiii/ok-star-resonance)\n* 二重螺旋 [https://github.com/BnanZ0/ok-duet-night-abyss](https://github.com/BnanZ0/ok-duet-night-abyss)\n* 白荆回廊(停止更新) [https://github.com/ok-oldking/ok-baijing](https://github.com/ok-oldking/ok-baijing)\n\n## ❤️ 赞助与致谢\n\n### 贡献者\n\n\u003ca href=\"https://github.com/AliceJump/ok-gm/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=AliceJump/ok-gm\" /\u003e\n\u003c/a\u003e\n\n### 赞助商 (Sponsors)\n\n* **EXE 签名**: Free code signing provided by [SignPath.io](https://signpath.io/), certificate\n  by [SignPath Foundation](https://signpath.org/).\n\n### 致谢\n* [a4nqi3n/Gakumas_Launcher](https://github.com/a4nqi3n/Gakumas_Launcher)(`参考该仓库通过log获取启动游戏参数的方式`)\n* [ok-oldking/OnnxOCR](https://github.com/ok-oldking/OnnxOCR)\n* [zhiyiYo/PyQt-Fluent-Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets)\n* [Toufool/AutoSplit](https://github.com/Toufool/AutoSplit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicejump%2Fok-gm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falicejump%2Fok-gm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicejump%2Fok-gm/lists"}