mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e2ac18a05d
* advanced_ballistics * advanced_fatigue * advanced_throwing * ai * aircraft * arsenal * atragmx * attach * backpacks * ballistics * captives * cargo * chemlights * common * concertina_wire * cookoff * dagr * disarming * disposable * dogtags * dragging * explosives * fastroping * fcs * finger * frag * gestures * gforces * goggles * grenades * gunbag * hearing * hitreactions * huntir * interact_menu * interaction * inventory * kestrel4500 * laser * laserpointer * logistics_uavbattery * logistics_wirecutter * magazinerepack * map * map_gestures * maptools * markers * medical * medical_ai * medical_blood * medical_menu * microdagr * minedetector * missileguidance * missionmodules * mk6mortar * modules * movement * nametags * nightvision * nlaw * optics * optionsmenu * overheating * overpressure * parachute * pylons * quickmount * rangecard * rearm * recoil * refuel * reload * reloadlaunchers * repair * respawn * safemode * sandbag * scopes * slideshow * spectator * spottingscope * switchunits * tacticalladder * tagging * trenches * tripod * ui * vector * vehiclelock * vehicles * viewdistance * weaponselect * weather * winddeflection * yardage450 * zeus * arsenal defines.hpp * optionals * DEBUG_MODE_FULL 1 * DEBUG_MODE_FULL 2 * Manual fixes * Add SQF Validator check for #include after block comment * explosives fnc_openTimerUI * fix uniqueItems
95 lines
2.4 KiB
Plaintext
95 lines
2.4 KiB
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Dumps debug info to clipboard.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ACE_optionsmenu_fnc_debugDumpToClipboard
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#define MIN_ARRAY_SIZE 50
|
|
|
|
private _outputText = {
|
|
diag_log text (_this select 0);
|
|
"ace_clipboard" callExtension ((_this select 0) + "
|
|
");
|
|
};
|
|
|
|
private _text = format ["~~~~~~~~~ACE Debug~~~~~~~~~
|
|
time = %1
|
|
|
|
------Performance------
|
|
diag_fps = %2
|
|
count cba_common_waitAndExecArray = %3
|
|
count cba_common_waitUntilAndExecArray = %4
|
|
count cba_common_perFrameHandlerArray = %5 (max %6)
|
|
count diag_activeSQFScripts = %7
|
|
count diag_activeSQSScripts = %8
|
|
count diag_activeMissionFSMs = %9",
|
|
time,
|
|
diag_fps,
|
|
count cba_common_waitAndExecArray,
|
|
count cba_common_waitUntilAndExecArray,
|
|
{!isNil "_x"} count cba_common_perFrameHandlerArray, count cba_common_perFrameHandlerArray,
|
|
count diag_activeSQFScripts,
|
|
count diag_activeSQSScripts,
|
|
count diag_activeMissionFSMs];
|
|
[_text] call _outputText;
|
|
|
|
|
|
_text = format ["
|
|
------Player------
|
|
typeOf = %1
|
|
animationState = %2",
|
|
if (isNull ace_player) then {"null"} else {typeOf ace_player},
|
|
if (isNull ace_player) then {"null"} else {animationState ace_player}];
|
|
[_text] call _outputText;
|
|
|
|
|
|
_text = format ["
|
|
------ACE's CBA Settings------"];
|
|
[_text] call _outputText;
|
|
|
|
private _aceSettings = cba_settings_allSettings select {((_x select [0,4]) == "ace_") || {(_x select [0,5]) == "acex_"}};
|
|
_aceSettings sort true;
|
|
{
|
|
_var = missionNamespace getVariable [_x, "ERROR: Not Defined"];
|
|
_text = format ["%1 - %2", _x, _var];
|
|
[_text] call _outputText;
|
|
} forEach _aceSettings;
|
|
|
|
|
|
_text = format ["
|
|
------Array Info (count >= %1)------", MIN_ARRAY_SIZE];
|
|
[_text] call _outputText;
|
|
|
|
|
|
{
|
|
_var = missionNamespace getVariable [_x, nil];
|
|
if(!isnil "_var" && {_var isEqualType []} && {(count _var) > MIN_ARRAY_SIZE}) then {
|
|
_text = format ["%1 - ARRAY SIZE: %2", _x, (count _var)];
|
|
[_text] call _outputText;
|
|
};
|
|
} forEach (allVariables missionNamespace);
|
|
|
|
{
|
|
private _unit = _x;
|
|
{
|
|
private _var = _unit getVariable [_x, nil];
|
|
if(!isnil "_var" && {_var isEqualType []} && {(count _var) > MIN_ARRAY_SIZE}) then {
|
|
_text = format ["%1 on [%2] - ARRAY SIZE: %3", _x, _unit, (count _var)];
|
|
[_text] call _outputText;
|
|
};
|
|
} forEach (allVariables _unit);
|
|
} forEach allUnits;
|
|
|
|
"ace_clipboard" callExtension "--COMPLETE--";
|