How do I use the Open Level function?

I’m trying to create a small menu level that the player can use to pick different maps. For some reason, when I use the Open level function, I cannot get the map to load. It instead loads the starter Map. Can someone tell me what I’m doing wrong?

][1]

All the maps are in the same folder. there are no spaces in the name variable itself but they are there when i place it in the blueprint graph for some reason. If I take it out and type in the name manually into the open level function it still doesn’t work. with or without the file extension .umap

yea Im launching it on my computer. But when I was debugging the logic it actually loaded the starterMap in the Editor too.

It may be because of the spcaes in the name? And do you have all the maps in the same folder?

Just to make sure, you are testing it in standalone mode, right? Because it doesnt work in PIE.

Well then the only thing that comes to mind is enter the name directly into the text box of the node instead of using a variable. That’s probably not it but i’m all out of ideas for now. :\

I appreciate the advice. Im gunna keep trying and If I figure it out ill make a post

Hello,

In the Name variable, what do you have the “Name” default value set to? Please note: this is not the same as the name of the variable and is what the variable actually passes to the function. If it is not populated, it may go back to the default level.

Cheers!

I have CargoBayMap_Version1.umap in the default value of the name variable. I have tried it with and without the umap extension as well as typing the name in directly. I also tried the travel command using an Execute Console Command function and this did not work either. I also tried in the editor and when launched on my computer.

4556-name.png

you’re talking about this value correct?

I decided to remove the name variable and try again and it worked this time. Not sure why it didnt work before. For anyone else reading this, you don’t need the .umap at the end.

I’m having a similar issue… I’m trying to pass a name variable to the OpenLevel command through a UMG button “Next Map”.
I know I’ve got the correct name set because when I print screen it gives me the proper name of the map, but when I reference the name through the UMG and try it out I get nothing.

Hello,

Can you make a new post and link me to that question? Doing this through UMG is a bit different and I would need more details about how you have set up your blueprints. Thank you!