playMaker

Author Topic: Oculus Rift & Photon Worker Demo Problem  (Read 1981 times)

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
Oculus Rift & Photon Worker Demo Problem
« on: May 21, 2015, 05:32:36 AM »
Hi all, hopefully someone can help me out with this issue.

I've replaced the worker prefab in the Photon demo with an Oculus OVR Prefab and copied over the fsms from the worker.
Everything seems to work fine on one pc, the OVR instantiates and works as intended, but when a second user joins the room the users control each others character. i.e. User A controls user B's character and vice versa.

If someone would be so kind as to take a look for me or give me a push in the right direction that would be awesome. I've uploaded the project to drop box, the scene is in:
Assets/Photon Unity Networking/Playmaker/Demo
The Oculus prefab is in the Resources folder.

I've installed playmakerPreview and removed my Photon ID.

https://www.dropbox.com/s/8hn924qzqunhsf6/UnityPhotonEditDisabled.zip?dl=0

Thanks,
Matt

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Oculus Rift & Photon Worker Demo Problem
« Reply #1 on: May 21, 2015, 06:32:08 AM »
Hi,

 Check this. I already created a system for this:

http://hutonggames.com/playmakerforum/index.php?topic=6784.msg33050#msg33050

 Bye,

 Jean

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
Re: Oculus Rift & Photon Worker Demo Problem
« Reply #2 on: May 21, 2015, 07:10:15 AM »
Hi, yeah I remember now that was me asking about that as well lol.
I've just imported it and it throws up this error:

Quote
Assets/Photon/Scripts/Game/Player/OVRPlayerNetwork.cs(42,63): error CS1061: Type `int' does not contain a definition for `ID' and no extension method `ID' of type `int' could be found (are you missing a using directive or an assembly reference?)

Do you know what could be causing that?

Thanks,
Matt

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Oculus Rift & Photon Worker Demo Problem
« Reply #3 on: May 21, 2015, 07:38:41 AM »
Hi,

Yeah, some minor adjustements to account for the various api updates from photon.

 Can you download it again from the source and test? thanks

Bye,

 Jean