Since a player controller only exists on the server and on the owning client, calling a multicast from one isn't really a supported operation. However, this case is still handled cleanly when RepGraph isn't in use. This issue occurs when using the BasicReplicationGraph example and with ShooterReplicationGraph when AShooterPlayerController is modified to include a multicast RPC.
In a multiplayer game using the replication graph, set up a multicast RPC on the player controller and call it.
Expected: The RPC is only called on the server and on the client owning the player controller.
Actual: The RPC is called on the server, and the server receives an invalid swap message: "LogNet: Received invalid swap message with child index -1". The client also no longer seems to have a valid player controller.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-109948 in the post.
0 |
Component | UE - Networking |
---|---|
Target Fix | 4.27 |
Fix Commit | 15628950 |
---|
Created | Mar 4, 2021 |
---|---|
Resolved | Mar 5, 2021 |
Updated | Nov 29, 2022 |