update function header 'CBA_fnc_debug' #498
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When merged this pull request will:
CBA_fnc_debug
to simplify using new commands ... and make it less confusing in general.CBA_fnc_debug
(description of some optional parameters was wrong / misleading)time
andtickTime
, but only the formattedCBA_missionTime
. I think two of them is just confusing andCBA_missionTime
is more "accurate" thantime
I went with 120 for chat and RPT, because I felt like that was reasonably readable. Could be changed to something else though, idk.
It's a bit ugly at L85ff, but that is to only way to fix this current bug:
The message will not be displayed when it's shown before the loading screen disappears. This is because Arma resets the chat control after that. This happens mainly during JIP for only the connecting player, but can also happen in SP, depending on when
CBA_fnc_debug
was executed and if the briefing is enabled. Doing it this way, withuiSleep
will make it still show up during the MP briefing.The player would not see the debug messages in these cases.
I no longer use
CREATELOGICLOCAL
butGVAR(logic) = "Logic" createVehicleLocal [0,0,0];
, because the macro would result in the variable nameADDON
(CBA_network
), which collides with the flags we use in preInit (ADDON = false/true;
) to indicate that an addon was loaded (correctly)