Search found 110 matches

by foxboy
20 May 2012, 19:59
Forum: SFS2X Questions
Topic: Scheduled Task getting stopped automatically
Replies: 10
Views: 12868

Re: Scheduled Task getting stopped automatically

No I wouldn't recommend this approach. It has several disadvantages: 1- it keeps recreating objects 2- you can't keep state because the class gets recreated if there's an error. Adds complexity instead of simplifying things. The mos rational approach is just to catch Exceptions so that the task doe...
by foxboy
19 May 2012, 21:15
Forum: SFS2X Questions
Topic: Scheduled Task getting stopped automatically
Replies: 10
Views: 12868

Re: Scheduled Task getting stopped automatically

Hi, I am facing this very strange problem with Smartfox 2x. I am scheduling a task using sfs.getTaskScheduler().scheduleAtFixedRate(new TaskRunner(), 0, 1, TimeUnit.SECONDS); I prefer to use the one time scheduler instead of the scheduleFixedRate(). On your init() method, schedule one task and set ...
by foxboy
11 May 2012, 15:33
Forum: SFS2X Questions
Topic: 2 questions about SFS
Replies: 5
Views: 8277

Re: 2 questions about SFS

Hi, We made a comparison between SFS and Photon, and found 2 weakness in SFS: 1) SFS supports less platforms than Photon. Photon supports Marmalade, Windows, Window Phone and so on, expect Unity3D, iOS, Android and Flash. 2) Photon supports reliable UDP, while SFS doesn't support. We would like to ...
by foxboy
04 May 2012, 07:02
Forum: SFS2X Questions
Topic: hi everybody!)
Replies: 2
Views: 4406

Re: hi everybody!)

you are already doing it. this forum is their communication channel. they actively reply to our questions here. :)
by foxboy
30 Apr 2012, 20:27
Forum: SFS2X Questions
Topic: Room Extension Clarification
Replies: 9
Views: 12071

Re: Room Extension Clarification

Yes you have to override the handleInternalMessage method. Well, you don't add the whole __lib__ folder to your project, only the necessary jars that that specific extension uses. And yes, those jars won't be compiled into your extension's jar, sfs will load them from the __lib__ folder at boot tim...
by foxboy
30 Apr 2012, 17:46
Forum: SFS2X Questions
Topic: Task Schedulers on Room Extensions
Replies: 7
Views: 9634

Re: Task Schedulers on Room Extensions

oh, I see you answered this too. Thank you very much, I will try this override thing now. :)
by foxboy
30 Apr 2012, 17:43
Forum: SFS2X Questions
Topic: Room Extension Clarification
Replies: 9
Views: 12071

Re: Room Extension Clarification

Thanks, but how do I listen to the handleInternalMessage() method from my Zone Extension, as described above, it didn't work for me. Do I need to override this method from my Zone Extension? Also, about the __lib__ folder, if I include that on my projects file, it won't get included in the compiled ...
by foxboy
30 Apr 2012, 16:40
Forum: SFS2X Questions
Topic: Room Extension Clarification
Replies: 9
Views: 12071

Re: Room Extension Clarification

This is getting interesting 8) I have it working by doing this from my Room Extension: ISFSObject soRequest = new SFSObject(); try { this.getParentZone().getExtension().handleClientRequest("InternalRequest", null, soRequest); } catch (SFSException e) { e.printStackTrace(); } Now my Zone Ex...
by foxboy
30 Apr 2012, 15:41
Forum: SFS2X Questions
Topic: Room Extension Clarification
Replies: 9
Views: 12071

Re: Room Extension Clarification

Thanks for the response Lapo. Really appreciated. 2) was the room actually removed? The destroy is called when the room is eliminated, not when users go away => I solved this by adding setDynamic(true) on my room settings :) now I can see that the Room Extension is getting destroyed when user left t...
by foxboy
30 Apr 2012, 11:17
Forum: SFS2X Questions
Topic: Task Schedulers on Room Extensions
Replies: 7
Views: 9634

Re: Task Schedulers on Room Extensions

Hi Lapo, Regarding my second question above, I have tried this code below but it is giving an error, basically I just want call a getter on my ZoneExtension and execute it from within my RoomExtension using this: MyZoneExtension mainExt = (MyZoneExtension) this.getParentZone().getExtension(); trace(...
by foxboy
29 Apr 2012, 17:59
Forum: SFS2X Questions
Topic: Room Extension Clarification
Replies: 9
Views: 12071

Re: Room Extension Clarification

First of all, thank you for taking time to reply on my post. I actually read the documents you specified, but I just want to clarify before I start modifying my code. I want to have a clear picture of everything before doing something different. 2) I just tried creating a room from the server side a...
by foxboy
28 Apr 2012, 21:42
Forum: SFS2X Questions
Topic: Room Extension Clarification
Replies: 9
Views: 12071

Room Extension Clarification

I've been studying the Battle Farm and Tris Flash examples for a while and I have applied some of its techniques like the ConcurrentHashMap on Battle Farm to store game state instead of room variables. But after months of experimentation, I found that the Tris example is more closely related to the ...
by foxboy
27 Apr 2012, 12:46
Forum: SFS2X Questions
Topic: Database queries performance
Replies: 7
Views: 8076

Re: Database queries performance

i think either way is fast, its just depends on how you implement the code. for SFS2X extension, you have to free the connection manually so that resources will be available for other threads that needs to connect to the database. for PHP/MySQL i think this is done automatically once parsing complet...
by foxboy
21 Apr 2012, 11:03
Forum: SFS2X Questions
Topic: Java 7 and SFS2X
Replies: 3
Views: 5177

Re: Java 7 and SFS2X

I see, I will be waiting for the next relase then. Thanks Lapo. :D
by foxboy
19 Apr 2012, 19:25
Forum: SFS2X Questions
Topic: Java 7 and SFS2X
Replies: 3
Views: 5177

Java 7 and SFS2X

I am planning to port my Extension to Java 7 to utilize its new features and improve my code. I am just wondering how this will affect the compiled application since SFS2X is shipped with its own JRE which I believe is using Java 6. Can SFS2X run on a Java 7 environment?

Go to advanced search