playMaker

Author Topic: Probuilder support[SOLVED]  (Read 7514 times)

kitheif

  • Playmaker Newbie
  • *
  • Posts: 5
    • Tumblr
Probuilder support[SOLVED]
« on: June 11, 2014, 02:00:42 AM »
Ever since the new update for Playmaker I have not been able to use Playmaker with Probuilder.  :'(

Quote
Assets/PlayMaker/Editor/FsmEditorWindow.cs(72,30): error CS0246: The type or namespace name `AboutWindow' could not be found. Are you missing a using directive or an assembly reference?
« Last Edit: June 12, 2014, 05:59:48 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Probuilder support gone
« Reply #1 on: June 11, 2014, 04:38:16 AM »
Hi,

 Can you fill out a bug report in "PlayMaker/tools/Submit But Report" so that we can keep track of this. Thanks.

 Bye,

 Jean

kitheif

  • Playmaker Newbie
  • *
  • Posts: 5
    • Tumblr
Re: Probuilder support
« Reply #2 on: June 11, 2014, 02:23:45 PM »
After talking to the guys over at Probuilder, it looks like they've fixed the issue and the latest versions do not give this error anymore.

DK

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Probuilder support[SOLVED]
« Reply #3 on: June 30, 2014, 09:42:15 PM »
I just got this error, latest install of probuilder installed onto latest version of playmaker.  I just emailed them.

IncomeCountry

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Probuilder support[SOLVED]
« Reply #4 on: July 13, 2014, 08:09:30 AM »
I just got this error with latest Playmaker & latest ProBuilder, ProGrids.
(Playmaker 1.7.7f6, ProBuilder 2.2.5f5 v2341, ProGrids 2.1.3 v2464)
and solved this problem with renaming(refactoring) some classnames on Playmaker itself.

At first, I examined all sources and found it's not caused by them.

All of their ProCore window sources is already started with 'pc_'...
and when I caught by this error, the corresponding Playmaker source -
Playmaker/Editor/AboutWindow.cs was strangely disappeared.

- - - - -

Well then,
First I made a clean project and installed Playmaker only.

Then I just temporarily renamed some 'too familiar' classnames
that cause conflict now, like :
(Actually, It's a refactoring in MonoDevelop.
 It renames not only the classname itself, but all of references and class filenames.)

AboutWindow -> plmk_AboutWindow
ContextToolWindow -> plmk_ContextToolWindow
ReportWindow -> plmk_ReportWindow
(I think this prefix is better with 'PlayMaker...' or something,
 however I'll leave it to Hutong.)

Finally, I imported all the ProCore assets i need. (ProBuilder, ProGrid, etc.)

It works well, and I'm using all of that with no errors.

Hope this helps.

ps:
Dear Hutong,
Please refactor all that 'general, familiar classnames' at next release
to avoid future conflicts...
Thanks in advance!  ;-)
« Last Edit: July 13, 2014, 08:48:38 AM by IncomeCountry »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Probuilder support[SOLVED]
« Reply #5 on: July 13, 2014, 01:01:22 PM »
Good catch! Most classes in Playmaker are in namespaces, but Unity 3.5 didn't support namespaces for EditorWindows. Most of the EditorWindows are named better, but indeed AboutWindow was a poor name choice!

Anyway, the next version of Playmaker will drop support for Unity 3.5, so we can put these EditorWindows in namespaces. For example:

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2014. All rights reserved.

/* NOTE: Wrapper no longer needed in Unity 4.x
 * BUT: changing it breaks saved layouts
 * SO: wrap in namespace instead (supported in 4.x)
 */

// EditorWindow classes can't be called from a dll in Unity 3.5
// so create a thin wrapper class as a workaround

namespace HutongGames.PlayMakerEditor
{
    internal class AboutWindow : AboutPlaymaker
    {
    }
}

These changes should work now if you're using Unity 4.x. I'll try to upload a patch so you don't have to hand edit these files...

Martin-Vaupell

  • Junior Playmaker
  • **
  • Posts: 70
  • Creating CarbonDiOxide
    • Evisystems
Re: Probuilder support[SOLVED]
« Reply #6 on: July 18, 2014, 04:37:38 AM »
So what to do with this ?

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2014. All rights reserved.

/* NOTE: Wrapper no longer needed in Unity 4.x
 * BUT: changing it breaks saved layouts
 * SO: wrap in namespace instead (supported in 4.x)
 */

// EditorWindow classes can't be called from a dll in Unity 3.5
// so create a thin wrapper class as a workaround

namespace HutongGames.PlayMakerEditor
{
    internal class AboutWindow : AboutPlaymaker
    {
    }
}

also having this issue, so in order for my playMaker to work, i just run a
older version, then everything is fine. Only have this problem with the new version.
« Last Edit: July 18, 2014, 07:48:28 AM by Martin-Vaupell »

Spataar

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Probuilder support[SOLVED]
« Reply #7 on: September 07, 2014, 04:39:44 AM »
Hi, struggling with this as well.

Where can we get mentioned patch? I'm updated on Unity Asset store to 1.7.7.f6.


gecko

  • Junior Playmaker
  • **
  • Posts: 52
Re: Probuilder support[SOLVED]
« Reply #8 on: September 07, 2014, 02:50:30 PM »
Same here -- I've got the latest versions of Playmaker and Probuilder, and am getting that error:

Assets/PlayMaker/Editor/FsmEditorWindow.cs(72,30): error CS0246: The type or namespace name `AboutWindow' could not be found. Are you missing a using directive or an assembly reference?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Probuilder support[SOLVED]
« Reply #9 on: September 18, 2014, 09:26:16 AM »
Hi,

 The Version Alex is mentioning is still in beta, so are you sure you are using the latest version of pro builder, if you have ( please double check :) ) then I'll get in touch with pro builder guys to test it locally and explain how to fix it.



Bye,

 Jean

gecko

  • Junior Playmaker
  • **
  • Posts: 52
Re: Probuilder support[SOLVED]
« Reply #10 on: September 22, 2014, 12:39:56 PM »
yes, I downloaded the latest version before trying it with Playmaker. So any tips would be much appreciated.