Skip to content

Commit 32387c6

Browse files
authored
Merge pull request #295 from runhey/dev
Dev
2 parents 32dbb16 + eb26464 commit 32387c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2561
-69
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module/config/argument/setting.json
3333
!dev_tools/Spyxx/spyxx_amd64.exe
3434
!dev_tools/ViewWizard2/ViewWizard2.exe
3535
!dev_tools/ViewWizard3/ViewWizard.exe
36-
hya
36+
./hya
3737

3838

3939

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ This project is licensed under the GNU General Public License v3.0.
5353

5454
## 声明 Announcement
5555
本软件开源、免费,仅供学习交流使用。开发者团队拥有本项目的最终解释权。使用本软件产生的所有问题与本项目与开发者团队无关。
56+
OAS is a free open source software, if you paid for OAS from any channel, please refund.
57+
OAS 是一款免费开源软件,如果你在任何渠道付费购买了OAS,请退款。
5658

5759
## 关于 Alas
5860
OAS 基于碧蓝航线脚本 [AzurLaneAutoScript](https://github.com/LmeSzinc/AzurLaneAutoScript) 开发,考虑到星穹铁道脚本 [StarRailCopilot](https://github.com/LmeSzinc/StarRailCopilot) 中所提及的问题,

config/template.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"device": {
55
"serial": "auto",
66
"handle": "",
7+
"emulatorinfo_path": "",
78
"package_name": "auto",
89
"screenshot_method": "auto",
910
"control_method": "minitouch",
@@ -889,4 +890,4 @@
889890
"netherworld_group_team": "-1,-1"
890891
}
891892
}
892-
}
893+
}

dev_tools/assets_test.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ def detect_ocr(file: str, target: RuleOcr):
3434

3535

3636
# 图片文件路径 可以是相对路径
37-
IMAGE_FILE = r"C:\Users\Ryland\Desktop\QQ截图20240407130042.png"
37+
IMAGE_FILE = r"C:\Users\萌萌哒\Desktop\341978692-fdceb33c-eec1-4965-a2b9-8f75cd54d5e2.png"
3838
if __name__ == '__main__':
39-
from tasks.KekkaiActivation.assets import KekkaiActivationAssets
40-
from tasks.GameUi.assets import GameUiAssets
41-
42-
targe = GameUiAssets.I_MAIN_GOTO_TEAM
39+
from tasks.RyouToppa.assets import RyouToppaAssets
40+
targe = RyouToppaAssets.I_RYOU_TOPPA
4341
print(detect_image(IMAGE_FILE, targe))
42+
43+
# ocr demo
4444
# from tasks.KekkaiActivation.assets import KekkaiActivationAssets
4545
# target = KekkaiActivationAssets.O_CARD_ALL_TIME
4646
# print(detect_ocr(IMAGE_FILE, target))

module/config/config_manual.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ConfigManual:
1717
> BondlingFairyland > EvoZone > GoryouRealm
1818
> TrueOrochi > RichMan
1919
> CollectiveMissions
20-
> Pets > TalismanPass > SoulsTidy > Delegation
20+
> Pets > TalismanPass > SoulsTidy > Delegation > Hyakkiyakou
2121
> Secret > WeeklyTrifles > MysteryShop > Duel > MetaDemon > FrogBoss
2222
"""
2323

module/config/config_menu.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def __init__(self) -> None:
2525
'TalismanPass', 'DemonEncounter', 'Pets', 'SoulsTidy', 'Delegation', 'WantedQuests',
2626
'Tako']
2727
# 很肝的任务
28-
self.menu["Liver Emperor Exclusive"] = ['BondlingFairyland', 'EvoZone', 'GoryouRealm', 'Exploration',]
28+
self.menu["Liver Emperor Exclusive"] = ['BondlingFairyland', 'EvoZone', 'GoryouRealm', 'Exploration',
29+
'Hyakkiyakou']
2930
# 阴阳寮
3031
self.menu["Guild"] = ['KekkaiUtilize', 'KekkaiActivation', 'RealmRaid', 'RyouToppa', 'CollectiveMissions',
3132
'Hunt']

module/config/config_model.py

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
from tasks.BondlingFairyland.config import BondlingFairyland
5555
from tasks.EvoZone.config import EvoZone
5656
from tasks.GoryouRealm.config import GoryouRealm
57+
from tasks.Hyakkiyakou.config import Hyakkiyakou
5758
# ----------------------------------------------------------------------------------------------------------------------
5859

5960
# 每周任务---------------------------------------------------------------------------------------------------------------
@@ -106,6 +107,7 @@ class ConfigModel(ConfigBase):
106107
bondling_fairyland: BondlingFairyland = Field(default_factory=BondlingFairyland)
107108
evo_zone: EvoZone = Field(default_factory=EvoZone)
108109
goryou_realm: GoryouRealm = Field(default_factory=GoryouRealm)
110+
hyakkiyakou: Hyakkiyakou = Field(default_factory=Hyakkiyakou)
109111

110112
# 这些是每周任务
111113
true_orochi: TrueOrochi = Field(default_factory=TrueOrochi)

module/daemon/benchmark.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def run_simple_screenshot_benchmark(self):
216216
Returns:
217217
str: The fastest screenshot method on current device.
218218
"""
219-
screenshot = ['ADB', 'ADB_nc', 'uiautomator2', 'DroidCast_raw', 'DroidCast', 'window_background']
219+
screenshot = ['ADB', 'ADB_nc', 'uiautomator2', 'DroidCast_raw', 'DroidCast', 'window_background', 'nemu_ipc']
220220

221221
def remove(*args):
222222
return [l for l in screenshot if l not in args]
@@ -242,6 +242,6 @@ def remove(*args):
242242
config = Config('oas1')
243243
device = Device(config)
244244
b = Benchmark(config=config, device=device)
245-
# print(b.run_simple_screenshot_benchmark())
246-
screenshot, click = b.get_test_methods()
247-
b.benchmark(set(), click)
245+
print(b.run_simple_screenshot_benchmark())
246+
# screenshot, click = b.get_test_methods()
247+
# b.benchmark(set(), click)

module/device/device.py

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def release_during_wait(self):
9999
# self.config.script.device.screenshot_method = 'scrcpy'
100100
if self.config.script.device.screenshot_method == 'scrcpy':
101101
self._scrcpy_server_stop()
102+
if self.config.Emulator_ScreenshotMethod == 'nemu_ipc':
103+
self.nemu_ipc_release()
102104

103105
def stuck_record_add(self, button):
104106
"""

0 commit comments

Comments
 (0)