Page MenuHomeFeedback Tracker

Some inventory commands don't always detect free inventory space correctly
New, WishlistPublic

Description

A number of inventory commands, including addMagazine, addItem, and canAddItemToXXX, are sometimes not detecting free inventory space correctly, and return false even if there is space left to add a specific item in the inventory.

This mostly happens when the inventory is nearly full. Attached is a repro mission that illustrates the problem. {F25095}

Details

Legacy ID
1989643841
Severity
None
Resolution
Open
Reproducibility
Sometimes
Category
Scripting
Steps To Reproduce
  1. Start attached repro mission
  2. Open your inventory, and notice there is free space left in the backpack to add a second Titan AT missile
  3. Open the debug console, and call: <b>player addMagazine "Titan_AT";</b>
  4. Re-open your inventory, and notice that the extra Titan AT missile was not added to your backpack

Event Timeline

AgentRev edited Steps To Reproduce. (Show Details)Nov 8 2014, 2:59 PM
AgentRev edited Additional Information. (Show Details)
AgentRev set Category to Scripting.
AgentRev set Reproducibility to Sometimes.
AgentRev set Severity to None.
AgentRev set Resolution to Open.
AgentRev set Legacy ID to 1989643841.May 7 2016, 7:47 PM
Bohemia added a subscriber: Bohemia.May 7 2016, 7:47 PM

Another way to recreate the same problem:
Step 1 and 2 remain the same
Step 3: put an ammo box in front of you with a Titan AT missile in it.
Step 4: open inventory screen and click on the missile. Missile won't load in the backpack, but it will if you drag it instead of clicking it.