Page MenuHomeFeedback Tracker

Opening Arsenal duplicates items in non-empty backpack
New, NormalPublic

Description

Opening the Arsenal interface seems to "create" a new backpack based on the class of the existing one and fill it with items from the existing backpack, but it assumes the new backpack is empty, which is not always the case.

For example config-defined soldiers with backpacks actually define a completely new backpack with non-empty Transport* subclasses. Trying to modify such soldier(s) in Arsenal duplicates backpack contents (if they fit).

The Arsenal needs to clear the backpack before adding items to it.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7 x64
Category
Virtual Arsenal
Steps To Reproduce
  1. Open up editor (Eden)
  2. Place down NATO Repair Specialist (B_soldier_repair_F)
  3. Right-click, Edit Loadout, change anything (ie. scope on the gun), click OK
  4. Preview the mission
  5. Observe 2x Toolkit in the backpack instead of 1x

Event Timeline

freghar created this task.Aug 6 2016, 10:12 PM
bamse added a subscriber: bamse.EditedOct 31 2016, 7:11 PM

Even easier to call this bug this way and _very_ easy to replicate under any conditions. Arsenal is the culprit here.
Create a new backpack using this simple config;

 class CfgVehicles
{
	class B_AssaultPack_rgr;
	class bamse_new_bag: B_AssaultPack_rgr
	{
		scope = 2;
		displayName = "Bamse Backpack";
		class TransportItems
		{
			class _xx_30Rnd_65x39_caseless_mag
			{
				name = "30Rnd_65x39_caseless_mag";
				count = 5;
			};
		};
	};
};

Enter arsenal, remove ALL equipment.
Select newly created backpack.
Exit Arsenal and enter it again.
Rinse and repeat, each time you enter Arsenal items will be added again, and again, and again.
You can even click the backpack while already wearing it and the items will start duplicating.

I do get the thought behind how Arsenal acts though, in most cases you want to retain what's in your backpack when switching between to backpacks, like say a green kitbag and a black ... but in no cases should it reapply what's in TransportItems unless going from empty to the backpack in question :)

Video made with the config above, running 1.64.138732 and no other mods: https://youtu.be/EXCXIziOovM

dedmen added a subscriber: dedmen.EditedSep 12 2017, 12:11 PM

Still an issue. Arsenal even replaces your backpack if you don't change anything on it. Deleting all variables that might be stored on a Backpack. Breaking TFAR without a special workaround.