Hello,
I am creating a mod for my DayZ game server. I have added a new attachment slot on the vest to mount weapon magazines. When I drag a magazine from the weapon to this attachment slot with the mouse, the detach animation does not trigger — the magazine just teleports to the attachment slot and the game outputs a crash log.
The detach action is triggered when I drag the magazine either to the ground or to the vest’s cargo slots.
Could you please advise how to fix this issue?
I need the detach action to be triggered when dragging the magazine onto the clothing attachment slot, just like it happens when dragging to the ground or the cargo slot. This is important for me.
Thank you for your time.
I am attaching the crash log below:
DESKTOP-LQ4I1PR, 30.07 2025 10:09:18
[wpnfsm] SurvivorF_Baty:1:INSTANCETYPE_SERVER warning - pending event already posted, curr_event={ WpnEv id=ATTACH_MAGAZINE pl=SurvivorF_Baty:1:INSTANCETYPE_SERVER mag=Mag_AK74_30Rnd:27318 } new_event={ WpnEv id=MECHANISM pl=SurvivorF_Baty:1:INSTANCETYPE_SERVER mag=null }
Class: 'DayZPlayerInventory'
Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:92 Function Error
scripts/4_World/systems\inventory\dayzplayerinventory.c:317 Function PostWeaponEvent
scripts/4_World/classes\weapons\weaponmanager.c:856 Function StartPendingAction
scripts/4_World/classes\weapons\weaponmanager.c:781 Function StartAction
scripts/4_World/classes\weapons\weaponmanager.c:469 Function EjectBulletVerified
scripts/4_World/classes\useractionscomponent\actions\weapons\firearmactionmechanicmanipulate.c:58 Function Start
scripts/4_World/classes\useractionscomponent\actionmanagerserver.c:270 Function Update
scripts/4_World/entities\manbase\playerbase.c:2976 Function CommandHandler
Runtime mode
CLI params: mod @CF;@VPPAdminTools;@WildMOD config serverDZ.cfg profiles profiles port 2302
DESKTOP-LQ4I1PR, 30.07 2025 10:09:19
[wpnfsm] SurvivorF_Baty:1:INSTANCETYPE_SERVER failed to perform weaponevent { WpnEv id=ATTACH_MAGAZINE pl=SurvivorF_Baty:1:INSTANCETYPE_SERVER mag=Mag_AK74_30Rnd:27318 } on AK74:27312 which is in state RBF_CLO_BU1_MA1<1e979f50> with physical state: J: false | Chamber_0: B(true) F(false) E(false) | Magazine_0: NULL
Class: 'DayZPlayerInventory'
Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:92 Function Error
scripts/4_World/systems\inventory\dayzplayerinventory.c:342 Function DeferredWeaponFailed
scripts/3_Game/tools\tools.c:615 Function OnTimer
scripts/3_Game/tools\tools.c:291 Function Tick
scripts/3_Game/tools\tools.c:417 Function Tick
scripts/3_Game/dayzgame.c:2921 Function OnUpdate
JM/CF/Scripts/3_Game/communityframework\game\dayzgame.c:46 Function OnUpdate
VPPAdminTools/3_Game/vppadmintools\vanillaplusplus.c:211 Function OnUpdate