Search found 17 matches

by pantinor
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 ...
by pantinor
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...
by pantinor
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.
by pantinor
27 Jan 2012, 01:44
Forum: SFS2X Java / Android API
Topic: nullpointer on server with room variable
Replies: 3
Views: 7073

actually I was putting an object into the room variable which did not extend SFSObject. After extending SFSObject I could put it into the room variable.
by pantinor
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
by pantinor
26 Jan 2012, 02:54
Forum: SFS2X Java / Android API
Topic: nullpointer on server with room variable
Replies: 3
Views: 7073

i removed some room variable and used a user variable instead and its no longer happening all set.
by pantinor
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...
by pantinor
26 Jan 2012, 00:54
Forum: SFS2X Java / Android API
Topic: reject a rooom join request question
Replies: 7
Views: 11833

OK i did not realize i could join them on the extension request as well. That is much better than sending the second room join request after the extension request. will try that, Thanks.
by pantinor
22 Jan 2012, 22:38
Forum: SFS2X Java / Android API
Topic: reject a rooom join request question
Replies: 7
Views: 11833

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...
by pantinor
22 Jan 2012, 14:33
Forum: SFS2X Java / Android API
Topic: reject a rooom join request question
Replies: 7
Views: 11833

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...
by pantinor
22 Jan 2012, 14:03
Forum: SFS2X Java / Android API
Topic: reject a rooom join request question
Replies: 7
Views: 11833

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...
by pantinor
22 Jan 2012, 02:34
Forum: SFS2X Java / Android API
Topic: reject a rooom join request question
Replies: 7
Views: 11833

I think I figured it out by creating a zone extension for my game to manage that.
by pantinor
22 Jan 2012, 00:27
Forum: SFS2X Java / Android API
Topic: reject a rooom join request question
Replies: 7
Views: 11833

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...
by pantinor
22 Jan 2012, 00:23
Forum: SFS2X Java / Android API
Topic: userReconnectionSeconds setting
Replies: 6
Views: 10276

The disconnect reason is reason "unknown" so it is not idle timeout, which is set to 90 anyway.

I added a sfs.connect command into the CONNECTION_RETRY event handler and this does not help either.

What is going on? How can I do the reconnect? thanks.
by pantinor
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 ...

Go to advanced search