Unity / C# API 1.0 final update is ready for download! It includes various bug fixes notified by beta testers and new features missing from the previous release, including full support for HTTP tunneling via BlueBox
Download the package from here
Quick release notes:
Code: Select all
» Added fix from forums for working around issue with the tcpclient networkstream
» Implemented threaded synchronous http communication vs. the C# async stuff
» Rewrote a bunch of the http failover code.
Polling is now handled in a manual created thread that is terminated manually on exit - fixed that mono/Unity exit crash bug
Wrote a socket based http client instead of using build in WebRequest (as that uses internal threads too that crash on exit). Not pretty, not fast but works
Lastly all http request/response are not threaded anymore. So it blocks - but works and doesnt crash
» Threading of http request/responses without crashing
» Implemented "IP-only" server addresses to work around bug in the mono version on OSX used by Unity webplayer
Implemented final http failover code that handles multiple messages per poll
Locking mechanism on disconnect as posted by at on the forums (slightly modified)
This code seems to work fully featured on webplayer and standalone on OSX at least for both socket and http connection scenarios
» Implemented workaround for double.Parse bug in the mono version that is used by Unity 2.1 that did not automatically change separator from . to , depending on operating system. Now forces US style . as separator when parsing
» Updated version to 0.9.9.3
» Fixed up some small issue in the documentation example for handling Xt messages
» Reworked populating variables
» Small bug found while making tutorial 1 - API now properly reports back to the OnConnect with a success = false and an error message when we fell back to Http/Bluebox. Only did this for sockets
» Fixed bug in how buddy lists were handled - wrong XML node paths used. Double checked with flash api, and *should* work now in all buddy list callbacks
» Added GetVariable(string key) method to buddy variables for faster access. Added this to all examples in the documentation
As usual keep posting your feedback!