SmartFox can't find the room group...

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Ilithios
Posts: 15
Joined: 04 Apr 2012, 12:12

SmartFox can't find the room group...

Postby Ilithios » 12 Apr 2012, 12:09

Working with SmartFox Server so far has been 2 minutes of coding followed by hours of trying to find the solution to some absurd error. :-)

This time it simply won't acknowledge the existence of a group. I don't know much, but as I understand it, the room group is just a variable attached to a room, right?

So I have some rooms with that variable set, and I have those group names added to the zone Public Room Groups.

So why do I get an error saying "Group joe does not exist" when I do this:


Code: Select all

private function onLogin(evt:SFSEvent):void
{
    var subGroup:SubscribeRoomGroupRequest = new SubscribeRoomGroupRequest("joe");
    sfs.send(subGroup);
}

private function onRoomGroupSubscribeError(evt:SFSEvent):void
{
    lblErrors.text = evt.params.errorMessage;
}


Thanks for any help
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFox can't find the room group...

Postby Lapo » 13 Apr 2012, 10:52

This time it simply won't acknowledge the existence of a group. I don't know much, but as I understand it, the room group is just a variable attached to a room, right?

No it's not. It is a list of unique names provided to the server via the AdminTool > ZoneConfigurator

So why do I get an error saying "Group joe does not exist" when I do this:

Evidently because there is no such Group defined in the Public Room Groups in the Zone configuration.
Again AdminTool > ZoneConfigurator :)
http://docs2x.smartfoxserver.com/Gettin ... nfigurator
Lapo
--
gotoAndPlay()
...addicted to flash games
Ilithios
Posts: 15
Joined: 04 Apr 2012, 12:12

Re: SmartFox can't find the room group...

Postby Ilithios » 14 Apr 2012, 02:05

Thanks for the answer. Unfortunately, I already defined the groups in there. Sorry that wasn't clear in my post.

My Public Room Groups looks like this(obviously just test group names :) ): default,joe,fred

Anything else I need to do?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFox can't find the room group...

Postby Lapo » 14 Apr 2012, 08:48

There's no bug with the group subscriptions that we know of, in fact testing under version 2.0.1 works perfectly using your settings.
I don't know what you are doing wrong.
A couple of recommendations:

1- If you configured the group names but did not restart the server that's the problem
2- Group names are case sensitive, double check just in case...
3- Check the server side logs for errors

thanks
p.s. = I am assuming you are using a recent version, at least RC3 if not the latest
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 12 guests