Search found 11 matches

by shaitaaan
26 Jul 2009, 11:00
Forum: .Net / Unity3D API
Topic: JsonData does not hold a double.
Replies: 2
Views: 3358

Figured out the problem... Miscommunication between server and client programmers. The server was using floats.
Sorry. :!:
by shaitaaan
25 Jul 2009, 10:36
Forum: .Net / Unity3D API
Topic: JsonData does not hold a double.
Replies: 2
Views: 3358

JsonData does not hold a double.

Strange problem... The client is not able to typecast data sent which is supposed to be double and disconnects. For example, the server sends x = 23.0D as a double. But when it arrives at the client, x = 23. Now when you say, double x = (double)data["x"]; The client says JsonData does not ...
by shaitaaan
14 Apr 2009, 08:44
Forum: .Net / Unity3D API
Topic: XML Handler null reference exception onLeaveRoom
Replies: 1
Views: 2999

XML Handler null reference exception onLeaveRoom

Hi We are getting the following error when a user leaves a room. =========== SMARTFOX : XML Handler null reference exception System.NullReferenceException: Object reference not set to an instance of an object at SmartFoxClientAPI.Handlers.SysHandler.HandleUserLeaveRoom (System.Xml.XmlNode xml...
by shaitaaan
13 Apr 2009, 14:33
Forum: .Net / Unity3D API
Topic: XML Handler Null reference exception OnLogin
Replies: 5
Views: 5190

Thank you Thomas.

That worked for us!!! Appreciate the timely response.
:D :D :D
by shaitaaan
13 Apr 2009, 10:02
Forum: .Net / Unity3D API
Topic: XML Handler Null reference exception OnLogin
Replies: 5
Views: 5190

We are sending a login request to a lobby extension(custom login), which searches an existing room or creates a new room for the user. Then a joinRoom call is made on the server side. If we set broadcast to false in joinRoom, it works fine, but in the Unity IDE it says : Extension for the new room n...
by shaitaaan
13 Apr 2009, 08:36
Forum: .Net / Unity3D API
Topic: XML Handler Null reference exception OnLogin
Replies: 5
Views: 5190

XML Handler Null reference exception OnLogin

When we send a login request to the SFS server, we get an exception on client side as follows. We have set debug = true. XML Handler null reference exception System.NullReferenceException: Object reference not set to an instance of an object at SmartFoxClientAPI.Handlers.SysHandler.HandleJoinOk (...
by shaitaaan
08 Apr 2009, 11:53
Forum: .Net / Unity3D API
Topic: GetUserList() not returning users?
Replies: 7
Views: 9281

Any update on this?

I am facing the same problem...
Even a workaround would help.

Thanks in advance.
by shaitaaan
06 Apr 2009, 09:53
Forum: .Net / Unity3D API
Topic: Null reference error if JSonData key does not exist
Replies: 1
Views: 3032

Null reference error if JSonData key does not exist

Hi, Please see the code below: public void OnExtensionResponse(object data, string type) { if (type == SmartFoxClient.XTMSG_TYPE_JSON) { JsonData responseObject = (JsonData)data; if(responseObject[key] != null) { value = responseObject[key]; } ...
by shaitaaan
05 Apr 2009, 23:58
Forum: .Net / Unity3D API
Topic: JSON object in client side c#
Replies: 2
Views: 4278

Thanks. We kinda figured that out though. The documentation on onExtensionResponse would be really helpful.
by shaitaaan
03 Apr 2009, 09:28
Forum: .Net / Unity3D API
Topic: JSON object in client side c#
Replies: 2
Views: 4278

JSON object in client side c#

When I receive an extension message on client side, how do I convert the c# object to JSON object? Or should I use SFSObject itself?
by shaitaaan
02 Apr 2009, 04:38
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Raw string or JSON format?
Replies: 1
Views: 1661

Raw string or JSON format?

Hi,

I am just starting with smartfox server (with unity). I have to send around 20 messages per client to/from server. We have a max of 4 clients. What protocol would be better? JSON or raw strings?

Thank you in advance.

Go to advanced search