• Tracker

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

Combination lock silently changes its code after the door it was locked on is destroyed or dismantled

2

State

Awaiting internal testing
Issue key
DZG-1377
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
nelamer
Created
Oct 17, 2026
Views
113
Platform
PC Steam
What happened?

pWhen a door of a rebuilt house (tested on Land_House_1M5, metal door) is destroyed or dismantled while a combination lock is locked on it, the lock drops to the ground still in the locked state. The dials on its outer and inner sides then show different numbers, and neither matches the code that was set. When this lock is attached to a door again, the game takes the new code from the OUTER dials only. Players who read the inner side or remember the old code can no longer remove the lock, so it looks like the lock is broken.

Notes
Reproduced twice in a row on a local vanilla 1.30 server. Possibly related to DZG-1269, DZG-1290 and DZG-1305.


Cause (1.30 scripts): ConstructionBase.DropEssentialAttachments (dismantle/destroy of a door part) drops the lock without calling CombinationLock.UnlockOnServer, which is what syncs both dial sides. Fence.HandleDropAttachment does call it, so fence gates are not affected. CombinationLock.LockServer then takes the new code from the outside dials only. Suggested fix: call UnlockOnServer for CombinationLock / DigitalCodeLock in DropEssentialAttachments, like Fence does.

Reproduction steps
  1. Rebuild a door on a restorable house (Nasdara), close it.

  2. Attach a 3-dial combination lock, set code 358 and lock it.

  3. Destroy or dismantle the door.

  4. Look at the dropped lock: outer dials show 496, inner dials show 439 (real code is still 358).

  5. Rebuild the door and attach the same lock.

  6. Try to remove the lock with 358 or 439: it does not open. Code 496 (the outer dials) opens it.

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

The lock keeps its code, or is unlocked with both sides aligned when it drops, and reattaching does not silently set a new code.

Reactions

Activity

    17 days ago
  • nelamer
    created issue17 days ago
  • nelamercommented
    17 days ago
    nelamercommented
    17 days ago
    **Evidence (server script log, local test server with logging):**
    ```
    22:42:19 DETACHED CombinationLock locked=1 comb=496/439 lockedComb=358 from Land_House_1M5 slot=Att_CombinationLock1_Metal   <- door destroyed
    22:45:30 CombinationLock (ground): CODE=358 dials outside=496 inside=439
    22:45:59 LockServer before: comb=496/439 lockedComb=358 -> after: lockedComb=496                                          <- re-attached
    22:46:16 UnlockOnServer ... lockedComb=496                                                                               <- only 496 opens it
    ```
    Same result earlier: code 622 -> door dismantled -> dials 358/673 -> re-attached -> code 358.
  • 15 days ago
  • l909
    changed state to
    AWAITING INTERNAL TESTING
    15 days ago

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

State

Awaiting internal testing
Issue key
DZG-1377
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
nelamer
Created
Oct 17, 2026
Views
113