js: 狗粮重制版路线修复,增加进度输出 (#943)

This commit is contained in:
mno
2025-05-28 16:31:27 +08:00
committed by GitHub
parent df4183281b
commit c930922d1b
7 changed files with 147 additions and 102 deletions

View File

@@ -5,7 +5,8 @@
"author": "汐", "author": "汐",
"version": "", "version": "",
"description": "", "description": "",
"bgiVersion": "0.42.3" "map_name": "Teyvat",
"bgi_version": "0.45.0"
}, },
"positions": [ "positions": [
{ {
@@ -84,6 +85,15 @@
}, },
{ {
"id": 10, "id": 10,
"x": 9053.48828125,
"y": -2797.310546875,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "keypress(f),w(0.2)"
},
{
"id": 11,
"x": 9054.71875, "x": 9054.71875,
"y": -2797.2811172015245, "y": -2797.2811172015245,
"action": "combat_script", "action": "combat_script",
@@ -92,7 +102,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 11, "id": 12,
"x": 9060.9853515625, "x": 9060.9853515625,
"y": -2791.96484375, "y": -2791.96484375,
"action": "combat_script", "action": "combat_script",
@@ -101,7 +111,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 12, "id": 13,
"x": 9068.6044921875, "x": 9068.6044921875,
"y": -2798.8125, "y": -2798.8125,
"action": "combat_script", "action": "combat_script",

View File

@@ -5,7 +5,8 @@
"author": "汐", "author": "汐",
"version": "", "version": "",
"description": "", "description": "",
"bgiVersion": "0.42.3" "map_name": "Teyvat",
"bgi_version": "0.45.0"
}, },
"positions": [ "positions": [
{ {
@@ -180,63 +181,91 @@
}, },
{ {
"id": 22, "id": 22,
"x": -3119.843793450913, "x": -3118.541015625,
"y": -3621.656295473891, "y": -3622.6650390625,
"action": "combat_script", "action": "combat_script",
"move_mode": "walk", "move_mode": "walk",
"action_params": "keypress(f),wait(0.2),keypress(f),wait(0.2),keypress(f),", "action_params": "keypress(f),w(0.2),keypress(f),w(0.2),keypress(f)",
"type": "target" "type": "target"
}, },
{ {
"id": 23, "id": 23,
"x": -3127.1142578125, "x": -3116.9765625,
"y": -3602.75390625, "y": -3617.94921875,
"action": "", "action": "",
"move_mode": "dash", "move_mode": "walk",
"action_params": "",
"type": "path" "type": "path"
}, },
{ {
"id": 24, "id": 24,
"x": -3149.3203125, "x": -3127.1142578125,
"y": -3568.7509765625, "y": -3602.75390625,
"action": "", "action": "",
"move_mode": "run", "move_mode": "run",
"type": "path" "type": "path"
}, },
{ {
"id": 25, "id": 25,
"x": -3141.4990234375, "x": -3140.1611328125,
"y": -3567.3935546875, "y": -3580.916015625,
"type": "path",
"move_mode": "walk",
"action": "", "action": "",
"action_params": "" "move_mode": "run",
"action_params": "",
"type": "path"
}, },
{ {
"id": 26, "id": 26,
"x": -3136.4072265625, "x": -3142.0937243244607,
"y": -3568.052734375, "y": -3573.4998105254563,
"action": "", "action": "",
"move_mode": "fly", "move_mode": "walk",
"action_params": "",
"type": "path" "type": "path"
}, },
{ {
"id": 27, "id": 27,
"x": -3139.1494140625, "x": -3153.0205078125,
"y": -3570.892578125, "y": -3562.748046875,
"type": "target", "action": "",
"move_mode": "walk", "move_mode": "run",
"action": "combat_script", "action_params": "",
"action_params": "keypress(f),wait(0.2),keypress(f),wait(0.2),keypress(f)," "type": "path"
}, },
{ {
"id": 28, "id": 28,
"x": -3141.4990234375,
"y": -3567.3935546875,
"action": "",
"move_mode": "run",
"action_params": "",
"type": "path"
},
{
"id": 29,
"x": -3136.4072265625,
"y": -3568.052734375,
"action": "",
"move_mode": "jump",
"type": "path"
},
{
"id": 30,
"x": -3139.1494140625,
"y": -3570.892578125,
"action": "combat_script",
"move_mode": "walk",
"action_params": "keypress(f),wait(0.2),keypress(f),wait(0.2),keypress(f),",
"type": "target"
},
{
"id": 31,
"x": -3136.2646484375, "x": -3136.2646484375,
"y": -3571.576171875, "y": -3571.576171875,
"type": "path",
"move_mode": "walk",
"action": "", "action": "",
"action_params": "" "move_mode": "walk",
"action_params": "",
"type": "path"
} }
] ]
} }

View File

@@ -57,7 +57,7 @@
"y": -3744.3037109375, "y": -3744.3037109375,
"action": "combat_script", "action": "combat_script",
"move_mode": "climb", "move_mode": "climb",
"action_params": "芙宁娜 e;玛薇卡 e;千织 e;", "action_params": "wait(0.2),keypress(e)",
"type": "path" "type": "path"
}, },
{ {
@@ -88,8 +88,8 @@
}, },
{ {
"id": 10, "id": 10,
"x": -3114.6142578125, "x": -3115.25003950083,
"y": -3727.2353515625, "y": -3726.437697053525,
"action": "", "action": "",
"move_mode": "walk", "move_mode": "walk",
"type": "path" "type": "path"
@@ -114,8 +114,8 @@
}, },
{ {
"id": 13, "id": 13,
"x": -3112.478515625, "x": -3111.84371049917,
"y": -3723.0224609375, "y": -3721.594098633159,
"action": "", "action": "",
"move_mode": "walk", "move_mode": "walk",
"type": "path" "type": "path"
@@ -264,10 +264,11 @@
}, },
{ {
"id": 31, "id": 31,
"x": -3140.2431640625, "x": -3138.1561176722207,
"y": -3700.9541015625, "y": -3701.812295367494,
"action": "", "action": "combat_script",
"move_mode": "climb", "move_mode": "climb",
"action_params": "wait(0.6)",
"type": "path" "type": "path"
}, },
{ {

View File

@@ -6,9 +6,7 @@
"version": "", "version": "",
"description": "", "description": "",
"map_name": "Teyvat", "map_name": "Teyvat",
"bgi_version": "0.45.0", "bgi_version": "0.45.0"
"tags": [],
"last_modified_time": 1746819816606
}, },
"positions": [ "positions": [
{ {
@@ -266,6 +264,15 @@
}, },
{ {
"id": 31, "id": 31,
"x": -3776.328125,
"y": -4425.9326171875,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 32,
"x": -3761.71875, "x": -3761.71875,
"y": -4427.312511066539, "y": -4427.312511066539,
"action": "", "action": "",
@@ -274,7 +281,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 32, "id": 33,
"x": -3747.8125, "x": -3747.8125,
"y": -4426.0311172015245, "y": -4426.0311172015245,
"action": "", "action": "",
@@ -282,7 +289,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 33, "id": 34,
"x": -3743.921875, "x": -3743.921875,
"y": -4436.001953125, "y": -4436.001953125,
"action": "", "action": "",
@@ -290,7 +297,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 34, "id": 35,
"x": -3742.7294921875, "x": -3742.7294921875,
"y": -4441.98828125, "y": -4441.98828125,
"action": "", "action": "",
@@ -298,7 +305,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 35, "id": 36,
"x": -3740.7060546875, "x": -3740.7060546875,
"y": -4439.869140625, "y": -4439.869140625,
"action": "", "action": "",
@@ -306,7 +313,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 36, "id": 37,
"x": -3738.31640625, "x": -3738.31640625,
"y": -4442.064453125, "y": -4442.064453125,
"action": "", "action": "",
@@ -314,7 +321,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 37, "id": 38,
"x": -3740.6142578125, "x": -3740.6142578125,
"y": -4435.5537109375, "y": -4435.5537109375,
"action": "", "action": "",
@@ -322,7 +329,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 38, "id": 39,
"x": -3741.0341796875, "x": -3741.0341796875,
"y": -4425.9443359375, "y": -4425.9443359375,
"action": "", "action": "",
@@ -330,7 +337,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 39, "id": 40,
"x": -3743.734375, "x": -3743.734375,
"y": -4424.8876953125, "y": -4424.8876953125,
"action": "", "action": "",
@@ -338,7 +345,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 40, "id": 41,
"x": -3764.1240234375, "x": -3764.1240234375,
"y": -4438.958984375, "y": -4438.958984375,
"action": "", "action": "",
@@ -346,7 +353,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 41, "id": 42,
"x": -3772.146484375, "x": -3772.146484375,
"y": -4439.849609375, "y": -4439.849609375,
"action": "", "action": "",
@@ -354,7 +361,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 42, "id": 43,
"x": -3776.125, "x": -3776.125,
"y": -4439.281316399238, "y": -4439.281316399238,
"action": "", "action": "",
@@ -362,7 +369,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 43, "id": 44,
"x": -3775.8125, "x": -3775.8125,
"y": -4441.625154931555, "y": -4441.625154931555,
"action": "", "action": "",
@@ -370,7 +377,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 44, "id": 45,
"x": -3767.134765625, "x": -3767.134765625,
"y": -4439.3466796875, "y": -4439.3466796875,
"action": "", "action": "",
@@ -378,7 +385,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 45, "id": 46,
"x": -3756.236328125, "x": -3756.236328125,
"y": -4437.08203125, "y": -4437.08203125,
"action": "", "action": "",
@@ -386,7 +393,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 46, "id": 47,
"x": -3746.0966796875, "x": -3746.0966796875,
"y": -4434.9072265625, "y": -4434.9072265625,
"action": "combat_script", "action": "combat_script",
@@ -395,7 +402,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 47, "id": 48,
"x": -3741.365234375, "x": -3741.365234375,
"y": -4432.560546875, "y": -4432.560546875,
"action": "", "action": "",
@@ -403,7 +410,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 48, "id": 49,
"x": -3744.125, "x": -3744.125,
"y": -4437.344281193904, "y": -4437.344281193904,
"action": "", "action": "",
@@ -412,7 +419,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 49, "id": 50,
"x": -3735.40625, "x": -3735.40625,
"y": -4437.937477866921, "y": -4437.937477866921,
"action": "", "action": "",
@@ -421,7 +428,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 50, "id": 51,
"x": -3728.7265625, "x": -3728.7265625,
"y": -4437.8623046875, "y": -4437.8623046875,
"action": "", "action": "",
@@ -429,7 +436,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 51, "id": 52,
"x": -3726.888671875, "x": -3726.888671875,
"y": -4433.171875, "y": -4433.171875,
"action": "", "action": "",
@@ -437,7 +444,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 52, "id": 53,
"x": -3726.6484375, "x": -3726.6484375,
"y": -4431.6826171875, "y": -4431.6826171875,
"action": "combat_script", "action": "combat_script",
@@ -445,49 +452,26 @@
"action_params": "keypress(f),wait(0.2),keypress(f),wait(0.2),keypress(f),", "action_params": "keypress(f),wait(0.2),keypress(f),wait(0.2),keypress(f),",
"type": "target" "type": "target"
}, },
{
"id": 53,
"x": -3727.5048828125,
"y": -4431.0224609375,
"action": "",
"move_mode": "walk",
"type": "path"
},
{ {
"id": 54, "id": 54,
"x": -3730.1171875, "x": -3726.5517578125,
"y": -4429.974609375, "y": -4438.2099609375,
"action": "", "type": "path",
"move_mode": "walk", "move_mode": "walk",
"type": "path" "action": "",
"action_params": ""
}, },
{ {
"id": 55, "id": 55,
"x": -3733.7587890625, "x": -3722.61328125,
"y": -4429.880859375, "y": -4437.4814453125,
"type": "path",
"move_mode": "jump",
"action": "", "action": "",
"move_mode": "walk", "action_params": ""
"type": "path"
}, },
{ {
"id": 56, "id": 56,
"x": -3733.937462474212,
"y": -4432.531287894908,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 57,
"x": -3731.53125,
"y": -4432.781227866921,
"action": "",
"move_mode": "walk",
"action_params": "",
"type": "path"
},
{
"id": 58,
"x": -3718.216796875, "x": -3718.216796875,
"y": -4433.0048828125, "y": -4433.0048828125,
"action": "combat_script", "action": "combat_script",
@@ -496,7 +480,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 59, "id": 57,
"x": -3719.4345703125, "x": -3719.4345703125,
"y": -4431.1865234375, "y": -4431.1865234375,
"action": "combat_script", "action": "combat_script",
@@ -505,7 +489,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 60, "id": 58,
"x": -3720.29296875, "x": -3720.29296875,
"y": -4430.4189453125, "y": -4430.4189453125,
"action": "combat_script", "action": "combat_script",
@@ -514,7 +498,7 @@
"type": "target" "type": "target"
}, },
{ {
"id": 61, "id": 59,
"x": -3719.6875, "x": -3719.6875,
"y": -4433.218938131175, "y": -4433.218938131175,
"action": "", "action": "",
@@ -522,7 +506,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 62, "id": 60,
"x": -3726.1875, "x": -3726.1875,
"y": -4428.843628268063, "y": -4428.843628268063,
"action": "combat_script", "action": "combat_script",
@@ -531,7 +515,7 @@
"type": "path" "type": "path"
}, },
{ {
"id": 63, "id": 61,
"x": -3726.1875, "x": -3726.1875,
"y": -4428.843628268063, "y": -4428.843628268063,
"action": "", "action": "",

View File

@@ -11,6 +11,15 @@
"positions": [ "positions": [
{ {
"id": 1, "id": 1,
"x": -2741.25,
"y": -3441,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "path"
},
{
"id": 2,
"x": -2757.28125, "x": -2757.28125,
"y": -3468.4376106653963, "y": -3468.4376106653963,
"action": "", "action": "",

View File

@@ -251,10 +251,14 @@ async function runArtifactsPaths(runRouteA) {
} }
} }
let currentTask = 0; // 当前任务计数器
// 执行普通路线的地图追踪文件 // 执行普通路线的地图追踪文件
for (const fileName of jsonFileNames) { for (const fileName of jsonFileNames) {
const fullPath = fileName; const fullPath = fileName;
await fakeLog(fileName, false, true, 0); await fakeLog(fileName, false, true, 0);
currentTask += 1; // 更新当前任务计数器
log.info(`当前进度:普通${folderName}${currentTask}/${jsonFileNames.length}`);
await pathingScript.runFile(fullPath); await pathingScript.runFile(fullPath);
//捕获任务取消的信息并跳出循环 //捕获任务取消的信息并跳出循环
try { try {
@@ -280,10 +284,14 @@ async function runArtifactsPaths(runRouteA) {
} }
} }
let currentTask = 0; // 当前任务计数器
// 执行收尾路线的地图追踪文件 // 执行收尾路线的地图追踪文件
for (const fileName of jsonFileNames) { for (const fileName of jsonFileNames) {
const fullPath = fileName; const fullPath = fileName;
await fakeLog(fileName, false, true, 0); await fakeLog(fileName, false, true, 0);
currentTask += 1; // 更新当前任务计数器
log.info(`当前进度:收尾${folderName}${currentTask}/${jsonFileNames.length}`);
await pathingScript.runFile(fullPath); await pathingScript.runFile(fullPath);
//捕获任务取消的信息并跳出循环 //捕获任务取消的信息并跳出循环
try { try {
@@ -309,10 +317,14 @@ async function runArtifactsPaths(runRouteA) {
} }
} }
let currentTask = 0; // 当前任务计数器
// 执行额外路线的地图追踪文件 // 执行额外路线的地图追踪文件
for (const fileName of jsonFileNames) { for (const fileName of jsonFileNames) {
const fullPath = fileName; const fullPath = fileName;
await fakeLog(fileName, false, true, 0); await fakeLog(fileName, false, true, 0);
currentTask += 1; // 更新当前任务计数器
log.info(`当前进度:额外${folderName}${currentTask}/${jsonFileNames.length}`);
await pathingScript.runFile(fullPath); await pathingScript.runFile(fullPath);
//捕获任务取消的信息并跳出循环 //捕获任务取消的信息并跳出循环
try { try {

View File

@@ -1,3 +1,3 @@
上次运行完成日期: 2025/05/27 上次运行完成日期: 2025/05/25
上次结束时间: 2025-05-27T00:00:58.107Z 上次结束时间: 2025-05-24T20:00:00.000Z
上次运行路线: B 上次运行路线: A