mirror of
https://github.com/NRZ7/modChecker---Exile-version.git
synced 2024-08-30 17:32:11 +00:00
More undestandable comments
This commit is contained in:
@ -5,18 +5,21 @@
|
||||
// @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.
|
||||
//
|
||||
// You can configure requiered addons (errorLevel 99) or optional addons (errorLevel 1). If any mod fails or this script is manually executed, launch modCheckerDisplay.sqf
|
||||
// You can execute this script running this code in local // [] execVM "addons\scripts\modChecker.sqf"
|
||||
|
||||
|
||||
errorLevel = 0;
|
||||
errorLevel = 0; // Do not touch. Set errors to 0 before run modChecker.sqf
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Exile_Client Example - READ TO UNDERSTAND - DO NOT TOUCH - READ - DO NOT TOUCH - READ - DO NOT TOUCH
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Exile_Client Example
|
||||
// Change "Exile_Client" to name of the Cfg patche from desired mod
|
||||
// Change "Exile_Client" to name of the CfgPatches from desired mod.
|
||||
// You can find under editor. ("Tools" - "Config Viewer" - "Configfile" - "CfpPatches")
|
||||
if (isClass(configFile >> "CfgPatches" >> "Exile_Client")) then {
|
||||
// Change checkExile to your desired mod variable name
|
||||
// Change "Exile Mod is" to your mod string
|
||||
// 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 = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Exile Mod is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
// Change "Exile Mod is" to your mod string
|
||||
@ -25,6 +28,10 @@ if (isClass(configFile >> "CfgPatches" >> "Exile_Client")) then {
|
||||
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 = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Esseker Map is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
@ -82,20 +89,34 @@ if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
||||
|
||||
|
||||
// YOU CAN ADD MORE MODS, ADD FOR EACH SOME CODE LIKE THIS
|
||||
|
||||
/*
|
||||
if (isClass(configFile >> "CfgPatches" >> "YOUR_MOD_CLASSNAME")) then
|
||||
{
|
||||
checkYOURMOD = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>YOUR MOD is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkYOURMOD = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>YOUR MOD is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// DO NOT TOUCH UNDER THIS LINE IF DON'T KNOW WHAT ARE YOU DOING
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if (errorLevel > 0) then {
|
||||
warnMessage = "<t color='#ff0000' size='1.3' shadow='1' shadowColor='#000000' align='center'>Some is WRONG with your MODS</t><br/>";
|
||||
warnMessage = "<t color='#ff0000' size='1.3' shadow='1' shadowColor='#000000' align='center'>Some is WRONG with your MODS</t><br/>"; // General error message
|
||||
} else {
|
||||
warnMessage = "<t color='#2fd402' size='1.3' shadow='1' shadowColor='#000000' align='center'>All MODS are FINE</t><br/>";
|
||||
warnMessage = "<t color='#2fd402' size='1.3' shadow='1' shadowColor='#000000' align='center'>All MODS are FINE</t><br/>"; // All mods are loaded message
|
||||
};
|
||||
|
||||
if ((errorLevel == 0) && (firstCheck == 0)) then {
|
||||
firstCheck = 1 // Do nothing
|
||||
if ((errorLevel == 0) && (firstCheck == 0)) then {
|
||||
firstCheck = 1
|
||||
} else {
|
||||
execVM "addons\modChecker\modCheckerDisplay.sqf"
|
||||
execVM "addons\modChecker\modCheckerDisplay.sqf"
|
||||
};
|
||||
|
||||
// execVM "addons\modChecker\modCheckerDisplay.sqf"
|
||||
|
@ -10,19 +10,15 @@ uiSleep 3;
|
||||
firstCheck = 0;
|
||||
execVM "addons\modChecker\modChecker.sqf";
|
||||
|
||||
/*Note, if you have Exile ProtectionRemember.sqf, use this
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// MOD CHECKER + PROTECTION REMEMBER
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/*Note, if you have Exile ProtectionRemember.sqf, use this
|
||||
|
||||
waitUntil {!isNull findDisplay 46 && !isNil 'ExileClientLoadedIn' && getPlayerUID player != ''}; // wait until player is in spawned
|
||||
uiSleep 3;
|
||||
execVM "addons\scripts\protectionRemember.sqf";
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// MOD CHECKER
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
firstCheck = 0;
|
||||
execVM "addons\modChecker\modChecker.sqf";
|
||||
|
||||
|
Reference in New Issue
Block a user