Arma 3 Version:2.04CBA Version:3.15.5 (stable / dev + commit hash)
ZEN Version:1.11.1 (stable / dev + commit hash)
Mods:
- CBA_A3
- ZEN
- ACE
- ACRE
Description:
When using deep copy/paste on units with ACRE radios, their radio ID's are copied as well, creating two sets of the same radio and has the potential to completely break both the original and deep-copied radios.
Expected behavior:
Each unit should have their own radios with their own radio ID's.
Steps to reproduce:
Equip a loadout on yourself with ACRE radios
Deep copy yourself
Deep paste yourself
Notice that executing systemChat str (["ACRE_PRC152", _this] call acre_api_fnc_getAllRadiosByType) in the ZEN init box for both units will return the same radios.
Where did the issue occur?
Dedicated / Self-Hosted Multiplayer
Additional information:
ACRE provides the function acre_api_fnc_filterUnitLoadout which will filter a unit loadout array to ensure this issue doesn't happen. Most likely a CfgPatches check for ACRE + using this function in zen_common_fnc_serializeObjects would fix the issue and I might slap the PR together myself if I get time.
Arma 3 Version:
2.04
CBA Version:3.15.5
(stable / dev + commit hash) ZEN Version:1.11.1
(stable / dev + commit hash)Mods:
Description: When using deep copy/paste on units with ACRE radios, their radio ID's are copied as well, creating two sets of the same radio and has the potential to completely break both the original and deep-copied radios.
Expected behavior: Each unit should have their own radios with their own radio ID's.
Steps to reproduce:
systemChat str (["ACRE_PRC152", _this] call acre_api_fnc_getAllRadiosByType)
in the ZEN init box for both units will return the same radios.Where did the issue occur?
Additional information: ACRE provides the function
acre_api_fnc_filterUnitLoadout
which will filter a unit loadout array to ensure this issue doesn't happen. Most likely a CfgPatches check for ACRE + using this function inzen_common_fnc_serializeObjects
would fix the issue and I might slap the PR together myself if I get time.