Extra Room Variables

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

Post Reply
stmulligan
Posts: 52
Joined: 05 May 2006, 04:06
Contact:

Extra Room Variables

Post by stmulligan »

The additional variables attached to a room are not sent on the standard room list. If you need one or more of these parameters you must walk the list and get the room's full detail.

It seems to me that a single parameter that the server considered part of the 'base' parameters and sent with the roomList response would be very useful.

A 'note' or 'memo' field for example would be little extra weight and would allow me to attach the games version number (a crucial parameter for populating my available games board). As it stands now, I must walk the game list to get this single variable.

For the time, I've tucked it away as maxSpectators since i dont need that parameter and its included in the base list of rooms. Is there a better way or would a single user defined field be a good idea? If you really needed two or three values, you could put them into this memo field as a delimited list.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

The additional variables attached to a room are not sent on the standard room list.
They are if you set to true the roomListVars attribute of the Zone containing the room.
Check this page for all the details -> http://www.smartfoxserver.com/docs/docP ... basics.htm
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply