Page MenuHomeFeedback Tracker

Placing a V-44 X Blackfish (transport) on a mission breaks RscCustomInfoMiniMap access for Scripts
New, NormalPublic

Description

A custom script to show ally icons on the GPS mini map works fine when running from initPlayerLocal.sqf if no V-44 X Blackfish is present on the mission.

As soon as a V-44 X Blackfish is added to the mission the script stops working.

Script:

[] spawn {
	sleep 4;
    Hint "Minimap scritp running"; 
    waitUntil {sleep 0.5; !isNull (uiNamespace getVariable ["RscCustomInfoMiniMap", displayNull])}; 
    Hint "RscCustomInfoMiniMap running";  

    disableSerialization; 
  
    private _display = uiNamespace getVariable ["RscCustomInfoMiniMap", displayNull]; 
    private _miniMapControlGroup = _display displayCtrl 13301; 
    private _miniMap = _miniMapControlGroup controlsGroupCtrl 101; 
    _miniMap ctrlAddEventHandler ["Draw", { 
        {
            (_this select 0) drawIcon [ 
                getText (configFile >> "CfgVehicles" >> typeOf (vehicle _x) >> "icon"), 
                [0,0.3,0.6,0.90], 
                getPosWorld _x, 
                19, 
                19, 
                getDirVisual _x
            ]
        } forEach (units group player - [player]);  
    }];
};

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Windows 10 64 Bit PRO (with latests updates)
Category
General
Steps To Reproduce

Open with the EDEN EDITOR, play the mission (with the V-44 X Blackfish in it) in multiplayer and notice the script running but not showing the icons on the GPS minimap.

Exit that session, delete the V-44 X Blackfish from the mission and try it again. Notice that when the script runs the icons do show now...

Additional Information

Event Timeline

LSValmont renamed this task from Placing a V-44 X Blackfish (transport) prevents script from working to Placing a V-44 X Blackfish (transport) on a mission breaks RscCustomInfoMiniMap access for Scripts.Aug 28 2023, 5:04 PM