# open level (by name) loads level for 1 second and then returns to previous level (menu world)

**URL:** <https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 4, 2022, 6:46am UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956 "2022-12-04T06:46:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spiffy664](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spiffy664](https://forums.unrealengine.com/u/Spiffy664)\
**Post date:** [December 4, 2022, 6:46am UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956/1 "2022-12-04T06:46:29Z")

</div>

my game opens a level from a menu (BP widget) and does the open level (by name) bp node the level opens just fine in the editor (PIE) but not in a packaged build

using advanced steam sessions

My project in 5.1 is bare bones top down template, I have a level called Menu where I have the menu,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/9/9f93271c4691b7c3ffa080f2961904d8213e0f6d.png)  
this calls the host session in the serverinfo advanced friends session

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/b/7bb7b576fcd788bb5dc4d57b43260f46f2d3e565.png)

short video showing the problem:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=x4ACGta7hQU)

you can download the project here (you will need to repackage it for windows the version in this folder is different I think)  
[https://drive.google.com/file/d/1UWUZbfTmLuaYD1Lk0wQQEDuFjy9gjzoE/view?usp=share\_link](https://drive.google.com/file/d/1UWUZbfTmLuaYD1Lk0wQQEDuFjy9gjzoE/view?usp=share_link)

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [December 4, 2022, 8:36am UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956/2 "2022-12-04T08:36:51Z")

</div>

I think this is happening because you changed level, and your game session is destroyed. Therefore, game brings you back to main level. Because this is how engine behaves when Network Error occurs.

Can you try doing things other way around. Don’t `HostSession`, and then change level. Create PlayerController that is used in that `GameMode` for online game, and create session using it **once the level is loaded**. Just make sure you do it only for PlayerController that created the session, not the one who joined the session.

If you want to keep your logic, then read [Traveling in Multiplayer](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Networking/Travelling/).

Also, in your `GameInstance::Init()`, use this to get network error info when it happens.

`GEngine->OnNetworkFailure().AddUObject(this, &YourGameInstance::NetworkFailureMessage);`

Method format: void `YourGameInstance::NetworkFailureMessage(UWorld* InWorld, UNetDriver* NetDriver, ENetworkFailure::Type FailureType, const FString& ErrorString)`

---

<div class="post-metadata">

**Author:** ![Spiffy664](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spiffy664](https://forums.unrealengine.com/u/Spiffy664)\
**Post date:** [December 4, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956/3 "2022-12-04T16:31:53Z")

</div>

Thanks for your help

I was able to get the original problem to go away by changing the build.cs and target.cs files with some things from the documentaton about steam online subsystem… copy and paste stuff into the defautlengine.ini, some other ini for windows…

I have a new problem where join session fails after 5-10 seconds of trying (time out?)

I tried rewiring some things to where you just start out already in the level and I add the widget buttons

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/2/9f23e97e6d0094cf5ce4d91c09d58d377bdd020f.png)

the top down controller now has the client host / join session custom events which call the events inside the ServerInfo Advanced Friends Game Instance class…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/e/13e6c2abb84c3aae98a1fe5232e343c9bd992373.png)

(continued)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/7/f07600be006bccc21787cdd56b25db22e814a15c.png)

host session (ServerInfo game instance)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/b/d8b465da75cb97f5089d35ee45bb8f3987b0883e.png)

Join session (serverinfo game instance)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/2/7524c1a2edaf316e50436ec65df797de159f3260.png)

so these are called by the player controller… but join doesn’t work

I wonder if it’s a steam configuration problem or if it’s a session problem (the 2nd player can’t join a session as they already in one)

Btw this is a listen server setup so the first player is both host and player

---

<div class="post-metadata">

**Author:** ![Spiffy664](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spiffy664](https://forums.unrealengine.com/u/Spiffy664)\
**Post date:** [December 4, 2022, 4:58pm UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956/4 "2022-12-04T16:58:10Z")

</div>

edit:

join is successful, the session that joins sits at a black screen and does nothing for quite a while and then kicks back to the previous level (the menu) it takes a solid 1-2 minutes or so to do that.

I have it set up the original way I haven’t tried it the other way around yet.

logs from the session that joined:  
[logfromsess.txt](https://forums.unrealengine.com/uploads/short-url/eVy4rnXfqWBS3Xsn0Wu8MziWyUo.txt) (100.0 KB)

the log from the host session:  
[mptestt.log](https://forums.unrealengine.com/uploads/short-url/75ml3FSyeuSrdgmJycRczG6G5XO.log) (206.2 KB)

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [December 4, 2022, 8:12pm UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956/5 "2022-12-04T20:12:01Z")

</div>

You don’t need steam in order for this to work propelry. I tested this on my own game without Steam. Btw., are you testing this on the same computer, or you have two computers with two Steam accounts? If it’s the same, it cannot work. Try without steam.

It is hard to find cause of the solution like this. Why don’t you try to search for `Unreal Engine Online Sessions` on YouTube, and you should find tons of tutorials that should help you.

---

<div class="post-metadata">

**Author:** ![Jmlyi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jmlyi](https://forums.unrealengine.com/u/Jmlyi)\
**Post date:** [March 13, 2026, 3:05pm UTC](https://forums.unrealengine.com/t/open-level-by-name-loads-level-for-1-second-and-then-returns-to-previous-level-menu-world/720956/6 "2026-03-13T15:05:27Z")

</div>

I know this is old but something important to watchout for when testing in editor is **always launching the play-session with “_Play-Standalone_” selected** and not _“Play As Listen Server”._ ← This also applies for "standalone sessions”

If FE: Play as a Listen server is selected you already launch into the menu as a server and your selected port is instantly occupied, now when trying to create a new session it is unable to link to the same port and fails to listen correctly.

On a side note the events: OnNetworkError and OnTravelError always help to troubleshoot potential issues.
