Page MenuHomeFeedback Tracker

Weapons stack in getUnitLoadout
Feedback, NormalPublic

Description

getUnitLoadout stacking weapons with different ammo in one array and use ammo of first added weapon

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1803
Category
Scripting
Steps To Reproduce
  1. Add two or more weapons with different ammo:
player setUnitLoadout [[],[],["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",[],[],""],1]]],"","",[],["","","","","",""]];
  1. Stack two weapons (In backpack)
  2. Use getUnitLoadout:
[[],[],[],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",[],[],""],2]]],"","",[],["","","","","",""]];

or

[[],[],[],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],2]]],"","",[],["","","","","",""]];

Event Timeline

Dimonua added a subscriber: Dimonua.Sep 8 2018, 2:21 AM
Wulf added a subscriber: Wulf.Sep 20 2018, 12:57 PM

Hello.

Does this issue still occur as I am not able to reproduce it.

Henne added a subscriber: Henne.EditedAug 1 2021, 4:23 PM

Hello,
this issue is still persists.

Steps to reproduce:
Put two identical weapons in a container (backpack). -> For example: 2x "hgun_Pistol_heavy_01_green_F"
A weapon with a full magazine and a weapon with a magazine in there rounds are missing.

The output from the command is this:

[["hgun_Pistol_heavy_01_green_F","","","",["11Rnd_45ACP_Mag",11],[],""],2]

instead of

[["hgun_Pistol_heavy_01_green_F","","","",["11Rnd_45ACP_Mag",11],[],""],1],
[["hgun_Pistol_heavy_01_green_F","","","",["11Rnd_45ACP_Mag",7],[],""],1]
BIS_fnc_KK changed the task status from New to Assigned.Aug 2 2021, 9:08 PM
BIS_fnc_KK claimed this task.
BIS_fnc_KK added a comment.EditedAug 2 2021, 9:10 PM

I'm assigning this to myself in order not to lose it, and I'm aware of the issue but the fix might be too complicated or unsafe. I will have another look but no guarantees

should be fixed in rev. 148351

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Oct 16 2021, 5:12 PM
BIS_fnc_KK changed the task status from Assigned to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
Henne added a comment.Feb 10 2023, 1:40 AM

Sorry for the late answer. It works now fine, thanks.