Skip to content

Commit

Permalink
优化文档
Browse files Browse the repository at this point in the history
  • Loading branch information
IsSmallPigPig committed Aug 15, 2024
1 parent f38d96c commit daf7949
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 105 deletions.
7 changes: 2 additions & 5 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ export default hopeTheme({
// Note: This is for testing ONLY!
// You MUST generate and use your own comment service in production.
comment: {
provider: "Giscus",
repo: "vuepress-theme-hope/giscus-discussions",
repoId: "R_kgDOG_Pt2A",
category: "Announcements",
categoryId: "DIC_kwDOG_Pt2M4COD69",
provider: "Waline",
serverURL: "https://waline.alphaalist.xyz"
},

components: {
Expand Down
4 changes: 4 additions & 0 deletions src/community/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ comment: false

::: details High-resolution screen recognition abnormalities
We found that 2K and above screens may not be recognized even if they set up scripts with recommended games. We don't know the specific reason
:::

::: details 安比 Huang Guang recognition is abnormal
We found that if you use Ambi, yellow light will be emitted during the fight. The program will be judged as `黄光攻击`, This will interrupt the combat strategy to continue running
:::
33 changes: 18 additions & 15 deletions src/community/updatelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,28 @@ comment: false
::: details 2.2 Optimization content
1. The model adds the recognition of the conveyor belt. The map search algorithm is redesigned. The core of the train can automatically find the road normally
2. Optimized the movement speed of the mode 2, 3, and 4 on the second floor, and shorten the overall process
3. The full model will give priority to finding two teammates, and increase the selection of the emblem in an appropriate amount to ensure that they will not be killed (developers can be played. Others can't fight again, first reflect on whether they are so fun)
4. Added independent judgment of some events
5. Optimized the steering design of the running map during the battle phase
3. The full model will give priority to finding two teammates, and increase the selection of the emblem in an appropriate amount to ensure that they will not be killed. Fun
4. Independent judgment of some events
5. Optimized the steering design that needs to be running in the battle stage
6. Fix the bug of some scripts running
:::

::: details 2.1 Optimization content
1. Model selection adds the choice of performance banking together
2. The combat module is independent, adding the judgment of the joint skills, the judgment of the current battlefield character
3. The combat logic of some characters is added, and the corresponding logic will be called during the battle during the battle.
4. The probability of a lattice misjudgment when the search path is reduced
1. Model selection increases the choice of performance banking together
2. The combat module is independent, adding the judgment of the joint technology, the judgment of the current battlefield character
3. Added the fighting logic of some characters, and the corresponding logic will be called according to needs during the battle.
4. Reduce the probability of partial grid when searching for the search path
5. Fix a few bugs
:::

::: details 2.0 Optimization content
1. The model adds the recognition of the conveyor belt. The map search algorithm is redesigned. The core of the train can automatically find the road normally
2. Optimized the movement speed of the mode 2, 3, and 4 on the second floor, and shorten the overall process
3. The full model will give priority to finding two teammates, and increase the selection of the emblem in an appropriate amount to ensure that they will not be killed (developers can be played. Others can't fight again, first reflect on whether they are so fun)
4. Added independent judgment of some events
5. Optimized the steering design of the running map during the battle phase
6. Fix the bug of some scripts running
:::
:::: details 2.0 Optimization content
1. Change the logic of automatic road search for the lattice, and make a certain adaptation of high difficult maps. The customs clearance mode will give priority to finding a teammate to deal with the BOSS battle
2. Operating mode to increase the deposit model of the zero bank, which is convenient to remove the zero bank points
3. Increase the bomb function (the first enemy that will be blown up, whether to unlock the bomb needs to be changed in the parameter configuration, the default `unlocked`)
4. Increase the battle map search (the map that needs to run the map will automatically find monsters)
5. Battle increased dosage anti -judgment
6. New DIY combat logic function, you can design the combat logic pseudo code in the configuration file (the project provides a default combat logic)
7. Choose the selection of the Minghui to increase the custom type selection (the configuration parameter can be modified)
::: warning Warning
The road search is mainly optimized for the old capital trains, and other maps still have the probability of hitting the wall)
::::
49 changes: 12 additions & 37 deletions src/demo/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,53 +65,28 @@ conda activate py310

### 1.4 Installation related dependencies

#### 1.4.1 GPU Version

1. Install `Cudatookit` and `Cundnn`

Install `Cudatookit 11.8`
::: tabs#conda

@tab GPU Version#GPU
```bash
# Set the mirror source tsinghua.edu
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# Install cudatoolkit
conda install cudatoolkit=11.8
```

Install `Cudnn 8.9.7.29`

```bash
# Install cudnn
conda install cudnn=8.9.7.29
```

2. Install GPU-related dependencies

`pip` Configuration mirror source

```bash
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```

Switch to the project directory installation dependencies

```bash
# Install GPU dependencies
pip install -r requirements-dml.txt
```

#### 1.4.2 CPU Version

`CPU Version` doesn't need install `Cudatoolkit` and `Cudnn`

1. Install CPU -related dependencies

`pip` Configuration mirror source

@tab CPU Version#CPU
```bash
# 设置镜像源为 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```

Switch to the project directory installation dependencies

```bash
# 安装 CPU 依赖
pip install -r requirements-cpu.txt
```
:::

### 1.5 Precautions

Expand All @@ -121,7 +96,7 @@ pip install -r requirements-cpu.txt
```bash
python main.py
```
4If the computer has been installed before this tutorial, the following errors appear when running the script
4. If the computer has been installed before this tutorial, the following errors appear when running the script
```bash
ImportError: DLL load failed while importing onnxruntime_pybind_state: 动态链接库(DLL)初始化例程失败
```
Expand Down
14 changes: 14 additions & 0 deletions src/demo/solve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Solve
icon: terminal
order: 4
category:
- Use guide
tag:
- Solve

editLink: false
prev: false
next: false
comment: false
---
4 changes: 4 additions & 0 deletions src/zh/community/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ comment: false

::: details 高分辨率屏幕识别异常
我们发现 2K 及以上的屏幕即便以推荐的游戏设置运行脚本,仍然有可能识别不到。我们并不清楚具体原因
:::

::: details 安比黄光识别异常
我们发现如果使用安比,则打斗过程中会发出黄光。程序会判定为 `黄光攻击`,这将会打断战斗策略继续运行
:::
25 changes: 14 additions & 11 deletions src/zh/community/updatelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,29 @@ comment: false

::: details 2.2 优化内容
1. 模型新增了传送带的识别,地图寻路算法重新设计,列车核心可以正常自动寻路
2. 优化了模式2、3、4在第二层的移动速度,缩短整体流程
2. 优化了模式 2、3、4 在第二层的移动速度,缩短整体流程
3. 全通模式会优先寻找两个队友,并适量增加鸣徽选择,确保不会被怪打死(开发者练度都能打得过,其他人再打不过,先反思一下自己有没有好好玩)
4. 添加了部分事件的独立判断
5. 优化了战斗阶段需要跑图的转向设计
6. 修复部分脚本运行出现的bug
6. 修复部分脚本运行出现的 BUG
:::

::: details 2.1 优化内容
1. 模式选择增加了业绩银行一起的选择
2. 战斗模块独立出来,增加了连携技的判定,当前战场角色的判断
3. 新增了部分角色的战斗逻辑,战斗期间会根据需要调用对应逻辑
4. 降低了搜索路径时部分格子误判的概率
5. 修复bug若干
5. 修复 BUG 若干
:::

::: details 2.0 优化内容
1. 模型新增了传送带的识别,地图寻路算法重新设计,列车核心可以正常自动寻路
2. 优化了模式2、3、4在第二层的移动速度,缩短整体流程
3. 全通模式会优先寻找两个队友,并适量增加鸣徽选择,确保不会被怪打死(开发者练度都能打得过,其他人再打不过,先反思一下自己有没有好好玩)
4. 添加了部分事件的独立判断
5. 优化了战斗阶段需要跑图的转向设计
6. 修复部分脚本运行出现的bug
:::
:::: details 2.0 优化内容
1. 更改走格子自动寻路逻辑,对高难度地图进行了一定的适配,通关模式会优先寻找一个队友应对 Boss 战斗
2. 运行模式增加零号银行的存款模式,方便刷去零号银行积分
3. 增加炸弹功能 (会炸掉遇到的第一个敌人,是否解锁炸弹需要在参数配置里更改,默认 `解锁`)
4. 增加战斗地图寻路 (在需要跑图的地图会自动寻怪)
5. 战斗增加闪避弹反判定
6. 战斗新增 DIY 战斗逻辑功能,可在配置文件里自己设计战斗逻辑伪代码(项目提供一套默认的战斗逻辑)
7. 鸣徽选择增加自定义类型选择(配置参数里可进行修改)
::: warning 注意
寻路主要针对旧都列车进行优化,其他地图依旧有概率撞墙)
::::
49 changes: 12 additions & 37 deletions src/zh/demo/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,53 +65,28 @@ conda activate py310

### 1.4 安装相关依赖

#### 1.4.1 GPU 版本

1. 安装 `Cudatookit``Cundnn`

安装 `Cudatookit 11.8`
::: tabs#conda

@tab GPU 版本#GPU
```bash
# 设置镜像源为 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 安装 cudatoolkit
conda install cudatoolkit=11.8
```

安装 `Cudnn 8.9.7.29`

```bash
# 安装 cudnn
conda install cudnn=8.9.7.29
```

2. 安装 GPU 相关依赖

`pip` 配置镜像源

```bash
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```

切换到项目目录下安装依赖

```bash
# 安装 GPU 依赖
pip install -r requirements-dml.txt
```

#### 1.4.2 CPU 版本

`CPU 版本` 不需要安装 `Cudatoolkit``Cudnn`

1. 安装 CPU 相关依赖

`pip` 配置镜像源

@tab CPU 版本#CPU
```bash
# 设置镜像源为 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```

切换到项目目录下安装依赖

```bash
# 安装 CPU 依赖
pip install -r requirements-cpu.txt
```
:::

### 1.5 注意事项

Expand All @@ -121,7 +96,7 @@ pip install -r requirements-cpu.txt
```bash
python main.py
```
4如果电脑在此教程之前已经安装过 `CUDA`,且运行脚本时出现以下错误
4. 如果电脑在此教程之前已经安装过 `CUDA`,且运行脚本时出现以下错误
```bash
ImportError: DLL load failed while importing onnxruntime_pybind_state: 动态链接库(DLL)初始化例程失败
```
Expand Down
Empty file added src/zh/demo/solve.md
Empty file.

0 comments on commit daf7949

Please sign in to comment.