-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: user manual & developer documentation (#265)
aaaaaaaa,改分支名导致分支又被删了,还无法恢复 --------- Co-authored-by: a16797 <[email protected]>
- Loading branch information
1 parent
9448ef1
commit 1b9a711
Showing
211 changed files
with
899 additions
and
63 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
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,7 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.black-formatter", | ||
"nekosu.maa-support", | ||
"davidanson.vscode-markdownlint" | ||
] | ||
} |
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
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.
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.
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.
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.
Binary file modified
BIN
-6.46 KB
(54%)
assets/resource/base/image/Anecdote/TaskAwardMainCompleted.png
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.
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.
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.
Binary file modified
BIN
-1.24 KB
(86%)
assets/resource/base/image/Awards/CollectSingleDailyAwards.png
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.
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.
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.
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.
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.
Binary file modified
BIN
-1011 Bytes
(94%)
assets/resource/base/image/Combat/Activity/ANightmareAtGreenLakeEnterTheShow.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 modified
BIN
-906 Bytes
(87%)
assets/resource/base/image/Combat/Activity/ANightmareAtGreenLakeMainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-483 Bytes
(85%)
assets/resource/base/image/Combat/Activity/ActivityNextStage1.png
Oops, something went wrong.
Binary file modified
BIN
-530 Bytes
(89%)
assets/resource/base/image/Combat/Activity/ActivityNextStage2.png
Oops, something went wrong.
Binary file modified
BIN
-647 Bytes
(69%)
assets/resource/base/image/Combat/Activity/ActivityStageDifficultyToRight.png
Oops, something went wrong.
Binary file modified
BIN
-653 Bytes
(85%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/仅战斗.png
Oops, something went wrong.
Binary file modified
BIN
-4.5 KB
(83%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/入口1.png
Oops, something went wrong.
Binary file modified
BIN
-2.23 KB
(85%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/入口2.png
Oops, something went wrong.
Binary file modified
BIN
-1.88 KB
(86%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/准备.png
Oops, something went wrong.
Binary file modified
BIN
-6.34 KB
(82%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/前路尽失.png
Oops, something went wrong.
Binary file modified
BIN
-2.66 KB
(86%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/开始探索.png
Oops, something went wrong.
Binary file modified
BIN
-1.2 KB
(73%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/开始行动.png
Oops, something went wrong.
Binary file modified
BIN
-1.49 KB
(89%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/开始调查.png
Oops, something went wrong.
Binary file modified
BIN
-366 Bytes
(71%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/战斗中.png
Oops, something went wrong.
Binary file modified
BIN
-5.34 KB
(85%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/战斗胜利.png
Oops, something went wrong.
Binary file modified
BIN
-2.21 KB
(56%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/放弃奖励.png
Oops, something went wrong.
Binary file modified
BIN
-2.94 KB
(82%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/沿途所见.png
Oops, something went wrong.
Binary file modified
BIN
-1022 Bytes
(64%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/确认.png
Oops, something went wrong.
Binary file modified
BIN
-9.23 KB
(89%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/移动.png
Oops, something went wrong.
Binary file modified
BIN
-363 Bytes
(86%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/退出.png
Oops, something went wrong.
Binary file modified
BIN
-552 Bytes
(87%)
assets/resource/base/image/Combat/Activity/EchoesinInTheMountain/重置.png
Oops, something went wrong.
Binary file modified
BIN
-2.35 KB
(88%)
assets/resource/base/image/Combat/Activity/FloorItToTheGoldenCityEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-5.61 KB
(82%)
assets/resource/base/image/Combat/Activity/FloorItToTheGoldenCityMainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-2.09 KB
(88%)
assets/resource/base/image/Combat/Activity/GoodbyeRayaEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-2.59 KB
(86%)
assets/resource/base/image/Combat/Activity/GoodbyeRayaMainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-1.71 KB
(91%)
assets/resource/base/image/Combat/Activity/JourneytoMorPankhEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-2.15 KB
(88%)
assets/resource/base/image/Combat/Activity/JourneytoMorPankhMainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-3.69 KB
(85%)
assets/resource/base/image/Combat/Activity/LondonDawningEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-3.97 KB
(88%)
assets/resource/base/image/Combat/Activity/NotesOnShuoRiEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-1.3 KB
(88%)
assets/resource/base/image/Combat/Activity/NotesOnShuoRiMainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-1.08 KB
(95%)
assets/resource/base/image/Combat/Activity/RevivalTheUluruGamesEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-3.91 KB
(92%)
assets/resource/base/image/Combat/Activity/RevivalTheUluruGamesMainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-1.2 KB
(96%)
assets/resource/base/image/Combat/Activity/Route77EnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-2.74 KB
(90%)
assets/resource/base/image/Combat/Activity/Route77MainChapter.png
Oops, something went wrong.
Binary file modified
BIN
-4.54 KB
(84%)
assets/resource/base/image/Combat/Activity/ThePrisonerintheCaveEnterTheShow.png
Oops, something went wrong.
Binary file modified
BIN
-2.03 KB
(68%)
assets/resource/base/image/Combat/Activity/ThePrisonerintheCaveTheProofs.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3.54 KB
(45%)
assets/resource/base/image/Combat/PromotionChapter_BWEnter.png
Oops, something went wrong.
Binary file modified
BIN
-2.88 KB
(54%)
assets/resource/base/image/Combat/PromotionChapter_MEEnter.png
Oops, something went wrong.
Binary file modified
BIN
-2.96 KB
(54%)
assets/resource/base/image/Combat/PromotionChapter_SLEnter.png
Oops, something went wrong.
Binary file modified
BIN
-3.35 KB
(48%)
assets/resource/base/image/Combat/PromotionChapter_SSEnter.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3.4 KB
(47%)
assets/resource/base/image/Combat/ResourceChapter_HPEnter.png
Oops, something went wrong.
Binary file modified
BIN
-3.46 KB
(46%)
assets/resource/base/image/Combat/ResourceChapter_LPEnter.png
Oops, something went wrong.
Binary file modified
BIN
-3.53 KB
(44%)
assets/resource/base/image/Combat/ResourceChapter_MAEnter.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-361 Bytes
(86%)
assets/resource/base/image/Combat/SetReplaysTimesX1_selected.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-371 Bytes
(87%)
assets/resource/base/image/Combat/SetReplaysTimesX2_selected.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-472 Bytes
(84%)
assets/resource/base/image/Combat/SetReplaysTimesX3_selected.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-357 Bytes
(88%)
assets/resource/base/image/Combat/SetReplaysTimesX4_selected.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-798 Bytes
(66%)
assets/resource/base/image/EatCandy/ConvertCandyConfirm.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-325 Bytes
(71%)
assets/resource/base/image/EatCandy/SelectMiniCandyMax.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-1.84 KB
(89%)
assets/resource/base/image/Limbo/ArtificialSleepwalkingAwards.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-768 Bytes
(83%)
assets/resource/base/image/OutsideDeduction/OutsideDeduction.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-1.95 KB
(78%)
assets/resource/base/image/OutsideDeduction/SODStart_Confirm.png
Oops, something went wrong.
Binary file modified
BIN
-9.42 KB
(80%)
assets/resource/base/image/OutsideDeduction/SODStart_MediaSelect1.png
Oops, something went wrong.
Binary file modified
BIN
-10.5 KB
(80%)
assets/resource/base/image/OutsideDeduction/SODStart_MediaSelect3.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-822 Bytes
(78%)
assets/resource/base/image/OutsideDeduction/SOD_ArcanistAdd.png
Oops, something went wrong.
Binary file modified
BIN
-249 Bytes
(88%)
assets/resource/base/image/OutsideDeduction/SOD_ArcanistAdd_Confirm_1.png
Oops, something went wrong.
Binary file modified
BIN
-863 Bytes
(66%)
assets/resource/base/image/OutsideDeduction/SOD_ArcanistSelect.png
Oops, something went wrong.
Binary file modified
BIN
-599 Bytes
(87%)
assets/resource/base/image/OutsideDeduction/SOD_Combat.png
Oops, something went wrong.
Binary file modified
BIN
-1.74 KB
(82%)
assets/resource/base/image/OutsideDeduction/SOD_CombatStart.png
Oops, something went wrong.
Binary file modified
BIN
-173 Bytes
(74%)
assets/resource/base/image/OutsideDeduction/SOD_Combating.png
Oops, something went wrong.
Binary file modified
BIN
-635 Bytes
(87%)
assets/resource/base/image/OutsideDeduction/SOD_Danger.png
Oops, something went wrong.
Binary file modified
BIN
-147 Bytes
(88%)
assets/resource/base/image/OutsideDeduction/SOD_Dialog_1.png
Oops, something went wrong.
Binary file modified
BIN
-102 Bytes
(86%)
assets/resource/base/image/OutsideDeduction/SOD_Dialog_2.png
Oops, something went wrong.
Binary file modified
BIN
-274 Bytes
(81%)
assets/resource/base/image/OutsideDeduction/SOD_Dialog_4.png
Oops, something went wrong.
Binary file modified
BIN
-707 Bytes
(86%)
assets/resource/base/image/OutsideDeduction/SOD_Discovery.png
Oops, something went wrong.
Binary file modified
BIN
-3.85 KB
(81%)
assets/resource/base/image/OutsideDeduction/SOD_EndEvent.png
Oops, something went wrong.
Binary file modified
BIN
-869 Bytes
(83%)
assets/resource/base/image/OutsideDeduction/SOD_EndEvent_OK.png
Oops, something went wrong.
Binary file modified
BIN
-1.47 KB
(82%)
assets/resource/base/image/OutsideDeduction/SOD_Ending_1.png
Oops, something went wrong.
Binary file modified
BIN
-2.36 KB
(83%)
assets/resource/base/image/OutsideDeduction/SOD_Ending_2.png
Oops, something went wrong.
Binary file modified
BIN
-896 Bytes
(87%)
assets/resource/base/image/OutsideDeduction/SOD_Imminent.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-219 Bytes
(87%)
assets/resource/base/image/OutsideDeduction/SOD_Nothinghappen.png
Oops, something went wrong.
Binary file modified
BIN
-393 Bytes
(89%)
assets/resource/base/image/OutsideDeduction/SOD_RestSite.png
Oops, something went wrong.
Binary file modified
BIN
-685 Bytes
(87%)
assets/resource/base/image/OutsideDeduction/SOD_Shopping.png
Oops, something went wrong.
Binary file modified
BIN
-1.81 KB
(87%)
assets/resource/base/image/OutsideDeduction/SOD_Shopping_Leave.png
Oops, something went wrong.
Binary file modified
BIN
-576 Bytes
(86%)
assets/resource/base/image/OutsideDeduction/SOD_Treasure.png
Oops, something went wrong.
Binary file modified
BIN
-486 Bytes
(88%)
assets/resource/base/image/OutsideDeductionRapid/Chess.png
Oops, something went wrong.
Binary file modified
BIN
-654 Bytes
(85%)
assets/resource/base/image/OutsideDeductionRapid/Combat.png
Oops, something went wrong.
Binary file modified
BIN
-426 Bytes
(87%)
assets/resource/base/image/OutsideDeductionRapid/Discovery.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-844 Bytes
(86%)
assets/resource/base/image/OutsideDeductionRapid/Event.png
Oops, something went wrong.
Binary file modified
BIN
-1014 Bytes
(86%)
assets/resource/base/image/OutsideDeductionRapid/EventSelect.png
Oops, something went wrong.
Binary file modified
BIN
-608 Bytes
(85%)
assets/resource/base/image/OutsideDeductionRapid/Imminent.png
Oops, something went wrong.
Binary file modified
BIN
-399 Bytes
(88%)
assets/resource/base/image/OutsideDeductionRapid/RestSite.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-435 Bytes
(86%)
assets/resource/base/image/OutsideDeductionRapid/Treasure.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-8.86 KB
(85%)
assets/resource/base/image/Psychube/NoFreePsychubeStagesFlag.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3.27 KB
(85%)
assets/resource/base/image/ReveriesInTheRain/DepthsOfMythEntry.png
Oops, something went wrong.
Binary file modified
BIN
-363 Bytes
(63%)
assets/resource/base/image/ReveriesInTheRain/PlayTimesX1.png
Oops, something went wrong.
Binary file modified
BIN
-550 Bytes
(60%)
assets/resource/base/image/ReveriesInTheRain/PlayTimesX2.png
Oops, something went wrong.
Binary file modified
BIN
-604 Bytes
(59%)
assets/resource/base/image/ReveriesInTheRain/PlayTimesX3.png
Oops, something went wrong.
Binary file modified
BIN
-446 Bytes
(62%)
assets/resource/base/image/ReveriesInTheRain/PlayTimesX4.png
Oops, something went wrong.
Binary file modified
BIN
-1.87 KB
(65%)
assets/resource/base/image/ReveriesInTheRain/ReveriesInTheRainMainEntry.png
Oops, something went wrong.
Binary file modified
BIN
-614 Bytes
(87%)
assets/resource/base/image/ReveriesInTheRain/TranceButton.png
Oops, something went wrong.
Binary file modified
BIN
-863 Bytes
(52%)
assets/resource/base/image/ReveriesInTheRain/TranceClose.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-211 Bytes
(87%)
assets/resource/base/image/Wilderness/TrustDialogueInteraction.png
Oops, something went wrong.
Binary file modified
BIN
-168 Bytes
(87%)
assets/resource/base/image/Wilderness/TrustDialogueNext.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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,83 @@ | ||
# Bug 排查 | ||
|
||
修 bug 也是开发中重要的一环,如何快速准确地定位、分析、解决 bug 是有技巧的。本文将介绍一些常见的 bug 排查方法。 | ||
|
||
> [!NOTE] | ||
> | ||
> 以下内容仅供参考,注意时效性。 | ||
## 前置准备 | ||
|
||
与 bug 发现者沟通,尽可能的获取 bug 相关的信息,如: | ||
|
||
- 资源版本 | ||
- 系统版本 | ||
- 问题的细节(发生的时间、场景等) | ||
- 配置文件、日志、截图等 | ||
|
||
## 定位问题 | ||
|
||
### 确认资源版本以及运行方式 | ||
|
||
对于 M9A 来说,有两种运行方式:1. MaaPiCli 2. MFAWPF | ||
|
||
根据观察,MaaPiCli运行时有行log为 | ||
|
||
```plaintext | ||
[2024-11-28 19:46:32.571][INF][Px14600][Tx16498][Parser.cpp][L56][MaaNS::ProjectInterfaceNS::Parser::parse_interface] Interface Version: [data.version=v2.4.11] | ||
``` | ||
|
||
既能看出资源版本,又能看出是以 MaaPiCli 方式运行。 | ||
|
||
```plaintext | ||
[2024-11-30 01:46:56.490][INF][Px20060][Tx33876][Parser.cpp][L56][MaaNS::ProjectInterfaceNS::Parser::parse_interface] Interface Version: [data.version=] | ||
``` | ||
|
||
当 `version` 为空时,MaaPiCli log 为以上样式。 | ||
|
||
确认资源版本可以了解是否为已修复bug版本,确认运行方式则是因为不同运行方式,config文件不同,同时可能生成的bug也不同。 | ||
|
||
### 确定问题 log 范围 | ||
|
||
- 根据问题描述发生的时间缩小范围 | ||
- 根据问题发生的任务缩小范围 | ||
- 根据[ERR]确定错误相关原因 | ||
- 根据bug相关的[ERR]处反向查找 `Task Hit` ,以确定出错任务 | ||
|
||
## 分析问题 | ||
|
||
在这里我将问题大致分为三类:资源加载问题、连接问题以及 pipeline 问题(timeout)。 | ||
|
||
### 资源加载问题 | ||
|
||
资源改名时覆盖安装导致的资源加载失败: | ||
|
||
```log | ||
[2024-11-17 22:29:04.185][ERR][Px10564][Tx9380][PipelineResMgr.cpp][L211][MaaNS::ResourceNS::PipelineResMgr::parse_config] key already exists [key=OutsideDeduction] | ||
``` | ||
|
||
### 连接问题 | ||
|
||
模拟器连接失败: | ||
|
||
```log | ||
[2024-11-24 23:44:05.539][ERR][Px26056][Tx55883][ControlUnitMgr.cpp][L55][MaaNS::CtrlUnitNs::ControlUnitMgr::connect] failed to connect [adb_path_=D:/MuMu Player 12/shell/adb.exe] [adb_serial_=127.0.0.1:16384] | ||
``` | ||
|
||
### pipeline 问题 | ||
|
||
一般来说,是pipeline逻辑有漏洞导致的,需要进一步分析。 | ||
|
||
常用的解决方法有: | ||
|
||
- 增加 `flag` 任务 | ||
- 增加 `pre/post_wait_freezes` (注意默认 `target` 是否是你想要的) | ||
- 更改实现逻辑(如更换识别方式以及动作逻辑) | ||
|
||
## 解决问题 | ||
|
||
前两种参考[常见问题](../manual/常见问题.md)解决,pipeline 问题需要进一步分析。 | ||
|
||
## 验证修复 | ||
|
||
修复后发布测试版,经测试无误后解决问题。 |
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,82 @@ | ||
# Pipeline 编写 | ||
|
||
## 编写规范 | ||
|
||
### 命名规范 | ||
|
||
为保证资源的美观一致,请尽量遵循以下现有规则。 | ||
|
||
#### 资源命名 | ||
|
||
- 对于图片等文件,采用大驼峰命名法,所有单词的首字母都大写。 | ||
- 对于 `pipeline.json` 文件,一般来说,采用蛇形命名法,单词之间用下划线分隔,所有字母小写, | ||
特别地,专有名词的活动采取大驼峰命名法,一般在 `activity` 内。 | ||
- 对于 `image` 下文件夹,每个文件夹对应一个 `pipeline.json` 文件,文件夹名采用大驼峰命名法, | ||
特别地,`activity` 内 `pipeline.json` 对应的 `image` 放到 `Combat/Activity` 处。 | ||
|
||
#### Task 命名 | ||
|
||
大多数采用大驼峰命名法,特别地,部分情况下用 `_` 连接前、后缀。 | ||
|
||
前缀一般为 `Sub` 或 当前活动缩写(如 `SOD` 黄昏的音序、`EITM` 山麓的回音)等,其他情况建议不要前缀。 | ||
|
||
后缀一般为 `数字` 或 `状态` 等,表示该任务的具体阶段或状态。(建议新写的任务不加后缀) | ||
|
||
### Task 编写 | ||
|
||
参考[Pipeline 协议详细说明](https://github.com/MaaXYZ/MaaFramework/blob/main/docs/zh_cn/3.1-%E4%BB%BB%E5%8A%A1%E6%B5%81%E6%B0%B4%E7%BA%BF%E5%8D%8F%E8%AE%AE.md) | ||
|
||
> [!NOTE] | ||
> | ||
> - 一般 `next` 放置当前任务的出口任务,`interrupt` 放置当前任务的中断任务。 | ||
> - 建议多写些 `Flag` 任务进行判断,以保证任务的稳定性。 | ||
> - 部分情况下,可在 `next` 加入自身,以提高任务的稳定性。(存在程序未正确接受动作的情况) | ||
### next & interrupt 任务顺序 | ||
|
||
总体上,`interrupt` 第一个任务 比 `next` 最后一个任务低一优先级。 | ||
|
||
在 `next` 或 `interrupt` 内部,统一先按照优先级由高到低顺序排列,不能出现优先级倒挂的情况。举例: | ||
|
||
```plaintext | ||
现有判断一个小弹窗的任务B,和判断跳出弹窗前界面的任务A。 | ||
如果弹窗出现时依旧能匹配到任务A,则任务B的优先级应该高于任务A,否则会出现无法处理B而卡死于A的情况 | ||
``` | ||
|
||
同一优先级内的任务,可按照匹配频率由高到低顺序排列,以便提高命中率,降低资源消耗。 | ||
|
||
### 注释规范 | ||
|
||
`pipeline.json` 文件中,注释共两种属性字段: | ||
|
||
1. `.*_doc$|^doc$`: 以 _doc 结尾的字符串或者正好是 doc 的字符串。 | ||
2. `.*_code$|^code$`:以 _code 结尾的字符串或者正好是 code 的字符串。 | ||
|
||
前者为对当前 task(或某字段)的说明,后者为对必填字段的占位。举例: | ||
|
||
```json | ||
{ | ||
"EnterTheActivityMain": { | ||
"doc": "进入当期活动主界面", | ||
"template_code": "在interface.json中修改template", | ||
"recognition": "TemplateMatch", | ||
"roi": [ | ||
885, | ||
123, | ||
340, | ||
183 | ||
], | ||
"action": "Click", | ||
"post_wait_freezes": 300, | ||
"next": [ | ||
"ActivityMainFlag", | ||
"EnterTheActivityMain" | ||
] | ||
} | ||
} | ||
``` | ||
|
||
`doc` 为当前 task 说明。 | ||
|
||
`template_code` 为必填字段占位, | ||
原因是 `recognition` 为 `TemplateMatch` 时, "template" 字段必填,但我们想在 `interface.json` 中修改,故用 `template_code` 占位。 |
Oops, something went wrong.