Search found 17 matches
- 04 Feb 2012, 03:15
- Forum: SFS2X Java / Android API
- Topic: question about loadConfig
- Replies: 4
- Views: 7448
I was able to connect by doing this directly. sfs.connect(serverIPTextField.getText(),9933); Followed by sending the client loginrequest with the name and zone parameters. I could not find any use for the ConfigData object. Even when creating a new ConfigData object explicitly. The problem is after ...
- 04 Feb 2012, 02:17
- Forum: SFS2X Java / Android API
- Topic: question about loadConfig
- Replies: 4
- Views: 7448
I am getting a null value when doing this below. Why is that? It seems like a catch 22 if you need to call loadConfig on a xml that is not there. It seems like we don't support anything except using an xml file. ConfigData cfg = sfs.getConfig(); cfg.setHost(serverIPTextField.getText()); cfg.setUdpHo...
- 03 Feb 2012, 03:17
- Forum: SFS2X Java / Android API
- Topic: question about loadConfig
- Replies: 4
- Views: 7448
question about loadConfig
Is it possible to load config using a resource URL instead of a filename? I have the app and xml in a jar file and want to use the class.getResource style of loading it.
Otherwise, can i skip loading from external XML and just set the connection props directly in API?
Thanks.
Otherwise, can i skip loading from external XML and just set the connection props directly in API?
Thanks.
- 27 Jan 2012, 01:44
- Forum: SFS2X Java / Android API
- Topic: nullpointer on server with room variable
- Replies: 3
- Views: 7073
- 26 Jan 2012, 02:56
- Forum: SFS2X Java / Android API
- Topic: login event not firing, instead see handshake
- Replies: 1
- Views: 4733
login event not firing, instead see handshake
I am seeing something odd where after the login request, i see the handshake event instead of the login event. I have handlers set up for both events. I used to see the login event but somehow its not coming anymore, even after restarting the server. How could this happen? scratching my head
- 26 Jan 2012, 02:54
- Forum: SFS2X Java / Android API
- Topic: nullpointer on server with room variable
- Replies: 3
- Views: 7073
- 26 Jan 2012, 00:55
- Forum: SFS2X Java / Android API
- Topic: nullpointer on server with room variable
- Replies: 3
- Views: 7073
nullpointer on server with room variable
I am trying to debug an issue that seems to be causing problems for me. the stack trace is below. Thanks for help again. 25 Jan 2012 19:56:50,723 WARN [com.smartfoxserver.v2.controllers.SystemController-1] v2.controllers.SystemController - java.lang.NullPointerException com.smartfoxserver.v2.entitie...
- 26 Jan 2012, 00:54
- Forum: SFS2X Java / Android API
- Topic: reject a rooom join request question
- Replies: 7
- Views: 11811
- 22 Jan 2012, 22:38
- Forum: SFS2X Java / Android API
- Topic: reject a rooom join request question
- Replies: 7
- Views: 11811
oh, it is just a class inside the parent class. (myclass$innerclass) public class myextension { class myrequesthandler { xxx } } I am not using that anymore. The problem i have now is using the extension request on an extension for a room. I am getting this below: com.smartfoxserver.v2.exceptions.SF...
- 22 Jan 2012, 14:33
- Forum: SFS2X Java / Android API
- Topic: reject a rooom join request question
- Replies: 7
- Views: 11811
Seems to be working better now that i broke out the inner class to its own class. the only thing i see now is below, but not sure it is causing a problem or not. 22 Jan 2012 09:38:13,402 WARN [pool-1-thread-1] v2.core.SFSEventManager$SFSEventRunner - Error in event handler: java.lang.ClassCastExcept...
- 22 Jan 2012, 14:03
- Forum: SFS2X Java / Android API
- Topic: reject a rooom join request question
- Replies: 7
- Views: 11811
Can the room extension use an inner class? I am getting this error. The init of the extension seems ok tho. 22 Jan 2012 08:59:05,768 INFO [main] Extensions - {clue}: ClueGameExtension init 22 Jan 2012 09:00:17,117 WARN [pool-1-thread-1] Extensions - {clue}: Cannot instantiate handler class: java.lan...
- 22 Jan 2012, 02:34
- Forum: SFS2X Java / Android API
- Topic: reject a rooom join request question
- Replies: 7
- Views: 11811
- 22 Jan 2012, 00:27
- Forum: SFS2X Java / Android API
- Topic: reject a rooom join request question
- Replies: 7
- Views: 11811
reject a rooom join request question
What is the technique for rejecting a user from joining a room by doing a query on the uservariable set in the user? I have a uservariable set and want to reject them from entering if another user in that room already has this variable set. I dont think I should do this on the client side by iterati...
- 22 Jan 2012, 00:23
- Forum: SFS2X Java / Android API
- Topic: userReconnectionSeconds setting
- Replies: 6
- Views: 10276
- 21 Jan 2012, 04:07
- Forum: SFS2X Java / Android API
- Topic: userReconnectionSeconds setting
- Replies: 6
- Views: 10276
OK I am using this and still seeing the disconnections. <userReconnectionSeconds>60</userReconnectionSeconds> <overrideMaxUserIdleTime>90</overrideMaxUserIdleTime> Doesn't this mean that the client will reconnect after 60 seconds? Do i need to explicitly program the client to reconnect in less than ...