fix bugs found during testing
This commit is contained in:
@@ -6,7 +6,7 @@ if (_function isEqualTo "loadSettingsJSON") exitWith {
|
||||
RangerMetrics_recordingSettings = _data get "recordingSettings";
|
||||
|
||||
RangerMetrics_debug = RangerMetrics_settings get "arma3" get "debug";
|
||||
|
||||
|
||||
[
|
||||
format [
|
||||
"Settings loaded: %1",
|
||||
@@ -16,8 +16,8 @@ if (_function isEqualTo "loadSettingsJSON") exitWith {
|
||||
] call RangerMetrics_fnc_log;
|
||||
|
||||
if (isServer) then {
|
||||
["RangerMetrics_serverProfileName", profileName] remoteExecCall ["setVariable", 0, true];
|
||||
RangerMetrics_serverProfileName = profileName;
|
||||
publicVariable "RangerMetrics_serverProfileName";
|
||||
};
|
||||
call RangerMetrics_fnc_initCapture;
|
||||
};
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
params ["_fields", []];
|
||||
params [["_fields", []]];
|
||||
|
||||
// Example:
|
||||
// [
|
||||
// ["float", "milsim_raw_cps", "3207.98"],
|
||||
// ["float", "milsim_cps", "1"]
|
||||
// ]
|
||||
// ["milsim_serverEfficiency", [[
|
||||
// ["float", "milsim_raw_cps", "3207.98"],
|
||||
// ["float", "milsim_cps", "1"]
|
||||
// ]]] call CBA_fnc_serverEvent;
|
||||
|
||||
private _settings = RangerMetrics_recordingSettings get "CBAEventHandlers" get "milsimServerEfficiency";
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@ private _settings = RangerMetrics_recordingSettings get "playerPerformance";
|
||||
_x params ["_playerID", "_ownerId", "_playerUID", "_profileName", "_displayName", "_steamName", "_clientState", "_isHC", "_adminState", "_networkInfo", "_unit"];
|
||||
_networkInfo params ["_avgPing", "_avgBandwidth", "_desync"];
|
||||
|
||||
if (_unit == objNull || _isHC) exitWith {};
|
||||
if (_unit == objNull || _isHC) then {
|
||||
continue;
|
||||
};
|
||||
|
||||
[
|
||||
_settings get "bucket",
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
["server_events", "PlayerConnected", [
|
||||
["string", "playerUID", _userInfo#2]
|
||||
], [
|
||||
["int", "id", _id],
|
||||
["string", "id", _id toFixed 0],
|
||||
["string", "uid", _uid],
|
||||
["string", "name", _name],
|
||||
["bool", "jip", _jip],
|
||||
@@ -53,7 +53,7 @@
|
||||
["server_events", "PlayerDisconnected", [
|
||||
["string", "playerUID", _userInfo#2]
|
||||
], [
|
||||
["int", "id", _id],
|
||||
["string", "id", _id toFixed 0],
|
||||
["string", "uid", _uid],
|
||||
["string", "name", _name],
|
||||
["bool", "jip", _jip],
|
||||
|
||||
Reference in New Issue
Block a user