kellerkompanie / kellerkompanie-mods

This project contains modifications for the Arma 3 game, custom tailored towards the needs of the Kellerkompanie community (https://kellerkompanie.com/). Not all parts are self-written. Where indicated the content does not belong to us, but rather to the original authors. The rest may be used by anyone in any way.
MIT License
4 stars 1 forks source link

Make the loadouts im-/exportable to ACE Arsenal format #33

Open Schwaggot opened 5 years ago

Schwaggot commented 5 years ago

It could be useful to have a bi-directional conversion between the Loadout Cfgs and the ACE Arsenal format.

shukari commented 5 years ago

Here is the convert from setUnitLoadout to AceArsenalStyle: It is from getUnitLoadoutStyle to a gui style: https://github.com/acemod/ACE3/blob/c4655148e075466fafc3a73ecd0ad6892299b8b0/addons/arsenal/functions/fnc_buttonImport.sqf#L42 https://github.com/acemod/ACE3/blob/62710f27c2e35b2ebd9a13186d378873714f8854/addons/arsenal/defines.hpp#L334

At the end the "ace_arsenal_currentItems" is the final style is what the gui needs

shukari commented 5 years ago

It seams that "ace_arsenal_saved_loadouts" are getUnitLoadout Style with some optimizations... like baseWeapons and other Stuff. https://github.com/acemod/ACE3/blob/c4655148e075466fafc3a73ecd0ad6892299b8b0/addons/arsenal/functions/fnc_buttonLoadoutsSave.sqf#L34