• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-1913
Back
1

GameInventory.FindFirstFreeLocationForNewEntity returns an invalid location

Bug
1

State

Open
Issue key
DZG-1913
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
armor
Created
Oct 23, 2026
Views
11
Platform
PC Steam
What happened?

The GameInventory.FindFirstFreeLocationForNewEntity(string item_type, FindInventoryLocationType flags, out notnull InventoryLocation loc) method may return an invalid inventory location inside a nested container, even when a valid location is available in the parent container.


The method returns a location inside the AmmoBox cargo, even though a PlateCarrierPouch cannot be placed inside this container. As a result, the method returns an unsuitable location instead of finding an available slot in the backpack containing the AmmoBox.

Since FindFirstFreeLocationForNewEntity() is used internally by CreateInInventory(), this issue affects multiple inventory-related systems and gameplay mechanics that rely on creating entities directly in a character's inventory or inside containers.

As a result, items may fail to spawn in an inventory despite sufficient available space, affecting various aspects of the game that rely on CreateInInventory()

Additional Observation:

The behavior appears to depend on the number of cargo slots and the current inventory state rather than the specific parent container type. For example, when AliceBag_Green is replaced with TortillaBag, the PlateCarrierPouch spawns in the backpack as expected. This suggests that changes in the available cargo space or inventory layout affect which location FindFirstFreeLocationForNewEntity() returns.

The method's location selection behavior is inconsistent: it may return a location inside a nested container where the item cannot be placed, despite sufficient available space in the parent container.

Reproduction steps
  1. Equip a character with a alice backpack.

  2. Place an AmmoBox inside the backpack, preferably in the first inventory slot.

  3. Spawn a PlateCarrierPouch in the inventory.

  4. Observe the inventory location returned by FindFirstFreeLocationForNewEntity().


  5. Spawn Item PlateCarrierPouches_Black NULL loc: { type=CARGO item=null parent=AmmoBox:1128 idx=0 row=0 col=0 f=false }
Exact build version (optional)
1.30.164200.56
Where did it happen?
Official
Is it modded?
No
Expected result
—
Public attachments1 file · visible to everyone

DayZ_2026_10_24_00_19_48_01.mp4

7.1 MB

Reactions

Activity

    about 1 hour ago
  • armor
    created issueabout 1 hour ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-1913
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
armor
Created
Oct 23, 2026
Views
11