playMaker

Author Topic: Unity Serializer Can't Load playMakerFSM  (Read 2772 times)

norcrel

  • Playmaker Newbie
  • *
  • Posts: 1
Unity Serializer Can't Load playMakerFSM
« on: February 27, 2014, 05:23:48 PM »
it appears I can save a playMakerFSM just fine but when I try to load a game with an FSM in it I get this error:

Quote
Serialization error: Serialization.UnitySerializer+MissingConstructorException: Could not construct an object of type 'System.MonoType', it must be creatable in this scope and have a default parameterless constructor or you should handle the CreateType event on UnitySerializer to construct the object

I dove into both Unity Serializer and playMaker code and found it was failing when trying to deserialize ObjectType in FsmObject.

I'm not quite sure where to go from here. Has anyone had this problem?

Here's what I'm using
Unity4.3.4f1
Unity Serializer 2.51
PlayMakerFSM1.7.6.f4

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Unity Serializer Can't Load playMakerFSM
« Reply #1 on: March 04, 2014, 08:02:46 AM »
Hi,

 what is this object in question you are storing in an FsmObject?

bye,

 Jean

Khoa1994

  • Playmaker Newbie
  • *
  • Posts: 33
Re: Unity Serializer Can't Load playMakerFSM
« Reply #2 on: July 12, 2014, 12:00:47 AM »
I experience the same errors too. Does anyone know how to fix this?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Unity Serializer Can't Load playMakerFSM
« Reply #3 on: July 12, 2014, 12:17:48 PM »
Does it work with a simple project/scene? If it's failing on ObjectType in FsmObject it might be a type that Unity Serializer doesn't know how to serialize. Double check that it's the object you mean to reference (e.g., check that you haven't accidentally referenced a monoscript in the project instead of the component on a game object).