well for saving a player location i am using checkpoint bp with box collision and as i said before it does work it does get last location indeed but with level streaming its not working because it doesnt load the map where player reach for example level B and yes i did use streaming volumes but what is different between that and the codes you shared with me
This is what I’m saying. If you’re using volumes, you don’t need any blueprint for streaming, it’s all done by the volumes.
You only need to put the player back in the right place, and the volume will load the level.
EDIT: Are you sure the player is ending up back in the same place?
see even if lets say i made small room with box collision that check for me if a save game exists or no and to teleport my player where the last stream level is he lets say last place u reach is level B my player spawn in the air and level B doesnt even load
Ok, you have to move the player into the box AFTER the level has started. If the player is in the box on begin play it wont work.
The player has to overlap with the streaming volume after begin play.
So when it begins, have a short delay, then move the player to the right place.
i did try to make a delay and my player indeed spawn there but ill try this from a new fresher project but i was wondering how are you saving your last streamed level and i can see up you are giving that box collision if the player overlap with it to load that level
I’m using blueprint streaming, not volumes. So once I have streamed the level I say:
Inside there is:
and that is just another macro for save game read and write, that’s it
is it possible to save my current stream level in this way inside the levelstream BP where my load and unload happening like after my load stream level happens i get current level name function and connect that to set variable LevelName and connect that to my variable level to be loaded
Would it be possinle for me to connect with you and show you exactly what i have from discord or something like sharing screen with you i did what you suggested but i think i might be missing something im not sure of so you seeing live will be huge help if its fine with you maybe tommorow
I’ll come back to you tomorrow…
Alright thanks maybe if you accept as i said i can show live what i have
hey clockworkocean so i made it kinda work fine now in terms of saving my level name and last location is all working fine my stream levels between level a and b working but i have a problem still with loading that level stream after checking from game save the last location so here it goes i enter the box collision it checks if there is a game data been saved before after that i take from as gamesave and get levename from it which is saved from the last interacted level stream that happened and then after that i am doing a delay then i just check where last location was and teleport there now indeed it does teleport me where i left but its not loading the stream before that so i spawn in mid air
We can check it out later if you like.
In the meantime:
-
So you are spawning the player?
-
Sometime after the player has spawned, do you see the correct level loading?
PS: If you’re using volumes, you don’t need to save the name of the level
here is my screenshots i will show you i have highlighted the stuff there and for volume i tried it but for some reason its not working with what i have from my codealt text
I managed to come up with solution not really the best optimal but it does work perfectly
So i made medium sized tunnel in my nornal map and based where u go left right or forward it will do my stream level load nicely and my last location is working that i spawn middle of tunnel and u have freedom to go forward or wtv right or left area to spawn a new place in such a way i removed the headache of you know spawning the stream level before my player spawn
Ok, cool
Thank you very much foe your help and reply you kind off gave me some helpful tips and made my idea to work
You’re welcome.