Figured out the problem... Miscommunication between server and client programmers. The server was using floats.
Sorry.
Search found 11 matches
- 26 Jul 2009, 11:00
- Forum: .Net / Unity3D API
- Topic: JsonData does not hold a double.
- Replies: 2
- Views: 6866
- 25 Jul 2009, 10:36
- Forum: .Net / Unity3D API
- Topic: JsonData does not hold a double.
- Replies: 2
- Views: 6866
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 ...
- 14 Apr 2009, 08:44
- Forum: .Net / Unity3D API
- Topic: XML Handler null reference exception onLeaveRoom
- Replies: 1
- Views: 5640
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...
- 13 Apr 2009, 14:33
- Forum: .Net / Unity3D API
- Topic: XML Handler Null reference exception OnLogin
- Replies: 5
- Views: 10500
- 13 Apr 2009, 10:02
- Forum: .Net / Unity3D API
- Topic: XML Handler Null reference exception OnLogin
- Replies: 5
- Views: 10500
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...
- 13 Apr 2009, 08:36
- Forum: .Net / Unity3D API
- Topic: XML Handler Null reference exception OnLogin
- Replies: 5
- Views: 10500
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 (...
- 08 Apr 2009, 11:53
- Forum: .Net / Unity3D API
- Topic: GetUserList() not returning users?
- Replies: 7
- Views: 16056
- 06 Apr 2009, 09:53
- Forum: .Net / Unity3D API
- Topic: Null reference error if JSonData key does not exist
- Replies: 1
- Views: 5886
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]; } ...
- 05 Apr 2009, 23:58
- Forum: .Net / Unity3D API
- Topic: JSON object in client side c#
- Replies: 2
- Views: 7800
- 03 Apr 2009, 09:28
- Forum: .Net / Unity3D API
- Topic: JSON object in client side c#
- Replies: 2
- Views: 7800
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?
- 02 Apr 2009, 04:38
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Raw string or JSON format?
- Replies: 1
- Views: 4008
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.
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.