From bcd4d34111452507fa9c7e9c77ae40b7db46e642 Mon Sep 17 00:00:00 2001 From: OrekiWoof Date: Sun, 24 May 2026 04:22:26 +0200 Subject: [PATCH] add tasks and launch for vscode --- .timetracker | 42 +++++++++++++++- .vscode/launch.json | 17 +++++++ .vscode/tasks.json | 50 +++++++++++++++++++ OrekiWoofsBeehives.slnx | 4 +- OrekiWoofsBeehives/OrekiWoofsBeehives.csproj | 8 +-- .../OrekiWoofsBees.Common.csproj | 10 ++-- .../OrekiWoofsBees.Full.csproj | 11 ++-- RoamingBees/RoamingBees/RoamingBees.csproj | 8 +-- .../ZZCakeBuild/RoamingBeesCakeBuild.csproj | 7 ++- .../OrekiWoofsBeehivesCakeBuild.csproj | 7 ++- 10 files changed, 146 insertions(+), 18 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.timetracker b/.timetracker index 5a70fb3..49305c2 100644 --- a/.timetracker +++ b/.timetracker @@ -1,5 +1,5 @@ { - "total": 625681, + "total": 637354, "sessions": [ { "begin": "2026-01-09T17:26:02+01:00", @@ -1415,6 +1415,46 @@ "begin": "2026-03-29T08:19:40+02:00", "end": "2026-03-29T09:38:35+02:00", "duration": 4734 + }, + { + "begin": "2026-03-30T00:33:23+02:00", + "end": "2026-03-30T01:23:09+02:00", + "duration": 2986 + }, + { + "begin": "2026-04-07T22:11:37+02:00", + "end": "2026-04-07T22:37:52+02:00", + "duration": 1575 + }, + { + "begin": "2026-05-22T16:05:00+02:00", + "end": "2026-05-22T16:20:11+02:00", + "duration": 911 + }, + { + "begin": "2026-05-22T16:20:15+02:00", + "end": "2026-05-22T16:43:59+02:00", + "duration": 1424 + }, + { + "begin": "2026-05-22T16:47:46+02:00", + "end": "2026-05-22T17:08:18+02:00", + "duration": 1231 + }, + { + "begin": "2026-05-22T17:36:43+02:00", + "end": "2026-05-22T17:36:52+02:00", + "duration": 8 + }, + { + "begin": "2026-05-23T02:43:28+02:00", + "end": "2026-05-23T03:08:51+02:00", + "duration": 1523 + }, + { + "begin": "2026-05-23T03:10:56+02:00", + "end": "2026-05-23T03:44:31+02:00", + "duration": 2015 } ] } \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f4ad379 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Vintage Story Client (Beehives)", + "type": "dotnet", + "request": "launch", + "projectPath": "${workspaceFolder}/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj" + }, + { + "name": "Vintage Story Client (RoamingBees)", + "type": "dotnet", + "request": "launch", + "projectPath": "${workspaceFolder}/RoamingBees/RoamingBees/RoamingBees.csproj" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..0124929 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,50 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "check env", + "type": "shell", + "command": "if [ \"${input:buildConfig}\" = \"Version22\" ]; then [ -n \"$VINTAGE_STORY_22\" ] || { echo 'ERROR: VINTAGE_STORY_22 is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA_22\" ] || { echo 'ERROR: VINTAGE_STORY_DATA_22 is not set'; exit 1; }; else [ -n \"$VINTAGE_STORY_21\" ] || { echo 'ERROR: VINTAGE_STORY_21 is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA_21\" ] || { echo 'ERROR: VINTAGE_STORY_DATA_21 is not set'; exit 1; }; fi", + "windows": { + "command": "if ('${input:buildConfig}' -eq 'Version22') { if (-not $env:VINTAGE_STORY_22) { Write-Host 'ERROR: VINTAGE_STORY_22 is not set'; exit 1 }; if (-not $env:VINTAGE_STORY_DATA_22) { Write-Host 'ERROR: VINTAGE_STORY_DATA_22 is not set'; exit 1 } } else { if (-not $env:VINTAGE_STORY_21) { Write-Host 'ERROR: VINTAGE_STORY_21 is not set'; exit 1 }; if (-not $env:VINTAGE_STORY_DATA_21) { Write-Host 'ERROR: VINTAGE_STORY_DATA_21 is not set'; exit 1 } }" + }, + "problemMatcher": [] + }, + { + "label": "build mod", + "command": "dotnet", + "type": "process", + "dependsOn": ["check env"], + "dependsOrder": "sequence", + "args": [ + "build", + "${input:buildProject}", + "-c", + "${input:buildConfig}", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + } + ], + "inputs": [ + { + "id": "buildConfig", + "type": "pickString", + "description": "Build configuration", + "options": ["Debug", "Release", "Version22"], + "default": "Debug" + }, + { + "id": "buildProject", + "type": "pickString", + "description": "Project to build", + "options": [ + "${workspaceFolder}/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj", + "${workspaceFolder}/RoamingBees/RoamingBees/RoamingBees.csproj", + "${workspaceFolder}/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj" + ], + "default": "${workspaceFolder}/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj" + } + ] +} diff --git a/OrekiWoofsBeehives.slnx b/OrekiWoofsBeehives.slnx index b77d6d2..1398d30 100644 --- a/OrekiWoofsBeehives.slnx +++ b/OrekiWoofsBeehives.slnx @@ -1,6 +1,6 @@ - + @@ -9,7 +9,7 @@ - + diff --git a/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj b/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj index 1308f22..44bf46e 100644 --- a/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj +++ b/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj @@ -5,14 +5,16 @@ false bin\$(Configuration)\Mods\orekiwoofsbeehives enable - Debug;Release;Debug22 + Debug;Release;Version22 + $(VINTAGE_STORY_21) + $(VINTAGE_STORY_DATA_21) - + net10.0 $(VINTAGE_STORY_22) - $(VINTAGE_STORY_DATA_22) + $(VINTAGE_STORY_DATA_22) diff --git a/OrekiWoofsBees.Common/OrekiWoofsBees.Common.csproj b/OrekiWoofsBees.Common/OrekiWoofsBees.Common.csproj index e55f9e9..d29a7fb 100644 --- a/OrekiWoofsBees.Common/OrekiWoofsBees.Common.csproj +++ b/OrekiWoofsBees.Common/OrekiWoofsBees.Common.csproj @@ -4,13 +4,15 @@ net8.0 false enable - Debug;Release;Debug22 + Debug;Release;Version22 + $(VINTAGE_STORY_21) + $(VINTAGE_STORY_DATA_21) - + net10.0 $(VINTAGE_STORY_22) - $(VINTAGE_STORY_DATA_22) + $(VINTAGE_STORY_DATA_22) @@ -55,7 +57,7 @@ False - E:\Code\VintageStory\configlib_1.10.14\configlib.dll + $(VS_CONFIGLIB) False diff --git a/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj b/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj index 8a82097..d0a8500 100644 --- a/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj +++ b/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj @@ -1,15 +1,20 @@ net8.0 - Debug;Release;Debug22 + Debug;Release;Version22 false true + $(VINTAGE_STORY_DATA_21) - + net10.0 - --dataPath "..\VintageStoryDataBeehives\Data22" + $(VINTAGE_STORY_DATA_22) + + + + --dataPath "$(VINTAGE_STORY_DATA)" diff --git a/RoamingBees/RoamingBees/RoamingBees.csproj b/RoamingBees/RoamingBees/RoamingBees.csproj index ce3b602..c598522 100644 --- a/RoamingBees/RoamingBees/RoamingBees.csproj +++ b/RoamingBees/RoamingBees/RoamingBees.csproj @@ -5,14 +5,16 @@ false bin\$(Configuration)\Mods\roamingbees enable - Debug;Release;Debug22 + Debug;Release;Version22 + $(VINTAGE_STORY_21) + $(VINTAGE_STORY_DATA_21) - + net10.0 $(VINTAGE_STORY_22) - $(VINTAGE_STORY_DATA_22) + $(VINTAGE_STORY_DATA_22) diff --git a/RoamingBees/ZZCakeBuild/RoamingBeesCakeBuild.csproj b/RoamingBees/ZZCakeBuild/RoamingBeesCakeBuild.csproj index 06b06e6..56d1a30 100644 --- a/RoamingBees/ZZCakeBuild/RoamingBeesCakeBuild.csproj +++ b/RoamingBees/ZZCakeBuild/RoamingBeesCakeBuild.csproj @@ -3,7 +3,12 @@ Exe net8.0 $(MSBuildProjectDirectory) - Debug;Release;Debug22 + Debug;Release;Version22 + $(VINTAGE_STORY_21) + + + + $(VINTAGE_STORY_22) diff --git a/ZZCakeBuild/OrekiWoofsBeehivesCakeBuild.csproj b/ZZCakeBuild/OrekiWoofsBeehivesCakeBuild.csproj index cdec49f..b0fcd83 100644 --- a/ZZCakeBuild/OrekiWoofsBeehivesCakeBuild.csproj +++ b/ZZCakeBuild/OrekiWoofsBeehivesCakeBuild.csproj @@ -3,7 +3,12 @@ Exe net8.0 $(MSBuildProjectDirectory) - Debug;Release;Debug22 + Debug;Release;Version22 + $(VINTAGE_STORY_21) + + + + $(VINTAGE_STORY_22)