Bug Report - Player State does not return name after OnLogout
4.14 is the first release of Unreal Engine where this function no longer works. Instead of printing out the name of the disconnecting player, it now prints no name at all.
The project uses steam online subsystem. This has worked flawlessly in every version since UE 4.7, what has changed? Using the same or similar function ingame works fine, before the player disconnects.
(I recently added the cast to the specific controller class, however it changed nothing.) In earlier UE4 versions this function was able to display the name of the disconnecting player. Is there a new way of doing this, or should'nt this still work like before? Im currently using 4.14.1
Im trying to find a workaround meanwhile. Thanks in advance for any assistance!
asked Dec 18 '16 at 06:46 AM in Bug Reports
I've discovered the cause of this issue. It seems that in GameMode.cpp, in the AGameMode::Logout function, the Super::Logout call was being executed at the end of the function instead of at the start.
So if you have a source build, which I would definitely recommend, what you can do is go ahead and make the change in GameMode.cpp around line 126:
Let me know if that helps.
answered Dec 23 '16 at 03:14 PM
Sean L ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here