GithubHelp home page GithubHelp logo

isosky / umamusumeautotrainer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shiokaze/umamusumeautotrainer

0.0 0.0 0.0 4.27 MB

闪耀优俊少女(赛马娘)自动育成工具

JavaScript 2.17% Python 72.74% PowerShell 0.53% CSS 0.98% HTML 0.81% Vue 22.78%

umamusumeautotrainer's Introduction

UmamusumeAutoTrainer

闪耀!优俊少女(赛马娘国服)自动育成工具

功能

  1. 支持所有马娘自动完成育成剧本
  2. 自定义育成目标属性,跑法,额外赛程,学习技能,用于更轻松的刷三星因子和提高马娘继承相性 \

使用说明

下载

克隆仓库
git clone https://github.com/shiokaze/UmamusumeAutoTrainer
安装依赖
  1. 安装python3.10.9,下载地址
  2. 双击运行install.ps1, 如果打开是记事本,右键文件打开方式选择powershell运行, 启动时需要保证当前目录下没有venv文件夹

2. 配置

修改config.yaml文件内容

bot:
  auto:
    adb:
      device_name: "127.0.0.1:16384" # 改为模拟器的adb端口
      delay: 0
    cpu_alloc: 4 # 分配的cpu数量

常见模拟器的端口:
(推荐使用)mumu12: 127.0.0.1:16384
雷电/蓝叠模拟器: emulator-5554

3. 模拟器设置

设置模拟器分辨率为720 * 1280, dpi 180(竖屏) mumu模拟器不能开启后台保活功能

4. 启动

双击运行run.ps1即可

控制台显示以下内容即为启动成功

UAT running on http://127.0.0.1:8071

复制到浏览器访问即可通过webui配置任务并启动脚本

LOGO

注意事项

  1. 游戏内画面选项必须是标准版,不能是简易版
  2. 如果马娘育成阶段中包含了自选赛事或xxx粉丝数量要求的比赛(如小栗帽第三年的2场g1和乌拉拉的粉丝数目标等),需要使用对应马娘的预设或在自定义赛程中自行配置参加哪场比赛
  3. 目标属性尽量与携带的支援卡类型比例匹配,不要带了例如3智3速又设置了很高的耐力和力量目标
  4. 暂时不支持选择育成马娘和种马,启动时会使用游戏内保存的上次育成的马娘和种马,如果没有保存记录,先手动选择完成后在启动
  5. 不推荐携带友人卡,因为暂时没有对友人卡出行写特定策略,所以效果不如带其他类型支援卡
  6. 启动脚本时应处于主菜单或者任意育成界面

如果出现异常

  1. 如果出现了模拟器连接失败,connection reset等错误,关闭正在运行的加速器(如uu加速器)并使用任务管理器关闭adb.exe后重启模拟器以及脚本程序
  2. 如果出现了识别错误导致程序报错、进入了预期之外的界面、或者卡在某一界面不动的情况下,人工操作进入下一回合并在webui内重置任务再启动即可。可以保存一下卡住的界面截图并附上报错日志提issue。

常见问题

1. 运行install.ps1或run.ps1时闪退

可以先打开控制台再运行powershell脚本,此时报错即可看到报错原因。

2. 系统禁止运行powershell脚本

参考:https://www.jianshu.com/p/4eaad2163567

3. 脚本启动时报错

检查用户文件夹是否为中文
参考: shiokaze#18
shiokaze#24

4. 启动成功,但是webui打不开,且浏览器控制台报错

如果报错信息是:Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
参考: shiokaze#9 shiokaze#25

TODO

  • 定时执行任务
  • 育成中ai逻辑优化
  • 事件支持配置选项
  • 自动完成每日金币/支援点/jjc

参与开发

如果觉得现在的代码有不足之处,欢迎提交PR

umamusumeautotrainer's People

Contributors

shiokaze avatar isosky avatar zjche avatar tilie avatar d-bluedreams avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.