// ********************************************************************************************************** // * 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: modChecker.sqf // @file Author: NRZ7 (www.standarol.com) // @description: This script check the mods loaded by the client. If any mod is not loaded, pop's a screen with detailed information and clickable community links (modCheckerDisplay.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 checkExile 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. checkExile = "Exile Mod is found!
"; } else { // Change "Exile Mod is" to your mod string checkExile = "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 { checkEsseker = "Esseker Map is found!
"; } else { checkEsseker = "Esseker Map is NOT FOUND!
"; errorLevel = errorLevel + 99 }; // Zombis & Demonds Example - DELETE OR MODIFY if (isClass(configFile >> "CfgPatches" >> "Ryanzombies")) then { checkRyan = "Zombies and Demonds is found!
"; } else { checkRyan = "Zombies and Demonds is NOT FOUND!
"; errorLevel = errorLevel + 99 }; // CUP_Weapons Example - DELETE OR MODIFY if (isClass(configFile >> "CfgPatches" >> "CUP_Weapons_WeaponsCore")) then { checkWeapons = "CUP Weapons is found!
"; } else { checkWeapons = "CUP Weapons is NOT FOUND!
"; errorLevel = errorLevel + 99 }; // CUP_Vehicles Example - DELETE OR MODIFY if (isClass(configFile >> "CfgPatches" >> "CUP_Vehicles_Core")) then { checkVehicles = "CUP Vehicles is found!
"; } else { checkVehicles = "CUP Vehicles is NOT FOUND!
"; errorLevel = errorLevel + 99 }; // CUP_TerrainCore Example - DELETE OR MODIFY if (isClass(configFile >> "CfgPatches" >> "CUP_Worlds")) then { checkTerrain = "CUP Terrain Core is found!
"; } else { checkTerrain = "CUP Terrain Core is NOT FOUND!
"; errorLevel = errorLevel + 1 }; // CUP_Units Example - DELETE OR MODIFY if (isClass(configFile >> "CfgPatches" >> "CUP_Creatures_People_Core")) then { checkUnits = "CUP Units is found!
"; } else { checkUnits = "CUP Units is NOT FOUND!
"; errorLevel = errorLevel + 99 }; // Community Base Addon Example - DELETE OR MODIFY if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then { checkCBA = "CBA_A3 is found!
"; } else { checkCBA = "CBA_A3 is NOT FOUND!
"; errorLevel = errorLevel + 1 }; // YOU CAN ADD MORE MODS, ADD FOR EACH SOME CODE LIKE THIS /* if (isClass(configFile >> "CfgPatches" >> "YOUR_MOD_CLASSNAME")) then { checkYOURMOD = "YOUR MOD is found!
"; } else { checkYOURMOD = "YOUR MOD is NOT FOUND!
"; errorLevel = errorLevel + 1 }; */