mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changes for CBA 2.3
This commit is contained in:
parent
78729e96ff
commit
276aea04c1
@ -32,7 +32,6 @@ class CfgVehicles {
|
|||||||
// ammo boxes
|
// ammo boxes
|
||||||
class ThingX;
|
class ThingX;
|
||||||
class ReammoBox_F: ThingX {
|
class ReammoBox_F: ThingX {
|
||||||
XEH_ENABLED;
|
|
||||||
GVAR(canCarry) = 0;
|
GVAR(canCarry) = 0;
|
||||||
GVAR(carryPosition[]) = {0,1,1};
|
GVAR(carryPosition[]) = {0,1,1};
|
||||||
GVAR(carryDirection) = 0;
|
GVAR(carryDirection) = 0;
|
||||||
|
@ -76,28 +76,3 @@ GVAR(ParsedTextCached) = [];
|
|||||||
if (GVAR(menuBackground)==1) then {[QGVAR(menuBackground), false] call EFUNC(common,blurScreen);};
|
if (GVAR(menuBackground)==1) then {[QGVAR(menuBackground), false] call EFUNC(common,blurScreen);};
|
||||||
if (GVAR(menuBackground)==2) then {(uiNamespace getVariable [QGVAR(menuBackground), displayNull]) closeDisplay 0;};
|
if (GVAR(menuBackground)==2) then {(uiNamespace getVariable [QGVAR(menuBackground), displayNull]) closeDisplay 0;};
|
||||||
}] call EFUNC(common,addEventHandler);
|
}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
//Debug to help end users identify mods that break CBA's XEH
|
|
||||||
[{
|
|
||||||
private _badClassnames = [];
|
|
||||||
{
|
|
||||||
//Only check Land objects (WeaponHolderSimulated show up in `vehicles` for some reason)
|
|
||||||
if ((_x isKindOf "Land") && {(isNil (format [QGVAR(Act_%1), typeOf _x])) || {isNil (format [QGVAR(SelfAct_%1), typeOf _x])}}) then {
|
|
||||||
if (!((typeOf _x) in _badClassnames)) then {
|
|
||||||
_badClassnames pushBack (typeOf _x);
|
|
||||||
ACE_LOGERROR_3("Compile checks bad for (classname: %1)(addon: %2) %3", (typeOf _x), (unitAddons (typeOf _x)), _x);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
} forEach (allUnits + allDeadMen + vehicles);
|
|
||||||
if ((count _badClassnames) == 0) then {
|
|
||||||
ACE_LOGINFO("All compile checks passed");
|
|
||||||
} else {
|
|
||||||
ACE_LOGERROR_1("%1 Classnames failed compile check!!! (bad XEH / missing cba_enable_auto_xeh.pbo)", (count _badClassnames));
|
|
||||||
|
|
||||||
//Only show visual error if they are actually missing the pbo:
|
|
||||||
#define SUPMON configFile>>"CfgSettings">>"CBA">>"XEH">>"supportMonitor"
|
|
||||||
if ((!isNumber(SUPMON)) || {getNumber(SUPMON) != 1}) then {
|
|
||||||
["ACE Interaction failed to compile for some units (try adding cba_enable_auto_xeh.pbo)"] call BIS_fnc_error;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}, [], 5] call EFUNC(common,waitAndExecute); //ensure CBASupMon has time to run first
|
|
||||||
|
Loading…
Reference in New Issue
Block a user