Better comments

This commit is contained in:
NRZ7
2016-10-08 16:06:46 +02:00
parent d179f008bf
commit 35778d6b42
2 changed files with 20 additions and 15 deletions

View File

@ -25,7 +25,7 @@ if (isClass(configFile >> "CfgPatches" >> "Exile_Client")) then {
errorLevel = errorLevel + 99
};
// Esseker Example
// 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/>";
} else {
@ -33,7 +33,7 @@ if (isClass(configFile >> "CfgPatches" >> "Esseker")) then {
errorLevel = errorLevel + 99
};
// Zombis & Demonds Example
// Zombis & Demonds Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "Ryanzombies")) then {
checkRyan = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Zombies and Demonds is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
} else {
@ -41,23 +41,23 @@ if (isClass(configFile >> "CfgPatches" >> "Ryanzombies")) then {
errorLevel = errorLevel + 99
};
// CUP_Weapons Example
// CUP_Weapons Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Weapons_WeaponsCore")) then {
checkWeapons = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Weapons is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
} else {
checkWeapons = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Weapons is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
errorLevel = errorLevel + 1
errorLevel = errorLevel + 99
};
// CUP_Vehicles Example
// CUP_Vehicles Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Vehicles_Core")) then {
checkVehicles = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Vehicles is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
} else {
checkVehicles = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Vehicles is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
errorLevel = errorLevel + 1
errorLevel = errorLevel + 99
};
// CUP_TerrainCore Example
// CUP_TerrainCore Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Worlds")) then {
checkTerrain = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Terrain Core is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
} else {
@ -65,15 +65,15 @@ if (isClass(configFile >> "CfgPatches" >> "CUP_Worlds")) then {
errorLevel = errorLevel + 1
};
// CUP_Units Example
// CUP_Units Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CUP_Creatures_People_Core")) then {
checkUnits = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Units is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
} else {
checkUnits = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Units is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
errorLevel = errorLevel + 1
errorLevel = errorLevel + 99
};
// Community Base Addon Example
// Community Base Addon Example - DELETE OR MODIFY
if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then
{
checkCBA = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CBA_A3 is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
@ -82,6 +82,10 @@ if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then
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/>";
} else {

View File

@ -14,7 +14,7 @@
Link: http://www.exilemod.com/topic/10375-advanced-server-rules-for-xm8/
*/
if ((firstCheck == 0) && (errorLevel > 0)) then { player allowdamage false }; // God Mode ON to avoid die and close dialog only if ModCheckerDisplay is auto opened.
if ((firstCheck == 0) && (errorLevel > 0)) then { player allowdamage false }; // God Mode ON to avoid die and close dialog only if ModCheckerDisplay is auto executed.
disableSerialization;
[
@ -36,7 +36,8 @@ _textSpoiler = _display displayctrl 1101;
_text2 = _display displayCtrl 1102;
/////////////////////////////////////////////////////////////////////////////////////////////
// Remember to add-delete-modify the same mod variable names like modChecker.sqf
// CUSTOMIZABLE PART HERE
// Remember to add-delete-modify the same mod variable names used in modChecker.sqf
/////////////////////////////////////////////////////////////////////////////////////////////
// Display header
@ -47,7 +48,7 @@ _message = _message + "<t align='center'>_______________________________________
_message = _message + warnMessage;
_message = _message + "<t align='center'><br />";
//Mod variable names
//Mod variable names - MODIFY HERE
_message = _message + checkExile;
_message = _message + checkEsseker;
_message = _message + checkRyan;
@ -57,14 +58,14 @@ _message = _message + checkUnits;
_message = _message + checkTerrain;
_message = _message + checkCBA;
// Custom message with community links
// Custom message with community links - MODIFY HERE
_message = _message + "<br />";
_message = _message + "If you get any error, please, read the following links<br /><br />";
_message = _message + "Download the mods from <a href= 'http://steamcommunity.com/sharedfiles/filedetails/?id=752130537' color='#ff9900'>Steam Workshop</a> Only click on Subscribe!<br />";
_message = _message + "<a href= 'http://standarol.com/index.php/topic,674.0.html' color='#ff9900'>Guía de lanzamiento e instalación de mods [ESPAÑOL]</a> </t><br /><br />";
/////////////////////////////////////////////////////////////////////////////////////////////////////
// END OF CUSTOMIZABLE TEXT, DO NOT TOUCH UNDER THIS LINE IF YOU DON'T KWOW WHAT ARE YOU WANT
// END OF CUSTOMIZABLE TEXT, DO NOT TOUCH UNDER THIS LINE IF YOU DON'T KWOW WHAT ARE YOU DOING
////////////////////////////////////////////////////////////////////////////////////////////////////
//Fill only the first text