Search found 90 matches

by gg
20 Feb 2013, 23:24
Forum: SmartFoxBits for SFS 2X
Topic: please help a beginner with bits
Replies: 10
Views: 21331

please help a beginner with bits

Hi, I am new to Bits. Could I get code examples on how to do the following? If you point me to the API, please give me a direct link to where the code example is as I am really bad with finding it myself. 1) If the room already has 2 players in it, and a 3rd player clicks on it, is there a way to di...
by gg
20 Feb 2013, 23:06
Forum: SFS2X Questions
Topic: How to create a new room in a popup
Replies: 6
Views: 7324

Re: How to create a new room in a popup

Just to clarify, I'm talking about popups within the same browser window (a popup inside the Flash application for example), not a separate browser window (which would be much more difficult to achieve, and rjgtav briefly mentioned). Thanks for the clarification! Bax I haven't had time to start thi...
by gg
17 Feb 2013, 02:46
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

You were looking at the Java client API thanks Lapo! I wasted at least 1 hour trying to figure out how to set allowNameChange to true. It seems I'm the only idiot who couldn't infer to do the following from the API: var permissions:RoomPermissions = new RoomPermissions(); permissions.allowNameChang...
by gg
14 Feb 2013, 22:44
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

For starters you are looking in the wrong documentation. That's the client-side javadoc . If you want to work on the server side you should look at the server-side javadoc : http://docs2x.smartfoxserver.com/api-docs/javadoc/server/ If your Extension is attached to a Zone you can obtain the Room lik...
by gg
13 Feb 2013, 01:55
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

How do I do it server-side? Please don't point me to the API unless you can show me how to use it. I found this and tried it: http://docs2x.smartfoxserver.com/api-docs/javadoc/client/sfs2x/client/requests/ChangeRoomNameRequest.html but I'm not even sure how to use it: - the sfs object needs to be in...
by gg
12 Feb 2013, 17:30
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

It seems only the room creator can change the room name. If the creator leaves the room and another player joins, I'd like that player's name to be added to the room name. Is there a way to enable another player to change the room name? If not, I'll just do it server side.
by gg
12 Feb 2013, 17:24
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

Hi, Don't forget to always check the Documentation and the API Documentation: http://docs2x.smartfoxserver.com/ http://docs2x.smartfoxserver.com/api-docs/asdoc/ Alongside with the search functions, they are very useful on the quest of finding the best methods. I also suggest you to use the search f...
by gg
12 Feb 2013, 01:25
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

I wasted at least 1 hour trying to figure out how to set allowNameChange to true. It seems I'm the only idiot who couldn't infer to do the following from the API: var permissions:RoomPermissions = new RoomPermissions(); permissions.allowNameChange = true; settings.permissions = permissions; Thanks t...
by gg
11 Feb 2013, 16:28
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

aarrh I'm sorry I confused myself since I'm trying to do two things at once, yes I was talking about the game room, not the lobby. I do see there is a way to set it, I'll try it later. Can you give your opinion with the other issue I have - http://smartfoxserver.com/forums/viewtopic.php?f=18&t=1...
by gg
11 Feb 2013, 16:15
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

I'm using the Tris example... isn't the Lobby in the Tris example static? from http://docs2x.smartfoxserver.com/DevelopmentBasics/join-and-create-rooms "For example, in our BasicExamples Zone(that we provide by default) there is one static room called "The Lobby" which can be joined b...
by gg
11 Feb 2013, 15:37
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

sorry for the noob question, but which one do I have? (Static/Dynamic) - it is the room created by the Tris example in Flex.
by gg
11 Feb 2013, 15:02
Forum: SFS2X Questions
Topic: How to create a new room in a popup
Replies: 6
Views: 7324

Re: How to create a new room in a popup

i realize this is not directly related to sfs2x, but nonetheless I'm using sfs2x. i am sure someone has already done it. I'm using action script/flex.
by gg
11 Feb 2013, 14:51
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

how do i configure that room to accept that request? can you give me a step by step guide?
by gg
11 Feb 2013, 14:35
Forum: SFS2X Questions
Topic: How to create a new room in a popup
Replies: 6
Views: 7324

How to create a new room in a popup

Hi, When a user creates a room, I'd like that room to be created in a separate window so that he can also stay in the lobby and see the public chat. What do I need to do so that the new room is created in a popup? What other considerations do I need to keep in mind ? (For example, the user would be ...
by gg
11 Feb 2013, 14:23
Forum: SFS2X Questions
Topic: changing a room name
Replies: 20
Views: 17829

Re: changing a room name

Ok, here's the error 08:05:57,000 WARN [com.smartfoxserver.v2.controllers.SystemController-1] contro llers.SystemController - com.smartfoxserver.v2.exceptions.SFSRoomException: Attempt to change name to a R oom that doesn't support it. [ Room: x, Id: 2, Group: games, isGame: true ], ( U ser Name: 1,...

Go to advanced search