From 681f28808668334cdc50a0cec9e222d051087c6c Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 10 Nov 2021 22:51:49 +0100 Subject: [PATCH 1/6] Dont send the result to all --- addons/diagnostic/XEH_preInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/diagnostic/XEH_preInit.sqf b/addons/diagnostic/XEH_preInit.sqf index b66a111993..64ee54f46d 100644 --- a/addons/diagnostic/XEH_preInit.sqf +++ b/addons/diagnostic/XEH_preInit.sqf @@ -45,7 +45,7 @@ if (getMissionConfigValue ["EnableTargetDebug", 0] == 1 || {getNumber (configFil missionNamespace setVariable [_varName, [_statementText, _returnString, _duration]]; if (_clientID != CBA_clientID) then { - publicVariable _varName; // send back over network + _clientID publicVariableClient _varName; // send back over network }; }] call CBA_fnc_addEventHandler; From ad3e1d2111e2efd600e001375c2a7d572c7b4df2 Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 10 Nov 2021 23:22:05 +0100 Subject: [PATCH 2/6] Stringtable entrys for WatchInfoRefreshRate --- addons/diagnostic/stringtable.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/diagnostic/stringtable.xml b/addons/diagnostic/stringtable.xml index 71629a6c58..c2e14f38ab 100644 --- a/addons/diagnostic/stringtable.xml +++ b/addons/diagnostic/stringtable.xml @@ -111,6 +111,12 @@ Type d'indentation qui peut être employée dans la console de débogage.\nTab ajoute une indentation, et Shift + Tab en supprime une. Tipo de sangría que se puede agregar a la expresión en la consola de depuración presionando la tecla Tab o eliminar presionando Shift + Tab + + Refresh rate target watcher field + + + Sets the refresh rate in seconds for the CBA target watcher fields to the right of the debug console + 4 Spaces 4 Spacje From 4b23b2a0f5dcfda4d2b6c6ec0c28cff75a525fdc Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 10 Nov 2021 23:22:45 +0100 Subject: [PATCH 3/6] Setting for WatchInfoRefreshRate --- addons/diagnostic/initSettings.sqf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/diagnostic/initSettings.sqf b/addons/diagnostic/initSettings.sqf index 53919409d5..30cc44bd19 100644 --- a/addons/diagnostic/initSettings.sqf +++ b/addons/diagnostic/initSettings.sqf @@ -10,3 +10,11 @@ ], 2 ] call CBA_fnc_addSetting; + +[ + QGVAR(watchInfoRefreshRate), "SLIDER", + [LLSTRING(WatchInfoRefreshRate), LLSTRING(WatchInfoRefreshRateTooltip)], + [LELSTRING(main,DisplayName), LELSTRING(UI,Category)], + [0.1, 60, 0.2, 1], + 1 +] call CBA_fnc_addSetting; From 59ca96a81db440031914bf1cc9bfaa21a3b5b276 Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 10 Nov 2021 23:30:28 +0100 Subject: [PATCH 4/6] watchInfoRefreshRateArray for lastSent --- addons/diagnostic/fnc_initTargetDebugConsole.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/diagnostic/fnc_initTargetDebugConsole.sqf b/addons/diagnostic/fnc_initTargetDebugConsole.sqf index 7026fd1e1e..c7dcebc455 100644 --- a/addons/diagnostic/fnc_initTargetDebugConsole.sqf +++ b/addons/diagnostic/fnc_initTargetDebugConsole.sqf @@ -144,7 +144,7 @@ private _fnc_updateWatchInfo = { missionNamespace setVariable [_varName, nil]; } else { if ((_editText isEqualTo _responseStatement) && {_duration > 0.1}) exitWith {}; // don't re-run if statement that took a long time - if ((diag_tickTime - _lastSent) > random [0.1, 0.2, 0.3]) then { + if ((diag_tickTime - _lastSent) > random GVAR(watchInfoRefreshRateArray)) then { _x set [3, diag_tickTime]; // set last run to now [QGVAR(watchVariable), [CBA_clientID, _varIndex, _editText], GVAR(selectedClientID)] call CBA_fnc_ownerEvent; // send statement to target }; From 1c9da9395544079c9ece7bd4391c6817e7e33491 Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 10 Nov 2021 23:30:53 +0100 Subject: [PATCH 5/6] Setting for watchInfoRefreshRate --- addons/diagnostic/initSettings.sqf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/diagnostic/initSettings.sqf b/addons/diagnostic/initSettings.sqf index 30cc44bd19..1380b9aaa0 100644 --- a/addons/diagnostic/initSettings.sqf +++ b/addons/diagnostic/initSettings.sqf @@ -15,6 +15,10 @@ QGVAR(watchInfoRefreshRate), "SLIDER", [LLSTRING(WatchInfoRefreshRate), LLSTRING(WatchInfoRefreshRateTooltip)], [LELSTRING(main,DisplayName), LELSTRING(UI,Category)], - [0.1, 60, 0.2, 1], - 1 + [0.2, 60, 0.2, 1], + 1, + { + params ["_value"]; + GVAR(watchInfoRefreshRateArray) = [_value - 0.1, _value, _value + 0.1]; + } ] call CBA_fnc_addSetting; From 63fad66326066afd91e8cb677ee01cca1bc98836 Mon Sep 17 00:00:00 2001 From: shukari Date: Thu, 11 Nov 2021 09:06:46 +0100 Subject: [PATCH 6/6] Update addons/diagnostic/stringtable.xml Co-authored-by: commy2 --- addons/diagnostic/stringtable.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/diagnostic/stringtable.xml b/addons/diagnostic/stringtable.xml index c2e14f38ab..d77bc3ec87 100644 --- a/addons/diagnostic/stringtable.xml +++ b/addons/diagnostic/stringtable.xml @@ -115,7 +115,7 @@ Refresh rate target watcher field - Sets the refresh rate in seconds for the CBA target watcher fields to the right of the debug console + Refresh rate (in seconds) for the CBA target watcher fields to the right of the debug console. 4 Spaces