Search found 32 matches

by mugambs
22 May 2009, 09:44
Forum: Server Side Extension Development
Topic: Multiple Instances
Replies: 5
Views: 8035

Could you post some code?
by mugambs
20 May 2009, 14:50
Forum: Server Side Extension Development
Topic: Multiple Instances
Replies: 5
Views: 8035

by mugambs
19 May 2009, 10:44
Forum: .Net / Unity3D API
Topic: Switch/Case block for JSON?
Replies: 4
Views: 12266

I dont know C# all that well, but could you elaborate on how you are trying to do this with JSON, and where your error etc is?

If its just a case of doing a switch on a String, have you checked that the String you retrieve from the JSON object is not null / empty?
by mugambs
17 May 2009, 16:21
Forum: Server Side Extension Development
Topic: Java Extension Cookbook - RequestDispatcher
Replies: 4
Views: 6151

I think i found a solution to the sendResponse problem. I have added a method to the RequestHandler interface public LinkedList<SocketChannel> getRecipients(User originator); Then i send the response from the handleRequest method in the extension class rather than the RequestHandler implemen...
by mugambs
17 May 2009, 15:35
Forum: Server Side Extension Development
Topic: JSON Libraries
Replies: 7
Views: 13295

Thanks, I realised the problem with catching exceptions each time you put data into the JSONObject, and so went with net.sf.json.JSONObject for the response. Will you be overloading the handleRequest method at any point? Also, do you know if the Unity / C# API works with both JSON libraries? Maybe t...
by mugambs
17 May 2009, 15:32
Forum: Server Side Extension Development
Topic: Java Extension Cookbook - RequestDispatcher
Replies: 4
Views: 6151

Hi Lapo, Thanks for the reply. One problem I have found is how to send the response back from the XXXHandler.onRequest(...) method. Heres the example in the cookbook. The sendResponse method however is inherited from the AbstractExtension base class which is no longer extended. public class DivReque...
by mugambs
17 May 2009, 12:38
Forum: Server Side Extension Development
Topic: Java Extension Cookbook - RequestDispatcher
Replies: 4
Views: 6151

Java Extension Cookbook - RequestDispatcher

Does anyone know whether the Request Dispatcher example from the Java Extensions cookbook is more / less performant (memory and CPU) than using an if/else or switch statement? Particularly when dealing with very high traffic volumes

Thanks
by mugambs
17 May 2009, 09:22
Forum: Server Side Extension Development
Topic: JSON Libraries
Replies: 7
Views: 13295

JSON Libraries

Hi, I'm a bit confused about which JSONObject I should be using. I have 2 JSON related JAR's in my classpath json.jar and json-lib-2.1-jdk1.5.jar. According to the API docs, the handleRequest() method takes an org.json.JSONObject, but the sendResponse method gives me the option of sending back eithe...
by mugambs
01 Mar 2009, 09:14
Forum: Java2SE / Android Client API
Topic: Unit Testing
Replies: 3
Views: 7821

Hi Lapo, Thanks for your reply. Yes, the 300 ms is a safe time taken to connect, login and get the room list. If i reduce it, the test intermittently fails. However, I've been thinking about the best way of integrating an SFS client into a web application. Please correct me if I'm wrong, but I think...
by mugambs
25 Feb 2009, 10:33
Forum: Java2SE / Android Client API
Topic: Unit Testing
Replies: 3
Views: 7821

Unit Testing

Hi, We are trying to integrate some Smartfox statistics into our website e.g. things like # of users online, busiest rooms, buddies online etc. The webapp is running in a seperate Tomcat container (in production it will run on a different server, so dont want to use embedded server) So my approach s...
by mugambs
25 Jan 2009, 22:34
Forum: .Net / Unity3D API
Topic: Director vs Unity 3D
Replies: 1
Views: 5338

Director vs Unity 3D

Hi, Is there a SmartFox recommendation for developing 3D virtual worlds? We are still in the planning phase and have been considering 3DS Max + Director to generate Shockwave content so far... However, I have just been reading up about .NET and Unity 3D Beta API, and that seems pretty good too. The ...
by mugambs
24 Jan 2009, 14:34
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Can Webapps running under Jetty use SmartFox Extensions?
Replies: 2
Views: 4305

Thanks, thats exactly what I was looking for!
by mugambs
24 Jan 2009, 11:34
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Can Webapps running under Jetty use SmartFox Extensions?
Replies: 2
Views: 4305

Can Webapps running under Jetty use SmartFox Extensions?

Hi, We are planning to develop an MMORPG using Shockwave and SmartFox. Im pretty clear on the use of extensions to handle game logic and DB connections in that sense. However, we also want to make a lot of similar information available on the website e.g. game leaderboards, friends currently online ...
by mugambs
14 Dec 2008, 14:42
Forum: OpenSpace v1 discussions and help
Topic: Empty RoomList error when returning to map from Game Room
Replies: 6
Views: 13394

Many thanks Bax,

That solution worked great!
by mugambs
12 Dec 2008, 13:55
Forum: OpenSpace v1 discussions and help
Topic: Empty RoomList error when returning to map from Game Room
Replies: 6
Views: 13394

Do you have any examples of instantiating OpenSpace from Actionscript and joining / exiting a game room? I have tried using the clear method when leaving Openspace, and then setting the nextMap info and calling getRoomList() to trigger the onRoomListUpdate and join the openspace room. I still get a ...

Go to advanced search