• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-1385
Back
2

Combination lock can never be attached to a door again after a locked lock leaves its slot without "Detach"

BugBase Building
2

State

Duplicate
Issue key
DZG-1385
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
nelamer
Created
Oct 17, 2026
Views
118
Platform
PC Steam
What happened?

Where: Community server, reproduced on a local vanilla server (no mods), Nasdara

Description
When a 3-dial or 4-dial combination lock is locked on a door of a restored house, the lock slot on the house gets inventory-locked. This slot lock is only released by the "Detach combination lock" action. If the locked lock leaves the slot in any other way (the item is deleted by the economy/cleanup, fails to load from storage, or is removed by an admin tool or a mod), the empty slot stays locked forever. After that, no 3-dial or 4-dial combination lock can be attached to that door: the "Attach" action never appears, also for a brand new lock. The state survives server restarts, and destroying and rebuilding the door does not fix it. A digital code lock can still be attached, because it uses a different slot.

Steps to reproduce

  1. On a restored house (tested on Land_House_3S1 and Land_House_1M5, Nasdara), build a metal door and close it.

  2. Attach a 3-dial combination lock and lock it.

  3. Remove the lock from the slot without the "Detach" action, for example delete the item with the Script Console or an admin tool (GetGame().ObjectDelete(lock)).

  4. Take a new 3-dial combination lock and try to attach it to the same door: the "Attach" action does not appear.

  5. Restart the server, or destroy and rebuild the door: the lock still cannot be attached.

  6. Try a digital code lock on the same door: it attaches.


Cause (1.30 scripts)
CombinationLock.LockServer locks the slot (SetSlotLock(true)); it is only released in CombinationLock.UnlockOnServer, which runs from the Detach action. ConstructionBase.DropEssentialAttachments (door dismantle/destroy) only releases slot locks on slots that still hold an item, so an empty locked slot is never released, and rebuilding the door does not help.

Suggested fix
Release the slot lock whenever a combination lock leaves the slot (EEItemDetached on the building), and always clear slot locks of the door's lock slots in DropEssentialAttachments.

Notes
Seen on a community server after a player was killed while opening the door and another player later removed the lock from inside; afterwards no combination lock could be attached to that door, even a new one and even after rebuilding the door. Possibly related to DZG-1269 (cannot attach 3/4-dial locks to Nasdara doors).

Reproduction steps

We could not reproduce the original situation through normal gameplay; we do not know what removed the lock from the slot on the community server. The resulting state is reproduced reliably with the steps below: once a locked combination lock leaves its slot without “Detach”, no combination lock can be attached to that door again.

  1. On a restored house (tested on Land_House_3S1 and Land_House_1M5, Nasdara), build a metal door and close it.

  2. Attach a 3-dial combination lock and lock it.

  3. Remove the lock from the slot without the "Detach" action, for example delete the item with the Script Console or an admin tool (GetGame().ObjectDelete(lock)).

  4. Take a new 3-dial combination lock and try to attach it to the same door: the "Attach" action does not appear.

  5. Restart the server, or destroy and rebuild the door: the lock still cannot be attached.

  6. Try a digital code lock on the same door: it attaches.


Exact build version (optional)
1.30.164078
Where did it happen?
Local / Offline
Is it modded?
No
Expected result

An empty lock slot is never left locked, and a new combination lock can be attached.

Reactions

Activity

    10 days ago
  • nelamer
    created issue10 days ago
  • 9 days ago
  • l909
    changed state to
    DUPLICATE
    9 days ago

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

State

Duplicate
Issue key
DZG-1385
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
nelamer
Created
Oct 17, 2026
Views
118