• Tracker

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

Code Locks randomly change sides

Bug
1

State

Open
Issue key
DZG-2429
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
e36lover
Created
Nov 1, 2026
Views
12
Platform
PC Steam
What happened?

After a few hours of placing a codelock on my metal door the CORRECT way (keypad on exterior side) it will switch the wrong way by ITSELF which allows raiders to simply breach 2 doors for free in my base without any explosives or ammo.

For some reason it doesn't happen on the exterior doors, only my 2 interior doors.


in the screenshot you can see the codelock is on the wrong side. which allows raiders an easy raid.

Reproduction steps

Place a codelock on your interior metal doors the correct way and after a few hours or so they will switch sides, or maybe it is every server restart, i'm not really sure.

Exact build version (optional)
—
Where did it happen?
Official
Is it modded?
No
Expected result
—
Public attachments1 file · visible to everyone

Screenshot_20261101_184644.webp

54 KB

Reactions

Activity

    about 2 hours ago
  • e36lover
    created issueabout 2 hours ago
  • about 1 hour ago
  • capn_crustycommented(edited)
    about 1 hour ago
    capn_crustycommented(edited)
    about 1 hour ago

    Confirmed and reproduced on a vanilla server with no mods (1.30 Stable, Nasdara). It happens on every server restart, not at random.

    Reproduction

    1. Pick a Land_House_1M4 (other houses with rebuildable doors should behave the same).

    2. Rebuild an interior door from inside the room, then put a Digital Code Lock on it. The keypad goes on the side you built from, which is correct.

    3. Restart the server.

    4. The keypad is now on the other side of the door. From the side without the keypad the door opens with no code.

    Result in my test: all 3 code locks on interior doors flipped after one restart. The code lock on the exterior door stayed correct.

    Cause (from the 1.30 scripts)

    - DigitalCodeLock.m_Reversed (which side the keypad is on) is not saved with the lock.

    - It is only set in DigitalCodeLock.SetDoorInfoFromSlot(), called from OnWasAttached(), which reads it from the door's ConstructionPartRebuildReversibleDoor (IsReversedLocal()).

    - When the server loads, the lock attaches to the house before the house's door build state has loaded, so IsReversedLocal() returns false and every lock falls back to the default side.

    - Calling SetDoorInfoFromSlot() again a few seconds after load gives the correct side, so the data is there and only the load order is wrong.

    Impact

    The side without the keypad needs no code, by design. When the lock flips, that free side faces outward, so every base door built from the non-default side is unlocked from outside after each restart.

    Suggested fix: save m_Reversed with the lock, or re-run SetDoorInfoFromSlot() after the building's construction state has loaded.

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

State

Open
Issue key
DZG-2429
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
e36lover
Created
Nov 1, 2026
Views
12