playMaker

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

norcrel

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Unity Serializer Can't Load playMakerFSM
« on: February 27, 2014, 03: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: 14198
  • Official Playmaker Support
    • View Profile
Re: Unity Serializer Can't Load playMakerFSM
« Reply #1 on: March 04, 2014, 06:02:46 AM »
Hi,

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

bye,

 Jean

Khoa1994

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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3615
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Unity Serializer Can't Load playMakerFSM
« Reply #3 on: July 12, 2014, 09:17:48 AM »
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).