sinbad / SPUD

Steve's Persistent Unreal Data library
MIT License
300 stars 44 forks source link

Float variable not initialized, but maybe I'm doing something wrong #50

Closed phill266 closed 1 year ago

phill266 commented 1 year ago

So, I did get the new version and put it in a folder called plugins in my project, as if I put it in the UE5.1 plugins folder or the marketplace folder within the plugins folder there it tells me the spud version is different from the UE one and I have to compile through IDE, etc. If I put it in folder labeled plugins in my project, it opens and compiles all the way until I get this error, only regarding float variables it seems: LogClass: Error: FloatProperty FTestSmallStruct::FloatVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h. I also can't seem to get my game instance which stores variables between levels to store with spud, but if I put the variables into the character and actor blueprints and reference them that way they do seem to store and save/load properly if I add the spud object interface. Your systems are great, by the way. Thanks.

sinbad commented 1 year ago

OK, same problem as #49 just with a different struct - again doesn't happen for me, probably you're using a newer version of the Visual C++ compiler than me that's more strict. Latest commit should fix that one too.

Definitely put the SPUD dir in your own project plugins folder.

sinbad commented 1 year ago

As for the Game Instance, please see https://github.com/sinbad/SPUD#explicitly-persisting-global-objects

phill266 commented 1 year ago

I did indeed just update VS. Using your updated version compiles great, thanks.