playMaker

Author Topic: [SOLVED]Get custom properties of a room  (Read 9470 times)

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
[SOLVED]Get custom properties of a room
« on: August 11, 2012, 10:26:53 AM »
How can I get custom properties of a room?For example currently map,tips,...
I need to get some properties but I can´t enter on the room.Do you get the idea?Something like this.
Is there any way to get a tag or a layer of a object in a room?
Bye
« Last Edit: August 15, 2012, 06:11:27 PM by Sebastiao »

amaranth

  • Full Member
  • ***
  • Posts: 172
Re: Get custom properties of a room
« Reply #1 on: August 11, 2012, 11:33:20 PM »
I think this video might help:

Setting a property is confusing if you've never done it before. If you don't do it right, the only thing you'll see is the name field when you use it.

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #2 on: August 12, 2012, 10:07:59 AM »
I have already try it before, but that will I go put on target object?The room?How?
I don´t know...
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #3 on: August 13, 2012, 06:52:47 AM »
I think I have found a solution
Why when the person creates a server and defines the map on server,the map is on the server name?
Like "My Server my map".
So when a person is jointing to the server PlayMaker will question the string server name contains "my map" so loads my map,if not loads another.
Do you get the idea?
Please comment and feedback this a bit.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get custom properties of a room
« Reply #4 on: August 13, 2012, 07:51:22 AM »
Hi,

 I am unsure about what you exactly want to achieve.

 What network solution are you using, Photon or Unity?
what do you mean by map or tips? is it something that you expect to be built in?, there is not such thing as a map or tips for a room in multi player solutions are far as a I am aware.

bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #5 on: August 13, 2012, 08:18:27 AM »
Hi Jean
I´m using Photon for Unity
I mean you have a game with multiple maps in multiple servers so how can I know that I need to load the x map?I need to know it.For load the right map.So I find a solution for that.
Are you see?Which server have a map.
« Last Edit: August 13, 2012, 08:22:22 AM by Sebastiao »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get custom properties of a room
« Reply #6 on: August 13, 2012, 08:21:23 AM »
hi,

 I am really at lost with what you mean by map... :) do you mean a level?
 you should not run multiple servers for one game, you should have only one server.

bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #7 on: August 13, 2012, 08:24:06 AM »
Sorry but what I mean by a server is a room.
Which room have a map.

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #8 on: August 13, 2012, 08:26:47 AM »
In my game  with Photon
I have multiple rooms
Which room is running a map.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get custom properties of a room
« Reply #9 on: August 13, 2012, 10:53:46 AM »
Hi,

 ok, it's something that is not really the job of the Photon. You will need to maintain a list or a hashtable of the relation between scenes and map, but really in that case, I would suggest that you call the scene by the name of the map, then it's easier, simply load the scene named by the map you want to load.


If you actually mean that for a given room, there can be different scenes, then I think you will need a taylored system that extends beyond what's currently available in the photon bridge we've built so far. I know for example that a room can host custom properties, that could be your way out for this feature you want to implement.

 So in short, if I give you the ability to store custom information for a given room, would that help in your case?

bye,

 JEan

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #10 on: August 13, 2012, 11:17:31 AM »
Jean
I found the solution already,that thing with the name of the map in the server name.It works for me.Or you think that it can have bugs?
About you build the ability of store custom information about the room?I don´t know, I like always the new features but if you made it you can´t have much time for your things.
Bye

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get custom properties of a room
« Reply #11 on: August 14, 2012, 02:52:17 AM »
Hi,

 I'll see what I can can do. as for your current solution, I can't say if that's a good one or not, since I would need to see it in action.

bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get custom properties of a room
« Reply #12 on: August 14, 2012, 08:54:31 PM »
I think that it´s a good solution.
BTW will you go to UNITE12?
Bye

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get custom properties of a room
« Reply #13 on: August 15, 2012, 03:54:56 AM »
Hi,

 yes, I will attend Unite :) pretty excited with this actually!

bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: [SOLVED]Get custom properties of a room
« Reply #14 on: August 15, 2012, 06:12:15 PM »
Me too