Developer Notes

The array itself isn't replicated. It just indirectly tracks the actors of type 'APlayerState' that are replicated. You could possibly sort the actors by player name or score in your implementation as a workaround. We don't sort internally since we don't know what the application would want to sort by.

Description

The GameState's PlayerArray is not being replicated in the same order. This occurred every time I tested in Standalone game, but did not seem to occur when I tested in a new editor window.

The Standalone settings are set to not Use Single Process and also set to Play As Listen Server for the multiplayer mode.

The user states that occasionally the array will be in the correct order, but it is much more consistent for the order to be different between the server and client.

Steps to Reproduce
  1. Open the attached project
  2. Play in Standalone
  3. Click Host on one
  4. Click Join on the other

Result: Notice that the player names are not printed in the same order.

Expected: The player names would be printed in the same order consistently, indicating that the array is in the same order on the client and server.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

2
Login to Vote

By Design
ComponentUE - Networking
Affects Versions4.134.144.15
CreatedNov 28, 2016
ResolvedNov 30, 2016
UpdatedSep 12, 2017
View Jira Issue