Hello everyone;
I’m working on a multiplayer shooter game and i using a Listen-Server for my server side,
as you know when you develop a multiplayer game you can test your game in unreal editor too, you can specify “Net Mode” and “Number of players” in unreal editor to play test your game and it’s really useful feature when you are developing multiplayer game, because
it doesn’t need to package your game every time to test ; i’m using this feature and it’s working very good but sometimes my client screen comes black and i can’t test my game; i know my game codes are good but i don’t why this happen? has anyone else has the same problem? if yes can you help me please?
I only get this when there aren’t enough spawn points and one of the clients loads in the same spot. Adding more spawn points or a custom spawning system resolves it.
please help me if someone know the solution, i thought maybe its unreal bug and i installed
UE5.3.1 but it didn’t fix the problem!
so if anyone know the solution please help me to fix the problem, thanks!
Same problem for me, To give a little more information:
In the logs I didn’t find anything strange, the host doesn’t see the character spawn, the character is left in limbo, if from the host he travels again then the client disconnects.
In my case unfortunately I have not been able to replicate it in the Editor, only in games in production (sometimes) other times it works well.
I tried upgrading to Unreal Engine 5.5 this doesn’t fix the problem, plus to give some additional context:
I tried Direct X 11 but not works
Always happend in client
Always do postLogin and then do postLogout
Always your FPS goes from being dynamic between 100 and 150 to static at 144
Some of the messages:
UNetConnection::SetClientLoginState: State changing from Invalid to CleanedUp
STEAM: Removing P2P Session
OnlineSubsystemSteam::Shutdown()
LogD3D12RHI: ~FD3D12DynamicRHI
LogNet: Verbose: UNetConnection::SetClientLoginState: State changing from Invalid to CleanedUp
With last error i saw other posts:
In the lobby set the Playerstate to the default one, not the custom one.
But it didn’t work
I added ?listen to the travel server, it doesn’t fix it either
I tested if it was Advanced sessions problem but it doesn’t seem to be related either.
The next thing I’m going to test is if this error occurs using seamless travel enabled in game mode