Page MenuHomeFeedback Tracker

Calling removeUniform, then addUniform in sequence with no delay and the same uniform corrupts gear system in MP.
Assigned, WishlistPublic


If you remove and re-add the same uniform/vest/backpack in the same frame (non-scheduled SQF execution) the gear system corrupts and doesn't register the container with clients or the server, and any subsequent calls to addItemToUniform/Vest/Backpack are corrupted and do not register on anyone but the local machine in which it was called.

Introducing a delay fixes the issue, but this is a hacky workaround.


Legacy ID
Steps To Reproduce

Execute the following code in the debug console on a dedicated server:

_uniform = uniform player;
removeUniform player;
player addUniform _uniform;

Items on the local players vest will be gone according to the items command.

If you look at the items of that player on a remote machine or on the dedicated server you will see that the items that were in the uniform are still there.

Executing addItemToUniform will show item added locally but it will fail to appear on any other client or the server.

You can exchange any of these commands for their vest of backpack equivalent and experience the same issue.

Additional Information

Only happens when removing and re-adding the same uniform/vest/backpack and when there is no delay.

This is a serious bug that can cause unexpected behavior down the line as it branches the inventories from player to player and from player to server causing inconsistencies.

Event Timeline

Nou edited Steps To Reproduce. (Show Details)Jul 19 2014, 9:04 PM
Nou edited Additional Information. (Show Details)
Nou set Category to Inventory.
Nou set Reproducibility to Always.
Nou set Severity to None.
Nou set Resolution to Open.
Nou set Legacy ID to 3140264800.May 7 2016, 7:02 PM
Nou added a subscriber: Nou.May 7 2016, 7:02 PM
Nou added a comment.Sep 9 2014, 5:44 AM

Can this please get a good look into? It is a game breaking bug, especially in ACRE which relies on clients and the server knowing about the same gear load outs

Confirmed. Server starts having own idea about items in uniform.

To add, this happens in scheduled environment too.

Nou added a comment.Sep 10 2014, 7:32 AM

Yea, it totally breaks the gear system on the server.

Executing repro on dedicated server does not mess up the inventory. Seems client execution messes up server and not vice versa

Also, when changing uniform to another uniform and not the same class, new uniform can get corrupt in such way that when putting an item in it via inventory GUI, the item disappears on client too and of course never gets added on the server as well.

Nou added a comment.Sep 10 2014, 7:12 PM


Yes, when you corrupt the gear via the client, the server cant add items at all. If you do the repro above on the client, then execute something like this on the server: (playableUnits select 0) addItem "FirstAidKit" (assuming there is only one player in the test) you'll not see it on the server or the client.

Nou added a comment.Oct 4 2014, 8:59 PM

Any word on this bug being worked on? Highly frustrating.

kllrt added a subscriber: kllrt.May 7 2016, 7:02 PM
kllrt added a comment.Oct 5 2014, 1:04 PM

^ It's really highly frustrating!

Nou added a comment.Jan 21 2015, 10:05 AM

Is this fixed? I can no longer replicate it as of the current dev version 128936...

Tupolov added a subscriber: Tupolov.May 7 2016, 7:02 PM

Confirmed, fixed. Tested in 1.44

Nou added a comment.May 24 2015, 11:33 PM

This issue still appears to be present, or there is another issue that is causing gear desynchronization.

Adam added a subscriber: Adam.May 7 2016, 7:02 PM
Adam added a comment.May 25 2015, 10:13 AM

I was unable to reproduce this issue. Can anybody provide some additional info please? Thank you.

CNTObi added a subscriber: CNTObi.May 7 2016, 7:02 PM

I recorded a video of an ACRE desync during a mission:

7 players (one as MCC GM). The player (Abuk) died and respawned at base. From our POV he looked as if he wasn't wearing proper gear. He got into the humvee with us but his icon on the FTL hud did not change to indicate this. As shown in the video, we reached a spot about 1km away from the respawn point and the error popped up.

Nou added a comment.Sep 23 2015, 7:28 PM

Yea people seem to still be experiencing this issue, especially with Arsenal. It seems like if you go into Arsenal in multiplayer with ACRE, switch through a few random sets of gear or change weapons or do anything that replicates the original scenario in this bug report it will trip the bug and the clients and server will begin to desync gear.

Still experiencing this within the same context mentioned in Nou's comment above.

Cyruz added a subscriber: Cyruz.Jul 19 2016, 10:20 AM

Still on-going issue in 1.62, @Killzone_Kid are you able to help @Adam reproduce this to get it resolved?

Still on-going in 1.64