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 fc01e3d commit 77fb117
Show file tree
Hide file tree
Showing 12 changed files with 554 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .gitgnore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 忽略IDE生成的文件和配置
.idea/
*.iml
.vscode/

# 忽略编译生成的文件
build/
dist/
*.dll
*.exe
Binary file added src/.vuepress/public/image/AVX_problems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/image/dpi_problems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion src/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ export const enSidebar = sidebar({
children: [
"required.md",
"deploy.md",
"configure.md"
"configure.md",
"solve.md"
]
},

{
text: "Develop",
icon: "microchip",
prefix: "develop/",
link: "develop/",
children: [
"fight.md"
]
},

Expand Down
13 changes: 12 additions & 1 deletion src/.vuepress/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ export const zhSidebar = sidebar({
children: [
"required.md",
"deploy.md",
"configure.md"
"configure.md",
"solve.md"
]
},

{
text: "开发指南",
icon: "microchip",
prefix: "develop/",
link: "develop/",
children: [
"fight.md"
]
},

Expand Down
1 change: 1 addition & 0 deletions src/.vuepress/styles/config.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$theme-colors:#f26d6d, #3eaf7c, #fb9b5f;
7 changes: 7 additions & 0 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ export default hopeTheme({
},
},

shiki: {
themes: {
light: "catppuccin-latte",
dark: "one-dark-pro",
}
},

// All features are enabled for demo, only preserve features you need here
mdEnhance: {
align: true,
Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ highlights:
link: /demo/configure.html

copyright: false
footer: 使用 <a href="https://theme-hope.vuejs.press/zh/" target="_blank">VuePress Theme Hope</a> Theme | MIT Licence, all rights reserved © 2019-Now Mr.Hope
footer: Use <a href="https://theme-hope.vuejs.press/zh/" target="_blank">VuePress Theme Hope</a> Theme | MIT Licence, all rights reserved © 2019-Now Mr.Hope
---
36 changes: 33 additions & 3 deletions src/demo/solve.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Solve
icon: terminal
icon: circle-check
order: 4
category:
- Use guide
Expand All @@ -10,5 +10,35 @@ tag:
editLink: false
prev: false
next: false
comment: false
---
comment: true
---

## 1 Before Read

Here is a summary of some common problems. You can solve the problem in the comment area. I will continue to collect the problems encountered by different users and feedback here

::: warning 注意
Before reading, please be sure to read it [Settings](./required.md) , If not. Please return to reading
:::

## 2 Common Problem

::: details The script terminal remind me that the game window size is wrong, But the configuration and document requirements are the same

This is because your `DPI` is modified after entering the game. The smaller of `DPI` will cause the actual size of the game window to become smaller, rather than the "resolution" in the game settings. As a result, the actual window size obtained does not match the documentation
![DPI_Problems](/image/dpi_problems.png)

::: tip Solution
- **If you haven't launched the game:** Modification before starting the game `DPI` is `100%`
- **If you have started the game:** After adjusting the `DPI` to `100%`, set the game window in the game settings as any size. Change the required `1280x720`
:::

::: details Using CPU recognition, the script terminal error contains the word avx_supported()
`PaddlePaddle's` `CPU recognition` is based on the `AVX` instruction set. Generally speaking, modern `CPU` all supports the instruction set of `AVX`

When you have this error, it means that you may disable `AVX` in `BIOS`. If not, it means that your equipment is too old, it is recommended that you change the device
![AVX_Problems](/image/AVX_problems.png)
::: tip Solution
- **Simple way:**`BIOS` 内启用 `AVX` 指令集
- **Set GPU version envirenment:** 参考 [Settings](./configure.md)**1 Use Conda Envirenment** to deploy `GPU Version`
:::
217 changes: 217 additions & 0 deletions src/develop/fight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
---
title: Fight
icon: object-ungroup
order: 4
category:
- Develop
tag:
- Fight

editLink: false
prev: false
next: false
comment: false
---

## 1 Before Read

In order to help developers better develop combat strategies, this page will tell some basic combat strategy settings. If you have a good strategy, you are welcome to [Project Home](https://github.com/?q=zenle) PR

## 2 基本代码

To `fight\tactics\艾莲.yaml` as an example

::: details 艾莲 Combat strategy
```yaml
# 冲刺蓄力攻击
- key: "w"
type: "down"
delay: 0
# 连按shift2次
- key: "shift"
type: "press"
duration: 0.025
delay: 0.1
repeat: 2
# 鼠标左键按下
- key: "left"
type: "press"
duration: 1.2
delay: 0.1
# 松开w
- key: "w"
type: "up"
delay: 0

# 平A第1段
- key: "left"
type: "press"
duration: 0.025
delay: 0.4
# 平A第2段
- key: "left"
type: "press"
duration: 0.025
delay: 0.4
# 平A第3段连按延长时间
- key: "left"
type: "press"
duration: 0.025
delay: 0.1
repeat: 5

# 平A第1段
- key: "left"
type: "press"
duration: 0.025
delay: 0.4
# 平A第2段
- key: "left"
type: "press"
duration: 0.025
delay: 0.4
# 平A第3段连按延长时间
- key: "left"
type: "press"
duration: 0.025
delay: 0.1
repeat: 5
```
:::
You can see our `Fighting strategy file` basic units and formats are

```yaml
- key: "Key"
type: "Type"
duration: Duration
delay: Delay
repeat: Repeat
```

::: tip 提示
In programming, before `:` is `key names`, After `:` is `key value`

```yaml
键名: "键值"
```

At the same time, the beginning of each unit must be `-`, each line needs to be indentified (the `Tab` key on the keyboard), generally four spaces

```yaml
- key: "left"
type: "press"
duration: 0.025
delay: 0.1
repeat: 5
```

We call the code from the first section of `yaml` as a `unit`
:::

You know this can be developed, I will explain in detail the parameters of the `fighting strategy file`

## 3 Details

This chapter aims to introduce the content corresponding to the `key value` of each `key name`

### 3.1 key

**Key name description:** When executing to the unit, press which key

**Optional parameter:**

| Key | significance |
| ----- | -------------- |
| a | Corresponding letters on the keyboard |
| b | Corresponding letters on the keyboard |
| c | Corresponding letters on the keyboard |
| d | Corresponding letters on the keyboard |
| ... | Corresponding letters on the keyboard |
| z | Corresponding letters on the keyboard |
| left | Left mouse button |
| right | Right mouse button |

**Code example:**

```yaml
# Left mouse button
- key: "left"
```

### 3.2 type

**Key name description:** When the unit is executed, how should the key should be executed?

**Optional parameter:**

| Key |significance |
| ----- | ---------------------- |
| press | Press the button (it will be lifted automatically) |
| down | Hold down the button (not automatically lift) |
| up | Lift the button (restore this button) |

**Code example:**

```yaml
# Press the left mouse button
- key: "left"
type: "press"
```

```yaml
# Hold down the left mouse button and let go
- key: "left"
type: "down"
- key: "left"
type: "up"
```

### 3.3 duration

**Key name description:** When you execute it to the unit, how long do you need to press the button?

**Optional parameter:** All positive integer and decimal, cannot be negative

**Code example:**

```yaml
# Press the left mouse button and last 0.025 seconds
- key: "left"
type: "press"
duration: 0.025
```

### 3.4 delay

**Key name description:** How long does it take to interval when performing the unit

**Optional parameter:** All positive integers and decimals cannot be negative. The default is `0.1`

**Code example:**

```yaml
# Press the left mouse button and last 0.025 seconds, wait for 0.1 seconds after the execution is completed
- key: "left"
type: "press"
duration: 0.025
delay: 0.1
```

### 3.4 repeat

**Key name description:** You need to be executed several times the unit

**Optional parameter:** All positive integers cannot be negative or decimal. The default is `1`

**Code example:**

```yaml
# Press the left mouse button and last for 0.025 seconds, and wait for 0.1 seconds after the execution is completed. Repeat the unit 2 times
- key: "left"
type: "press"
duration: 0.025
delay: 0.1
repeat: 2
```
44 changes: 44 additions & 0 deletions src/zh/demo/solve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: 常见问题
icon: circle-check
order: 4
category:
- 使用指南
tag:
- 常见问题

editLink: false
prev: false
next: false
comment: true
---

## 1 开始之前

这里是一些常见问题的汇总,您可以反馈问题的解决方式在评论区。我会持续收集不同用户遇到的问题,并反馈在这里

::: warning 注意
阅读之前,请务必确认已阅读 [配置环境](./required.md) 的内容,如果没有。请返回阅读
:::

## 2 常见问题

::: details 脚本终端提示我游戏窗口大小不对,但配置与文档的要求一样

这是因为你的 `DPI` 是在进入游戏后才修改的,`DPI` 变小会导致游戏窗口的实际大小一起变小,而不是游戏设置里面所说的 “分辨率”。导致获取到的实际窗口大小与文档不相符
![DPI_Problems](/image/dpi_problems.png)

::: tip 解决方案
- **如果您未启动游戏:** 启动游戏前修改 `DPI``100%`
- **如果您已启动游戏:** 调整 `DPI``100%` 后在游戏设置里设定游戏窗口为任意大小。再改回要求的 `1280x720`
:::

::: details 使用 CPU 识别,脚本终端报错含有 avx_supported() 字样的内容
`PaddlePaddle`(飞桨)的 `CPU 识别` 基于 `AVX` 指令集,一般来说,现代的 `CPU` 均支持 `AVX` 的指令集

当您出现这个错误,则说明您可能在 `BIOS` 禁用了 `AVX`。如果不是,则说明您的设备过于老旧,建议您更换设备
![AVX_Problems](/image/AVX_problems.png)
::: tip 解决方案
- **您是小白:**`BIOS` 内启用 `AVX` 指令集
- **您有基础:** 参考 [高级设置](./configure.md)**1 使用 Conda 环境** 配置 `GPU` 版本
:::
Loading

0 comments on commit 77fb117

Please sign in to comment.