so i followed this tutorial 🎮 Unreal Engine #Part 38 Unlock New Level After Complete Mission - YouTube to lock the levels but i don’t know how to save the unlocked levels because every time you close the game you have to start again from level 1. i’m new to blueprints and i can’t figure it out. help!
Cand you show me with a print screen how to do it?
You need to follow the vid first, because it’s a whole concept to get your head around ![]()
so, I watched the video and since the function of unlocking the levels is in the game instance, I thought that there I have to put the function of saving the unlocked levels and not in the blueprint in the character but when I connect booleans from the saved blueprint created as in video with booleans from the level unlock function I get that error, my main dilemma is that in the character blueprint I don’t have level unlock booleans because they are in the game instance blueprint that’s why I created the save function in the game instance blueprint, if could you tell me what i did wrong please?
Unlock levels function in game instance blueprint
Error in save unlocked levels function in game instace
Macro of level check in characther bp
Putting the save in the GI is fine.
You’re having a problem, because you are using bools in the GI, but apparently in the save game, they are ints.
Have you compiled?
Also, this won’t work

What happens when it’s a loaded game?
maybe I forgot to press compile, now it doesn’t give me an error anymore but when I press 1 nothing happens, saved doesn’t appear which is set in print string and no saved file is created but when I enter the level selection menu loaded appears from print string.
You asked me what happens when it’s a loaded game, theoretically I think the save should run, from what I’ve seen save game is set in one function and load game is set in another function
Save unlocked levels function
Load game function setup
Event graph with save unlocked level setted up to fire when i press 1 like in the video and the load game function setted up to fire when levels menu run
It’s not working for the very reason I mentioned ![]()

Follow it through with your finger. If it’s loading a game ( which it will be after you’ve pressed 1 more than once ), that save ref goes nowhere…
thats how he did in the video you provided… ![]()
I changed the save game function to run when I press 1 with run when game instace is shut down and now it worked, the unlocked levels remain unlocked even after I close the game and open it again and a saved file is created in project folder, strange
by the way you dont need that REF that you mentioned there, it works as i did
THANK YOU VERY MUCH FOR YOUR TIME!!!
Yes, I see it now. It just looked a bit dodgy ![]()
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.








