You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo This script can use these environment variables to customize its behavior :
11
+
echo ----------------------------------------
12
+
echo VERBOSE_LOG_FLAG if set to "true", will create a mission with tracing enabled (meaning that, when run, it will log a lot of details in the dcs log file)
13
+
echo defaults to "false"
14
+
IF [%VERBOSE_LOG_FLAG%] == [] GOTO DefineDefaultVERBOSE_LOG_FLAG
15
+
goto DontDefineDefaultVERBOSE_LOG_FLAG
16
+
:DefineDefaultVERBOSE_LOG_FLAG
17
+
setVERBOSE_LOG_FLAG=false
18
+
:DontDefineDefaultVERBOSE_LOG_FLAG
19
+
echo current value is "%VERBOSE_LOG_FLAG%"
20
+
21
+
echo ----------------------------------------
22
+
echo LUA_SCRIPTS_DEBUG_PARAMETER can be set to "-debug" or "-trace" (or not set) ; this will be passed to the lua helper scripts (e.g. veafMissionRadioPresetsEditor and veafMissionNormalizer)
23
+
echo defaults to not set
24
+
IF [%LUA_SCRIPTS_DEBUG_PARAMETER%] == [] GOTO DefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
25
+
goto DontDefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
26
+
:DefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
27
+
setLUA_SCRIPTS_DEBUG_PARAMETER=
28
+
:DontDefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
29
+
echo current value is "%LUA_SCRIPTS_DEBUG_PARAMETER%"
30
+
31
+
echo ----------------------------------------
32
+
echo SECURITY_DISABLED_FLAG if set to "true", will create a mission with security disabled (meaning that no password is ever required)
33
+
echo defaults to "false"
34
+
IF [%SECURITY_DISABLED_FLAG%] == [] GOTO DefineDefaultSECURITY_DISABLED_FLAG
35
+
goto DontDefineDefaultSECURITY_DISABLED_FLAG
36
+
:DefineDefaultSECURITY_DISABLED_FLAG
37
+
setSECURITY_DISABLED_FLAG=false
38
+
:DontDefineDefaultSECURITY_DISABLED_FLAG
39
+
echo current value is "%SECURITY_DISABLED_FLAG%"
40
+
41
+
echo ----------------------------------------
42
+
echo MISSION_FILE_SUFFIX (a string) will be appended to the mission file name to make it more unique
43
+
echo defaults to the current iso date
44
+
IF [%MISSION_FILE_SUFFIX%] == [] GOTO DefineDefaultMISSION_FILE_SUFFIX
echo This script can use these environment variables to customize its behavior :
11
+
12
+
echo ----------------------------------------
13
+
echo LUA_SCRIPTS_DEBUG_PARAMETER can be set to "-debug" or "-trace" (or not set) ; this will be passed to the lua helper scripts (e.g. veafMissionRadioPresetsEditor and veafMissionNormalizer)
14
+
echo defaults to not set
15
+
IF [%LUA_SCRIPTS_DEBUG_PARAMETER%] == [] GOTO DefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
16
+
goto DontDefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
17
+
:DefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
18
+
setLUA_SCRIPTS_DEBUG_PARAMETER=
19
+
:DontDefineDefaultLUA_SCRIPTS_DEBUG_PARAMETER
20
+
echo current value is "%LUA_SCRIPTS_DEBUG_PARAMETER%"
21
+
22
+
echo ----------------------------------------
23
+
echo SEVENZIP (a string) points to the 7za executable
24
+
echo defaults "7za", so it needs to be in the path
25
+
IF [%SEVENZIP%] == [] GOTO DefineDefaultSEVENZIP
26
+
goto DontDefineDefaultSEVENZIP
27
+
:DefineDefaultSEVENZIP
28
+
setSEVENZIP=7za
29
+
:DontDefineDefaultSEVENZIP
30
+
echo current value is "%SEVENZIP%"
31
+
32
+
echo ----------------------------------------
33
+
echo LUA (a string) points to the lua executable
34
+
echo defaults "lua", so it needs to be in the path
35
+
IF [%LUA%] == [] GOTO DefineDefaultLUA
36
+
goto DontDefineDefaultLUA
37
+
:DefineDefaultLUA
38
+
setLUA=lua
39
+
:DontDefineDefaultLUA
40
+
echo current value is "%LUA%"
41
+
echo ----------------------------------------
42
+
43
+
echo.
44
+
echo fetching the veaf-mission-creation-tools package
45
+
call npm update
46
+
rem echo on
47
+
48
+
rem extracting MIZ files
49
+
echo extracting MIZ files
50
+
setMISSION_PATH=%cd%\src\mission
51
+
"%SEVENZIP%" x -y *%MISSION_NAME%*.miz -o"%MISSION_PATH%\"
52
+
53
+
rem -- set the loading to static in the mission file
54
+
echo set the loading to static in the mission file
0 commit comments