Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions addons/recorder/fnc_exportData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ if (!isNil QGVAR(PFHObject)) then {
private _winSide = if (isNil "_side") then {""} else {if (_side isEqualTo sideUnknown) then {""} else {str _side}};
private _endMessage = if (isNil "_message") then {if (_winSide == "") then {"Mission ended"} else {""}} else {_message};

[":EVENT:GENERAL:", [
[":EVENT:ENDMISSION:", [
_endFrameNumber,
"endMission",
_winSide,
_endMessage
]] call EFUNC(extension,sendData);
Expand Down
10 changes: 5 additions & 5 deletions addons/recorder/fnc_handleCustomEvent.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

Description:
Routes custom events to the extension with typed positional args based on
event type. Sector events (captured/contested/capturedFlag) send structured
fields; endMission sends side and message; all other events use the legacy
format with JSON-encoded extraData.
event type. Sector events (captured/contested/capturedFlag) use :EVENT:SECTOR:
with structured fields; endMission uses :EVENT:ENDMISSION: with side and
message; all other events use :EVENT:GENERAL: with JSON-encoded extraData.

Applied during initialization of OCAP in <OCAP_recorder_fnc_init>.

Expand Down Expand Up @@ -67,7 +67,7 @@ switch (_eventName) do {
_args pushBack _eventMessage;
};

[":EVENT:GENERAL:", _args] call EFUNC(extension,sendData);
[":EVENT:SECTOR:", _args] call EFUNC(extension,sendData);
Comment thread
fank marked this conversation as resolved.
};

case "endMission": {
Expand All @@ -79,7 +79,7 @@ switch (_eventName) do {
} else {
_message = _eventMessage;
};
[":EVENT:GENERAL:", [GVAR(captureFrameNo), _eventName, _side, _message]] call EFUNC(extension,sendData);
[":EVENT:ENDMISSION:", [GVAR(captureFrameNo), _side, _message]] call EFUNC(extension,sendData);
};

default {
Expand Down