Hello,
we have just released a new update (1.2.5) of the C# .Net/Unity/iPhone API that addresses a small bug with the Room List. Under specific circumstances it was possible that the room list got corrupted and older rooms were not removed correctly on the client side.
The problem is now solved and the release is in synch with the latest Actionscript 3 API release.
You can download the release from: http://www.smartfoxserver.com/labs/API/
{ NEW } API Update 1.2.5 Available
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Please be aware of a known issue with 1.2.4 and also 1.2.5 for Firefox.
1.2.4 introduced DNS lookups, and there is a crash bug / reconnect issue in Firefox with the Unity webplayer.
If web is your target platform, download the source version of the API and apply the code patch below. It will remove the ability to specify the hostname, so you will have to give the API an IP address instead. But at least it doesnt crash and lets you reconnect too.
The root issue is not a SFS one, but an issue between Unity and Firefox that is well known.
The trouble comes from this line in the ConnectThread method in SmartFoxClient.cs:
If you use this instead, then it works:
1.2.4 introduced DNS lookups, and there is a crash bug / reconnect issue in Firefox with the Unity webplayer.
If web is your target platform, download the source version of the API and apply the code patch below. It will remove the ability to specify the hostname, so you will have to give the API an IP address instead. But at least it doesnt crash and lets you reconnect too.
The root issue is not a SFS one, but an issue between Unity and Firefox that is well known.
The trouble comes from this line in the ConnectThread method in SmartFoxClient.cs:
Code: Select all
socketConnection.Connect(ipAddress, port);
If you use this instead, then it works:
Code: Select all
IPAddress parsedIpAddress = IPAddress.Parse(ipAddress);
socketConnection.Connect(parsedIpAddress, port);
//socketConnection.Connect(ipAddress, port);
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
OK - I've duplicated the Connect methods.
One set of them take a string, where you can input hostnames or IP addresses. This one will have reconnect issues in webbrowsers.
The other ones will take an IPAddress instead and work everywhere. This enables you to use the one that works in your scenario without having to recompile the API.
Will be part of 1.2.6 release
One set of them take a string, where you can input hostnames or IP addresses. This one will have reconnect issues in webbrowsers.
The other ones will take an IPAddress instead and work everywhere. This enables you to use the one that works in your scenario without having to recompile the API.
Will be part of 1.2.6 release
Return to “.Net / Unity3D API”
Who is online
Users browsing this forum: No registered users and 17 guests