Playmaker ArgumentException

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
Lamprabbit
Posts: 2
Joined: Tue Dec 16, 2014 3:42 am

Playmaker ArgumentException

Post by Lamprabbit »

Hi,

Just updated to the latest Easy2Save (2.55) and get the following error using playmaker and array maker. I get the error when using the action 'Array list easy save'

ArgumentException: The thing you want to instantiate is null.
UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/UnityEngineObject.cs:104)
UnityEngine.Object.Instantiate (UnityEngine.Object original) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/UnityEngineObject.cs:90)
ES2TypeManager.InitializeTypeList ()
ES2TypeManager.GetES2Type (System.Type type)
ES2Reader.ReadList[String] (System.String tag)
ES2.LoadList[String] (System.String identifier)
HutongGames.PlayMaker.Actions.ArrayListEasyLoad.LoadArrayList () (at Assets/PlayMaker ArrayMaker/Addons/ThirdParty/EasySave2/Actions/ArrayListEasyLoad.cs:84)
HutongGames.PlayMaker.Actions.ArrayListEasyLoad.OnEnter () (at Assets/PlayMaker ArrayMaker/Addons/ThirdParty/EasySave2/Actions/ArrayListEasyLoad.cs:61)
HutongGames.PlayMaker.FsmState.ActivateActions (Int32 startIndex)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.UpdateStateChanges ()
HutongGames.PlayMaker.Fsm.Start ()
PlayMakerFSM.Start ()
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Playmaker ArgumentException

Post by Joel »

Hi there,

If you are only getting this error with the Arraymaker actions, you'll need to contact the developer of Arraymaker as the actions are built by them, not by us. I believe it's Jean Fabre who makes the Arraymaker actions, and you should be able to get in contact with him via the Playmaker forums.

However, you might also want to try deleting the Plugins/Easy Save 2/ folder as it could be an Asset Store importer error which has left old files behind.

All the best,
Joel
Lamprabbit
Posts: 2
Joined: Tue Dec 16, 2014 3:42 am

Re: Playmaker ArgumentException

Post by Lamprabbit »

Thx for the reply, I had tried removing the Plugins/Easy Save 2/ folder but still get the error. Have posted on the playmaker forum.
mweyna
Posts: 4
Joined: Thu Feb 06, 2014 3:39 pm

Re: Playmaker ArgumentException

Post by mweyna »

Any updates on the fixed for this? I've had to strip out any playmaker actions in the time being to prevent errors, but now I can't save.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Playmaker ArgumentException

Post by Joel »

Hi mweyna,

As this bug is unrelated to our actions and is instead related to ArrayMaker's actions, so you'll need to check on the Playmaker forum for a fix as we're unable to provide fixes for actions which weren't created by ourselves.

All the best,
Joel
Jason
Posts: 7
Joined: Wed Apr 16, 2014 6:17 am

Re: Playmaker ArgumentException

Post by Jason »

Joel,

I'm also getting this error, though I do not use Playmaker.

It's occurring on this code:

Code: Select all

// Loads the world list data from file.
	private void LoadData()
	{
		if (!ES2.Exists("WorldData"))
			return;

		worlds = ES2.LoadList<string>("WorldData");
	}
And I get this message:

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)
ES2Reader.ReadList[String] (System.String tag)
ES2.LoadList[String] (System.String identifier)
WorldManager.LoadData () (at Assets/Code/WorldManager.cs:126)
WorldManager.Awake () (at Assets/Code/WorldManager.cs:36)
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Playmaker ArgumentException

Post by Joel »

Have you updated Easy Save recently? It looks like the Asset Store might have imported Easy Save incorrectly.

Try deleting the Assets/Easy Save 2/ and Assets/Plugins/Easy Save 2/ folders and reinstall from the Asset Store. This should fix your problem.

All the best,
Joel
Locked