I’m trying to test the networking of my dedicated server but I’m having an issue with the Gamemode as well as level streaming.
I use Rama’s tutorial and have a dedicated server running on my own computer. This opens a map called CityLvlPers that has two streaming levels, a loading screen which would just put up a circular throbber, and the actual city level. Since the loading screen level is just a UI thing, I skip it if the dedicated server opens it. This seems to work fine as I have no errors in the server log and a print to log shows that it is in the right level. CityLvlPers also has a gamemode override, let’s call it ThirdPersonGameMode.
The client opens initially not connected to the dedicated server. The map it opens up is MenuPers, which contains two streaming levels, a splash screen and a main menu. There is no gamemode override here. In the main menu screen, there is a Play button where I hide the menu and use the Execute Console Command blueprint node and call open my IP Address. The server accepts the client and the client is connected. However, the loading screen does not show up first and it just loads the city level automatically. Also, on my PostLogin call, I tried to cast Game Mode to ThirdPersonGameMode but it fails. Oddly, though, it uses the correct Pawn override (ThirdPersonCharacter) since I see the correct mesh of my character.
Any ideas as to why my Game Mode cast is failing as well as the loading screen level not showing up before loading the city on my client?
I will post pictures later to paint a better idea as to what is happening.