From de1ee4dc0b43df713543f4ee88d53c5a35ffeac5 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Wed, 6 Nov 2024 14:58:57 +0100 Subject: [PATCH 1/3] main instead of master --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 760529d..5428c0d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -64,7 +64,7 @@ jobs: - run: markdown-to-html --title 'Spearhead' --dark-mode auto --keywords "dcs,spearhead,tdcs,mission,campaign,tactical dcs,tactical" --no-dark-mode --markdown-style-theme dark --source ./spearhead/_docs/$sourcefileB.md --output ./$repo/Spearhead/$sourcefileB.html - run: python3 ./spearhead/SpearheadCompile.py "./spearhead" "./$repo/Spearhead/spearhead.lua" - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' - run: mkdir -p ./$repo/Spearhead/beta if: github.ref == 'refs/heads/develop' From b088bff327773cdc378ca28f4b484592c8a305d7 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Tue, 19 Nov 2024 19:22:22 +0100 Subject: [PATCH 2/3] removed filling color from airbases --- classes/spearhead_db.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/spearhead_db.lua b/classes/spearhead_db.lua index f7f08c1..7a27fce 100644 --- a/classes/spearhead_db.lua +++ b/classes/spearhead_db.lua @@ -320,7 +320,7 @@ do -- DB functionString = functionString .. " { x=" .. vecpoint.x .. ", y=0,z=" .. vecpoint.z .. "}," end - functionString = functionString .. "{0,1,0,1}, {0,1,0,1}, 1)" + functionString = functionString .. "{0,1,0,1}, {0,0,0,1}, 1)" env.info(functionString) ---@diagnostic disable-next-line: deprecated @@ -332,7 +332,7 @@ do -- DB end else trigger.action.circleToAll(-1, baseId, { x = point.x, y = 0, z = point.z }, 2048, - { 1, 0, 0, 1 }, { 1, 0, 0, 0 }, 1, true) + { 1, 0, 0, 1 }, { 0, 0, 0, 0 }, 1, true) end end From 05850b694d81186335b15582b96d39cd7d697a50 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Sun, 1 Dec 2024 21:01:24 +0100 Subject: [PATCH 3/3] updated dev_classes --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a78cea..8af15a3 100644 --- a/README.md +++ b/README.md @@ -1 +1,12 @@ -# Spearhead \ No newline at end of file +# Spearhead + + +## Contributing. + +- Make a fitting branch. +- Change reference in the file ./dev_classes.lua +- Add a "do script" trigger in the mission. + The script should be `assert(loadfile('' .. "dev_classes.lua"))()` + This will load all the class files and run the config and main.lua. + + This way you can just hit "fly again" after making mission changes which speeds up development quite a lot.