playMaker

Author Topic: FsmComponentInspector.cs Bug?  (Read 3146 times)

vsouders

  • Playmaker Newbie
  • *
  • Posts: 2
FsmComponentInspector.cs Bug?
« on: September 11, 2011, 02:26:56 PM »
When I import the latest version of Playmaker into a new project, sync with Monodevelop and try to compile, I get the following error:

c:\Users\FireWater\Documents\FSMTest\Assets\PlayMaker\Editor\FsmComponentInspector.cs(18,18): Error CS1501: No overload for method 'GetFsmVariableList' takes '1' arguments (CS1501) (Assembly-CSharp-Editor)

Thoughts?

-Vance

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: FsmComponentInspector.cs Bug?
« Reply #1 on: September 12, 2011, 11:00:58 AM »
Try MainMenu -> Assets ->Reimport All

Also double check in MainMenu -> PlayMaker -> About PlayMaker...  that the version is 1.2.0

When submitting 1.2 I selected the new Editor Extensions \ Visual Scripting category, which seems to have created a duplicate download directory for PlayMaker, so it shows up twice when making a new project. This might be causing some problems... looking into it..

jfrech

  • Playmaker Newbie
  • *
  • Posts: 1
Re: FsmComponentInspector.cs Bug?
« Reply #2 on: November 21, 2011, 03:34:53 PM »
I also got this error. I am running PlayMaker 1.2.1. I did, however, manage to track down the cause.

In FsmComponentInspector.cs, the call to FsmVariable.GetFsmVariableList was only passing in one parameter. I fixed this by changing line 224 of FsmComponentInspector.cs from:

Code: [Select]
fsmVariables = FsmVariable.GetFsmVariableList(fsmComponent.Fsm.Variables);
to:

Code: [Select]
fsmVariables = FsmVariable.GetFsmVariableList(fsmComponent.Fsm.Variables, fsmComponent.Fsm.Owner);