playMaker

Author Topic: Trouble Creating Room in Photon - Client not on Master Server  (Read 5583 times)

Griffen25

  • Playmaker Newbie
  • *
  • Posts: 3
Trouble Creating Room in Photon - Client not on Master Server
« on: December 19, 2015, 02:08:04 AM »
Hi all,

I've been skulking around the forums for a few weeks now and this is my first post. I've been really inspired by PlayMaker and want to use it developing a multiplayer FPS; I intend to use PlayMaker and Photon but I'm finding it hard to to create a room and join the room via photon.
My first port of call was the Playmaker Samples http://www.hutonggames.com/samples.php, which helped familarise what the end result might look like. Next I tried following the Photon Demoworker Sample: https://hutonggames.fogbugz.com/?W927 - But I found it too difficult as I'm new to Playmaker and Photon. Then I tried Easy PUN Setup https://www.assetstore.unity3d.com/en/#!/content/18977 on the asset store which is essentially a template but I was also having troubles using that to create/join a room.

I keep getting the following error whether I'm working from the DemoWorker Sample or Easy PUN Setup:
Code: [Select]
CreateRoom failed. Client is not on Master Server or not yet ready to call operations. Wait for callback: OnJoinedLobby or OnConnectedToMaster.
UnityEngine.Debug:LogError(Object)

I'm not sure if its something to do with my settings, I've triple checked my Photon settings (Screenshot: http://imgur.com/FoiT7Mm) but I've hit a wall on my project.

If anyone has a suggestion, I would be most appreciative as I'm completely stuck at the moment. If you require any further information, please don't hesitate to ask and I will endeavor to assist.

Ian

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trouble Creating Room in Photon - Client not on Master Server
« Reply #1 on: December 19, 2015, 04:48:09 AM »
Hi,

Check this: http://hutonggames.com/playmakerforum/index.php?topic=9947.0

if that's not the problem:

 you can not join a room if you are already in a room, or if you have not yet joined a lobby. it also depends on your setup, if you have auto join lobby turned off or on.

 Bye,

 Jean

Griffen25

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Trouble Creating Room in Photon - Client not on Master Server
« Reply #2 on: December 19, 2015, 06:23:00 AM »
Hi Jean,

Thank you for your response!

I checked out the thread you linked and I tried altering the Host from Photon Cloud to Best Region, just one region and turning on/off auto-join lobby - unfortunately this didn't resolve the problem.

I saw what you posted in the other thread:
Quote
yeah, I asked photon Team, and it's likely because you need to listen to the connection event before joining a room. you basically try to join a room when the connection is not yet established.

But I'm not sure how to 'listen to the connection event before joining a room'. Would it help if I exported and shared my FSM's with you?

I've attached another screenshot of the FSM that's displaying the error: http://imgur.com/xCaE6LC

Thank you for all your help so far!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trouble Creating Room in Photon - Client not on Master Server
« Reply #3 on: December 21, 2015, 01:16:47 AM »
Hi,

There is a global event "PHOTON / JOINED LOBBY" you should be listening to before joining a room or creating a room, make sure you catch this first.

https://hutonggames.fogbugz.com/default.asp?W929

 Bye,

 Jean

Griffen25

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Trouble Creating Room in Photon - Client not on Master Server
« Reply #4 on: December 24, 2015, 01:47:06 AM »
Hi Jean,

These are the debug errors we are getting in unity. My friend and I are trying to understand why we are getting the -1 error code when trying to Join the Lobby (229) or Create a room (227).
(see attached screenshot)

-1 appears to be an internal server error returned by the photon server, do you have any ideas what I might have missed?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trouble Creating Room in Photon - Client not on Master Server
« Reply #5 on: February 14, 2017, 02:08:38 AM »
Hi,
 
Is this still happening?

 Bye,

 Jean