Skip to content

Commit

Permalink
adapted mission config and build to VCT 3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidp57 committed Jul 3, 2021
1 parent f3bd0e5 commit d6f33eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
9 changes: 5 additions & 4 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ echo Building %MISSION_FILE%.miz

echo.
echo prepare the folders
rd /s /q .\build
mkdir .\build
rd /s /q .\build >nul 2>&1
mkdir .\build >nul 2>&1

IF ["%NPM_UPDATE%"] == [""] GOTO DontNPM_UPDATE
echo fetch the veaf-mission-creation-tools package
Expand All @@ -135,6 +135,7 @@ goto DoNPM_UPDATE
echo skipping npm update
:DoNPM_UPDATE

echo.
echo prepare the veaf-mission-creation-tools scripts
rem -- copy the scripts folder
xcopy /s /y /e %DYNAMIC_SCRIPTS_PATH%\src\scripts\* .\build\tempscripts\ >nul 2>&1
Expand Down Expand Up @@ -195,10 +196,10 @@ rem -- compile the mission
"%SEVENZIP%" a -r -tzip %MISSION_FILE%.miz .\build\tempsrc\* -mem=AES256 >nul 2>&1

rem -- cleanup the mission files
rd /s /q .\build\tempsrc
rd /s /q .\build\tempsrc >nul 2>&1

rem -- cleanup the veaf-mission-creation-tools scripts
rd /s /q .\build\tempscripts
rd /s /q .\build\tempscripts >nul 2>&1

rem -- generate the time and weather versions
rem echo generate the time and weather versions
Expand Down
24 changes: 10 additions & 14 deletions src/scripts/missionConfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,22 +402,16 @@ if ctld then
-- Use any of the predefined names or set your own ones
ctld.transportPilotNames = {}

for i = 1, 10 do
local name = string.format("yak #%03d",i)
veaf.logTrace(string.format("name=%s", veaf.p(name)))
table.insert(ctld.transportPilotNames, name)
for i = 1, 24 do
table.insert(ctld.transportPilotNames, "yak"..i)
end

for i = 1, 10 do
local name = string.format("transport #%03d",i)
veaf.logTrace(string.format("name=%s", veaf.p(name)))
table.insert(ctld.transportPilotNames, name)
table.insert(ctld.transportPilotNames, "transport"..i)
end

for i = 1, 79 do
local name = string.format("helicargo #%03d",i)
veaf.logTrace(string.format("name=%s", veaf.p(name)))
table.insert(ctld.transportPilotNames, name)
table.insert(ctld.transportPilotNames, "helicargo"..i)
end

-- ************** Logistics UNITS FOR CRATE SPAWNING ******************
Expand Down Expand Up @@ -448,11 +442,13 @@ if ctld then
"logistic #020",
}

-- automatically add all the human-manned transport helicopters to ctld.transportPilotNames
veafTransportMission.initializeAllHelosInCTLD()
if veafTransportMission then
-- automatically add all the human-manned transport helicopters to ctld.transportPilotNames
veafTransportMission.initializeAllHelosInCTLD()

-- automatically add all the carriers and FARPs to ctld.logisticUnits
veafTransportMission.initializeAllLogisticInCTLD()
-- automatically add all the carriers and FARPs to ctld.logisticUnits
veafTransportMission.initializeAllLogisticInCTLD()
end

veaf.logInfo("init - ctld")
ctld.initialize()
Expand Down

0 comments on commit d6f33eb

Please sign in to comment.