# UE5.1 Playfab and Steam, Server Load always Menu level (wrong map)

**URL:** <https://forums.unrealengine.com/t/ue5-1-playfab-and-steam-server-load-always-menu-level-wrong-map/760707>\
**Category:** Multiplayer & Networking\
**Tags:** development, dedicated-server, Server, client-server, unreal-engine, question\
**Created:** [January 31, 2023, 5:09pm UTC](https://forums.unrealengine.com/t/ue5-1-playfab-and-steam-server-load-always-menu-level-wrong-map/760707 "2023-01-31T17:09:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RulesDeveloper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RulesDeveloper](https://forums.unrealengine.com/u/RulesDeveloper)\
**Post date:** [January 31, 2023, 5:09pm UTC](https://forums.unrealengine.com/t/ue5-1-playfab-and-steam-server-load-always-menu-level-wrong-map/760707/1 "2023-01-31T17:09:44Z")

</div>

Hi all, I’ve been trying for quite a while to fix an annoying problem.  
I’m using steam to authenticate my players on playfab and I’ve deployed the package on a playfab server and it’s ok.  
When from the client I try to connect using the “open ip:port” command or the BP Open Level node with “IP:PORT” I can connect to the server but then it loads the MainMenu instead of the server game map and on playfab the server passes from standby to active with 0 players and no logs.  
I also tried to use the third Person map, the standard EU one, but I have the same problem.

The maps have been set in the project settings and also in the list of maps to include in package builds.

My project was migrated from 4.26 to 5.0.3, these days I brought it to 5.1 but same problem, built several times on vs, deleted and regenerated the config folder.

The only solution that could work, in my opinion, is to force the loading of the map into the server with c++, but doing some research I didn’t quite understand how to do it.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/3/cc3e7883a4cbc36630c7cb2fffed2b78cf2e84a8.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/8/988d3ef7948f91e60ff8caa67a0bde45e1c56c73.png)

I hope someone has already faced this problem,  
on hold,  
thank you.

---

<div class="post-metadata">

**Author:** ![YoAndreGomes](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yoandregomes/32/767187_2.png) [@YoAndreGomes](https://forums.unrealengine.com/u/YoAndreGomes)\
**Post date:** [February 10, 2023, 4:21pm UTC](https://forums.unrealengine.com/t/ue5-1-playfab-and-steam-server-load-always-menu-level-wrong-map/760707/2 "2023-02-10T16:21:20Z")

</div>

> [@RulesDeveloper](#):
>
> eady face

It could be the your _DefaultPlatformService_ defined in **DefaultEngine.ini**.

If DefaultPlatformService is set to Steam:

```auto
> [OnlineSubsystem]
> DefaultPlatformService=Steam

```

Your deployed server will try to use Steam Driver definitions to stablish connections, then, failing to connect and redirecting the player to Game Default Map.

If you are using Steam just for authentication with Playfab, you might want set you default platform service as Null, disable steam networking as the following snippet:

```auto
 [OnlineSubsystem]
 DefaultPlatformService=Null

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=<your_app_id>
bUseSteamNetworking=false

```

and load manually the identity interface in your authentication class to make the platform Login, like the following snippet:

```auto
IOnlineSubsystem* OnlineSubsystem = Online::GetSubsystem(WorldContextObject->GetWorld(), "Steam");

	if(!OnlineSubsystem)
	{
		UE_LOG(LogTemp, Error, TEXT("Couldn't get the online subsystem!"));
		return;
	}
	IOnlineIdentityPtr Identity = OnlineSubsystem->GetIdentityInterface();
	Identity->AutoLogin(0);

```

Then, you can make the Playfab Login by registering yourself in the delegate **OnLoginCompleteDelegates** and executing the playfab request as the following snipper:

```auto
PlayFab::ClientModels::FLoginWithSteamRequest loginWithSteam = PlayFab::ClientModels::FLoginWithSteamRequest();
loginWithSteam.CreateAccount = true;
loginWithSteam.SteamTicket = Identity->GetAuthToken(0);
PlayFab::UPlayFabClientAPI::FLoginWithSteamDelegate OnSuccess;OnSuccess.BindUObject(<YourOnSuccessClass>, 
               &<YourOnSuccessFunction>);
			 PlayFab::FPlayFabErrorDelegate OnError;
				OnError.BindUObject(<YourOnErrorMethodClass>, &<YourOnErrorMethod>);
		
				PlayFab::UPlayFabClientAPI().LoginWithSteam(
					loginWithSteam,
					OnSuccess,
					OnError);

```

Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![01\_NAIMAN\_01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@01\_NAIMAN\_01](https://forums.unrealengine.com/u/01_NAIMAN_01)\
**Post date:** [July 26, 2024, 3:22pm UTC](https://forums.unrealengine.com/t/ue5-1-playfab-and-steam-server-load-always-menu-level-wrong-map/760707/4 "2024-07-26T15:22:38Z")

</div>

Sorry buddy, below is the login code where to fill in GameInstence???

---

<div class="post-metadata">

**Author:** ![Javi\_Hyuga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Javi\_Hyuga](https://forums.unrealengine.com/u/Javi_Hyuga)\
**Post date:** [February 19, 2025, 4:55am UTC](https://forums.unrealengine.com/t/ue5-1-playfab-and-steam-server-load-always-menu-level-wrong-map/760707/5 "2025-02-19T04:55:04Z")

</div>

Hi Andre, can you please help me on how to manually load the identity interface in Blueprints?  
I’m using Steam for login, create and join sessions (only for parties), and i did the modifications on the DefaultEngine but when i run the server locally using LMA the server stops.  
Before i found this thread i was (and still) unable to conect a client to the server.  
Thanks in advance.
