playMaker

Author Topic: Photon - Play with friends[SOLVED]  (Read 24349 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15591
  • Official Playmaker Support
Re: Photon - Play with friends[SOLVED]
« Reply #30 on: August 17, 2016, 06:55:11 AM »
Hi,

 It's done already :) waiting for the next iteration of Photon to ship it, which will happen this week.

 Bye,

 Jean

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Photon - Play with friends[SOLVED]
« Reply #31 on: August 17, 2016, 09:30:25 AM »
Awesome! 

I managed to use code from Get Photon View ID and add that line to it, and it seems to work if anyone needs a simple version in the meantime.

Thanks, Jean!  You and the crew make games happen.

EDIT: Removed failed attempt at Photon script.

« Last Edit: August 17, 2016, 03:18:31 PM by Sid »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15591
  • Official Playmaker Support
Re: Photon - Play with friends[SOLVED]
« Reply #32 on: August 17, 2016, 09:53:01 AM »
Hi,

 Carefull, you need to also spread this across the network, that's not enough to request, you need to apply this back on all instances using TransferOwnership()

Check out the PhotonViewRequestOwnerShip and PlayMakerPhotonProxy method OnOwnershipRequest()

Bye,

 Jean


Sid

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Photon - Play with friends[SOLVED]
« Reply #33 on: August 17, 2016, 03:17:42 PM »
Thanks again, Jean.

I humbly redact my submission.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15591
  • Official Playmaker Support
Re: Photon - Play with friends[SOLVED]
« Reply #34 on: August 18, 2016, 05:28:43 AM »
Hi,

 Actually, your action was right, you just needed the extra script ( in photon proxy) to listen to transfer changes.

 I am working on a demo so that you can testify ownership changes, this will be easier to understand how everything works.

 Bye,

 Jean

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Photon - Play with friends[SOLVED]
« Reply #35 on: August 18, 2016, 12:00:44 PM »
Very much looking forward to the demo.

With our scripts updated to the two you posted, whenever a client enters a room it does not recognize the owner of the Photon View.  It just sees them all as Scene objects, regardless of them being taken over previously.

Are we missing some step?

Thanks, man!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15591
  • Official Playmaker Support
Re: Photon - Play with friends[SOLVED]
« Reply #36 on: September 12, 2016, 07:51:20 AM »
Hi,

 FindFriends is now available. Get the latest on the Ecosystem.

 Let me know how it goes and if you have more questions :)

 Bye,

 Jean

ermak

  • Junior Playmaker
  • **
  • Posts: 60
    • AL Games
Re: Photon - Play with friends[SOLVED]
« Reply #37 on: September 12, 2016, 10:48:39 AM »
Thanks for this!
I am happy to see you updating wiki page too. Because you know, sometimes ecosystem not working.

Oh.. yeees "RequestOwnerShip" :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15591
  • Official Playmaker Support
Re: Photon - Play with friends[SOLVED]
« Reply #38 on: September 13, 2016, 02:04:14 AM »
Hi,

 when ecosystem is not working, everything is available either on github or on snipt:

https://github.com/jeanfabre?tab=repositories

https://snipt.net/search/?q=playmaker

Bye,

 Jean