ready for dedi -- improvements to resupply, triageIcons too

This commit is contained in:
2024-02-06 17:36:01 -08:00
parent 0a64d9e170
commit 91b982e06e
44 changed files with 586 additions and 354 deletions

View File

@@ -1,5 +1,5 @@
/*
Function: milsim_util_fnc_log
Function: milsim_common_fnc_log
Description:
Used to log messages to the server RPT file.
@@ -19,13 +19,13 @@ params [
["_data", [], [[]]]
];
if (_logLevel < LOG_LEVEL) exitWith {};
if (_logLevel < DEBUG_MODE) exitWith {};
private _hash = createHashMapFromArray _data;
// Replace square brackets with round brackets to avoid parsing issues.
_message regexReplace ["\[", "("];
_message regexReplace ["\]", ")"];
_message regexReplace ['(\[)', "("];
_message regexReplace ['(\])', ")"];
private _json = [_hash] call CBA_fnc_encodeJSON;
_log = format ["[%1] [%2] [%3] [%4] :: %5", QUOTE(PREFIX), _component, _fnc_scriptNameParent, _message, _json];