Save and load bool variable / Open level questions
Hello. I have a menu created over the RealisticRendering template. So there are two buttons. The first will activate the "roomtour", the second will deactivate. So my idea was to save and load games to slot, to store the boolean variable which is activated when I click "roomtour on", and deactivated when I click "roomtour off". So the storing is easy, I made that already. My problem is, that I want to read those config file in another level / map. So I created the Load Game to slot script there (the level blueprint) and wanted to put this in the new bool variable which will activate the matinee example thing for the cameras. So it stores the variable, but in the new level, however the load function returns false, even the boolean variable in the other level stored as true. Here are my scripts / functions:
The main menu script (don't care about the move component things, its just decoration)
My save boolean function:
My get saved boolean function:
The script in the Level Blueprint of the level thats going to be opened by OpenLevel:
Thanks for your help!!
asked Aug 19 '14 at 04:10 PM in Blueprint Scripting
It looks like you're never changing the values of your Saver variables, so it's always saving your Roomtour variable in the Menu Blueprint as the default value of the Input Bool variable from the Saver. To make it easier to see what you're doing, I would recommend changing the names of the variables in your Saver to something like SvrInputBool and SvrRoomtour. Then it should be pretty clear what's happening; in both the Save Boolean and Get Saved Boolean functions, you're getting the Saver's variable (Input Bool and Roomtour, respectively) and setting the Menu's Roomtour with its value. Without anything updating the Saver's variables, that will always return whatever the default value for those variables is.
Hope that helps! Let me know if you have more questions.
answered Aug 20 '14 at 08:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here