So i keep getting this error message when packaging a build of my game…
“PackagingResults: Error: [AssetLog] G:\City Of The Undead\Dev Folder\ZombieSurvival2\Content\Gas_StationV2\Materials\Instances\MI_DoorFrame_1.uasset: Serialization error - FName are serialized as an index recorded in the package header, the current deserialized index has value -1, outside of the valid range [0, 70).”
Any one have any ideas how i fix this? I get the same message twice before “PackagingResults: Error: Unknown Cook Failure” then it appears twice more.
For me, this was happening when I was calling GetName() in my C++ code, where the object had a declared variable that was named Name, which was prevalent in a lot of my PrimaryDataAssets.
The solution for me was to no longer useName as a variable name, opting to instead use something more specific and less generic, like ItemName or WeaponName.
My theory is that the engine’s code auto-generation may take variables like Name and create a GetName() counterpart, perhaps causing ambiguity between this auto-generated function and the existing C++ one that returns the object name. I dunno.