mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
550 lines
16 KiB
JSON
550 lines
16 KiB
JSON
{
|
||
"version": "0.4",
|
||
"options": {
|
||
"identifyCache": true,
|
||
"identifyCache_Doc": "图像识别缓存功能:开启后可以大幅降低CPU消耗,但需要保证要识别的按钮每次的位置不会改变。true-开启,false-关闭,默认true",
|
||
"taskIdentifyDelay": 1000,
|
||
"taskIdentifyDelay_Doc": "识别任务间的延迟:越快识别频率越快,但会增加CPU消耗。单位毫秒,默认1000",
|
||
"taskControlDelay": 300,
|
||
"taskControlDelay_Doc": "点击任务间延迟:越快点的越快,但是太快了句柄可能不响应。单位毫秒,默认300",
|
||
"printWindow": true,
|
||
"printWindow_Doc": "截图功能:开启后每次结算界面会截图到screenshot目录下。true-开启,false-关闭,默认true",
|
||
"printWindowDelay": 3000,
|
||
"printWindowDelay_Doc": "截图延时:每次到结算界面,掉落物品不是一次性出来的,有个动画,所以需要等一会再截图。单位毫秒,默认3000",
|
||
"printWindowCropOffset": 5,
|
||
"printWindowCropOffset_Doc": "截图额外裁剪:再额外把边框裁减掉一圈,不然企鹅物流有可能识别不出来。单位像素,默认5",
|
||
"controlDelayRange": [
|
||
0,
|
||
0
|
||
],
|
||
"controlDelayRange_Doc": "点击随机延时:每次点击操作会进行随机延时,降低封号风险(好像也没听说过谁被封号的)。格式为 [ 最小延时, 最大延时 ],单位为毫秒。例如想设置3~5秒延时,即修改为[ 3000, 5000 ],默认0~0",
|
||
"ocrGpuIndex": -1,
|
||
"ocrGpuIndex_Doc": "OcrLite使用GPU编号,-1(使用CPU)/0(使用GPU0)/1(使用GPU1)/...,GPU选择失败时,则使用CPU进行计算。默认-1",
|
||
"ocrThreadNumber": 4,
|
||
"ocrThreadNumber_Doc": "OcrLite线程数量。默认4"
|
||
},
|
||
"recruitOcrReplace": [
|
||
[ "沮击", "狙击" ],
|
||
[ "泪击", "狙击" ],
|
||
[ "都出", "输出" ],
|
||
[ "都任", "输出" ]
|
||
],
|
||
"infrastOcrReplace": [
|
||
],
|
||
"handle_Doc": "下面的和模拟器窗口捕获逻辑有关,不需要修改",
|
||
"handle": {
|
||
"BlueStacks": {
|
||
"window": [
|
||
{
|
||
"class": "BS2CHINAUI",
|
||
"window": "BlueStacks App Player"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "BS2CHINAUI",
|
||
"window": "BlueStacks App Player"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "BS2CHINAUI",
|
||
"window": "BlueStacks App Player"
|
||
},
|
||
{
|
||
"class": "BS2CHINAUI",
|
||
"window": "HOSTWND"
|
||
},
|
||
{
|
||
"class": "",
|
||
"window": "BlueStacks Android PluginAndroid"
|
||
}
|
||
],
|
||
"xOffset": 11,
|
||
"yOffset": 46,
|
||
"rightOffset": 11,
|
||
"bottomOffset": 10
|
||
},
|
||
"Nox": {
|
||
"window": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "夜神模拟器"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "夜神模拟器"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "夜神模拟器"
|
||
}
|
||
],
|
||
"xOffset": 2,
|
||
"yOffset": 39,
|
||
"rightOffset": 39,
|
||
"bottomOffset": 9
|
||
},
|
||
"LDPlayer": {
|
||
"window": [
|
||
{
|
||
"class": "LDPlayerMainFrame",
|
||
"window": "雷电模拟器"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "LDPlayerMainFrame",
|
||
"window": "雷电模拟器"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "LDPlayerMainFrame",
|
||
"window": "雷电模拟器"
|
||
},
|
||
{
|
||
"class": "RenderWindow",
|
||
"window": "TheRender"
|
||
}
|
||
],
|
||
"xOffset": 0,
|
||
"yOffset": 35
|
||
},
|
||
"XYAZ": {
|
||
"window": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "逍遥模拟器"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "逍遥模拟器"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "逍遥模拟器"
|
||
},
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "MainWindowWindow"
|
||
}
|
||
],
|
||
"xOffset": 1,
|
||
"yOffset": 48,
|
||
"rightOffset": 1,
|
||
"bottomOffset": 1
|
||
},
|
||
"Tencent": {
|
||
"window": [
|
||
{
|
||
"class": "TXGuiFoundation",
|
||
"window": "腾讯手游助手"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "TXGuiFoundation",
|
||
"window": "腾讯手游助手"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "TXGuiFoundation",
|
||
"window": "腾讯手游助手"
|
||
},
|
||
{
|
||
"class": "AEngineRenderWindowClass",
|
||
"window": "AEngineRenderWindow"
|
||
}
|
||
],
|
||
"xOffset": 1,
|
||
"yOffset": 42
|
||
},
|
||
"MuMuAsst": {
|
||
"window": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - 星云引擎"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - 星云引擎"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - 星云引擎"
|
||
}
|
||
],
|
||
"adb": {
|
||
"path": "[EmulatorPath]..\\vmonitor\\bin\\adb_server.exe",
|
||
"connect": " connect 127.0.0.1:7555",
|
||
"click": " shell input tap [x] [y]",
|
||
"display": " shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayRegex": "cur=%dx%d"
|
||
},
|
||
"xOffset": 0,
|
||
"yOffset": 36
|
||
},
|
||
"MuMuEmulator": {
|
||
"window": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - MuMu模拟器"
|
||
}
|
||
],
|
||
"view": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - MuMu模拟器"
|
||
}
|
||
],
|
||
"control": [
|
||
{
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - MuMu模拟器"
|
||
}
|
||
],
|
||
"adb": {
|
||
"path": "[EmulatorPath]..\\vmonitor\\bin\\adb_server.exe",
|
||
"connect": " connect 127.0.0.1:7555",
|
||
"click": " shell input tap [x] [y]",
|
||
"display": " shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayRegex": "cur=%dx%d"
|
||
},
|
||
"xOffset": 0,
|
||
"yOffset": 36,
|
||
"rightOffset": 0,
|
||
"bottomOffset": 0
|
||
}
|
||
},
|
||
"tasks_Doc": "下面的和任务队列执行逻辑有关,不需要修改",
|
||
"tasks": {
|
||
"SanityBegin": {
|
||
"template": "",
|
||
"templThreshold": 0,
|
||
"type": "doNothing",
|
||
"next": [
|
||
"UsePrts",
|
||
"StartButton1",
|
||
"StartButton2",
|
||
"PRTS",
|
||
"UseMedicine",
|
||
"UseStone",
|
||
"ClickCorner"
|
||
]
|
||
},
|
||
"UsePrts": {
|
||
"template": "UsePrts.png",
|
||
"templThreshold": 0.8,
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"StartButton1"
|
||
]
|
||
},
|
||
"StartButton1": {
|
||
"template": "StartButton1.png",
|
||
"templThreshold": 0.8,
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"StartButton2",
|
||
"UseMedicine",
|
||
"UseStone"
|
||
]
|
||
},
|
||
"StartButton2": {
|
||
"template": "StartButton2.png",
|
||
"type": "clickSelf",
|
||
"rearDelay": 20000,
|
||
"next": [
|
||
"StartButton2",
|
||
"PRTS"
|
||
]
|
||
},
|
||
"PRTS": {
|
||
"template": "PRTS.png",
|
||
"type": "doNothing",
|
||
"rearDelay": 5000,
|
||
"next": [
|
||
"PRTS",
|
||
"PrtsErrorConfirm",
|
||
"EndOfAction"
|
||
]
|
||
},
|
||
"EndOfAction": {
|
||
"template": "",
|
||
"templThreshold": 0,
|
||
"type": "printWindow",
|
||
"next": [
|
||
"ClickCorner"
|
||
]
|
||
},
|
||
"ClickCorner": {
|
||
"ClickCorner_Doc": "点击右下角,既不会点到掉落物品,又能点到蓝色开始按钮的一块位置。1、2是一样的,3的next没有ClickCorner了,之所以分三个就是为了最多点三次,而不是循环跑起来,一直命中ClickCorner",
|
||
"template": "",
|
||
"templThreshold": 0,
|
||
"preDelay": 2000,
|
||
"type": "clickRect",
|
||
"specificArea": [
|
||
1100,
|
||
700,
|
||
150,
|
||
30
|
||
],
|
||
"next": [
|
||
"Loading",
|
||
"StartButton1",
|
||
"StartButton2",
|
||
"UseMedicine",
|
||
"UseStone",
|
||
"ClickCorner2"
|
||
]
|
||
},
|
||
"ClickCorner2": {
|
||
"template": "",
|
||
"preDelay": 2000,
|
||
"templThreshold": 0,
|
||
"type": "clickRect",
|
||
"specificArea": [
|
||
1100,
|
||
700,
|
||
150,
|
||
30
|
||
],
|
||
"next": [
|
||
"Loading",
|
||
"StartButton1",
|
||
"StartButton2",
|
||
"UseMedicine",
|
||
"UseStone",
|
||
"ClickCorner3"
|
||
]
|
||
},
|
||
"ClickCorner3": {
|
||
"template": "",
|
||
"preDelay": 2000,
|
||
"templThreshold": 0,
|
||
"type": "clickRect",
|
||
"specificArea": [
|
||
1100,
|
||
700,
|
||
150,
|
||
30
|
||
],
|
||
"next": [
|
||
"Loading",
|
||
"StartButton1",
|
||
"StartButton2",
|
||
"UseMedicine",
|
||
"UseStone"
|
||
]
|
||
},
|
||
"Loading": {
|
||
"template": "Loading.png",
|
||
"threshold": 0.8,
|
||
"type": "doNothing",
|
||
"next": [
|
||
"StartButton1"
|
||
]
|
||
},
|
||
"UseMedicine": {
|
||
"template": "UseMedicine.png",
|
||
"type": "doNothing",
|
||
"next": [
|
||
"MedicineConfirm"
|
||
]
|
||
},
|
||
"MedicineConfirm": {
|
||
"template": "MedicineConfirm.png",
|
||
"type": "clickSelf",
|
||
"reduceOtherTimes": [
|
||
"StartButton1"
|
||
],
|
||
"next": [
|
||
"StartButton1"
|
||
]
|
||
},
|
||
"UseStone": {
|
||
"template": "UseStone.png",
|
||
"type": "doNothing",
|
||
"next": [
|
||
"StoneConfirm"
|
||
]
|
||
},
|
||
"StoneConfirm": {
|
||
"template": "MedicineConfirm.png",
|
||
"type": "clickSelf",
|
||
"maxTimes": 0,
|
||
"reduceOtherTimes": [
|
||
"StartButton1"
|
||
],
|
||
"next": [
|
||
"StartButton1"
|
||
]
|
||
},
|
||
"PrtsErrorConfirm": {
|
||
"template": "PrtsErrorConfirm.png",
|
||
"type": "doNothing",
|
||
"next": [
|
||
"AbandonAction"
|
||
]
|
||
},
|
||
"AbandonAction": {
|
||
"template": "AbandonAction.png",
|
||
"type": "clickSelf",
|
||
"reduceOtherTimes": [
|
||
"StartButton1",
|
||
"StartButton2",
|
||
"Loading"
|
||
],
|
||
"next": [
|
||
"ClickCorner"
|
||
]
|
||
},
|
||
"VisitBegin": {
|
||
"template": "",
|
||
"templThreshold": 0,
|
||
"type": "doNothing",
|
||
"next": [
|
||
"Friends",
|
||
"FriendsList",
|
||
"StartToVisit",
|
||
"VisitNext",
|
||
"VisitNextBlack",
|
||
"ReturnToFriends"
|
||
]
|
||
},
|
||
"ReturnToFriends": {
|
||
"template": "Return.png",
|
||
"templThreshold": 0.85,
|
||
"histThreshold": 0.85,
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"Friends",
|
||
"ReturnToFriends"
|
||
]
|
||
},
|
||
"Friends": {
|
||
"template": "Friends.png",
|
||
"preDelay": 1000,
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"FriendsList"
|
||
]
|
||
},
|
||
"FriendsList": {
|
||
"template": "FriendsList.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"StartToVisit"
|
||
]
|
||
},
|
||
"StartToVisit": {
|
||
"template": "StartToVisit.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"VisitNext"
|
||
]
|
||
},
|
||
"VisitNext": {
|
||
"template": "VisitNext.png",
|
||
"type": "clickSelf",
|
||
"maxTimes": 21,
|
||
"exceededNext": [
|
||
"ReturnToMall"
|
||
],
|
||
"next": [
|
||
"VisitNext",
|
||
"VisitNextBlack"
|
||
]
|
||
},
|
||
"ReturnToMall": {
|
||
"template": "Return.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"Mall",
|
||
"ReturnToMall",
|
||
"ReturnToMallConfirm"
|
||
]
|
||
},
|
||
"ReturnToMallConfirm": {
|
||
"template": "PopupConfirm.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"ReturnToMall"
|
||
]
|
||
},
|
||
"Mall": {
|
||
"template": "Mall.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"CreditStore"
|
||
]
|
||
},
|
||
"CreditStore": {
|
||
"template": "CreditStore.png",
|
||
"templThreshold": 0.85,
|
||
"rearDelay": 1000,
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"CollectCredit",
|
||
"Stop"
|
||
]
|
||
},
|
||
"CollectCredit": {
|
||
"template": "CollectCredit.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"Stop"
|
||
]
|
||
},
|
||
"VisitLimited": {
|
||
"template": "VisitLimited.png",
|
||
"templThreshold": 1,
|
||
"type": "doNothing",
|
||
"next": [
|
||
"ReturnToMall"
|
||
]
|
||
},
|
||
"VisitNextBlack": {
|
||
"template": "VisitNextBlack.png",
|
||
"type": "doNothing",
|
||
"next": [
|
||
"ReturnToMall"
|
||
]
|
||
},
|
||
"Stop": {
|
||
"template": "",
|
||
"templThreshold": 0,
|
||
"type": "stop",
|
||
"next": []
|
||
},
|
||
"RecruitTime": {
|
||
"template": "RecruitTimeReduce.png",
|
||
"type": "clickRect",
|
||
"specificArea": [ 391, 279, 129, 44 ],
|
||
"next": [
|
||
"Stop"
|
||
]
|
||
},
|
||
"Listless": {
|
||
"template": "Listless.png",
|
||
"type": "clickSelf",
|
||
"next": [
|
||
"Stop"
|
||
]
|
||
}
|
||
}
|
||
} |