Upgrading to 2.55 causes ArgumentException when saving array

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
chud575
Posts: 12
Joined: Sat Feb 15, 2014 7:02 pm

Upgrading to 2.55 causes ArgumentException when saving array

Post by chud575 »

Hi there,

So I upgraded from like 2.4x to 2.55, and now, my save function which always worked before, is throwing an error because it thinks that an array of booleans is a custom type.

The code looks like this: (JS)
writer.Write(gArrayOfBools);

Error:
ArgumentException: The thing you want to instantiate is null.
UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message)
UnityEngine.Object.Instantiate (UnityEngine.Object original)
ES2TypeManager.InitializeTypeList ()
ES2TypeManager.GetES2Type (System.Type type)
ES2Writer.Write[Boolean] (System.Boolean[] param)

Any help is appreciated! Thanks!
User avatar
Joel
Moodkie Staff
Posts: 4873
Joined: Wed Nov 07, 2012 10:32 pm

Re: Upgrading to 2.55 causes ArgumentException when saving a

Post by Joel »

Hi there,

It looks like the Asset Store importer hasn't removed previous files or has imported correctly. This can be fixed by deleting the following folders and then reinstalling from the Asset Store:
  • /Assets/Easy Save 2/
  • /Assets/Plugins/Easy Save 2/
All the best,
Joel
chud575
Posts: 12
Joined: Sat Feb 15, 2014 7:02 pm

Re: Upgrading to 2.55 causes ArgumentException when saving a

Post by chud575 »

thanks,

oddly took a lot of tries to get this thing imported. Had to restart unity, it didn't want to install files claiming they were already there (even though they weren't)
User avatar
Joel
Moodkie Staff
Posts: 4873
Joined: Wed Nov 07, 2012 10:32 pm

Re: Upgrading to 2.55 causes ArgumentException when saving a

Post by Joel »

Unfortunately the Asset Store importer can occasionally be a bit buggy. We have no control over this but if it happens again, send a bug report over to Unity and they'll hopefully be able to fix it.

All the best,
Joel
Locked