Announcement: SmartFox API 1.2 released - now with iPhone!!

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Announcement: SmartFox API 1.2 released - now with iPhone!!

Postby ThomasLund » 17 May 2009, 06:21

Hi everyone,

A real pleasure to be able to announce the last and greatest Unity API for SmartFoxServer.

This one is especially cool since it adds fully featured Unity iPhone Advanced support out of the box!

Write you game once, run it on all platforms that Unitty supports (except the Wii).

There are also 3 iPhone tutorial ports (didnt do a Island Demo replacement, so 3 will do). So play tic-tac-toe on your phone vs. Unity in a webplayer.

Download link is here:
http://www.smartfoxserver.com/labs/API/

The changelog is pasted below:

* iPhone support - full featured and cross platform without changes to client
* API are fully aligned with the latest Actionscript 3 version, shipped with SmartFoxServer PRO 1.6.6
* Bug fix in handling string message receiving as reported on forums
* SendXtMessage now has reworked API to take hashtables for json/xml and arraylist for string Cross platform compatible protocol for string sending
* Fixed Entities decoding/encoding not properly initialized (as reported in support board)
* Implemented new Contains method on JsonData (not present in original API)
* Added new SwitchPlayer method from SFS 1.6.6
* Added CheckRoomList and CheckJoin methods on API methods
* Added LOTS of checks in SysHandler for if a room is in the roomlist before trying to call methods on it. Prevents null pointer exceptions and gives user a nice warning in the console
* Catching more exceptions on event handling, and giving user readable message on the console
* Printing exception message on console when exception thrown in http communication
* OnExtensionResponse documentation now shows host to cast response to the 3 different data formats
* New set of CreateRoom methods using NewRoomDescriptor class instead of hashtable
* Added 2 new methods to the queue mode - one for querying number of events in queue, and another to process a single event only.
* Documentation for SetRoomVariables was still AS3 syntax. Now rewritten to C# + fixed error in text Extended RoomVariable constructor to also include a 3 parameter version
* *Major* reorganization of the main client code using #region into a more logical and usable structure (only structural changes)
* Made isGame truly optional + other validation checks in room creation

/Thomas
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Please notice!!!

Postby ThomasLund » 17 May 2009, 06:26

Please note!!!! (Important enough to warrant a separate post)

This API version breaks code that uses SendXtMessage using the string/raw protocol!!!!

So you you previously coded up a game with this using string/raw, you will have to re-implement that part. This was done due to me having broken compatibility with the other APIs.

The change is that previously you gave a Hashtable to the method and it would send a string of "key=value" to the server. Now the method takes a ArrayList (when using string/raw as type), and sends the list values only - 100% in line with the other APIs.

Sorry about this one if you have extra work due to this.

/Thomas
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 20 May 2009, 04:39

Ouch

There is a bug in SendXtMessage that has slipped through when sending strings.

I will make sure that there is a bugfix release asap.

Sorry for the inconvinience.

For anyone who wants to fix it themselves until then

In the SendXtMessage method there is a loop where I run over all parameters in the paramObj ArrayList.

Problem is that I then take the paramObj.ToString() in constructing the string - and that should obviously be param.ToString() instead.

/Thomas

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 1 guest