Search found 9 matches

by stix
17 Oct 2011, 15:35
Forum: SFS2X Java / Android API
Topic: Reusing sfsClient between Activities
Replies: 12
Views: 6443

To answer your question specifically, you should re-use the client across activities. Each activity will need to have a dispatch method defined to handle any events listened to in that particular activity. So, if activity C listens for SFSEvent.EXTENSION_RESPONSE but activity A does not, then activi...
by stix
10 Mar 2011, 15:29
Forum: SFS2X Questions
Topic: interception message
Replies: 8
Views: 3634

You can listen for the event in an extension. Something like this:

this.addEventHandler(SFSEventType.PUBLIC_MESSAGE, onPubMsg.class);

then in your onPubMsg.class you can handle filtering etc.
by stix
10 Mar 2011, 14:39
Forum: SFS2X Questions
Topic: MySQL field alias not supported?
Replies: 6
Views: 3747

Try adding: ?useOldAliasMetadataBehavior=true
to the end of your connection string.

e.g.
jdbc:mysql://localhost:3306/sample_db?useOldAliasMetadataBehavior=true

That worked for us on 1.6. Haven't tried it on 2X, but worth a try.
by stix
09 Mar 2011, 17:33
Forum: SFS2X Questions
Topic: how many users can sfs handle in unity mmorpg?
Replies: 2
Views: 1859

There is no definitive answer to that question. There are many variables that will impact capacity for any MMO - game architecture, server hardware, storage engine, etc. The only way to find out the capacity of your specific application is to stress test, and even then, real world Beta testing will ...
by stix
09 Mar 2011, 16:34
Forum: SFS2X Questions
Topic: .NET vs Java API
Replies: 2
Views: 1632

.NET vs Java API

Hi All, In the FAQ it mentions: "Our client API are an excellent and high level tool that can be leveraged for stress testing the extensions and the server. Take the C#/.Net API in particular , we have been able to run ~1000 clients from a single, inexpensive machine (a Mac Mini)." I'm cur...
by stix
06 Mar 2011, 14:20
Forum: SFS2X Questions
Topic: Possible UserVariable Bug
Replies: 26
Views: 13020

Sorry guys, haven't looked into this issue in a while. I was convinced it was an issue in my client code, so I implemented a workaround and moved on. Glad to see I'm not off my rocker and that the issue was identified.

Thanks copet80 and Lapo!
by stix
23 Dec 2010, 15:37
Forum: SFS2X Questions
Topic: Possible UserVariable Bug
Replies: 26
Views: 13020

I suspected the same thing. So before posting, I upgraded the server to RC1b and updated the client to 0.9.8, but same results.

I've "cleaned" the project, rebooted the server etc.
by stix
23 Dec 2010, 03:06
Forum: SFS2X Questions
Topic: Possible UserVariable Bug
Replies: 26
Views: 13020

Possible UserVariable Bug

I've written an app that uses UserVariables to store user data. The first UserVariable is set before joining any room and works great - all users see that the user has the variable. When one user creates a game room and sets two more UserVariables in the game room - they seem to work OK. They exist ...
by stix
01 May 2010, 16:11
Forum: Server Side Extension Development
Topic: Reload java extensions
Replies: 8
Views: 5530

reloading child classes

So this works for loading extensions specified in the config.xml. But what if there is only one "extension" class that instantiates other classes loaded from other java files. Like: public void handleInternalEvent(InternalEventObject ieo) { if (ieo.getEventName().equals("loginRequest&...

Go to advanced search