Go to file
Hengyu 012fffbb31
Add: daily_request_recognition; get_daily_rewards (#3)
* Add: daily_request_recognition; get_daily_rewards

* Fix: typo

* Fix: typo

* Upd: delete eval; use one loop to handle 5 active point rewards;

* Upd: change DAILY_QUEST_GOTO/REWARD pattern; update swipe private method name; extract keyword compare method

* Upd: move warning to single page recognition

* Upd: merge from main

* Add: methods that load daily quests keywords from QuestData.json

* Upd: avoid read TextMap twice

* Upd: revert Keyword.find method

* Add: preprocess of keyword extract; after_process of daily quest ocr

* Upd: move assets to daily/reward

* Upd: simplify ocr result replacement
2023-06-13 00:24:38 +08:00
assets Add: daily_request_recognition; get_daily_rewards (#3) 2023-06-13 00:24:38 +08:00
bin Add ALAS framework 2023-05-14 15:48:34 +08:00
config Add ALAS framework 2023-05-14 15:48:34 +08:00
deploy Add ALAS framework 2023-05-14 15:48:34 +08:00
dev_tools Add: daily_request_recognition; get_daily_rewards (#3) 2023-06-13 00:24:38 +08:00
module Add: daily_request_recognition; get_daily_rewards (#3) 2023-06-13 00:24:38 +08:00
tasks Add: daily_request_recognition; get_daily_rewards (#3) 2023-06-13 00:24:38 +08:00
.gitattributes Initial commit 2023-05-06 00:00:46 +08:00
.gitignore Initial commit 2023-05-06 00:00:46 +08:00
gui.py Add ALAS framework 2023-05-14 15:48:34 +08:00
LICENSE Initial commit 2023-05-06 00:00:46 +08:00
README.md Add: OCR model and downgrade to py3.10 2023-05-21 09:26:58 +08:00
requirements-in.txt Add: OCR model and downgrade to py3.10 2023-05-21 09:26:58 +08:00
requirements.txt Add: OCR model and downgrade to py3.10 2023-05-21 09:26:58 +08:00

StarRailCopilot

Star Rail auto script, bot | 星铁副驾驶崩坏星穹铁道脚本基于下一代Alas框架

安装

SRC 还在开发中,暂时不提供自动安装包,需要以正常流程安装。

Clone 这个项目。

git clone https://github.com/LmeSzinc/StarRailCopilot

进入项目目录。

cd StarRailCopilot

使用 conda 新建 python 3.10.10 环境,假设新环境的名字叫 src

注意:我们不维护更高或者更低版本的依赖,建议使用 3.10.10

conda create -n src python==3.10.10

安装 requirements.txt 中的依赖。

pip install -r requirements.txt

使用

阿巴阿巴,没写完怎么用(

QQ群 SRC使用与开发 752620927

关于 Alas

SRC 将基于碧蓝航线脚本 AzurLaneAutoScript 开发Alas 经过三年的发展现在已经达到一个高完成度,但也累积了不少屎山难以改动,我们希望在新项目上解决这些问题:

  • 更新 OCR 库。Alas 在 cnocr==1.2.2 上训练了多个模型,但依赖的 mxnet 已经不怎么活跃了,机器学习发展迅速,新模型的速度和正确率都碾压旧模型。
  • 配置文件 pydantic 化。自任务和调度器的概念加入后用户设置数量倍增Alas 土制了一个代码生成器来完成配置文件的更新和访问pydantic 将让这部分更加简洁。
  • 更好的 Assets 管理。button_extract 帮助 Alas 轻易维护了 4000+ 模板图片,但它有严重的性能问题,对外服缺失 Assets 的提示也淹没在了大量垃圾 log 中。
  • 减少对于碧蓝的耦合。Alas 框架和 Alas GUI 有对接其他游戏及其脚本的能力,但已经完成的明日方舟 MAA 插件和正在开发的 fgo-py 插件都发现了 Alas 与碧蓝航线游戏本身耦合严重的问题。