You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to do?
I am making a vehicle save system in my game.
What do you think should happen?
Using reflection, I get those fields of objects that need to be saved and add them to the "Behaviour" class. After this operation is done with all objects, I create the "VehicleSave" structure and serialize it using Ceras, after that I write it to disk.
What is actually happening?
In fact, when serializing, an error is thrown with the following text: "InvalidOperationException: Can't write schema (Type: VehicleSaveSystem+VehicleSave) that doesn't match the primary. This is a bug, please report it on GitHub!". I added the type indicating part, the type is taken from the schema, which could not be written. Up to some point, the error gave the Beam type ("InvalidOperationException: Can't write schema (Beam) that doesn't match the primary. This is a bug, please report it on GitHub! ").
How to reproduce the bug
Post your SerializerConfig
var config = new SerializerConfig();
config.VersionTolerance.Mode = VersionToleranceMode.Standard;
config.Advanced.AotMode = AotMode.None;
CerasUnityFormatters.ApplyToConfig(config);
Describe the bug
I am making a vehicle save system in my game.
Using reflection, I get those fields of objects that need to be saved and add them to the "Behaviour" class. After this operation is done with all objects, I create the "VehicleSave" structure and serialize it using Ceras, after that I write it to disk.
In fact, when serializing, an error is thrown with the following text: "
InvalidOperationException: Can't write schema (Type: VehicleSaveSystem+VehicleSave) that doesn't match the primary. This is a bug, please report it on GitHub!
". I added the type indicating part, the type is taken from the schema, which could not be written. Up to some point, the error gave the Beam type ("InvalidOperationException: Can't write schema (Beam) that doesn't match the primary. This is a bug, please report it on GitHub!
").How to reproduce the bug
SerializerConfig
VehicleSaveSystem.zip
Platform
net4.7+
Unity 2021.3.0f1
No
The text was updated successfully, but these errors were encountered: