Skip to content

Commit

Permalink
更新与新功能
Browse files Browse the repository at this point in the history
1. 改善刷初始逻辑,显著减少卡死与点歪。
2. 上线新功能:弱智竞技场。反正不管打谁都是输,为什么不直接打第一个呢?
  • Loading branch information
Carpenter-MK1 committed May 25, 2024
1 parent 0d60445 commit dd9769e
Show file tree
Hide file tree
Showing 16 changed files with 194 additions and 104 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

</div>


## 功能介绍

正在测试中的功能:

- 指定**支援SSR**数量的刷初始号
- 弱智竞技场(自动打第一个玩家,直到次数用完)

计划支持的功能:

Expand All @@ -26,7 +26,7 @@

画饼的功能:

* 自动竞技场
* 智能竞技场
* 全自动P卡

## 安装说明
Expand All @@ -44,7 +44,7 @@
- 若使用 Intel 处理器,请下载 `MaaHatsuboshiTA-macos-x86_64-vXXX.zip`
- 若使用 M1, M2 等 arm 处理器,请下载 `MaaHatsuboshiTA-macos-aarch64-vXXX.zip`
- 使用方式:

```bash
chmod a+x MaaPiCli
./MaaPiCli
Expand All @@ -57,29 +57,32 @@
## 使用说明

在使用工具前完成以下工作:

* 确保游戏可以在模拟器上流畅运行,没有严重的卡顿和延迟
* 将模拟器的分辨率调整为 竖屏 900 * 1600
* 打开模拟器的ADB调试选项
* 完成所有游戏资源的下载
* 完成强制新手教程

初次使用按照终端显示的文本操作:

1. 选择ADB,通常选择自动查找(Auto detect)后选择正在使用的模拟器。如果出现问题,也可以手动输入ADB的绝对路径和端口。
2. 添加任务至任务列表
3. 选择任务内容选项,如目标SSR数量
4. **>重要<** 将游戏退出至跳动“TAP TO START”字样的**标题页**
4. **【重要】**按照提示的任务要求操作模拟器,如“开始前将游戏退出至标题页”
5. 选择运行任务(Run Task)开始作业
6. 在刷到满足要求的账号后,工具会自动停止

**工具运行过程中不要缩放模拟器窗口,可能会导致点击偏移**
6. 在完成所有任务(如刷到满足要求的账号)后,工具会自动停止

如果运行遇到问题(如罢工不动),可以尝试自己点击应该点击的按钮,然后检查流程是否继续运行。若否,重启工具,**步骤4**重新开始流程。
如果运行遇到问题(如罢工不动),可以尝试自己点击应该点击的按钮,然后检查流程是否继续运行。若否,重启工具,重新开始流程。

后续再次使用工具时,可以根据需求对任务列表进行修改(Delete Task + Add Task),然后再次运行任务(Run Task)即可。别忘了先将游戏退出至跳动“TAP TO START”字样的**标题页**
后续再次使用工具时,可以根据需求对任务列表进行修改(Delete Task + Add Task),然后再次运行任务(Run Task)即可。

## 问题反馈

- 请优先在issue提出问题
- 作者QQ:2839100190
- **请优先使用issue功能**
- B站:**午夜苏打_Official** *私信**初星助教相关视频评论区*
- 功能更加完善后可能会有企鹅群

## 赞助

[![爱发电](https://afdian.moeci.com/1/badge.svg)](https://afdian.net/a/midso)
8 changes: 6 additions & 2 deletions assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
],
"task": [
{
"name": "刷初始(暂时只支持指定SSR支援卡数量",
"entry": "Clear_Data_And_Start",
"name": "刷初始(开始前将游戏退出至最外层标题页",
"entry": "Clear_Data",
"option": [
"需要SSR支援卡数量:"
]
},
{
"name": "弱智竞技场(开始前将游戏切换至主页/Home页)",
"entry": "Main_To_Contest"
}
],
"recognizer": {},
Expand Down
Binary file added assets/resource/base/image/button_battle_skip.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.
Binary file added assets/resource/base/image/icon_contest.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.
Binary file added assets/resource/base/image/icon_enemy_level.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 assets/resource/base/image/text_contest.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 assets/resource/base/image/text_power_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
134 changes: 134 additions & 0 deletions assets/resource/base/pipeline/contest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"Main_To_Contest": {
"recognition": "TemplateMatch",
"template": "icon_contest.png",
"action": "Click",
"next": [
"Enter_Contest_Page"
]
},
"Enter_Contest_Page": {
"recognition": "TemplateMatch",
"template": "text_contest.png",
"roi": [
279,
814,
273,
143
],
"action": "Click",
"next": [
"Loop_Enter_Contest_Battle"
]
},
"Loop_Enter_Contest_Battle": {
"next": [
"Flag_Power_Empty",
"Contest_Enemy_Choose"
]
},
"Contest_Enemy_Choose": {
"recognition": "TemplateMatch",
"template": "icon_enemy_level.png",
"roi": [
63,
580,
153,
74
],
"action": "Click",
"timeout_next": [
"Loop_Enter_Contest_Battle"
],
"next": [
"Contest_Enemy_Choose",
"Start_Contest_Battle"
]
},
"Start_Contest_Battle": {
"recognition": "TemplateMatch",
"template": "button_contest_battle_start.png",
"roi": [
231,
1029,
271,
144
],
"action": "Click",
"next": [
"Start_Contest_Battle",
"Loop_Contest_Battle"
]
},
"Loop_Contest_Battle": {
"next": [
"Flag_Contest_Battle_Over",
"Close_Present_And_Leave",
"Skip_Battle",
"Close_Others"
]
},
"Close_Present_And_Leave": {
"recognition": "TemplateMatch",
"template": "button_present_close.png",
"roi": [
200,
1104,
315,
120
],
"action": "Click"
},
"Skip_Battle": {
"is_sub": true,
"recognition": "TemplateMatch",
"template": "button_battle_skip.png",
"roi": [
579,
1125,
117,
76
],
"action": "Click"
},
"Flag_Contest_Battle_Over": {
"recognition": "TemplateMatch",
"template": "icon_contest_battle_over.png",
"roi": [
190,
1094,
331,
144
],
"action": "Click",
"next": [
"Flag_Contest_Battle_Over",
"Leave_Contest_Battle"
]
},
"Leave_Contest_Battle": {
"recognition": "TemplateMatch",
"template": "button_contest_battle_over.png",
"roi": [
213,
1084,
297,
142
],
"action": "Click",
"next": [
"Leave_Contest_Battle",
"Loop_Enter_Contest_Battle"
]
},
"Flag_Power_Empty": {
"recognition": "TemplateMatch",
"template": "text_power_empty.png",
"roi": [
430,
0,
290,
101
]
}
}
Loading

0 comments on commit dd9769e

Please sign in to comment.