dsh-multigameassistant 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/cordis.patch.yml +16 -1
  2. package/lib/analyzer.js +37 -81
  3. package/lib/browser.js +1 -1
  4. package/lib/{chunk-5PDYWE24.js → chunk-26JIEF6M.js} +153 -5
  5. package/lib/{chunk-SHTX4AGU.js → chunk-6DSSLS7I.js} +26 -0
  6. package/lib/{chunk-VOTN4IHB.js → chunk-EKTA4OYC.js} +3 -3
  7. package/lib/{chunk-UQLHGLMP.js → chunk-I4NHWXKH.js} +3 -3
  8. package/lib/{chunk-FBDVN6Q2.js → chunk-ICJLH3DP.js} +1 -1
  9. package/lib/chunk-J4QJC6UZ.js +22944 -0
  10. package/lib/chunk-J4QJC6UZ.js.LEGAL.txt +8 -0
  11. package/lib/{chunk-MQG5FLOG.js → chunk-KTOQFJ7R.js} +381 -36
  12. package/lib/{chunk-NM6H6WCQ.js → chunk-NEUZQ7TI.js} +237 -16
  13. package/lib/emulator.js +2 -2
  14. package/lib/feishu.js +5 -5
  15. package/lib/game-intel.js +454 -57
  16. package/lib/gateway.js +14 -6
  17. package/lib/guard.js +2 -2
  18. package/lib/intervene.js +8 -6
  19. package/lib/low-context.js +3 -3
  20. package/lib/monitor.js +4 -4
  21. package/lib/notify.js +5 -5
  22. package/lib/orchestrator.js +8 -8
  23. package/lib/qqbot.js +5 -5
  24. package/lib/runner.js +4 -4
  25. package/lib/scheduler.js +2 -2
  26. package/lib/script-registry.js +33 -3705
  27. package/lib/webapi-GDSF5EWP.js +2481 -0
  28. package/package.json +1 -1
  29. package/skills/game-intel.md +9 -1
  30. package/skills/script-analysis.md +30 -3
  31. package/skills/web-reading.md +7 -2
  32. package/web/assets/index-C5cMI4PK.css +1 -0
  33. package/web/assets/index-ClYIoZUR.js +244 -0
  34. package/web/assets/index-ClYIoZUR.js.map +1 -0
  35. package/web/index.html +2 -2
  36. package/lib/chunk-RFCFA5P5.js +0 -11
  37. package/lib/games/arknights/game.yaml +0 -36
  38. package/lib/games/endfield/game.yaml +0 -25
  39. package/lib/games/starrail/game.yaml +0 -33
  40. package/lib/packs/maa/adg.script.yaml +0 -220
  41. package/lib/packs/maaend/adg.script.yaml +0 -160
  42. package/lib/packs/march7th/adg.script.yaml +0 -216
  43. package/web/assets/index-CL3SeTW9.css +0 -1
  44. package/web/assets/index-GYwpGP3f.js +0 -244
  45. package/web/assets/index-GYwpGP3f.js.map +0 -1
package/web/index.html CHANGED
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data:; font-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'" />
7
7
  <title>MultiGameAssistant</title>
8
- <script type="module" crossorigin src="./assets/index-GYwpGP3f.js"></script>
9
- <link rel="stylesheet" crossorigin href="./assets/index-CL3SeTW9.css">
8
+ <script type="module" crossorigin src="./assets/index-ClYIoZUR.js"></script>
9
+ <link rel="stylesheet" crossorigin href="./assets/index-C5cMI4PK.css">
10
10
  </head>
11
11
  <body>
12
12
  <div class="title-bar" aria-hidden="true"></div>
@@ -1,11 +0,0 @@
1
- import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
-
3
- // packages/packs/index.js
4
- import { fileURLToPath } from "node:url";
5
- var PACKS_DIR = fileURLToPath(new URL("./packs/", import.meta.url));
6
- var GAMES_DIR = fileURLToPath(new URL("./games/", import.meta.url));
7
-
8
- export {
9
- PACKS_DIR,
10
- GAMES_DIR
11
- };
@@ -1,36 +0,0 @@
1
- # 明日方舟 (Arknights, CN server). Event dates come from PRTS, the players'
2
- # wiki, over its Semantic MediaWiki API, and the StarRailAssistant public API
3
- # (the version, each event's kind and description); no model needed. Progress
4
- # inside the game is read from the emulator screen by the agent (GAME.md).
5
- id: arknights
6
- name: 明日方舟
7
- aliases: [方舟, Arknights]
8
- scripts: [maa]
9
- timezone: Asia/Shanghai
10
- dailyReset: '04:00'
11
- screen:
12
- target: emulator
13
- sources:
14
- # First: PRTS, read after it, has the last word on dates and the shop end.
15
- - id: sra
16
- name: SRA 公共 API
17
- homepage: https://starrailassistant.top/reference/public-api/
18
- sra:
19
- game: ak
20
- - id: prts
21
- name: PRTS
22
- homepage: https://prts.wiki/w/活动一览
23
- smw:
24
- api: https://prts.wiki/api.php
25
- conditions: '[[分类:有活动信息的页面]]'
26
- title: 名称
27
- start: 活动开始时间
28
- end: 活动结束时间
29
- shopEnd: 兑换结束时间
30
- dates: date
31
- page: https://prts.wiki/w/{page}
32
- # The announcement's key art: each event's picture on the board.
33
- image: '活动预告 {page} 01.jpg'
34
- - id: official
35
- name: 官网公告
36
- homepage: https://ak.hypergryph.com/news
@@ -1,25 +0,0 @@
1
- # 明日方舟:终末地 (Arknights: Endfield, CN server). Event dates, the version
2
- # and each event's kind and description come from the StarRailAssistant
3
- # public API (no model needed); for anything it lacks the agent reads the
4
- # official news (web_fetch / web_search), and the game screen (GAME.md).
5
- id: endfield
6
- name: 明日方舟:终末地
7
- aliases: [终末地, Endfield]
8
- scripts: [maaend]
9
- timezone: Asia/Shanghai
10
- dailyReset: '04:00'
11
- screen:
12
- target: window
13
- sources:
14
- # The only source the plugin reads by itself.
15
- - id: sra
16
- name: SRA 公共 API
17
- homepage: https://starrailassistant.top/reference/public-api/
18
- sra:
19
- game: end
20
- - id: official
21
- name: 官网新闻
22
- homepage: https://endfield.hypergryph.com/news
23
- - id: biligame
24
- name: 终末地 WIKI(哔哩哔哩)
25
- homepage: https://wiki.biligame.com/zmd/活动一览
@@ -1,33 +0,0 @@
1
- # 崩坏:星穹铁道 (Honkai: Star Rail, CN server). Event dates come from the
2
- # StarRailAssistant public API (with the version, kinds and descriptions) and
3
- # the Bilibili wiki's Semantic MediaWiki API, where they are stored as text in
4
- # server time; progress is read from the PC window by the agent (GAME.md).
5
- id: starrail
6
- name: 崩坏:星穹铁道
7
- aliases: [星穹铁道, 星铁, 崩铁, Star Rail]
8
- scripts: [march7th]
9
- timezone: Asia/Shanghai
10
- dailyReset: '04:00'
11
- screen:
12
- target: window
13
- window: 崩坏:星穹铁道
14
- sources:
15
- # First: the wiki, read after it, has the last word on dates.
16
- - id: sra
17
- name: SRA 公共 API
18
- homepage: https://starrailassistant.top/reference/public-api/
19
- sra:
20
- game: sr
21
- - id: biligame
22
- name: 星穹铁道 WIKI(哔哩哔哩)
23
- homepage: https://wiki.biligame.com/sr/活动一览
24
- smw:
25
- api: https://wiki.biligame.com/sr/api.php
26
- conditions: '[[分类:活动]]'
27
- start: 开始时间
28
- end: 结束时间
29
- dates: text
30
- page: https://wiki.biligame.com/sr/{page}
31
- - id: official
32
- name: 官网新闻
33
- homepage: https://sr.mihoyo.com/news
@@ -1,220 +0,0 @@
1
- # MaaAssistantArknights (明日方舟), driven through its GUI config (family
2
- # gui-config): set "run directly" and the emulator's ADB address, start MAA,
3
- # close it once it logs that the queue finished, restore the config.
4
- id: maa
5
- name: MAA(明日方舟)
6
- description: 明日方舟小助手:基建、刷理智、公招、集成战略等日常;通过模拟器 ADB 操作,不占用鼠标
7
- family: gui-config
8
- source:
9
- github: MaaAssistantArknights/MaaAssistantArknights
10
- homepage: https://maa.plus
11
- release:
12
- asset: 'MAA-v{version}-win-x64.zip'
13
- mirrorchyan:
14
- rid: MAA
15
- install:
16
- # An imported MAA's version: MAA.exe's file properties.
17
- version:
18
- exe: MAA.exe
19
- requires:
20
- # The release bundles its own .NET (runtimeconfig "includedFrameworks"); only the VC++ runtime is needed.
21
- - kind: vcredist
22
- arch: x64
23
- - kind: emulator
24
- prefer: mumu
25
- note: 需要 16:9 分辨率的安卓模拟器
26
- config:
27
- files:
28
- - path: config/gui.json
29
- format: json
30
- - path: config/gui.new.json
31
- format: json
32
- detect:
33
- files: [MAA.exe, MaaCore.dll]
34
- launch:
35
- exe: MAA.exe
36
- # MAA's window stays open after the queue finishes; close it once it reports done.
37
- stopAfterDone: true
38
- stopGraceSeconds: 10
39
- # Opening MAA without the run-directly flag shows its own settings window.
40
- settings:
41
- exe: MAA.exe
42
- # MAA starts the game itself (the daily task turns 开始唤醒's 启动客户端 on).
43
- game:
44
- name: 明日方舟
45
- selfLaunch: always
46
- tasks:
47
- - id: daily
48
- title: 日常(运行 MAA 里已勾选的任务)
49
- description: 按 MAA 里勾选好的任务队列跑一遍(例如开始唤醒、基建换班、理智作战、自动公招、信用收支、领取奖励),全部完成后关闭 MAA。做哪些事、刷哪一关、用不用理智药都在 MAA 里设置,这个任务没有参数。
50
- utterances: [清日常, 明日方舟日常, 方舟日常, 跑一遍 MAA, 刷理智, 基建换班]
51
- patches:
52
- # Both config generations: older MAA reads gui.json, newer gui.new.json.
53
- - file: config/gui.json
54
- set:
55
- - path: [Configurations, Default, Start.RunDirectly]
56
- value: 'True'
57
- note: 启动 MAA 后直接开始任务队列,不用手动点「Link Start!」
58
- - path: [Configurations, Default, Start.StartGame]
59
- value: 'True'
60
- note: 「开始唤醒」时打开明日方舟客户端
61
- - path: [Configurations, Default, Connect.Address]
62
- value: '{adb}'
63
- note: 连接本应用准备好的模拟器
64
- - file: config/gui.new.json
65
- set:
66
- - path: [Configurations, Default, Gui, StartUpSettings, RunDirectly]
67
- value: true
68
- note: 启动 MAA 后直接开始任务队列,不用手动点「Link Start!」
69
- - path: [Configurations, Default, Gui, RuntimeSettings, StartGame]
70
- value: true
71
- note: 「开始唤醒」时打开明日方舟客户端
72
- - path: [Configurations, Default, Gui, ConnectSettings, Address]
73
- value: '{adb}'
74
- note: 连接本应用准备好的模拟器
75
- # MultiGameAssistant started MuMu already: MAA must not start an emulator too.
76
- # With a manual ADB address MAA keeps starting its emulator itself.
77
- - file: config/gui.json
78
- when: emulator-managed
79
- set:
80
- - path: [Configurations, Default, Start.OpenEmulatorAfterLaunch]
81
- value: 'False'
82
- note: 模拟器已经由本应用打开,MAA 不再自己开一个
83
- - file: config/gui.new.json
84
- when: emulator-managed
85
- set:
86
- - path: [Configurations, Default, Gui, StartUpSettings, StartEmulator]
87
- value: false
88
- note: 模拟器已经由本应用打开,MAA 不再自己开一个
89
- resources: { input: adb, emulator: mumu, account: arknights }
90
- success: done-log
91
- expectedDuration: 60m
92
- logs:
93
- sources:
94
- - stdout: true
95
- - path: debug/gui.log
96
- # Messages are MAA's own (MaaWpfGui zh-cn localization).
97
- rules:
98
- - { match: '任务已全部完成', level: done }
99
- - { match: '重连失败,连接断开', level: error, tag: adb-disconnected }
100
- - { match: '任务出错', level: error, tag: task-error }
101
- # MAA retries these itself; recorded, not pushed by default.
102
- - { match: '模拟器断开,正在尝试重连', level: warning, tag: adb-reconnecting }
103
- - { match: '截图失败', level: warning, tag: screencap-failed }
104
- - { match: '连接失败', level: warning, tag: connect-failed }
105
- - { match: '完成任务', level: progress }
106
- # L0: an emulator that dropped is reconnected and the queue started again, once per run chain.
107
- recovery:
108
- - { on: adb-disconnected, do: reconnect-adb }
109
- - { on: adb-disconnected, do: restart }
110
- - { on: stalled, do: restart }
111
- # The user guide (the 脚本 page): from MAA's own docs (docs/zh-cn/manual), its
112
- # MaaWpfGui settings classes and zh-cn strings, and the log lines above.
113
- guide:
114
- overview: MAA(明日方舟小助手)通过安卓模拟器操作明日方舟,把 MAA 里勾选好的任务一次跑完:开始唤醒、基建换班、理智作战、自动公招、信用收支、领取奖励、自动肉鸽等。不占用电脑的鼠标键盘,但运行时会占用模拟器和这个游戏账号。本应用运行它时会先准备好模拟器、让 MAA 启动后直接开始,看到「任务已全部完成」后关闭 MAA。
115
- setup:
116
- - 在「配置」里点「打开脚本修改设置」打开 MAA,在「设置 → 连接设置」里选好「连接配置」,和你用的模拟器对应(例如 MuMu 模拟器 12)。
117
- - 在 MAA 主界面的任务列表里勾选要做的事,点每一项右边的齿轮设置细节:刷哪一关、用不用理智药和源石、公招招几星、基建怎么换班。
118
- - 在主界面「完成后」里选跑完之后做什么,例如「退出 MAA」;不想让模拟器被关掉就不要选「退出 模拟器」。
119
- - 关掉 MAA 窗口,设置会保存到本应用用的那份配置里。
120
- checks:
121
- - MAA 正在用的配置是 Default(MAA「设置」里的「切换配置」):本应用运行时只给 Default 这份配置设置连接地址和直接运行。
122
- - 没有另外开着的 MAA 窗口。
123
- - 任务列表里勾选的项目、关卡和理智药设置是这次想要的。
124
- - 模拟器的分辨率是 16:9(例如 1280×720、1920×1080)。
125
- - 同时开着几个模拟器时,关掉 MAA「设置 → 连接设置」里的「自动检测连接」,免得 MAA 连到别的模拟器。
126
- features:
127
- - title: 开始唤醒
128
- description: 打开明日方舟客户端并进入游戏;停在掉线弹窗时会点确认重新连接。
129
- enable: 在任务列表勾选「开始唤醒」,齿轮里选客户端类型(官服、B 服等),需要时填账号切换。
130
- tasks: [daily]
131
- - title: 基建换班
132
- description: 自动计算效率较高的干员组合给各设施换班,按「无人机用途」使用无人机。
133
- enable: 在任务列表勾选「基建换班」,齿轮里选换班模式、无人机用途和要换班的设施。
134
- tasks: [daily]
135
- - title: 理智作战(刷理智)
136
- description: 反复打指定关卡用掉理智;可以用理智药、源石,或刷到指定次数、指定材料为止。
137
- enable: 在任务列表勾选「理智作战」,齿轮里选关卡(「当前/上次」是游戏里上次打的关),设置使用药剂、使用源石和指定次数。
138
- tasks: [daily]
139
- - title: 自动公招
140
- description: 自动选择公招标签并招募,可以用加急许可;遇到保留词条、5 星或 6 星标签会提醒。
141
- enable: 在任务列表勾选「自动公招」,齿轮里设置招募哪几星、每次最多招募几次、要不要自动使用加急许可。
142
- tasks: [daily]
143
- - title: 信用收支
144
- description: 访问好友获取信用点,再去信用交易所购物。
145
- enable: 在任务列表勾选「信用收支」,齿轮里设置优先买和不买的物品。
146
- tasks: [daily]
147
- - title: 领取奖励
148
- description: 领取每日、每周任务的奖励,也可以领其他类型的奖励。
149
- enable: 在任务列表勾选「领取奖励」,齿轮里选还要领哪些奖励。
150
- tasks: [daily]
151
- - title: 自动肉鸽
152
- description: 自动打集成战略(默认傀影主题)。需要游戏稳定在 60 帧以上,耗时较长。
153
- enable: 在任务列表勾选「自动肉鸽」,齿轮里选「肉鸽主题」和策略。
154
- tasks: [daily]
155
- config:
156
- - file: config/gui.new.json
157
- about: 新版 MAA 的设置。Configurations 下每份配置一组(Default 是默认那份),Current 是正在用的那份;每份里有任务队列 TaskQueue(主界面任务列表的每一项、是否勾选、各自的设置)和界面设置 Gui。
158
- keys:
159
- - path: [Current]
160
- meaning: 正在用的配置名称
161
- values: Configurations 里的一个名称
162
- default: Default
163
- advice: 保持 Default:本应用运行时只修改 Default 这份配置。
164
- - path: [Configurations, Default, TaskQueue]
165
- meaning: 任务队列:主界面任务列表里的每一项(类型、是否勾选、各自的设置),按界面上的顺序执行
166
- advice: 在 MAA 界面里勾选和设置,不要手动改;不同配置里任务的个数和顺序可能不一样。
167
- - path: [Configurations, Default, Gui, ConnectSettings, Config]
168
- meaning: 连接配置(模拟器类型),对应「设置 → 连接设置 → 连接配置」
169
- values: 例如 General(通用)、MuMuEmulator12(MuMu 模拟器 12)
170
- default: General
171
- advice: 选和你用的模拟器对应的那一项。
172
- - path: [Configurations, Default, Gui, ConnectSettings, AutoDetect]
173
- meaning: 自动检测连接:开着时 MAA 自己找正在运行的模拟器,改用找到的地址;连上一次后 MAA 会自己把它关掉(开了「每次重新检测」时除外)
174
- values: true 或 false
175
- default: true
176
- advice: 只开一个模拟器时无所谓;同时开着几个时设为 false。
177
- - path: [Configurations, Default, Gui, ConnectSettings, AlwaysAutoDetect]
178
- meaning: 每次重新检测:每次连接都重新自动检测
179
- values: true 或 false
180
- default: false
181
- advice: 保持 false,让 MAA 用本应用给的地址。
182
- - path: [Configurations, Default, Gui, PostActions]
183
- meaning: 任务全部完成后做什么,对应主界面「完成后」
184
- values: ExitArknights(退出明日方舟)、BackToAndroidHome(返回模拟器首页)、ExitEmulator(退出模拟器)、ExitSelf(退出 MAA)等,可以多选,用逗号分隔
185
- default: None
186
- advice: 不想让模拟器被关掉就不要选 ExitEmulator。
187
- - file: config/gui.json
188
- about: 旧版 MAA 的设置,同样按配置分组;键名是「Start.RunDirectly」这样带点的一整个名字,开关的值是文字 True / False。新版 MAA 读 gui.new.json,两份本应用都会改。
189
- keys:
190
- - path: [Current]
191
- meaning: 正在用的配置名称
192
- default: Default
193
- advice: 保持 Default。
194
- troubleshooting:
195
- - problem: 日志出现「重连失败,连接断开」
196
- cause: MAA 和模拟器的连接断了,它自己重连也没成功。
197
- fix: 本应用会自动重新连接模拟器(模拟器关了会重新打开),再从头运行一次。还不行就检查模拟器是否还开着,以及 MAA「设置 → 连接设置」里的连接配置是否和模拟器对应。
198
- tag: adb-disconnected
199
- - problem: 日志出现「模拟器断开,正在尝试重连」或「连接失败」
200
- cause: MAA 正在自己重试连接,这次运行不会因此失败。
201
- fix: 一般不用管;反复出现时检查模拟器是否卡住,同时开着几个模拟器时关掉「自动检测连接」。
202
- tag: adb-reconnecting
203
- - problem: 日志出现「截图失败」
204
- cause: MAA 没能从模拟器截到图,会自己重试。
205
- fix: 经常出现时到 MAA「设置 → 连接设置」检查连接配置是否和模拟器对应;用 MuMu 模拟器时检查「MuMu 截图增强」的设置。
206
- tag: screencap-failed
207
- - problem: 日志出现「任务出错」
208
- cause: 队列里某一项没做成(例如找不到入口、材料不够)。MAA 会接着做后面的项,但这次运行会记为失败。
209
- fix: 在「任务」的运行记录里看日志,找到是哪一项出错;需要时打开 MAA 调整这一项的设置。
210
- tag: task-error
211
- - problem: 跑了很久,一直没有「任务已全部完成」
212
- cause: 本应用以 MAA 日志里的「任务已全部完成」为准,没有这句就不算成功;MAA 很久没有新日志会被当作卡住。
213
- fix: 卡住时本应用会停下并重新运行一次;仍然卡住就打开 MAA 看它停在哪一步。
214
- tag: stalled
215
- - problem: MAA 连到了别的模拟器,或者没用本应用打开的模拟器
216
- cause: 「自动检测连接」开着时 MAA 用自己检测到的地址;或者 MAA 正在用的配置不是 Default。
217
- fix: 关掉「设置 → 连接设置」里的「自动检测连接」,并把配置切回 Default。
218
- - problem: 跑完以后模拟器也被关掉了
219
- cause: MAA 主界面「完成后」里选了「退出 模拟器」。
220
- fix: 想让模拟器继续开着,就在「完成后」里取消它。
@@ -1,160 +0,0 @@
1
- # MaaEnd (明日方舟:终末地), a MaaFramework project: its interface.json declares
2
- # tasks, options and controllers (Win32-Front seizes the mouse; ADB does not).
3
- # Runs go through its MXU client, which runs one configured instance and exits.
4
- id: maaend
5
- name: MaaEnd(终末地)
6
- description: 明日方舟:终末地自动化(MaaFramework);PC 版前台操作或模拟器 ADB
7
- family: maafw-pi
8
- source:
9
- github: MaaEnd/MaaEnd
10
- release:
11
- asset: 'MaaEnd-win-x86_64-v{version}.zip'
12
- mirrorchyan:
13
- rid: MaaEnd
14
- install:
15
- requires:
16
- - kind: vcredist
17
- arch: x64
18
- config:
19
- files:
20
- - path: config/mxu-MaaEnd.json
21
- format: json
22
- detect:
23
- files: [interface.json, resource_adb]
24
- launch:
25
- exe: MaaEnd.exe
26
- settings:
27
- exe: MaaEnd.exe
28
- # The game: started before a run when it is not running yet. MaaEnd's own
29
- # AndroidOpenGame / OpenGame tasks, when an instance has them, then find it
30
- # already open, so the two never fight.
31
- game:
32
- name: 终末地
33
- android:
34
- package: com.hypergryph.endfield
35
- pc:
36
- process: Endfield.exe
37
- keywords: [Endfield, 终末地, Hypergryph, 鹰角]
38
- selfLaunch: never
39
- startupSeconds: 40
40
- tasks:
41
- # Whether a run holds the mouse depends on the instance's controller, hence two tasks;
42
- # each offers only the MXU instances with its kind of controller.
43
- - id: run-pc
44
- title: 运行一个实例(PC 版,占用鼠标键盘)
45
- description: 运行 MaaEnd 里一个「电脑端-前台」实例勾选的任务,直接操作 PC 版游戏,跑完 MaaEnd 自己退出。运行时游戏窗口要在最前面,会占用鼠标键盘。
46
- utterances: [终末地日常, 跑 MaaEnd, 终末地]
47
- params:
48
- instance:
49
- type: string
50
- description: 要运行的实例:MaaEnd 里建的实例名称,每个实例有自己的控制器和任务列表
51
- choices:
52
- file: config/mxu-MaaEnd.json
53
- list: [instances]
54
- value: name
55
- detail: controllerName
56
- where: { field: controllerName, match: 'win32|front' }
57
- create:
58
- set: { id: '{uuid}', name: '{name}' }
59
- args: ['--autostart', '--instance', '{instance}', '--quit-after-run']
60
- resources: { input: desktop, account: endfield }
61
- expectedDuration: 60m
62
- - id: run-adb
63
- title: 运行一个实例(模拟器)
64
- description: 运行 MaaEnd 里一个「安卓端」实例勾选的任务,通过模拟器操作,不占用鼠标键盘,跑完 MaaEnd 自己退出。
65
- params:
66
- instance:
67
- type: string
68
- description: 要运行的实例:MaaEnd 里建的实例名称,每个实例有自己的控制器和任务列表
69
- choices:
70
- file: config/mxu-MaaEnd.json
71
- list: [instances]
72
- value: name
73
- detail: controllerName
74
- where: { field: controllerName, match: 'adb' }
75
- create:
76
- set: { id: '{uuid}', name: '{name}' }
77
- args: ['--autostart', '--instance', '{instance}', '--quit-after-run']
78
- # The instance connects to the emulator MultiGameAssistant prepared.
79
- patches:
80
- - file: config/mxu-MaaEnd.json
81
- set:
82
- - path: [instances, { where: { field: name, equals: '{instance}' } }, savedDevice, adbDeviceAddress]
83
- value: '{adb}'
84
- note: 让这个实例连接本应用准备好的模拟器
85
- resources: { input: adb, emulator: mumu, account: endfield }
86
- expectedDuration: 60m
87
- logs:
88
- sources:
89
- - stdout: true
90
- - path: debug/maa.log
91
- rules: []
92
- # The user guide (the 脚本 page): from MaaEnd's README, its interface.json and
93
- # zh_cn labels (controllers, tasks), and docs/zh_cn/users/troubleshooting.md.
94
- guide:
95
- overview: MaaEnd(MAA 终末地小助手,基于 MaaFramework)自动做明日方舟:终末地的日常:日常奖励领取、基建任务、拜访好友、协议空间、环境监测、据点交易、自动采集等。它按「实例」运行:每个实例选一种控制器(「电脑端-前台」直接操作 PC 版,会占用鼠标键盘;「安卓端」通过模拟器操作)和自己的任务列表。本应用运行时选一个实例跑它勾选的任务,跑完 MaaEnd 自己退出;游戏没开时本应用会先打开它。
96
- setup:
97
- - 在「配置」里点「打开脚本修改设置」打开 MaaEnd,建一个实例并选控制器:操作 PC 版选「电脑端-前台」,用模拟器选「安卓端」。
98
- - 在这个实例的任务列表里勾选要做的事,展开每一项设置选项;然后关掉 MaaEnd,设置会保存到本应用用的那份配置里。
99
- - 用 PC 版时,在本页「启动游戏」里把程序位置设成鹰角官方启动器:直接运行 Endfield.exe 会提示要从官方启动器打开游戏。
100
- checks:
101
- - 选对任务和实例:「运行一个实例(PC 版)」只列出电脑端实例,「运行一个实例(模拟器)」只列出安卓端实例;没有合适的实例可以新建一个(复制一个同类实例)。
102
- - 用电脑端实例时,运行期间游戏窗口要保持在最前、不被遮挡,不要动鼠标键盘。
103
- - PC 版启动器打开后可能停在启动器界面,需要点一下「开始游戏」。
104
- features:
105
- - title: 日常奖励领取
106
- enable: 在实例的任务列表勾选「日常奖励领取」。
107
- tasks: [run-pc, run-adb]
108
- - title: 基建任务
109
- description: 领取基建产物、补货,收取、放置、赠送线索。
110
- enable: 在实例的任务列表勾选「基建任务」,展开设置要做哪些事。
111
- tasks: [run-pc, run-adb]
112
- - title: 拜访好友
113
- description: 拜访好友,顺手完成生产助力和情报交流。
114
- enable: 在实例的任务列表勾选「拜访好友」。
115
- tasks: [run-pc, run-adb]
116
- - title: 协议空间(消耗理智)
117
- description: 消耗理智刷协议空间,可选奖励路线。
118
- enable: 在实例的任务列表勾选「协议空间」,展开选奖励路线。
119
- tasks: [run-pc, run-adb]
120
- - title: 环境监测
121
- enable: 在实例的任务列表勾选「环境监测」。
122
- tasks: [run-pc, run-adb]
123
- - title: 据点交易
124
- description: 用各据点的产品兑换调度券。
125
- enable: 在实例的任务列表勾选「据点交易」。
126
- tasks: [run-pc, run-adb]
127
- - title: 自动采集
128
- description: 按野外资源路线巡回采集。
129
- enable: 在实例的任务列表勾选「自动采集」,展开选路线。
130
- tasks: [run-pc, run-adb]
131
- - title: 基质刷取、生态农场、选剑演武(仅 PC 版)
132
- description: 这几项只有「电脑端-前台」实例能用。
133
- enable: 在电脑端实例的任务列表勾选「基质刷取」「生态农场」或「选剑演武」。
134
- tasks: [run-pc]
135
- config:
136
- - file: config/mxu-MaaEnd.json
137
- about: MaaEnd 界面(MXU)的设置。instances 里是你建的每个实例:名称 name、控制器 controllerName、任务列表 tasks(每项的任务名 taskName、是否勾选 enabled、选项 optionValues)和上次连接的设备 savedDevice。
138
- keys:
139
- - path: [instances]
140
- meaning: 实例列表,运行时选的就是这里的名称
141
- advice: 在 MaaEnd 里新建、改名和设置实例,不要手动改。
142
- - path: [instances, { where: { field: name, equals: '<实例名>' } }, controllerName]
143
- meaning: 实例的控制器,决定它出现在哪个任务里
144
- values: Win32-Front(电脑端-前台:PC 版,游戏窗口要在最前,会占用鼠标)、ADB(安卓端:模拟器)
145
- - path: [instances, { where: { field: name, equals: '<实例名>' } }, tasks]
146
- meaning: 实例要做的任务:taskName 是任务名,enabled 是否勾选,optionValues 是它的选项
147
- advice: 在 MaaEnd 界面里勾选和设置。
148
- - path: [instances, { where: { field: name, equals: '<实例名>' } }, savedDevice, adbDeviceAddress]
149
- meaning: 安卓端实例连接的设备地址
150
- advice: 不用改:本应用运行时会临时换成它准备好的模拟器。
151
- troubleshooting:
152
- - problem: 找不到游戏窗口,或者游戏没打开
153
- cause: PC 版要从鹰角官方启动器打开,启动器可能停在「开始游戏」那一步;或者「启动游戏」里的程序位置不是启动器。
154
- fix: 在启动器里点「开始游戏」,等游戏进到主界面后重新运行;「启动游戏」的程序位置填官方启动器。
155
- - problem: 运行时选不到我的实例
156
- cause: 实例的控制器和任务不对应:PC 版任务只列电脑端实例,模拟器任务只列安卓端实例。
157
- fix: 换另一个任务运行,或者在 MaaEnd 里改这个实例的控制器。
158
- - problem: 识别出错、点错地方
159
- cause: 画面识别没对上,常见于游戏更新之后。
160
- fix: 先把 MaaEnd 更新到最新版;还有问题就在 MaaEnd 设置里打开「保存调试图像」,重现一次后把 debug 文件夹里的日志和 debug/vision 里的图片反馈给 MaaEnd。