Search found 116 matches

by grhwood
01 Apr 2011, 18:02
Forum: SFS2X Questions
Topic: change username when logged in
Replies: 7
Views: 10528

Thanks lapo! This is exactly what i need.
by grhwood
01 Apr 2011, 03:42
Forum: SFS2X Questions
Topic: change username when logged in
Replies: 7
Views: 10528

change username when logged in

Hi, My app doesn't use username to authenticate user instead the user logged in webapp and i use flashvar to pass a token to flash, then i use this token to get user's info like username. I used user.setName to change username but sfs still use that token to identify user connection, so when i close...
by grhwood
28 Mar 2011, 02:39
Forum: SFS2X Questions
Topic: Concurrency with Room object.
Replies: 3
Views: 5578

bax wrote:Why don't you simply use Room.getSize?


Thank you bax, i will use this method, but the problem is the same, is that method threadsafe ?
by grhwood
27 Mar 2011, 13:16
Forum: SFS2X Questions
Topic: little help
Replies: 10
Views: 13243

It seems that you are sending zone level extension request, be sure to add a handler to that extension request.
by grhwood
27 Mar 2011, 13:13
Forum: SFS2X Questions
Topic: Concurrency with Room object.
Replies: 3
Views: 5578

Concurrency with Room object.

Hi,

I'm implementing join room request on the server side and use Room#getUserList to check the number of user in the room. Is the Room class thread safe for that purpose ?

Thank you.
by grhwood
25 Mar 2011, 03:58
Forum: SFS2X Questions
Topic: ROOM_VARIABLE_UPDATE event
Replies: 1
Views: 3722

My bad, after reading the docs, the answer is

Code: Select all

SFSApi#setRoomVariables
by grhwood
25 Mar 2011, 03:52
Forum: SFS2X Questions
Topic: ROOM_VARIABLE_UPDATE event
Replies: 1
Views: 3722

ROOM_VARIABLE_UPDATE event

Hi,

When i set a room variable to a room manually on server side, it seems that the ROOM_VARIABLE_UPDATE is not fired.

Is there anyway to fire this event when i set the variable on server side ?

Thank you.
by grhwood
24 Mar 2011, 08:06
Forum: SFS2X Questions
Topic: Zone and Room class loader problem
Replies: 1
Views: 3784

Zone and Room class loader problem

I have ZoneExtension class and RoomExtension class inside the same ext.jar. The ZoneExtension class is config to a zone extension by using admin tool. The RoomExtension class is dynamically create at runtime using SFSApi#createRoom. The problem is when i handle a event for example USER_JOIN_ROOM at ...
by grhwood
21 Mar 2011, 03:03
Forum: SFS2X Questions
Topic: Game room is not removed when empty
Replies: 3
Views: 6294

Game room is not removed when empty

Hi,

I use my extension to create room on server side by using the SFSApi#createRoom method.
The docs said that game rooms are removed when empty,but it is still there.

Thank you.
by grhwood
16 Mar 2011, 02:45
Forum: SFS2X Questions
Topic: How to handle create room request on server side
Replies: 3
Views: 5840

bax wrote:To create a room on the server-side, send a custom extension request and then use the SFSApi.createRoom method.


So does this means i cannot interfere when client send CreateRoomRequest?
If it is the case, how can i disable the CreateRoomRequest sent from client ?

Thank you.
by grhwood
15 Mar 2011, 06:23
Forum: SFS2X Questions
Topic: How to handle create room request on server side
Replies: 3
Views: 5840

How to handle create room request on server side

Hi,

How can i manually create room on server side using extensions when a client fire a CreateRoomRequest ?

I see in the SFSEventType class, there is ROOM_ADDED event but it is fired after a room is created.

Thank you.

Go to advanced search