Page MenuHomeFeedback Tracker

Unexpected map behavior on dedicated server
Closed, ResolvedPublic

Description

Mentioning "ctrlMapScreenToWorld" or "ctrlMapScale" inside Map Draw Event Handler prevents the map from returning to players position after closing and opening.

UPDATE: Probably not related to Draw EH, details in forum link in additional information.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create a blank mission, place a player.
  2. Create initPlayerLocal.sqf with the following code inside:

waitUntil {!isNull (findDisplay 12)};
(findDisplay 12 displayCtrl 51) ctrlAddEventhandler ["Draw",
{

params ["_map"];
systemChat format ["scale: %1", ctrlMapScale _map];

}];

  1. Observe behavior on local machine (map returns to players position after closing and reopening)
  2. Export the mission to MP and observe behevior on dedicated server.
Additional Information

Event Timeline

dupa created this task.Sun, Jul 7, 6:27 PM
dupa edited Steps To Reproduce. (Show Details)
dupa edited Additional Information. (Show Details)
dupa updated the task description. (Show Details)Sun, Jul 7, 6:44 PM
dupa updated the task description. (Show Details)Sun, Jul 7, 7:09 PM
dupa edited Additional Information. (Show Details)
dedmen closed this task as Resolved.Mon, Jul 8, 2:54 PM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

Forum therad says issue is solved