From 5cfca915250c2343ab50f67584bfb9844e5b14bf Mon Sep 17 00:00:00 2001 From: commy2 Date: Thu, 14 Dec 2017 13:47:00 +0100 Subject: [PATCH 1/5] add optional component to remove stock missions --- optionals/nomissions/$PBOPREFIX$ | 1 + optionals/nomissions/config.cpp | 18 +++++++++ optionals/nomissions/script_component.hpp | 4 ++ optionals/nomissions_prep/$PBOPREFIX$ | 1 + optionals/nomissions_prep/config.cpp | 39 +++++++++++++++++++ .../nomissions_prep/script_component.hpp | 4 ++ 6 files changed, 67 insertions(+) create mode 100644 optionals/nomissions/$PBOPREFIX$ create mode 100644 optionals/nomissions/config.cpp create mode 100644 optionals/nomissions/script_component.hpp create mode 100644 optionals/nomissions_prep/$PBOPREFIX$ create mode 100644 optionals/nomissions_prep/config.cpp create mode 100644 optionals/nomissions_prep/script_component.hpp diff --git a/optionals/nomissions/$PBOPREFIX$ b/optionals/nomissions/$PBOPREFIX$ new file mode 100644 index 000000000..9951375ba --- /dev/null +++ b/optionals/nomissions/$PBOPREFIX$ @@ -0,0 +1 @@ +x\cba\addons\nomissions diff --git a/optionals/nomissions/config.cpp b/optionals/nomissions/config.cpp new file mode 100644 index 000000000..7d172cf9c --- /dev/null +++ b/optionals/nomissions/config.cpp @@ -0,0 +1,18 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + author = "$STR_CBA_Author"; + name = CSTRING(component); + url = "$STR_CBA_URL"; + units[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"CBA_nomissions_prep"}; + version = VERSION; + authors[] = {"commy2"}; + }; +}; + +class CfgMissions { + class MPMissions {}; +}; diff --git a/optionals/nomissions/script_component.hpp b/optionals/nomissions/script_component.hpp new file mode 100644 index 000000000..b0b3b9848 --- /dev/null +++ b/optionals/nomissions/script_component.hpp @@ -0,0 +1,4 @@ +#define COMPONENT nomissions +#include "\x\cba\addons\main\script_mod.hpp" + +#include "\x\cba\addons\main\script_macros.hpp" diff --git a/optionals/nomissions_prep/$PBOPREFIX$ b/optionals/nomissions_prep/$PBOPREFIX$ new file mode 100644 index 000000000..ab9edcdd2 --- /dev/null +++ b/optionals/nomissions_prep/$PBOPREFIX$ @@ -0,0 +1 @@ +x\cba\addons\nomissions_prep diff --git a/optionals/nomissions_prep/config.cpp b/optionals/nomissions_prep/config.cpp new file mode 100644 index 000000000..f4bc5b57e --- /dev/null +++ b/optionals/nomissions_prep/config.cpp @@ -0,0 +1,39 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + author = "$STR_CBA_Author"; + name = CSTRING(component); + url = "$STR_CBA_URL"; + units[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = { + "CBA_common", + "A3_Missions_F", + "A3_Missions_F_Data", + "A3_Missions_F_Beta", + "A3_Missions_F_Gamma", + "A3_Missions_F_EPA", + "A3_Missions_F_EPB", + "A3_Missions_F_EPC", + "A3_Missions_F_Curator", + "A3_Missions_F_Kart", + "A3_Missions_F_Bootcamp", + "A3_Missions_F_Heli", + "A3_Missions_F_Mark", + "A3_Missions_F_MP_Mark", + "A3_Missions_F_Exp_A", + "A3_Missions_F_Exp", + "A3_Missions_F_Jets", + "A3_Missions_F_Patrol", + "A3_Missions_F_Orange", + "A3_Missions_F_Tacops" + }; + version = VERSION; + authors[] = {"commy2"}; + }; +}; + +class CfgMissions { + delete MPMissions; +}; diff --git a/optionals/nomissions_prep/script_component.hpp b/optionals/nomissions_prep/script_component.hpp new file mode 100644 index 000000000..d37934758 --- /dev/null +++ b/optionals/nomissions_prep/script_component.hpp @@ -0,0 +1,4 @@ +#define COMPONENT nomissions_prep +#include "\x\cba\addons\main\script_mod.hpp" + +#include "\x\cba\addons\main\script_macros.hpp" From b6df860c81f9f98c2e224e6be57254f37e0860d3 Mon Sep 17 00:00:00 2001 From: commy2 Date: Mon, 25 Dec 2017 09:47:44 +0100 Subject: [PATCH 2/5] delete superfluous --- optionals/nomissions_prep/config.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/optionals/nomissions_prep/config.cpp b/optionals/nomissions_prep/config.cpp index f4bc5b57e..f28dbc9f1 100644 --- a/optionals/nomissions_prep/config.cpp +++ b/optionals/nomissions_prep/config.cpp @@ -10,7 +10,6 @@ class CfgPatches { requiredAddons[] = { "CBA_common", "A3_Missions_F", - "A3_Missions_F_Data", "A3_Missions_F_Beta", "A3_Missions_F_Gamma", "A3_Missions_F_EPA", From 75d5684cee290fa9709e2a4510c741c24a0a2458 Mon Sep 17 00:00:00 2001 From: commy2 Date: Fri, 7 Sep 2018 15:50:58 +0200 Subject: [PATCH 3/5] rename --- optionals/no_stock_missions/$PBOPREFIX$ | 1 + .../config.cpp | 2 +- .../no_stock_missions_prep/config.cpp | 18 +++++++++ .../script_component.hpp | 3 +- .../script_component.hpp | 2 +- optionals/nomissions/$PBOPREFIX$ | 1 - optionals/nomissions_prep/$PBOPREFIX$ | 1 - optionals/nomissions_prep/config.cpp | 38 ------------------- 8 files changed, 22 insertions(+), 44 deletions(-) create mode 100644 optionals/no_stock_missions/$PBOPREFIX$ rename optionals/{nomissions => no_stock_missions}/config.cpp (85%) create mode 100644 optionals/no_stock_missions/no_stock_missions_prep/config.cpp rename optionals/{nomissions => no_stock_missions/no_stock_missions_prep}/script_component.hpp (69%) rename optionals/{nomissions_prep => no_stock_missions}/script_component.hpp (72%) delete mode 100644 optionals/nomissions/$PBOPREFIX$ delete mode 100644 optionals/nomissions_prep/$PBOPREFIX$ delete mode 100644 optionals/nomissions_prep/config.cpp diff --git a/optionals/no_stock_missions/$PBOPREFIX$ b/optionals/no_stock_missions/$PBOPREFIX$ new file mode 100644 index 000000000..6547fbc42 --- /dev/null +++ b/optionals/no_stock_missions/$PBOPREFIX$ @@ -0,0 +1 @@ +x\cba\addons\no_stock_missions diff --git a/optionals/nomissions/config.cpp b/optionals/no_stock_missions/config.cpp similarity index 85% rename from optionals/nomissions/config.cpp rename to optionals/no_stock_missions/config.cpp index 7d172cf9c..f8134c5df 100644 --- a/optionals/nomissions/config.cpp +++ b/optionals/no_stock_missions/config.cpp @@ -7,7 +7,7 @@ class CfgPatches { url = "$STR_CBA_URL"; units[] = {}; requiredVersion = REQUIRED_VERSION; - requiredAddons[] = {"CBA_nomissions_prep"}; + requiredAddons[] = {"cba_no_stock_missions_prep"}; version = VERSION; authors[] = {"commy2"}; }; diff --git a/optionals/no_stock_missions/no_stock_missions_prep/config.cpp b/optionals/no_stock_missions/no_stock_missions_prep/config.cpp new file mode 100644 index 000000000..53793d096 --- /dev/null +++ b/optionals/no_stock_missions/no_stock_missions_prep/config.cpp @@ -0,0 +1,18 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + author = "$STR_CBA_Author"; + name = ECSTRING(no_stock_missions,component); + url = "$STR_CBA_URL"; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"cba_common"}; + version = VERSION; + }; +}; + +class CfgMissions { + delete MPMissions; +}; diff --git a/optionals/nomissions/script_component.hpp b/optionals/no_stock_missions/no_stock_missions_prep/script_component.hpp similarity index 69% rename from optionals/nomissions/script_component.hpp rename to optionals/no_stock_missions/no_stock_missions_prep/script_component.hpp index b0b3b9848..64d9a090e 100644 --- a/optionals/nomissions/script_component.hpp +++ b/optionals/no_stock_missions/no_stock_missions_prep/script_component.hpp @@ -1,4 +1,3 @@ -#define COMPONENT nomissions +#define COMPONENT no_stock_missions_prep #include "\x\cba\addons\main\script_mod.hpp" - #include "\x\cba\addons\main\script_macros.hpp" diff --git a/optionals/nomissions_prep/script_component.hpp b/optionals/no_stock_missions/script_component.hpp similarity index 72% rename from optionals/nomissions_prep/script_component.hpp rename to optionals/no_stock_missions/script_component.hpp index d37934758..9834d6a0f 100644 --- a/optionals/nomissions_prep/script_component.hpp +++ b/optionals/no_stock_missions/script_component.hpp @@ -1,4 +1,4 @@ -#define COMPONENT nomissions_prep +#define COMPONENT no_stock_missions #include "\x\cba\addons\main\script_mod.hpp" #include "\x\cba\addons\main\script_macros.hpp" diff --git a/optionals/nomissions/$PBOPREFIX$ b/optionals/nomissions/$PBOPREFIX$ deleted file mode 100644 index 9951375ba..000000000 --- a/optionals/nomissions/$PBOPREFIX$ +++ /dev/null @@ -1 +0,0 @@ -x\cba\addons\nomissions diff --git a/optionals/nomissions_prep/$PBOPREFIX$ b/optionals/nomissions_prep/$PBOPREFIX$ deleted file mode 100644 index ab9edcdd2..000000000 --- a/optionals/nomissions_prep/$PBOPREFIX$ +++ /dev/null @@ -1 +0,0 @@ -x\cba\addons\nomissions_prep diff --git a/optionals/nomissions_prep/config.cpp b/optionals/nomissions_prep/config.cpp deleted file mode 100644 index f28dbc9f1..000000000 --- a/optionals/nomissions_prep/config.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "script_component.hpp" - -class CfgPatches { - class ADDON { - author = "$STR_CBA_Author"; - name = CSTRING(component); - url = "$STR_CBA_URL"; - units[] = {}; - requiredVersion = REQUIRED_VERSION; - requiredAddons[] = { - "CBA_common", - "A3_Missions_F", - "A3_Missions_F_Beta", - "A3_Missions_F_Gamma", - "A3_Missions_F_EPA", - "A3_Missions_F_EPB", - "A3_Missions_F_EPC", - "A3_Missions_F_Curator", - "A3_Missions_F_Kart", - "A3_Missions_F_Bootcamp", - "A3_Missions_F_Heli", - "A3_Missions_F_Mark", - "A3_Missions_F_MP_Mark", - "A3_Missions_F_Exp_A", - "A3_Missions_F_Exp", - "A3_Missions_F_Jets", - "A3_Missions_F_Patrol", - "A3_Missions_F_Orange", - "A3_Missions_F_Tacops" - }; - version = VERSION; - authors[] = {"commy2"}; - }; -}; - -class CfgMissions { - delete MPMissions; -}; From ca8bc0867148865f7d5e88b21d0c98fe57eda717 Mon Sep 17 00:00:00 2001 From: commy2 Date: Fri, 7 Sep 2018 17:47:22 +0200 Subject: [PATCH 4/5] delete empty line --- optionals/no_stock_missions/script_component.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/optionals/no_stock_missions/script_component.hpp b/optionals/no_stock_missions/script_component.hpp index 9834d6a0f..a162c10e3 100644 --- a/optionals/no_stock_missions/script_component.hpp +++ b/optionals/no_stock_missions/script_component.hpp @@ -1,4 +1,3 @@ #define COMPONENT no_stock_missions #include "\x\cba\addons\main\script_mod.hpp" - #include "\x\cba\addons\main\script_macros.hpp" From 8ec1f72189a28a39dfc4ba63533ddf2a9deb93b8 Mon Sep 17 00:00:00 2001 From: commy2 Date: Fri, 7 Sep 2018 17:47:59 +0200 Subject: [PATCH 5/5] add may be needed array --- optionals/no_stock_missions/config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/optionals/no_stock_missions/config.cpp b/optionals/no_stock_missions/config.cpp index f8134c5df..abcb08829 100644 --- a/optionals/no_stock_missions/config.cpp +++ b/optionals/no_stock_missions/config.cpp @@ -6,6 +6,7 @@ class CfgPatches { name = CSTRING(component); url = "$STR_CBA_URL"; units[] = {}; + weapons[] = {}; requiredVersion = REQUIRED_VERSION; requiredAddons[] = {"cba_no_stock_missions_prep"}; version = VERSION;