playMaker

Author Topic: How do you get the Photon demo working with Playmaker?  (Read 2526 times)

Gevarre

  • Playmaker Newbie
  • *
  • Posts: 49
How do you get the Photon demo working with Playmaker?
« on: May 05, 2013, 03:40:53 PM »
Forgive me if this has been asked before, but I've searched the forums and found lots of related posts, but nothing current and a lot of it conflicting.

What I'm trying to do is get the "DemoWorker" scene working so I can see how the playmaker stuff is set up. The most recent forum posts I've found say that the DemoWorker files are now part of the photon install and it should just work. This is different from other posts that say there is a seperate playmaker version of the demo that has to be dowloaded from here and installed, but it is referencing older versions of Unity, Playmaker, and Photon.

So trusting the most recent posts, I do the following:
-Create a new, clean, empty Unity project using Unity 4.1.2f1.
-Import Playmaker 1.5.7 into the project.
-Import Photon Unity Networking (PUN) 1.20 into the project.

Immediately I get the following errors:
Assets/Photon Unity Networking/PlayMaker/Editor/PlayMakerPhotonWizard.cs(66,9): error CS0103: The name `WindowTitle' does not exist in the current context

Assets/Photon Unity Networking/PlayMaker/Editor/PlayMakerPhotonWizard.cs(68,30): error CS1502: The best overloaded method match for `UnityEditor.EditorWindow.GetWindow(System.Type, bool, string)' has some invalid arguments

Assets/Photon Unity Networking/PlayMaker/Editor/PlayMakerPhotonWizard.cs(68,30): error CS1503: Argument `#3' cannot convert `object' expression to type `string'

From here I don't know how to proceed. Am I missing something or did I do something wrong?

"DemoWorker_Scene" is indeed in the Photon Unity Networking folder, but when I load it and examine the components, I don't see any FSMs or anything related to Playmaker, which leads me to believe this is not actually the demo that uses Playmaker. And of course I can't even build the scene to try it out because the compiler errors prevent this.

Any help or guidance on this would be greatly appreciated. Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: How do you get the Photon demo working with Playmaker?
« Reply #1 on: May 07, 2013, 04:03:24 AM »
Hi,

 the most current system is that playmaker is now shipping photon as part of the official package. so you don't need to manually import photon as well. Playmaker HAD photon "built in" now. the catch is that I haven't yet ported playmaker photon actions with the latest photon version,

 I am currently implementing photon 1.20, and so soon importing the latest photon will not create any issue since playmaker will be up to date with the latest photon too.

 so, simply delete your photon Unity networking folder, and reimport playmaker, you will notice that photon will be there ( only not the latest, but that doesn't matter, you will still get all the functionnalities you need within playmaker).

bye,

 Jean.

Gevarre

  • Playmaker Newbie
  • *
  • Posts: 49
Re: How do you get the Photon demo working with Playmaker?
« Reply #2 on: May 08, 2013, 02:15:37 AM »
Thanks for the help. That worked. I'll be looking forward to the port  :)