Help - Shows Spectator Camera At Middle Of Map The First Time Character Spawns - Solved

UPDATE: 05-23-2020

Problem solved.

What I learned;

• Player spawns with only his PlayerController sitting at 0,0,0 in the map
• GameMode PostLogin is to late to change change where your player spawns
• As eXi said “Your Server spawns the Client’s pawn and posses it, which takes a few milliseconds to replicate down to the client.” so that’s why there is that like 1 second delay before the character loads in.
• Adding a loading screen widget before the new map load and when the PlayerController spawns will still leave you with seeing where the player will spawn for around a second. Nothing can be done unless you use a c++ plugin, code your own or level stream. Level streaming I feel is a messy work around to fix just this.

The fix for my problem;
• I create a joining server widget (not needed) when I click to join the server from my main menu map.
• I use this c++ BP plugin https://www.unrealengine.com/marketp…ueprint-plugin and configure it to play my intro movies because after adding this plugin my intro movies stopped working lol. Then after the intro movies are triggered in the game instance I change the variables for the loading screen plugin at runtime to show over that 1 second load into the new map where you can see where your character will spawn.

• In the map settings that I want to load into I set the default pawn class to none
• I created a Player Start outside of my map boundaries and used the tags settings
• In my GameMode on Post Login I manually spawn my character’s default parent class to the out of bounds Player Start so the new player won’t spawn at map location 0,0,0 where everyone could see.
• In my Player Controller once it spawns, I re-spawn my character and load it’s data (choose what character to spawn, etc.) to available Player Starts inside the map.

It might not be perfect but it’s working and has less clutter than other ways I’ve seen.


Hello,

I have this running on a dedicated server with multiple clients connection to it.

It seems no matter how I try to set this up I get the same result.

​​​​​​In my game mode everything is default and I let the map spawn the the selected default pawn class (ThirdPersonCharacter)

Spawn my character in my game mode and on the map default pawn class selection can be (none) or (ThirdPersonCharacter)

What happens is I have a loading widget displayed from my main menu but when the new map loads that widget gets destroyed obviously (no problem) then the new map shows a camera viewing dead center of my map for a second then the ThirdPersonCharacter spawns and takes over and works as it should.

I have tried a lot to figure this out.
• I have made the character spawn outside my map but then instead of the center of my map showing for a second the spawn point outside the map shows for a second. lol
• I created a loading widget when my player controller spawns to cover up this 1 second flash of the spawn point but it still does it.
• Tried the overrides in the game mode too.

You might ask why I just don’t spawn the character where it should spawn from lets say a saved database location, well the character will auto spawn dead center of the map for a second until spawning where it should. This will cause a problem if I have players in the middle of the map and they see a character spawn and disappear lol. That’s why I force my character to spawn outside of the map so no one will see this, but why does a camera spawn for a second and show where the character is spawning for a second?

I read about this issue months ago but can’t find where I read this before. I’m open for some ideas, thanks

Here is a link, read last post, the guy pretty much has the same problem I have with a default camera getting spawned at 0,0,0 before the player controller and pawn get spawned… https://forums.unrealengine.com/deve…or-coming-from

OMG this guy has same issue lol
https://forums.unrealengine.com/deve…in-spawn-issue

I guess off to level streaming was going to do it anyways

Make a spectator pawn? It;s an idea…

I actually tried that too :frowning: no matter what I try there is that 1 second delay that shows the spawn point (middle of the map or off the map) before the character spawns where you need it to. I’m thinking I need to spawn character off map but in the game mode make a loading widget black out the screen some how for a couple seconds as a work around for now. Thanks for your idea.

This has been a problem for a long time. I still can’t find a good solution to it.
At this point I’m going to spawn an opaque black cube at 0,0,0 that will be Hidden to people that finish loading, but part of the map and visible before that, so hopefully people only see blackness.

1 Like

Mine has been working by spawning the character out of bounds first and using a loading screen plugin, everything looks how it should now