Problems with casting to player in multiplayer?
I have just tried launching two sessions from the in editor play, and get a bunch of errors on play regarding my casting to my player in a HUD blueprint, however this issue does not occur with one player, and I see no reason for these errors to occur. Also, when I try selecting one of the two players in the level while playing, they are not the two actors the world outliner is saying they are, instead they are objects that don't exist? (See below)
(The red circle is part of my UMG HUD, not me annotating the image) But as you can see I have the player selected from the viewport, but it does not show up in the world outliner, and the name of it (Player_UT42) does not exist in the world outliner. And if I select one of the players in the world outliner, they don't exist in the world?
In this image you can see where the error is apparently occuring. (The casting the pawn to a player_ut, which it is, and which works fine in single player)
I included this image to point out the bug that the errors don't link to where they mean.
PS. The player which is the host works perfectly? PPS. There is also the issue that I have noticed pretty much any time I've ever gotten errors while playing that the errors refer to the wrong location.
asked Apr 08 '15 at 03:51 PM in Bug Reports
The not being shown in the outliner I've never seen, but issues with HUD/UMG and PlayerController I've seen.
There's a bug that at that point things may not be initialised, can you try adding a Delay of like 0.1s before creating the UMG widget? Let me know if the errors go away.
That's how I was told to do it by Epic for now to get around the issue.
answered Apr 08 '15 at 04:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here