logging for weapBuild 239 Logging for Config based loadoutsns in config-based loadouts

This commit is contained in:
Chris Cardozo 2020-11-23 02:01:29 -05:00
parent 2319276356
commit 06e5c70933
4 changed files with 116 additions and 67 deletions

View File

@ -312,6 +312,25 @@
blck_logBlacklistedItems = true;
//blck_maximumitempriceinai_loadouts = 1000;
// lists of black-listed items to be excluded from dynamic loadouts
/*
A list of dlcs will be dumped during server start up.
You can comment out those you dont want to exclude
or identify and add others from the list generated when the dynamicConfigs script is run
*/
blck_blackListedMods = [
"Kart",
"TANK",
"ORANGE",
"Heli",
"Contact",
"Enoch",
"Orange",
"Jets",
"Mark",
"Expansion"
];
blck_blacklistedVests = [
//"V_Press_F"
];

View File

@ -293,6 +293,19 @@
blck_logblacklisteditems = true;
//blck_maximumitempriceinai_loadouts = 1000;
// lists of black-listed items to be excluded from dynamic loadouts
blck_blackListedMods = [
"Kart",
"TANK",
"ORANGE",
"Heli",
"Contact",
"Enoch",
"Orange",
"Jets",
"Mark",
"Expansion"
];
blck_blacklistedVests = [
//"V_Press_F"
];

View File

@ -54,7 +54,7 @@ _misc = [];
_baseClasses = [];
_classnameList = [];
//diag_log format["blck_modType = %1",blck_modType];
diag_log format["blck_modType = %1",blck_modType];
if (toLower(blck_modType) isEqualTo "epoch") then
{
_classnameList = (missionConfigFile >> "CfgPricing" ) call BIS_fnc_getCfgSubClasses;
@ -63,16 +63,12 @@ if (toLower(blck_modType) isEqualTo "exile") then
{
_classnameList = (missionConfigFile >> "CfgExileArsenal" ) call BIS_fnc_getCfgSubClasses;
};
//diag_log format["_fnc_dynamicConfigsConfigurator: count _classnameList = %1",count _classnameList];
private _dlcList = [];
private _ffaa = [];
private _lago = [];
private _cupv = [];
diag_log format["_fnc_dynamicConfigsConfigurator: count _classnameList = %1",count _classnameList];
{
<<<<<<< Updated upstream
private _temp = [_x] call bis_fnc_itemType;
//diag_log _temp;
_itemCategory = _temp select 0;
_itemType = _temp select 1;
_price = blck_maximumItemPriceInAI_Loadouts;
if (toLower(blck_modType) isEqualTo "epoch") then
=======
private _configName = "";
switch (true) do
{
@ -88,7 +84,13 @@ if (toLower(blck_modType) isEqualTo "exile") then
if (_dlc isEqualTo "FFAA" || _dlc isEqualTo "FFAAMOD") then {_ffaa pushBackUnique _x};
if (_dlc isEqualTo "CUP_Vehicles") then {_cupv pushBackUnique _x};
if !(_dlc in blck_blackListedMods) then
>>>>>>> Stashed changes
{
private _temp = [_x] call bis_fnc_itemType;
//diag_log _temp;
_itemCategory = _temp select 0;
_itemType = _temp select 1;
_price = blck_maximumItemPriceInAI_Loadouts;
if (toLower(blck_modType) isEqualTo "epoch") then
{
_price = getNumber(missionConfigFile >> "CfgPricing" >> _x >> "price");
};
@ -142,27 +144,42 @@ if (toLower(blck_modType) isEqualTo "exile") then
case "Backpack": {if !(_x in blck_blacklistedBackpacks) then {_backpacks pushBack _x}else {if (blck_logBlacklistedItems) then {diag_log format["Backpack %1 Excluded: blacklisted Item",_x]}}};
};
};
//} else {
} else {
//if (["base",_x] call BIS_fnc_inString) then {diag_log format["_dynamicConfigs: excluding class %1",_x]};
};
};
} forEach _classnameList;
private _allWep = _wpnAR + _wpnLMG + _wpnSMG + _wpnShotGun + _wpnSniper + _wpnHandGun;
{
diag_log format["_dlcList %1 = %2",_forEachIndex,_x];
} forEach _dlcList;
/*
Below are some examples of how you can use information collected to verify that the correct items were included
*/
{
diag_log format["_ffaa %1 = %2",_forEachIndex,_x];
}forEach _ffaa;
{
diag_log format["_lago %1 = %2",_forEachIndex,_x];
} forEach _lago;
{
diag_log format["_cupv %1 = %2",_forEachIndex,_x];
} forEach _cupv;
blck_primaryWeapons = _wpnAR + _wpnLMG + _wpnSMG + _wpnShotGun + _wpnSniper;
blck_WeaponList_Blue = blck_primaryWeapons;
blck_WeaponList_Red = blck_primaryWeapons;
blck_WeaponList_Green = blck_primaryWeapons;
blck_WeaponList_Orange = blck_primaryWeapons;
<<<<<<< Updated upstream
=======
/*
here is an example for checking that weapons in the FFAA mod were added
*/
private _absentWep = [];
{
if !(_x in blck_primaryWeapons) then {_absentWep pushBackUnique _x};
} forEach _ffaa;
{
diag_log format["_absentWep %1 = %2",_forEachIndex,_x];
} forEach _absentWep;
>>>>>>> Stashed changes
if !(_x in _allWep) then {diag_log format["_absentWep %1 = %2",_forEachIndex,_x];};
} forEach _ffaa + _lago _cupw;
blck_pistols = _wpnHandGun;
blck_Pistols_blue = blck_Pistols;
blck_Pistols_red = blck_Pistols;

View File

@ -1,4 +1,4 @@
#define blck_buildNumber 238 // Address issues with cleanup of objects
#define blck_buildNumber 239 // Address issues with cleanup of objects
#define blck_versionNumber 7.06
#define blck_buildDate "11-22-20"
#define blck_buildDate "11-23-20"