Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arsenal Doesn't Save/Restore Gunbag Weapons #6211

Closed
jokoho48 opened this issue Mar 26, 2018 · 12 comments
Closed

Arsenal Doesn't Save/Restore Gunbag Weapons #6211

jokoho48 opened this issue Mar 26, 2018 · 12 comments
Labels
Milestone

Comments

@jokoho48
Copy link
Member

Arma 3 Version: 1.80 (stable / rc / dev)
CBA Version: 3.6.1.180131 (stable / dev + commit hash)
ACE3 Version: 3.12.1 (stable / dev + commit hash)

Mods:

- CBA_A3
- ace

Description:

  • The ACE Arsenal Does not Save and Restores Weapons that are stored in gun bags

Steps to reproduce:

  • Take Gunbag and put in a Weapon
  • Save Loadout
  • Load Loadout
  • Weapon Gone
@dedmen
Copy link
Contributor

dedmen commented Mar 26, 2018

Variable is stored on the gunbag.
We could definitely just store all variables on backpacks. But IMO that's a bad Idea. Let mods configure what variable names should be stored and then store them in the loadout array.
Maybe use CBA hashes to get a good storage layout?

Could also be useful for TFAR/ACRE. They have special code to keep variables on their backpacks when you enter/leave Arsenal. But would also be nice if they could be stored. However TFAR needs to manipulate the data before it is stored or after it is loaded. I don't know about ACRE.
ACE gunbag doesn't need to modify.

@jonpas
Copy link
Member

jonpas commented Mar 26, 2018

ACRE has no radios in forms of backpacks, all are items (some can only fit a backpack), so no issue there.

@bux bux changed the title Arsenal Don't Saves/Restores Gunbag Weapons Arsenal Doesn't Save/Restore Gunbag Weapons Mar 26, 2018
@alganthe
Copy link
Contributor

if you open the arsenal while you have a filled gunbag and switch to another backpack the content of the gunbag is cleared, that I can fix.

However saving the weapon that is inside the gunbag is not something I wish to do.
I'd need to add support for saving backpack variables, in which case you would be able to load non whitelisted weapons that are in gunbags.
I don't want that behavior.

@john681611
Copy link
Contributor

Is this not a wider issue that you can store weapons in vests and backpacks and neither ACE or BI Arsenals can deal with it.

@alganthe
Copy link
Contributor

alganthe commented Apr 10, 2018

You can place weapons in vest and backpacks in ACE Arsenal, however they might be stripped out of their attachments and there's no command to add them back yet.

You indeed can't save weapons in vests / backpacks in Virtual Arsenal.

@alganthe
Copy link
Contributor

I know why it happens and that has nothing to do with this ticket.

@dedmen
Copy link
Contributor

dedmen commented Oct 1, 2019

Solution would still be to just store variables, and restore if the backpack stays the same or a similar one.
https://github.com/michail-nikolaev/task-force-arma-3-radio/blob/master/addons/core/functions/events/fnc_onArsenal.sqf#L30
TFAR does that already for radio backpacks by just using the arsenal eventhandlers.

@alganthe
Copy link
Contributor

alganthe commented Oct 1, 2019

That is already the case dedmen, see #6192

The OP wants gunbag weapons to persist through loadout saves, I do not want that behavior.

@dedmen
Copy link
Contributor

dedmen commented Oct 1, 2019

The OP wants gunbag weapons to persist through loadout saves

took me 1.5 years to realise that.

@jonpas
Copy link
Member

jonpas commented Oct 1, 2019

@alganthe is there API to allow that?

@alganthe
Copy link
Contributor

alganthe commented Oct 1, 2019

Someone could use the loadout save / load EHs for that since the name of the loadouts are unique.

@LinkIsGrim
Copy link
Contributor

Fixed in #8923.

@jonpas jonpas added this to the 3.15.1 milestone Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants