Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: ReForge on July 01, 2020, 12:32:17 PM

Title: Default Constructor Not Found for System.Action
Post by: ReForge on July 01, 2020, 12:32:17 PM
Hello,
     I am getting this error every time i edit an FSM in my project. I believe this error began after upgrading from 2019.3.11f1 to the 2019.4.0f1 LTS version. I have tried completely reinstalling playmaker using the latest and then adding my custom actions back in by dropping them into the custom action folder I'm using. The error persists after doing this. Any help would be greatly appreciated.

------------------------------------------------------------------------------------

MissingMethodException: Default constructor not found for type System.Action`1[[HutongGames.PlayMaker.FsmState, PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null]]
System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Activator.CreateInstance (System.Type type) (at <437ba245d8404784b9fbab9b439ac908>:0)
HutongGames.PlayMaker.ActionData.SaveActionField (HutongGames.PlayMaker.Fsm fsm, System.Type fieldType, System.Object obj) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:3099)
HutongGames.PlayMaker.ActionData.SaveActionField (HutongGames.PlayMaker.Fsm fsm, System.Type fieldType, System.Object obj) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:3114)
HutongGames.PlayMaker.ActionData.SaveAction (HutongGames.PlayMaker.Fsm fsm, HutongGames.PlayMaker.FsmStateAction action) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:2677)
HutongGames.PlayMaker.ActionData.SaveActions (HutongGames.PlayMaker.FsmState state, HutongGames.PlayMaker.FsmStateAction[] actions) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:2648)
HutongGames.PlayMaker.ActionData.LoadActions (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/ActionData.cs:789)
HutongGames.PlayMaker.FsmState.LoadActions () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:123)
HutongGames.PlayMaker.Fsm.InitData () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1746)
PlayMakerFSM.OnAfterDeserialize () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:903)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Title: Re: Default Constructor Not Found for System.Action
Post by: jeanfabre on July 03, 2020, 02:05:42 AM
Hi,

 I would make a copy and work on the copy until you figure out what's wrong.

- try to reimport all assets
- update playmaker and re import playmaker
- delete the project library folder and open the project for unity to rebuild that library folder

do you have other errors apart from this one?

Bye,

 Jean