Recently we made a change to one of our saved data structures: a List<Loot> was changed to Dictionary<string, int>. Loot was a structure with several values half of them were not actually useful in the save... Anyway, this change yielded two issues:
- It raised an exception while loading that was very confusing:
Code: Select all
System.FormatException: Expected '[' or "null", found '{'.
- I didn't find any way of handling data type changes in ES3. What we did was rename the value to another name so that the loading doesn't fail but that also means that all the data ends up empty in that value... It would be nice to have something equivalent to ISerialization's special constructor that takes in a SerializationInfo and a StreamingContext so that we can manually read data and support old data formats. Is there any way of doing so right now that I may have missed?