After battling a bit with unreal nodes, I still can’t seem to figure out how to save String Information.
I am generating when the app starts and saves for the first time, a random 10 number string. I need to save this number in a save game, so that it doens’t generate a new number every time it loads.
My question is, how do I save String information on a variable? Because I generate the number, I set the number on a variable, save it to a save game and i can’t seem to neither save a game or store information anywhere.
so you are having trouble saving and loading a variable? All variables? Just this specific string?
You probably need to go through your code line by line and post it here to get some proper help.
First you want to try to confirm that the variable is making it to the save game object, then if it can be retrieved. You can do that all with print strings.
Every time I run it, in UE4 or in Quest 2. It always says it doesnt have a save game (when it should have) and creates a new one if there’s not - how it’s suppose to… The things is… it never really loads a save game.
I checked if the names are correct, if the save game are actually created in the devices…
Can’t seem to find the problem or how to fix it
Thank you!
So if i understand correctly, you have confirmed that the variable does get set and passed into the save game object.
But then when you try to get the variable from the save game object, it is empty?
Is the variable set to Save Game (in the details panel for the variable)?
Is there save file generated in the project folder?
Can you successfully save and load any other variable types?
have you tried setting save and load to explicit input events? if it works that way this might indicate some execution flow problem.
You can also try putting a custom event or function in the save game object directly, just to print a string to confirm the variable has been set there.
Instead of setting text with the variable after loading you might just print string. This way you chop out the additional risk of some problem with the text. Idea is just to reduce total amount of moving parts so you can more easily find the problem spot.