sinbad / SPUD

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

error on compilation struct initializing in testsaveobject.h #49

Closed phill266 closed 1 year ago

phill266 commented 1 year ago

Hi, I get the following error when compiling: LogClass: Error: IntProperty FTestAllTypesStruct::IntVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: ByteProperty FTestAllTypesStruct::UInt8Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: UInt16Property FTestAllTypesStruct::UInt16Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: UInt32Property FTestAllTypesStruct::UInt32Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: UInt64Property FTestAllTypesStruct::UInt64Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: Int8Property FTestAllTypesStruct::Int8Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: Int16Property FTestAllTypesStruct::Int16Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: IntProperty FTestAllTypesStruct::Int32Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: Int64Property FTestAllTypesStruct::Int64Val is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: FloatProperty FTestAllTypesStruct::FloatVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: DoubleProperty FTestAllTypesStruct::DoubleVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: EnumProperty FTestAllTypesStruct::EnumVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: StructProperty FTestAllTypesStruct::VectorVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: StructProperty FTestAllTypesStruct::RotatorVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h LogClass: Error: FloatProperty FTestSmallStruct::FloatVal is not initialized properly. Module:SPUDTest File:Private/TestSaveObject.h

sinbad commented 1 year ago

More details please: platform, compiler version, version of UE etc. I compile on Windows with UE 5.0 and 5.1 usually and haven't seen this problem.

sinbad commented 1 year ago

Well, I can't reproduce it but I suspect I know what it's complaining about, try it with the latest version: https://github.com/sinbad/SPUD/commit/5e601b796c3db05252142fdb7825099f8ac04344

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. -Brian


From: Steve Streeting @.> Sent: Monday, February 20, 2023 8:08 AM To: sinbad/SPUD @.> Cc: phill266 @.>; Author @.> Subject: Re: [sinbad/SPUD] error on compilation struct initializing in testsaveobject.h (Issue #49)

Well, I can't reproduce it but I suspect I know what it's complaining about, try it with the latest version: 5e601b7https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsinbad%2FSPUD%2Fcommit%2F5e601b796c3db05252142fdb7825099f8ac04344&data=05%7C01%7C%7C2311c2ff1ae4470b717d08db13439c39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638124953321068314%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cF%2BNhqa0xWp3oTP%2F98zX5CTM8%2FycN69eAo%2FUTSR%2B3wo%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsinbad%2FSPUD%2Fissues%2F49%23issuecomment-1437001801&data=05%7C01%7C%7C2311c2ff1ae4470b717d08db13439c39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638124953321068314%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oFh2aw75auc7qye1HhsHPQNYurfTNMGxAK16VWVwFyw%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAWDEB34RNRZY5M6AXEP43JDWYNUGFANCNFSM6AAAAAAVBHQIJE&data=05%7C01%7C%7C2311c2ff1ae4470b717d08db13439c39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638124953321068314%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HXHeXy7RipIssnhnEw3TTHhUbxzbFS71b9X2N982Rkg%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>