Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jordantrainor on March 03, 2015, 07:52:52 PM

Title: error CS1061: Type `AboutWindow'[SOLVED]
Post by: jordantrainor on March 03, 2015, 07:52:52 PM
Hi, I'm new to Unity and have just installed Playmaker and Unity 5. I get the following error on the screen and was wondering if you could advise on how to resolve it.

Assets/PlayMaker/Editor/FsmEditorWindow.cs(427,37): error CS1061: Type `AboutWindow' does not contain a definition for `SafeClose' and no extension method `SafeClose' of type `AboutWindow' could be found (are you missing a using directive or an assembly reference?)

Thank you. Jordan.
Title: Re: error CS1061: Type `AboutWindow'
Post by: Alex Chouls on March 03, 2015, 10:26:54 PM
What version of PlayMaker do you have? In the PlayMaker menu do you see an Upgrade Guide before About?

Where did you download PlayMaker, from the Asset Store or the Hutong Games store?
Title: Re: error CS1061: Type `AboutWindow'
Post by: mgmhunt on March 04, 2015, 12:18:34 AM
Same error, fresh download of Unity 5, imported Playmaker 1.7.8 (Unity 5.0). Playmaker downloaded via fastspring.com
Title: Re: error CS1061: Type `AboutWindow'
Post by: jeanfabre on March 04, 2015, 02:34:16 AM
Hi,

 can you delete the PlayMaker folder and reimport? maybe there is an obsolete file.

 Also, do you have other errors aside this one? if the project has other errors, PlayMaker won't initialize properly, and it could be a possible source of false issues.

 Bye,

 Jean
Title: Re: error CS1061: Type `AboutWindow'
Post by: mgmhunt on March 04, 2015, 02:38:43 AM
Yep this is a fresh install/import/download from site. No other errors. (I've already imported a whole bunch of other assets BTW, but it all compiles until Playmaker is imported
Title: Re: error CS1061: Type `AboutWindow'
Post by: jeanfabre on March 04, 2015, 02:40:42 AM
Hi,

 On a fresh project too? if not try on a fresh project just to rule any interference.

 Bye,

 Jean
Title: Re: error CS1061: Type `AboutWindow'
Post by: mgmhunt on March 04, 2015, 02:43:09 AM
Fresh project works, must be some namespace conflict I guess.
Title: Re: error CS1061: Type `AboutWindow'
Post by: jeanfabre on March 04, 2015, 02:50:58 AM
Hi,

 just tested again, all is fine. Are you on windows or mac? let me test on windows ( allow me time to download and setup)

 Bye,

 Jean
Title: Re: error CS1061: Type `AboutWindow'
Post by: mgmhunt on March 04, 2015, 02:54:02 AM
In my case tt was a conflict with uScript.

I've added "HutongGames.PlayMakerEditor." to FsmEditorWindow.cs in two places to determine which class to use.

Line 73 -    [SerializeField] private HutongGames.PlayMakerEditor.AboutWindow aboutWindow;
183 - aboutWindow = GetWindow<HutongGames.PlayMakerEditor.AboutWindow>();

and it compiles.

uScript is using AboutWindow in it's DLL.
Title: Re: error CS1061: Type `AboutWindow'
Post by: jeanfabre on March 04, 2015, 03:06:06 AM
Hi,

 Good, I am glad you found the issue. I though the latest version of Playmaker started using namespace, maybe this class did not get that chance yet, I'll inform alex, cause this should be an easy fix.

 Bye,

 Jean
Title: Re: error CS1061: Type `AboutWindow'
Post by: Artisan on March 10, 2015, 06:01:47 PM
I am getting the same error too.

Assets/PlayMaker/Editor/FsmEditorWindow.cs(427,37): error CS1061: Type `AboutWindow' does not contain a definition for `SafeClose' and no extension method `SafeClose' of type `AboutWindow' could be found (are you missing a using directive or an assembly reference?)

This is a fresh install of Unity 5. And the only other extension I have install besides PlayMaker is uScript. Perhaps a conflict with uScript?


EDIT: Yep, confirmed.
I just did another test - Fresh project with no asset imported. Import PlayMaker, and everything seems fine. But as soon as uScript is imported - the error above appears.

Could you guys please fix this?
Title: Re: error CS1061: Type `AboutWindow'
Post by: Alex Chouls on March 10, 2015, 06:24:10 PM
Sorry about that, yes it's a conflict with uScript.

Please replace Assets\PlayMaker\Editor\FsmEditorWindow.cs with the attached file.

I'll upload an update with the fix asap.