Load game from last streamed level

I made a small map with a bp that have a box with box collision infront of you once you enter it

This is the part need help with
(what it should do is to check last loaded streaming level you actually did then it loads it and then teleport you of course if there is none stream level happened before that means fresh new game it should start from game map 1)

By the way i have stream level bp setup working perfectly i even after loading the stream level i added variable to save that level name that level that just got streamed

Yes, so you walk into the box, it looks in the save game for the latest level and then streams it.

What is the problem? :slight_smile:

It is not doing that like nothing happens when i collide with the box collision

Do you have something like:

now as seen in screenshots below i did try something else since the level streaming method is not responding but this new method is spawning me when teleported away from the map like i am spawning and i look back up i see the map behind me up these are screenshots of what i tried implementing

You can’t use stream level and open level and teleport…

Check out the BP below…

now as seen in screenshots below i did try something else since the level streaming method is not responding but this new method is spawning me when teleported away from the map like i am spawning and i look back up i see the map behind me up these are screenshots of what i tried implementing![alt text][1]

well yes i had something like that before but it wasnt doing anything when overlaping

Ok, some things to check:

  1. Is the collision working? Put a print in the to check

  2. Is this BP running in a persistent level that has the other levels you want to stream loaded as sub levels?

for this could you show me how are you saving you last level in your project

and are you using level streaming with it

Yes, I’m using level streaming.

The persistent level is the one that does the streaming, so that’s where you write the name to the save game, just before you stream it.

I’m getting the idea you are missing something in your map layout.

For level streaming to work you need an empty persistent level, in which you load all the levels you want to stream as sub levels. Do you have that?

yes i have that well but see i did this move before my problem was before that i didnt know how to store the last level the player was because i had my checkpoint in my first map and second map under the peresistant and what happened is if i take second map checkpoint and load game i spawn in air and the second map doesnt load up so then after that i changed everything and trying new things

if it is possible can you show me privately if you would like or here if u dont mind how are you saving your last level and if player quits game loads that same last level stream because i am confused with this

There’s no secret :slight_smile: When I stream the level, I just put the name in the save game, because I know that’s that last level.

Let me check some things:

  1. You persistent should probably be empty. You can have stuff in there, but it might get confusing

  2. Level A and level B are sub levels.

  3. When you toggle visibility of those levels ( using the levels window ), they are in the same place.

  4. You can check it possible to stream them by just putting a simple command in the persistent level BP:

305154-level-a.jpg

( or whatever your level name is ). Check it works for both levels.

it says i cannot check the image it have errors and well see for example level a is on the left and i made a bridge in peresistant so player can walk on if so it will unload level a and load level b infront of the player and each level will have a checkpoint to save his game now if checkpoint isnt needed and the game can save and work with just loading last level also is fine for me but the thing is lets say player reach map B so when he lunch game it should lunch B and player is spawned there in it at the beginning

Ok, I’m with you.

First of all, it sounds like level streaming volumes would be better for this. Then you just have to save the player location. When you put the player back there, the right level will load.

Are you using volumes?

You can always save the player location, by putting this sort of thing in the character:

If you’re using level streaming volumes, you don’t need to do any streaming in the blueprint.