Game saving issue and failed packaging (android)

Hi noob :warning:

I’m trying to create a save game feature for a game in meta quest 3.

I defined a structure of what I want to save and created GameSave blueprint and called that structure inside the blueprint.

then I called GameSave in my pawn and everything works fine when I’m in preview mode.

Here is the code in my pawn:
load and save posted by anonymous | blueprintUE | PasteBin For Unreal Engine

now the thing is when I try to get a package it fails getting me this error:

PackagingResults: Error: FStructProperty::Serialize Loading: Property ‘StructProperty /Game/SamplePTRL/save/VirsualBaySaveData.VirsualBaySaveData_C:all_objs.all_objs’. Unknown structure.

what do you think to be the issue here? thanks in advanced.

Usually leftovers from a deleted or rename variable names.

Open your save bp VirsualBaySaveData, double check you can recompile it.
Then from your content browser, right click on your save bp, do a Fix Redirectors.

thanks for your time. Actually, I can recompile it. no issues. everything works fine when in preview. It’s just the android packaging process that fails. I can even do a vulcan mobile preview.

About the fix directory though, I didn’t find a specific menu item on right click menu. what am I missing?

This one usually remove any leftover references

You can also delete cache shipping/cooked for the android, it possible it re-using some old files previously cooked.

oh thanks. it’s on the folders. my bad :slight_smile: I did a right click on the save bp itself.

ok, now I fixed the redirectors and still nothing.

how can I delete the caches you mentioned?

anything else I might have missed?

in the last line something is blank. the 2dashes as you see. could it be something that I have to take care of?

also, in the “all devices” sections i got 2 errors. I had these before and they didn’t create any issues but still there is always a chance. what do you think?

I doubt the AutoSdk is needed, NDK r25b should be enough.

For the cache, you will need to delete the folder Intermediate and usually cooked files are located in the Saved directory. I believe the folder Cooked, Staged Build and Shaders. Or just delete the folder Saved if it not important.


these 2 you mean?
I’ve already deleted them a couple of times before and still no luck

is there any other cache elsewhere? let’s say in windows temp directory?


daaaaaaaaaaamn! found it. this little son of a gun was the problem!! I enabled the tick and voila! I got the package :sweat_smile:

thanks for your time though.

1 Like

Never knew that could have cause that :grimacing:, glad it work now :innocent:

1 Like

I’m shocked too!
actually, I asked chatGPT and it said there could be something wrong with the variable inside the saveBP. I dug the variable a little bit and found this option. Hovered on it and a tooltip appeared saying sterilizing save and bam it worked!
Thank you so much as you helped me rule out all the other possibilities. :pray:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.