auQuiksilver / Apex-Framework

Apex Framework
MIT License
81 stars 46 forks source link

Marker Deletion #23

Closed Burbonizer closed 2 years ago

Burbonizer commented 2 years ago

Hi, Can i ask that if any code has been added to 1.3.0 where you remove all markers placed on the map before the AO is created?

I have built a system where there are markers on the map and when i run the mission they are there. When the AO spawns in they disappear. Its driving me nuts.

auQuiksilver commented 2 years ago

The simplest fix should be to set this variable to false

https://github.com/auQuiksilver/Apex-Framework/blob/master/Apex_framework.terrain/code/functions/fn_core.sqf#L1036

_QS_module_opsec_checkMarkers = FALSE;

Part of built-in anticheat deletes unknown map markers, as that used to be a common execution method for cheaters to get server to execute scripts (setting the text as code and telling the server to execute the text).

Changing that variable from true to false should address the issue. Looking a bit deeper, if you look at that section of code you'll see ways to whitelist certain markers. you can put your marker names in there to prevent them from being deleted while still retaining that component of the anticheat.

In general, if you are modifying the mission i would suggest to disable the anticheat while getting your stuff to work properly. that can be done in the parameters file.

(also let me know if this fixes the issue, its a best guess but not certain)

Burbonizer commented 2 years ago

Thank you. Added all my markers to the whitelist and they are now staying on the map when a AO is generated and removed.

You are a star.