acemod / ACE3

Open-source realism mod for Arma 3
https://ace3.acemod.org
Other
1.01k stars 736 forks source link

Arsenal Default Loadouts doesn't support items hidden from arsenal #7275

Closed Grezvany13 closed 4 years ago

Grezvany13 commented 4 years ago

Mods (complete and add to the following information):

Description: When creating a Default Loadout based on an unit with weapons or backpacks which are not visible in the Arsenal (no scope = 2, or using baseWeapon = "other_class"), the items will not show up in the loadout list and won't be given to the player when selected. Or is inconsistent in results (eg. some backpacks with contents do work, some don't. Weapons never seem to show up).

Steps to reproduce:

Expected behavior: I expect that the full loadout which is saved is also available and loaded correctly on the player, unless the items do not exist in the configs (eg. modded content while mod is disabled). It should ignore visibility and scope (unless scope = 0), or find the parent (eg, with BIS_fnc_baseWeapon) and retrieve the correct item, attachments and contents.

Where did the issue occur?

Log Files: https://pastebin.com/rC6dh0V7

Additional context:

Screenshots:

commy2 commented 4 years ago

I disagree with the expected behavior and think it currently works exactly as intended.

Grezvany13 commented 4 years ago

However both vanilla Arsenal and ACE Arsenal do recognize the parent items and are able to properly show the used weapon with attachments and backpack with contents, even though the configs state they are hidden. This means that both Arsenals do it as I expect, and don't filter out items without checking for the base items. So only the saved loadouts have this mechanic in place which is different.

commy2 commented 4 years ago

Yes, because you're supposed to be able to open the arsenal with any loadout. Loadout of an object is unambiguous, even if preequipped classes are used.

Doesn't mean you should enter ambiguous preequipped classes when using the save loadout function.

commy2 commented 4 years ago

Tag as question and close?

alganthe commented 4 years ago

No, he's right.

That function isn't the one used to store default loadouts internally, wak seems to have forgotten part of it so the weapon isn't swapped for the default one.

Since the weapon isn't whitelisted anymore because it isn't in your hands when you open ACE arsenal (those weapons with pre-added attachments are scope 1), the loadout manager doesn't give it to you.