// **********************************************************************************************************
// * This project is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
// * https://creativecommons.org/licenses/by-sa/4.0/
// **********************************************************************************************************
// @file Name: modmodChecker.sqf
// @file Author: NRZ7 (www.standarol.com)
// @description: This script modCheck the mods loaded by the client. If any mod is not loaded, pop's a screen with detailed information and clickable community links (modmodCheckerDisplay.sqf).
// You can configure requiered addons (error 99) or optional addons (error 1). If any required mod fails, the client load "You Loose" screen after close the dialog.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Exile_Client Example - READ TO UNDERSTAND - DO NOT TOUCH - READ - DO NOT TOUCH - READ - DO NOT TOUCH
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Change "Exile_Client" to name of the CfgPatches from desired mod.
// You can find under editor. ("Tools" - "Config Viewer" - "Configfile" - "CfgPatches")
if (isClass(configFile >> "CfgPatches" >> "Exile_Client")) then
{
// Change modCheckExile to your desired and unique mod variable name
// Change "Exile Mod is" to your mod string. For advanced users, can change size, color, allign, etc.
modCheckExile = "Exile Mod is found!
";
} else {
// Change "Exile Mod is" to your mod string
modCheckExile = "Exile Mod is NOT FOUND!
";
// Set 99 to Required, Set 1 to optional
errorLevel = errorLevel + 99
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// START OF MODS CONFIG - EDIT OR DELETE UNDER THIS LINE
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Esseker Example - DELETE OR MODIFY
/*if (isClass(configFile >> "CfgPatches" >> "Esseker")) then
{
modCheckEsseker = "Esseker Map is found!
";
} else {
modCheckEsseker = "Esseker Map is NOT FOUND!
";
errorLevel = errorLevel + 99
};
// Zombis & Demonds Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "Ryanzombies")) then
{
modCheckRyan = "Zombies and Demonds is found!
";
} else {
modCheckRyan = "Zombies and Demonds is NOT FOUND!
";
errorLevel = errorLevel + 99
};
// CUP_Weapons Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Weapons_WeaponsCore")) then
{
modCheckWeapons = "CUP Weapons is found!
";
} else {
modCheckWeapons = "CUP Weapons is NOT FOUND!
";
errorLevel = errorLevel + 99
};
// CUP_Vehicles Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Vehicles_Core")) then
{
modCheckVehicles = "CUP Vehicles is found!
";
} else {
modCheckVehicles = "CUP Vehicles is NOT FOUND!
";
errorLevel = errorLevel + 99
};
// CUP_TerrainCore Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Worlds")) then
{
modCheckTerrain = "CUP Terrain Core is found!
";
} else {
modCheckTerrain = "CUP Terrain Core is NOT FOUND!
";
errorLevel = errorLevel + 1
};
// CUP_Units Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Creatures_People_Core")) then
{
modCheckUnits = "CUP Units is found!
";
} else {
modCheckUnits = "CUP Units is NOT FOUND!
";
errorLevel = errorLevel + 99
};
*/
// Community Base Addon Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then
{
modCheckCBA = "CBA_A3 is found!
";
} else {
modCheckCBA = "CBA_A3 is NOT FOUND! (Required)
";
errorLevel = errorLevel + 99
};
//Enhanced Movement
if (isClass(configFile >> "CfgPatches" >> "BaBe_core")) then
{
modCheckEN = "Enhanced Movement is found!
";
} else {
modCheckEN = "Enhanced Movement is NOT FOUND! (Not required)
";
errorLevel = errorLevel + 1
};
//Advanced Rappelling
if (isClass(configFile >> "CfgPatches" >> "AR_AdvancedRappelling")) then
{
modCheckAR = "Advanced Rappelling is found!
";
} else {
modCheckAR = "Advanced Rappelling is NOT FOUND! (Not required)
";
errorLevel = errorLevel + 1
};
//Advanced Urban Rappelling
if (isClass(configFile >> "CfgPatches" >> "AUR_AdvancedUrbanRappelling")) then
{
modCheckAUR = "Advanced Urban Rappelling is found!
";
} else {
modCheckAUR = "Advanced Urban Rappelling is NOT FOUND! (Not required)
";
errorLevel = errorLevel + 1
};
//bv_flashlight
if (isClass(configFile >> "CfgPatches" >> "bv_flashlight")) then
{
modCheckBVFL = "bv_flashlight is found!
";
} else {
modCheckBVFL = "bv_flashlight is NOT FOUND! (Required)
";
errorLevel = errorLevel + 99
};
//lsd_nvg
if (isClass(configFile >> "CfgPatches" >> "lsd_nvg")) then
{
modCheckNVG = "Full Screen NV is found!
";
} else {
modCheckNVG = "Full Screen NV is NOT FOUND! (Not required)
";
errorLevel = errorLevel + 1
};
//Mozzie
if (isClass(configFile >> "CfgPatches" >> "c_Mozzie_01")) then
{
modCheckMOZ = "Mozzie Mod is found!
";
} else {
modCheckMOZ = "Mozzie Mod is NOT FOUND! (Required)
";
errorLevel = errorLevel + 1
};
/*
//adjustable Grenades
if (isClass(configFile >> "CfgPatches" >> "vz_a3_adjustableGrenades")) then
{
modCheckAG = "Adjustable Grenades is found!
";
} else {
modCheckAG = "Adjustable Grenades is NOT FOUND! (Not required)
";
errorLevel = errorLevel + 1
};
*/
// YOU CAN ADD MORE MODS, ADD FOR EACH SOME CODE LIKE THIS
/*
if (isClass(configFile >> "CfgPatches" >> "YOUR_MOD_CLASSNAME")) then
{
modCheckYOURMOD = "YOUR MOD is found!
";
} else {
modCheckYOURMOD = "YOUR MOD is NOT FOUND!
";
errorLevel = errorLevel + 1
};
*/