-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc01e3d
commit 77fb117
Showing
12 changed files
with
554 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 忽略IDE生成的文件和配置 | ||
.idea/ | ||
*.iml | ||
.vscode/ | ||
|
||
# 忽略编译生成的文件 | ||
build/ | ||
dist/ | ||
*.dll | ||
*.exe |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$theme-colors:#f26d6d, #3eaf7c, #fb9b5f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` 变小会导致游戏窗口的实际大小一起变小,而不是游戏设置里面所说的 “分辨率”。导致获取到的实际窗口大小与文档不相符 | ||
 | ||
|
||
::: tip 解决方案 | ||
- **如果您未启动游戏:** 启动游戏前修改 `DPI` 为 `100%` | ||
- **如果您已启动游戏:** 调整 `DPI` 为 `100%` 后在游戏设置里设定游戏窗口为任意大小。再改回要求的 `1280x720` | ||
::: | ||
|
||
::: details 使用 CPU 识别,脚本终端报错含有 avx_supported() 字样的内容 | ||
`PaddlePaddle`(飞桨)的 `CPU 识别` 基于 `AVX` 指令集,一般来说,现代的 `CPU` 均支持 `AVX` 的指令集 | ||
|
||
当您出现这个错误,则说明您可能在 `BIOS` 禁用了 `AVX`。如果不是,则说明您的设备过于老旧,建议您更换设备 | ||
 | ||
::: tip 解决方案 | ||
- **您是小白:** 在 `BIOS` 内启用 `AVX` 指令集 | ||
- **您有基础:** 参考 [高级设置](./configure.md) 的 **1 使用 Conda 环境** 配置 `GPU` 版本 | ||
::: |
Oops, something went wrong.