moved files and added compile script
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pushdoc:
|
buildandpush:
|
||||||
name: push_file
|
name: push_file
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
@@ -38,9 +38,10 @@ jobs:
|
|||||||
- name: mkdir
|
- name: mkdir
|
||||||
run: mkdir -p ./$repo/Spearhead
|
run: mkdir -p ./$repo/Spearhead
|
||||||
- run: npm i markdown-to-html-cli -g
|
- run: npm i markdown-to-html-cli -g
|
||||||
- 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/$sourcefileA.md --output ./$repo/Spearhead/$sourcefileA.html
|
- 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/$sourcefileA.md --output ./$repo/Spearhead/$sourcefileA.html
|
||||||
- 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: 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: cp -a ./spearhead/docs/img/. ./$repo/Spearhead/img/
|
- run: python3 ./spearhead/SpearheadCompile.py "./spearhead" "./$repo/Spearhead/spearhead.lua"
|
||||||
|
- run: cp -a ./spearhead/_docs/img/. ./$repo/Spearhead/img/
|
||||||
- name: ls
|
- name: ls
|
||||||
run: ls
|
run: ls
|
||||||
working-directory: ./dutchie032.github.io
|
working-directory: ./dutchie032.github.io
|
||||||
|
|||||||
+13
-16
@@ -2,25 +2,22 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
def compileClasses(classesPath):
|
||||||
def CreateReadme():
|
resultString = ""
|
||||||
print("TODO")
|
for name in glob.glob(f"{classesPath}/**/*.lua"):
|
||||||
|
with open(name, 'r') as file:
|
||||||
def compileClasses(root):
|
resutlString += file.read()
|
||||||
for subFolder in [ "capClasses", "stageClasses"]:
|
return resultString
|
||||||
path = os.path.join(root, subFolder)
|
|
||||||
for name in glob.glob(f"{path}/*.lua"):
|
|
||||||
with open(path, 'r') as file:
|
|
||||||
|
|
||||||
|
|
||||||
def compile(root, target):
|
def compile(root, target):
|
||||||
|
classes = compileClasses(root)
|
||||||
compiled = ""
|
compiled = ""
|
||||||
for filename in Order:
|
compiled += classes
|
||||||
path = os.path.join(root, filename)
|
|
||||||
with open(path,'r') as file:
|
mainFileName = os.path.join(root, "main.lua")
|
||||||
fileContents = file.read()
|
with open(mainFileName, 'r') as mainFile:
|
||||||
compiled += fileContents
|
string = mainFile.read()
|
||||||
print(path)
|
compiled += string
|
||||||
|
|
||||||
with open(target, "w") as targetFile:
|
with open(target, "w") as targetFile:
|
||||||
targetFile.write(compiled)
|
targetFile.write(compiled)
|
||||||
|
|||||||
@@ -67,8 +67,16 @@ If no CAP route is present the unit will fly a route generated differently per z
|
|||||||
If you want to create you own CAP Routes you can! <br/>
|
If you want to create you own CAP Routes you can! <br/>
|
||||||
For this example I created 2 CAP routes inside of the 2 `_1_` stages. <br/>
|
For this example I created 2 CAP routes inside of the 2 `_1_` stages. <br/>
|
||||||
|
|
||||||
As you can see below there's a nice quick you can exploit. As long as the `X` of the zone is inside of the the `CAPROUTE` will be used!
|
As you can see below there's a nice feature you can exploit. As long as the `X` of the zone is inside of the the `CAPROUTE` will be used for that stage!
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Setting up the missions
|
|
||||||
|
Now all you need to do is start the mission (single player works just fine) and see the AI fly around. <br/>
|
||||||
|
Tip: Speeding up the simulation speed to 10x or 15x can help you see how the AI will fly and how it will behave. <br/>
|
||||||
|
|
||||||
|
Well, nice, we're don setting up the initial CAP effort. <br/>
|
||||||
|
If you want to change values for the CAP routes please read about how to configure it here: [Cap Config](./Reference.html#cap-config)
|
||||||
|
|
||||||
|
## Setting up the Missions
|
||||||
|
|
||||||
@@ -124,6 +124,13 @@ If a zone is empty it will not be briefed, activated or count towards completion
|
|||||||
|
|
||||||
### CAP
|
### CAP
|
||||||
|
|
||||||
|
|
||||||
|
#### CAP Config:
|
||||||
|
|
||||||
|
--[[
|
||||||
|
TODO: CAP CONFIG
|
||||||
|
]]
|
||||||
|
|
||||||
Naming: CAP\_\<"A" | B"\>\<Config\>_\<Free form name\>
|
Naming: CAP\_\<"A" | B"\>\<Config\>_\<Free form name\>
|
||||||
##### CAP Group Config:
|
##### CAP Group Config:
|
||||||
```
|
```
|
||||||
|
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 296 KiB |
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 260 KiB |
Reference in New Issue
Block a user