playMaker

Author Topic: Photon - Room Custom Property in lobby  (Read 19043 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon - Room Custom Property in lobby
« Reply #15 on: April 04, 2014, 08:19:40 AM »
Hi,

 ok, actually, the demo is already featuring a working sample on this.

1: check "Menu:Create Room" Fsm

 the "Photon network Create Room Advanced" is set to show the "free" room property in the lobby.

 so you define the "free" custom property, and then also list it in the Lobby Custom property" for it to be visible in lobby.

2: check "Menu: room list iteration"

the "iterate each room" does check for the "free" cusotm property, and then in the "do something with the room properties" state, you do whatever you want with it.

and that's about it really.

 Does that make sense? basically->

1: create room properties
2: make them available in the lobby
3: iterate trhough rooms when a room list is updated to get the room properties ( explicitly exposed to the lobby)


bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon - Room Custom Property in lobby
« Reply #16 on: April 08, 2014, 07:19:01 AM »
I can set the room custom property and ect.
I dont know, how can I create the room list with custom propertyes,
I dont know how to use the "PhotonNetworkGetNextRoomProperties" action

so my problem is that I cant find example or good help for how to use this action.

the room list...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon - Room Custom Property in lobby
« Reply #17 on: April 08, 2014, 07:42:37 AM »
Hi,

 do you have this sample?

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

In there ( as my previous post explains), you'll find a working sample of how to set a custom room property, define as as visible on the lobby and how other instances can read that lobby visible room property.

Have you checked the fsm I mention? what's in there that you don't understand or can't reproduce in your own project?

If you can set room custom property, then your room list will have these properties., you don't "Create" a room list, it's photon that give it to you as you create more and more rooms. Does that make sense?

"PhotonNetworkGetNextRoomProperties" is used in ""Menu: room list iteration" Fsm, have you checked it?


bye,

 Jean
« Last Edit: April 10, 2014, 04:32:50 AM by jeanfabre »

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon - Room Custom Property in lobby
« Reply #18 on: April 10, 2014, 03:04:32 AM »
Hi,

 do you have this sample?

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

In there ( as my previous post explains), you'll find a working sample of how to set a custom room property, define as as visible on the lobby and how other instances can read that lobby visible room property.

Have you checked the fsm I mention? what's in there that you don't understand or can't reproduce in your own project?

If you can set room custom property, then your room list will have these properties., you don't "Create" a room list, it's photon that give it to you as you create more and more rooms. Does that make sense?

"PhotonNetworkGetNextRoomProperties" is used in ""Menu: room list iteration" Fsm, have you checked it?


bye,

 Jean

You linked this: https://hutonggames.fogbugz.com/default.asp?W928?

but this is the basic wiki...
I think you want to link a sample

If you want to link the demo worker, at latest time, when I checked the demo used the simple room list.

I think If I can see a normal example for how to use the *** "PhotonNetworkGetNextRoomProperties" action, maybe can solve this.

And I think, we not talk about this  over 1 month or more, if you or anybody can put one image example here or on the action wiki page ... (cuse I think the wiki is for help... not just write the same info, what everybody can read and think.)
But ok waste more time... sorry but I cant figure out normal this in english language..

https://hutonggames.fogbugz.com/?W1115
This site does not contain enough information for use ,just shows the already visible inscriptions, but HOW to use? this is not specified in
« Last Edit: April 10, 2014, 03:22:14 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon - Room Custom Property in lobby
« Reply #19 on: April 10, 2014, 04:34:30 AM »
:)

 I edited the link, basically, having put a "?" at the end corrupted the whole link...

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

this one will work!, in there you^ll find the link to download the sample for this. and then you can finally follow the instruction I gave few posts earlier on this thread.

bye,

 Jean
 

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Photon - Room Custom Property in lobby
« Reply #20 on: April 14, 2014, 05:21:21 PM »
:)

 I edited the link, basically, having put a "?" at the end corrupted the whole link...

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

this one will work!, in there you^ll find the link to download the sample for this. and then you can finally follow the instruction I gave few posts earlier on this thread.

bye,

 Jean

I found it, Thank you

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon - Room Custom Property in lobby
« Reply #21 on: April 15, 2014, 10:08:34 AM »
Hi,
 

Great. Keep us updated on your progress.

bye,

 Jean