Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CCRcmcpe committed Jul 12, 2022
1 parent 7cfb30e commit 5fb5017
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 112 deletions.
59 changes: 32 additions & 27 deletions Docs/zh-cn/使用手册.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
# 使用手册

## 初次上手
## 使用

1. 打开程序,跟着提示完成配置。
1. 如果你的模拟器不是Memu或者逍遥模拟器,请参考[程序配置](#程序配置)小节
2. 用模拟器打开选关界面,选择关卡,确认当前界面和图片上的差不多,**勾选代理作战**
![选关界面](../Resources/LevelSelection.png)
3. 程序会提示输入计划。输入 `2`,然后按回车。
4. 解放双手,现在已经开始自动刷关了!刷关进程将会在理智消耗完毕时自动停止。

## 计划

刷关时,你需要输入“计划”。计划的格式为:
`[刷关模式][刷关次数][后续动作列表]`

### 示例

计划|说明
-|-
`02`|刷关2次
`2es`|刷关直到理智耗尽,随后关闭模拟器,使计算机睡眠
`3`|一直刷关,直到手动关闭程序

### 刷关模式列表

代码|功能|说明
-|-|-
0|指定次|如果理智不够完成刷关次数会卡住在用道具回复理智的界面
1|指定次,当理智耗尽时等待恢复|功能同上且不会出现上列问题
2|直到理智耗尽|
3|当理智耗尽时等待恢复|需要手动关闭程序,任何后续动作不会执行
![选关界面](../Resources/LevelSelection.png)
3. 程序会提示输入指令。输入 `combat 2`,然后按回车。
4. 程序将会作战2次。

高级用法请在程序输入 `help` 以查看帮助信息。

## 程序配置

目前,程序配置文件是程序目录下的 `Auto Arknights CLI.config.yaml`
如果你只是用Memu以外的的模拟器,请直接更改 `DeviceSerial`。一个典型的配置如下:

```yaml
Remote:
Mode: Adb # 目前只有 ADB 模式,别管
CloseCommandLine: '"C:\Program Files\Microvirt\MEmu\memuc.exe" stop -i 0' # 用于关闭模拟器的命令行
Adb:
ExecutablePath: adb\adb.exe # 自定义 ADB 可执行文件路径,可以不动
# 如果你只是用Memu以外的的模拟器,请直接更改DeviceSerial
DeviceSerial: 127.0.0.1:21503 # 必须,可以是模拟器的 ADB 地址,也可以是 USB 设备序列号,参考下表
```
## 常见模拟器 ADB 地址列表
注意,MuMu手游助手是**没有**ADB的,只有MuMu模拟器有。
| 名称 | 地址 |
| ----------------- | --------------- |
| MuMu | 127.0.0.1:7555 |
| Memu Play(逍遥) | 127.0.0.1:21503 |
| Nox | 127.0.0.1:62001 |
| 雷电 | 127.0.0.1:5555 |
39 changes: 0 additions & 39 deletions Docs/zh-cn/后续动作.md

This file was deleted.

20 changes: 0 additions & 20 deletions Docs/zh-cn/配置.md

This file was deleted.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Auto Arknights

![Framework](https://img.shields.io/badge/.NET%205.0---?logo=C%20Sharp)
![Framework](https://img.shields.io/badge/.NET%206.0---?logo=C%20Sharp)
![Base Branch](https://img.shields.io/badge/Base%20Branch-dev--2.0.0-blue?logo=git)
[![Build Status](https://rev-unit.visualstudio.com/Auto-Arknights/_apis/build/status/CCRcmcpe.Auto-Arknights?branchName=dev-2.0.0)](https://rev-unit.visualstudio.com/Auto-Arknights/_build/latest?definitionId=1&branchName=dev-2.0.0)

![刷关演示](Docs/Resources/RunSample.png)
*用于自动化明日方舟部分操作的程序。*

## 开发现状

由于目前功能已经足够,懒得继续开发。如果明日方舟UI没有大幅更改,本程序将在可预见的将来稳健运行。

## 入门

> [程序下载](https://github.com/CCRcmcpe/Auto-Arknights/releases)
Expand All @@ -15,7 +19,7 @@
### 运行最低要求

* Windows 7 x64 或更高版本的操作系统。
* .NET 5.0 运行时,[官方下载](https://dotnet.microsoft.com/download/dotnet/current/runtime)
* .NET 6.0 运行时,[官方下载](https://dotnet.microsoft.com/download/dotnet/current/runtime)

### 注意事项

Expand All @@ -25,7 +29,7 @@
## 关于

![Logo](Docs/Resources/Logo.png)
这个项目是实验性的,主要作个人学习用途(是的,开发者没有很多开发经验),在使用中如果有问题欢迎提出 issue。
这个项目是实验性的,主要作个人学习用途,在使用中如果有问题欢迎提出 issue。

### 鸣谢

Expand Down
7 changes: 4 additions & 3 deletions Source/CLI/Auto Arknights CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="2.1.0" />
<PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="2.2.0" />
<PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
<PackageReference Include="Crlib" Version="1.0.3" />
Expand Down
2 changes: 1 addition & 1 deletion Source/CLI/Build-Artifact.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if (Test-Path .\artifact\) { Remove-Item -Recurse .\artifact\ }

git version
$publishCommand = 'dotnet publish -o .\artifact -c Release -p:PublishProfile="Windows x64" -p:DebugType=none -p:DebugSymbols=false'
$publishCommand = 'dotnet publish -o .\artifact -c Release -p:PublishProfile=win-x64 -p:DebugType=none -p:DebugSymbols=false'
if ($?)
{
$tag = git describe --tags --abbrev=0
Expand Down
13 changes: 0 additions & 13 deletions Source/CLI/Properties/PublishProfiles/Windows x64.pubxml

This file was deleted.

6 changes: 3 additions & 3 deletions Source/Core/Auto Arknights Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="OpenCvSharp4" Version="4.5.5.20211231" />
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.5.5.20211231" />
<PackageReference Include="OpenCvSharp4" Version="4.6.0.20220608" />
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.6.0.20220608" />
<PackageReference Include="Polly.Caching.Memory" Version="3.0.2" />
<PackageReference Include="Polly" Version="7.2.3" />
<PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="tesseract-dotnet-avx2-x64" Version="4.1.1.1" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions Source/Test/Core/Test.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.0">
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 5fb5017

Please sign in to comment.