mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Release automation preparation
-- Updated .launch files to work from workspace. So everybody can use them from LDT. -- Deleted obscolete .launch files. -- Created new Moose_Create.lua script. Now lua makes the Dynamic and Static Moose.lua stub. -- One single file is the reference for the Moose sources: Moose.files located in Moose Setup -- Removed the l10n directory from Moose Setup\Moose Mission Update. -- Removed the 7z and other outputs to update missions.
This commit is contained in:
@@ -1,26 +1,22 @@
|
||||
|
||||
local base = _G
|
||||
|
||||
Include = {}
|
||||
__Moose = {}
|
||||
|
||||
Include.File = function( IncludeFile )
|
||||
if not Include.Files[ IncludeFile ] then
|
||||
Include.Files[IncludeFile] = IncludeFile
|
||||
env.info( "Include:" .. IncludeFile .. " from " .. Include.ProgramPath )
|
||||
local f = assert( base.loadfile( Include.ProgramPath .. IncludeFile .. ".lua" ) )
|
||||
__Moose.Include = function( IncludeFile )
|
||||
if not __Moose.Includes[ IncludeFile ] then
|
||||
__Moose.Includes[IncludeFile] = IncludeFile
|
||||
env.info( "Include:" .. IncludeFile .. " from " .. __Moose.ProgramPath )
|
||||
local f = assert( base.loadfile( __Moose.ProgramPath .. IncludeFile .. ".lua" ) )
|
||||
if f == nil then
|
||||
error ("Could not load MOOSE file " .. IncludeFile .. ".lua" )
|
||||
error ("Could not load Moose file " .. IncludeFile .. ".lua" )
|
||||
else
|
||||
env.info( "Include:" .. IncludeFile .. " loaded from " .. Include.ProgramPath )
|
||||
env.info( "Moose:" .. IncludeFile .. " loaded from " .. __Moose.ProgramPath )
|
||||
return f()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Include.ProgramPath = "Scripts/Moose/"
|
||||
__Moose.ProgramPath = "Scripts/Moose/"
|
||||
|
||||
env.info( "Include.ProgramPath = " .. Include.ProgramPath)
|
||||
|
||||
Include.Files = {}
|
||||
|
||||
Include.File( "Moose" )
|
||||
__Moose.Includes = {}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
BASE:TraceOnOff( true )
|
||||
@@ -1,7 +1 @@
|
||||
local base = _G
|
||||
|
||||
Include = {}
|
||||
Include.Files = {}
|
||||
Include.File = function( IncludeFile )
|
||||
end
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
BASE:TraceOnOff( false )
|
||||
@@ -8,16 +8,16 @@ echo Path to Mission Files: %1
|
||||
rem For /R %1 %%G IN (*.miz) do 7z u "%%G" "l10n\DEFAULT\Moose.lua"
|
||||
For /R %1 %%M IN (*.miz) do (
|
||||
echo off
|
||||
cd
|
||||
cd > NUL:
|
||||
echo "Mission: %%M"
|
||||
mkdir Temp
|
||||
cd Temp
|
||||
mkdir l10n
|
||||
mkdir l10n\DEFAULT
|
||||
copy ..\..\Moose.lua l10n\DEFAULT
|
||||
copy "%%~pM%%~nM.lua" l10n\DEFAULT\*.*
|
||||
dir l10n\DEFAULT
|
||||
7z -bb0 u "%%M" "l10n\DEFAULT\*.lua"
|
||||
copy ..\..\Moose.lua l10n\DEFAULT > NUL:
|
||||
copy "%%~pM%%~nM.lua" l10n\DEFAULT\*.* > NUL:
|
||||
rem dir l10n\DEFAULT
|
||||
7z -bb0 u "%%M" "l10n\DEFAULT\*.lua" > NUL:
|
||||
cd ..
|
||||
rmdir /S /Q Temp
|
||||
)
|
||||
File diff suppressed because it is too large
Load Diff
56
Moose Mission Setup/Moose.files
Normal file
56
Moose Mission Setup/Moose.files
Normal file
@@ -0,0 +1,56 @@
|
||||
Utilities\Routines
|
||||
Utilities\Utils
|
||||
|
||||
Core\Base
|
||||
Core\Scheduler
|
||||
Core\ScheduleDispatcher
|
||||
Core\Event
|
||||
Core\Menu
|
||||
Core\Zone
|
||||
Core\Database
|
||||
Core\Set
|
||||
Core\Point
|
||||
Core\Message
|
||||
Core\Fsm
|
||||
Core\Radio
|
||||
|
||||
Wrapper\Object
|
||||
Wrapper\Identifiable
|
||||
Wrapper\Positionable
|
||||
Wrapper\Controllable
|
||||
Wrapper\Group
|
||||
Wrapper\Unit
|
||||
Wrapper\Client
|
||||
Wrapper\Static
|
||||
Wrapper\Airbase
|
||||
Wrapper\Scenery
|
||||
|
||||
Functional\Scoring
|
||||
Functional\CleanUp
|
||||
Functional\Spawn
|
||||
Functional\Movement
|
||||
Functional\Sead
|
||||
Functional\Escort
|
||||
Functional\MissileTrainer
|
||||
Functional\AirbasePolice
|
||||
Functional\Detection
|
||||
|
||||
AI\AI_Balancer
|
||||
AI\AI_Patrol
|
||||
AI\AI_Cap
|
||||
AI\AI_Cas
|
||||
AI\AI_Cargo
|
||||
|
||||
Actions\Act_Assign
|
||||
Actions\Act_Route
|
||||
Actions\Act_Account
|
||||
Actions\Act_Assist
|
||||
|
||||
Tasking\CommandCenter
|
||||
Tasking\Mission
|
||||
Tasking\Task
|
||||
Tasking\DetectionManager
|
||||
Tasking\Task_A2G_Dispatcher
|
||||
Tasking\Task_A2G
|
||||
|
||||
Moose.lua
|
||||
File diff suppressed because it is too large
Load Diff
78
Moose Mission Setup/Moose_Create.lua
Normal file
78
Moose Mission Setup/Moose_Create.lua
Normal file
@@ -0,0 +1,78 @@
|
||||
-- This routine is called from the LDT environment to create the Moose.lua file stub for use in .miz files.
|
||||
|
||||
local MooseDynamicStatic = arg[1]
|
||||
local MooseDate = arg[2]
|
||||
local MooseDevelopmentPath = arg[3]
|
||||
local MooseSetupPath = arg[4]
|
||||
|
||||
print( "Moose (D)ynamic (S)tatic : " .. MooseDynamicStatic )
|
||||
print( "Current Date : " .. MooseDate )
|
||||
print( "Moose development path : " .. MooseDevelopmentPath )
|
||||
print( "Moose setup path : " .. MooseSetupPath )
|
||||
|
||||
local MooseSourcesFilePath = MooseSetupPath .. "/Moose.files"
|
||||
local MooseFilePath = MooseSetupPath .. "/Moose.lua"
|
||||
|
||||
print( "Reading Moose source list : " .. MooseSourcesFilePath )
|
||||
|
||||
local MooseFile = io.open( MooseFilePath, "w" )
|
||||
|
||||
if MooseDynamicStatic == "D" then
|
||||
MooseFile:write( "env.info( '*** MOOSE DYNAMIC INCLUDE START *** ' )\n" )
|
||||
end
|
||||
if MooseDynamicStatic == "S" then
|
||||
MooseFile:write( "env.info( '*** MOOSE STATIC INCLUDE START *** ' )\n" )
|
||||
end
|
||||
|
||||
MooseFile:write( "env.info( 'Moose Generation Timestamp: " .. MooseDate .. "' )\n" )
|
||||
|
||||
local MooseLoaderPath
|
||||
if MooseDynamicStatic == "D" then
|
||||
MooseLoaderPath = MooseSetupPath .. "/Moose Create Dynamic/Moose_Dynamic_Loader.lua"
|
||||
end
|
||||
if MooseDynamicStatic == "S" then
|
||||
MooseLoaderPath = MooseSetupPath .. "/Moose Create Static/Moose_Static_Loader.lua"
|
||||
end
|
||||
|
||||
local MooseLoader = io.open( MooseLoaderPath, "r" )
|
||||
local MooseLoaderText = MooseLoader:read( "*a" )
|
||||
MooseLoader:close()
|
||||
|
||||
MooseFile:write( MooseLoaderText )
|
||||
|
||||
if MooseDynamicStatic == "D" then
|
||||
MooseFile:write( "BASE:TraceOnOff( true )\n" )
|
||||
end
|
||||
if MooseDynamicStatic == "S" then
|
||||
MooseFile:write( "BASE:TraceOnOff( false )\n" )
|
||||
end
|
||||
|
||||
|
||||
local MooseSourcesFile = io.open( MooseSourcesFilePath, "r" )
|
||||
local MooseSource = MooseSourcesFile:read("*l")
|
||||
|
||||
while( MooseSource ) do
|
||||
|
||||
if MooseSource ~= "" then
|
||||
local MooseFilePath = MooseDevelopmentPath .. "\\" .. MooseSource .. ".lua"
|
||||
if MooseDynamicStatic == "D" then
|
||||
print( "Load dynamic: " .. MooseSource )
|
||||
MooseFile:write( "__Moose.Include( '" .. MooseSource .. "' )\n" )
|
||||
end
|
||||
if MooseDynamicStatic == "S" then
|
||||
print( "Load static: " .. MooseSource )
|
||||
local MooseSourceFile = io.open( MooseFilePath, "r" )
|
||||
local MooseSourceFileText = MooseSourceFile:read( "*a" )
|
||||
MooseSourceFile:close()
|
||||
|
||||
MooseFile:write( MooseSourceFileText )
|
||||
end
|
||||
end
|
||||
|
||||
MooseSource = MooseSourcesFile:read("*l")
|
||||
end
|
||||
|
||||
MooseFile:write( "env.info( '*** MOOSE INCLUDE END *** ' )\n" )
|
||||
|
||||
MooseSourcesFile:close()
|
||||
MooseFile:close()
|
||||
Reference in New Issue
Block a user