Search found 116 matches

by grhwood
03 Jul 2013, 09:12
Forum: 2X Features Wish List
Topic: Set room properties in CreateRoomSettings
Replies: 4
Views: 4904

Set room properties in CreateRoomSettings

Hi, Continue from http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=16198 , it would be great/easier if I can set the room properties when create a room so that they are available when room extension init method is invoked. The property is a complex object so I cant use hidden Room varia...
by grhwood
01 Jul 2013, 16:59
Forum: SFS2X Questions
Topic: Set room properties for room ext init method to see them
Replies: 3
Views: 2390

Set room properties for room ext init method to see them

Hi, I was wondering if there is a way to set room properties when creating room so that I can get the properties in room extension init method ? Right now Im using Room room = createRoom(owner, gameSettings); room.setProperty(key, value); but I can not get the property in extension init method. Than...
by grhwood
02 May 2013, 15:54
Forum: SFS2X Questions
Topic: how to dump friend list storage
Replies: 1
Views: 856

how to dump friend list storage

Hi,

I'm using default SFS2x friend list storage now. But at some point, I may be need to use custom storage. So my question is: is it possible to dump the friend list storage to import it to another custom storage.

Thanks
by grhwood
22 Apr 2013, 09:34
Forum: SFS2X Questions
Topic: USER_DISCONNECT return null user
Replies: 4
Views: 1977

Re: USER_DISCONNECT return null user

Hi, sorry for the delay, I've double check it, I attached the wrong event handler to event :(

Thanks,
by grhwood
18 Apr 2013, 14:01
Forum: SFS2X Questions
Topic: USER_DISCONNECT return null user
Replies: 4
Views: 1977

Re: USER_DISCONNECT return null user

Yes, I'm using the latest 2.6.0
by grhwood
18 Apr 2013, 12:32
Forum: SFS2X Questions
Topic: USER_DISCONNECT return null user
Replies: 4
Views: 1977

USER_DISCONNECT return null user

Hi, I have a ServerEventHandler that catch the USER_DISCONNECT event like the following code: public void handleServerEvent(ISFSEvent event) throws SFSException { User user = (User) event.getParameter(SFSEventParam.USER); List<Room> joinedRooms = (List<Room>) event.getParameter(SFSEventParam.JOINED_...
by grhwood
12 Apr 2013, 11:08
Forum: SFS2X Questions
Topic: What happend if room id is overflow ?
Replies: 1
Views: 875

What happend if room id is overflow ?

Hi,

I create dynamic room a lot, I notice that room id is an integer so max value is less then 2 billion, my app doesn't go to that value but may be. So could you tell me what will happend if the room id is overflow ?

Thanks
by grhwood
06 Apr 2013, 18:16
Forum: SFS2X Java / Android API
Topic: how to change zone in same server
Replies: 1
Views: 2143

how to change zone in same server

Hi,

I have for example 2 zones in same server. Currently, when I need to change a zone I have to destroy the current Smartfox object and create a new one then send the LoginRequest. I wonder if it is possible to reuse the same Smartfox object.

Thanks
by grhwood
02 Apr 2013, 19:34
Forum: SFS2X HTML5 / JavaScript API
Topic: SFSObject and byte array
Replies: 1
Views: 3171

SFSObject and byte array

Hi,

Since in the SFS2x docs, the html5 api is not binary compatible, what happens if I put byte array into SFSObject and send it to html5 client ?

Thanks
by grhwood
25 Mar 2013, 15:15
Forum: SFS2X Questions
Topic: Invalid administration TCP port
Replies: 6
Views: 2625

Re: Invalid administration TCP port

Hi, I've solved it by change the crossdomain.xml to <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <!-- This is a master-policy file. site-control can be all,none,master-only --> <site-control permitted-cross-...
by grhwood
25 Mar 2013, 14:42
Forum: SFS2X Questions
Topic: Invalid administration TCP port
Replies: 6
Views: 2625

Re: Invalid administration TCP port

Here is my crossdomain.xml <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" /> </cross-domain-policy>
by grhwood
25 Mar 2013, 14:03
Forum: SFS2X Questions
Topic: Invalid administration TCP port
Replies: 6
Views: 2625

Re: Invalid administration TCP port

Hi,

I've done all you said. From the server log, client is connected but Admin Tool is still stuck. I attached the screenshot.

Thanks,
by grhwood
24 Mar 2013, 18:50
Forum: SFS2X Questions
Topic: Invalid administration TCP port
Replies: 6
Views: 2625

Invalid administration TCP port

Hi,

When i changed SFS2x port to ex: 9936, I cannot log in to admin module. Error from the log: Invalid administration TCP port
I'm using SFS2x 2.6.0 & Admin Tool v1.3.2
by grhwood
14 Nov 2012, 20:05
Forum: SFS2X Questions
Topic: Send extension message before disconnect user programmatical
Replies: 1
Views: 1011

Send extension message before disconnect user programmatical

Hi, Is there anyway to send extension message before disconnect user programmatically like the following: zone.getExtension().send("ext", emptyParams, user); sfsApi.disconnectUser(user); when i try it, it throws the NPE: java.lang.NullPointerException com.smartfoxserver.bitswarm.core.Socke...

Go to advanced search