Page MenuHomeFeedback Tracker

Crash on 'openMap false'
New, NormalPublic

Description

You essentially seg-fault when using 'openMap false' in a "Map" event handler.

Crash - addMissionEventHandler ["Map",{openMap false}];
Fine - addMissionEventHandler ["Map",{0 spawn{openMap false}}];

Can be fixed by turning it into spawn{openMap false};

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Game Crash
Steps To Reproduce
  1. Add a map event handler with openMap false; (addMissionEventHandler ["Map",{openMap false}])
  2. Open map
  3. Close map
  4. Crash after attempting to close map

Event Timeline

Fraali created this task.Dec 8 2021, 11:37 AM

If you wish to prevent map from opening, you can do this with ease already https://community.bistudio.com/wiki/openMap

openMap [false, true] - prevents map from opening, closes open map and forces it to stay close (the user cannot open it on their own)

Fraali added a comment.Dec 8 2021, 3:47 PM

If you wish to prevent map from opening, you can do this with ease already https://community.bistudio.com/wiki/openMap

openMap [false, true] - prevents map from opening, closes open map and forces it to stay close (the user cannot open it on their own)

I am aware, and I appreciate it. Was just dealing with code from 2014 and came across it. Figured less potential issues like this, the better :)

Was it not crashing in 2014?

Fraali added a comment.Dec 9 2021, 7:09 AM

Not entirely sure. I had never tested it myself, but it has been a part of Olympus' altis life code base from back then. I'm pretty sure there's been issues with it over the years but no one ever decided to fix it on the server or even look into it.

This comment was removed by BIS_fnc_KK.