Page MenuHomeFeedback Tracker

Game crash when deleting marker using markercreated EH in hosted MP
Closed, ResolvedPublic

Description

As name says. Found with my custom mission full of scripts and mods, could reproduce on an "empty" mission with no mods loaded.
RPT:


Missionfile PBO:

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7 x64
Operating System Version
Ultimate, custom
Category
Scripting
Steps To Reproduce

init.sqf
addMissionEventHandler ["MarkerCreated", {

params ["_marker", "_channel"];
if (_marker select [0, 13] == "_USER_DEFINED" && _channel in [0,1,2,3]) then { deleteMarker _marker; };

}];
Placing marker/line in one of the named channels (0 = global, 1 = side, 2 = command, 3 = squad)

Additional Information

Didn't test on dedicated server.

No crashing and intended function works when using this instead:
addMissionEventHandler ["MarkerCreated", {

params ["_marker", "_channel"];
if (_marker select [0, 13] == "_USER_DEFINED" && _channel in [0,1,2,3]) then { _marker spawn {deleteMarker _this}; };

}];

Thanks Dedmen for the help!)

Event Timeline

T00T created this task.Mar 4 2021, 4:48 PM
dedmen claimed this task.Mar 4 2021, 6:07 PM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-54020.
dedmen added a comment.Mar 4 2021, 7:40 PM

Fixed in next dev-branch or profiling branch v3

dedmen closed this task as Resolved.Mar 4 2021, 7:40 PM
dedmen reopened this task as Feedback.
Pi closed this task as Resolved.Jun 12 2021, 4:44 PM