Page MenuHomeFeedback Tracker

Script error when defining markers in ModuleStrategicMapInit_F (Map)
Feedback, NormalPublic

Description

If a marker is added to the "markers" field the following script error is shown:

11:44:44 Error in expression <[marker_0]>
11:44:44   Error position: <marker_0]>
11:44:44   Error Undefined variable in expression: marker_0
11:44:44  ➥ Context: 	[] L5 (A3\modules_f\StrategicMap\functions\fn_moduleStrategicMapInit.sqf [BIS_fnc_moduleStrategicMapInit])
	[] L1 ()

11:44:44 Error in expression <call compile ("[" + _markers + "]");

{
_x setmarkeralpha 0;
} foreach _markers;>
11:44:44   Error position: <_x setmarkeralpha 0;
} foreach _markers;>
11:44:44   Error Undefined variable in expression: _x
11:44:44 File A3\modules_f\StrategicMap\functions\fn_moduleStrategicMapInit.sqf [BIS_fnc_moduleStrategicMapInit]..., line 8
11:44:44  ➥ Context: 	[] L9 (A3\modules_f\StrategicMap\functions\fn_moduleStrategicMapInit.sqf [BIS_fnc_moduleStrategicMapInit])
	[] L8 (A3\modules_f\StrategicMap\functions\fn_moduleStrategicMapInit.sqf [BIS_fnc_moduleStrategicMapInit])

From BIS_fnc_moduleStrategicMapInit:

_markers = _logic getvariable ["Markers",""]; //Correctly contains the marker(s) "marker_0"
_markers = call compile ("[" + _markers + "]"); //Fails, returns [any]

{
	_x setmarkeralpha 0;
} foreach _markers;

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Steps To Reproduce

Additional Information
  • Also happens if multiple makers are added to the edit box e.g.

marker_0 marker_1

Also tried
marker_0, marker_1

Guess instead of call compile it should do:

"marker_0 marker_2, marker_3" splitString ", "

Event Timeline

R3vo created this task.Feb 10 2021, 11:54 AM
R3vo edited Additional Information. (Show Details)Feb 10 2021, 11:57 AM
R3vo removed a subscriber: R3vo.Jul 21 2021, 6:12 PM

should be fix in next data

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jul 17 2024, 12:07 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Also tried
marker_0, marker_1

correct way was "marker_0", "marker_1", but now it will accept any form

marker_0, marker_1
marker_0 marker_1
"marker_0", "marker_1"
"marker_0" "marker_1"
"marker_0", marker_1
"marker_0" marker_1