diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Caucasus.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Caucasus.miz new file mode 100644 index 0000000..2d567be Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Caucasus.miz differ diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Falklands.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Falklands.miz new file mode 100644 index 0000000..7f4ee2c Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Falklands.miz differ diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-MarianaIslands.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-MarianaIslands.miz new file mode 100644 index 0000000..301d060 Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-MarianaIslands.miz differ diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Nevada.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Nevada.miz new file mode 100644 index 0000000..e8bfb47 Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Nevada.miz differ diff --git a/Wrapper/Airbase/901-Airbase-data-for-the-Wrapper-Normandy2/AFB-901-Airbase-data-for-the-Wrapper-Normandy2.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Normandy.miz similarity index 99% rename from Wrapper/Airbase/901-Airbase-data-for-the-Wrapper-Normandy2/AFB-901-Airbase-data-for-the-Wrapper-Normandy2.miz rename to Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Normandy.miz index 7394cf4..d11d7bf 100644 Binary files a/Wrapper/Airbase/901-Airbase-data-for-the-Wrapper-Normandy2/AFB-901-Airbase-data-for-the-Wrapper-Normandy2.miz and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Normandy.miz differ diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-PersianGulf.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-PersianGulf.miz new file mode 100644 index 0000000..355b5d4 Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-PersianGulf.miz differ diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Sinai.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Sinai.miz new file mode 100644 index 0000000..5156c71 Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Sinai.miz differ diff --git a/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Syria.miz b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Syria.miz new file mode 100644 index 0000000..79480f6 Binary files /dev/null and b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data-Syria.miz differ diff --git a/Wrapper/Airbase/901-Airbase-data-for-the-Wrapper-Normandy2/AFB-901-Airbase-data-for-the-Wrapper-Normandy2.lua b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data.lua similarity index 67% rename from Wrapper/Airbase/901-Airbase-data-for-the-Wrapper-Normandy2/AFB-901-Airbase-data-for-the-Wrapper-Normandy2.lua rename to Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data.lua index 8cd184d..1873b72 100644 --- a/Wrapper/Airbase/901-Airbase-data-for-the-Wrapper-Normandy2/AFB-901-Airbase-data-for-the-Wrapper-Normandy2.lua +++ b/Wrapper/Airbase/900-Airbase-data/AFB-900-Airbase-data.lua @@ -9,7 +9,10 @@ -- -- # Description: -- --- This mission can be used to create data for the Wrapper.Airbase class. +-- This script can be used to create data for the Wrapper.Airbase class. +-- Create an empty mission with the terrain you want the data for. +-- Add Moose and this script. +-- Or use one of the already created missions in this folder. -- -- NOTE: io & lfs must be desanitized for this mission to work! -- @@ -18,8 +21,8 @@ -- 1. Start the mission. -- 2. When you see the message "Wrapper.Airbase data written..." you can quit the mission. -- 3. Open your "Saved Games\DCS\Missions" folder. --- 4. The file airbase-normandy.txt should be saved there and contain all needed data. --- 5. This date can be used to replace the specific parts of Wrapper.Airbase.lua +-- 4. The file airbase-.txt should be saved there and contain all needed data. +-- 5. This data can be used to replace the specific parts of Wrapper.Airbase.lua -- Create a SET with all airbase of this map. local bases = SET_AIRBASE:New():FilterOnce() @@ -27,13 +30,15 @@ local bases = SET_AIRBASE:New():FilterOnce() local Airbases1 = {} local Airbases2 = {} +local terrainName = UTILS.GetDCSMap() + bases:ForEachAirbase( function(afb) local ab = afb -- Wrapper.Airbase#AIRBASE local name = ab:GetName() - local nice = string.gsub(name,"([%s%c%p]+","_") - local text1 = string.format(' ["%s"] = "%s",',nice,name) - local text2 = string.format('-- * AIRBASE.Normandy.%s',nice) + local nice = string.gsub( name, "([%s%c%p]+", "_" ) + local text1 = string.format( ' ["%s"] = "%s",', nice, name ) + local text2 = string.format( '-- * AIRBASE.%s.%s', terrainName, nice ) MESSAGE:New(nice, 10):ToLog() Airbases1[nice] = text1 Airbases2[nice] = text2 @@ -60,7 +65,7 @@ for _, k in ipairs(tkeys2) do list2 = list2 .. Airbases2[k] .. "\n" end -filename = lfs.writedir() ..[[Missions\airbase-normandy.txt]] +filename = lfs.writedir() .."Missions\\airbase-" .. terrainName .. ".txt" filehandle = io.open( filename, "w") filehandle:write(list1) filehandle:write(list2)