:::NEW::: API Update

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

:::NEW::: API Update

Postby Lapo » 06 Oct 2011, 08:25

Hello
a new C# API DLL update is available for you to download.
You can replace your old .DLL and recompile your client code.

DOWNLOAD UPDATE

NOTE:
It is required that you use the latest RC3 version
Lapo
--
gotoAndPlay()
...addicted to flash games
Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

Postby Robbilie » 06 Oct 2011, 09:27

what are the updates...?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Oct 2011, 12:40

Overall stability/compatibility with Unity latest bugs/changes.
Most of the stuff that has been discussed recently on the forums including UDP compression. The BlueBox connector was rewritten too.

Highly recommended
Lapo

--

gotoAndPlay()

...addicted to flash games
Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

Postby Robbilie » 06 Oct 2011, 12:48

it is by thomas right?
Cause he send me an unstable version with a bugfix and it should be included in this new one right...?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Oct 2011, 17:51

This is an official release, not a quick patch
Lapo

--

gotoAndPlay()

...addicted to flash games
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 20 Oct 2011, 14:25

Besides some critical bugfixes (and non-critical ones), this version fixes BlueBox to work with latest Unity versions in the webplayer.

So highly recommended to upgrade if thats what you use

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Dilbertian
Posts: 6
Joined: 12 Sep 2010, 23:27

new DLL

Postby Dilbertian » 01 Nov 2011, 07:12

Does this also fix the previous memory errors with the SFSArray's?

We have been experiencing significant issues sending data from the Java server class using putSFSArray() when our array element was in the 500+ element size range and were forced to implement a temporary work around having to chunk up our data queries using start/limits which significantly slow down the user initialization phase.

I just downloaded the update and will give it a try, thanks!

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

Postby ThomasLund » 01 Nov 2011, 14:05

What type of "significant issues" and do you have a small repro case?

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
Dilbertian
Posts: 6
Joined: 12 Sep 2010, 23:27

Postby Dilbertian » 01 Nov 2011, 18:04

Thomas,

Thanks for the reply, we had been experiencing OnExtensionResponse events getting dropped when our return data contained approximately 500-600 array elements. For example we have a MySQL return data set which consisted of a table with 50 columns of mostly INTS and after about 10 rows within the result set, the client would not properly trigger the OnExtensionResponse event.

I downloaded your new SmartFox2.DLL and tested it this morning, it now appears to work fine. I have increased all of our limits on the MySQL Queries from between 4 and 10 (depending on table) up to 100 now and the initialization is now so fast that if I blink or quickly look away it's done by the time I look back. I think there is one table that has like 200 rows and two others with just over a hundred while the others mostly have only a few dozen. The MySQL DB is local on the same server as the SFS2X server although we also have one out in the cloud which has slightly slower response times as would be expected.

Sorry, I'm not sure what you are asking for "small repro case", but I can provide a dump of a CSV table export for example but would prefer to PM it to you directly since it may contain proprietary information for our product.

-Tim

ThomasLund wrote:What type of "significant issues" and do you have a small repro case?

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

Postby ThomasLund » 03 Nov 2011, 09:11

Hi Dilbertian

If the new dll fixes your issue, then no need for repro case or data dumps :-) Just happy it got fixed for you.

If you run into other problems - poke me asap and preferably with detailed info on how to reproduce it. And even better with code/data showing the issue.

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 03 Nov 2011, 09:56

Oh BTW,

Unmentioned and almost forgotten improvement

This dll has a home brew XML parser for the reading of the config file. This home brew parser is pretty basic and doesnt do a lot of validation - but on the other hand I removed the dependency to System.Xml and thus saving you approx 1 MB in size.

Webplayer build log from the connection demo - smallest possible usage:

Code: Select all

Mono dependencies included in the build
SmartFox2.dll
Assembly-CSharp.dll


Unloading 270 unused Assets to reduce memory usage. Loaded Objects now: 926.
System memory in use: 209.6 MB.
Unloading 0 Unused Serialized files (Serialized files now loaded: 2 / Dirty serialized files: 2)

LZMA 4.43 Copyright (c) 1999-2006 Igor Pavlov  2006-06-04

***Player size statistics***
Level 0 'Assets/test.unity' uses 75.3 KB compressed / 266.6 KB uncompressed.
Total compressed size 75.3 KB. Total uncompressed size 266.6 KB.

Textures      0.0 kb    0.0%
Meshes        0.0 kb    0.0%
Animations    0.0 kb    0.0%
Sounds        0.0 kb    0.0%
Shaders       0.0 kb    0.0%
Other Assets  0.0 kb    0.0%
Levels        5.4 kb    2.0%
Scripts       236.1 kb    88.6%
Included DLLs 0.0 kb    0.0%
File headers  25.0 kb    9.4%
Complete size 266.5 kb    100.0%


vs. previous

Code: Select all

Mono dependencies included in the build
System.Xml.dll
SmartFox2.dll
Assembly-CSharp.dll

...

Included DLLs 1.0 mb    80.0%
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
nugao
Posts: 7
Joined: 25 Oct 2011, 17:05
Location: China
Contact:

Postby nugao » 10 Dec 2011, 12:39

With the new one, I have got two problem.

When server is not online, client connect to offline server, event "SFSEvent.CONNECTION" is not fire. And in Editor I "Play" again, then the Editor was hung.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 14 Dec 2011, 10:53

There is a fix in SVN for something that could be the fix for your problem too. If you manually set blue box to false, then that error would not materialize.

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
ovais.ahmed
Posts: 1
Joined: 12 Jan 2012, 20:20
Location: Montreal

Bug in the latest dll

Postby ovais.ahmed » 12 Jan 2012, 20:31

I have exactly the same issue as nugao has mentioned. It just keeps on trying to connect to the server (even though it is down) in an infinite loop until it crashes. If I disable blue box, I do not see this issue, however it is important for us to use blue box to avoid firewall issues. Please provide update on if this problem has been fixed or when/if it is planned in the new release.

It may also be mentioned that in the previous version of the dll (part of RC3), I was encountering the problem where the library would not at all reconnect when the server becomes available after it was down for some time. And this is why I upgraded to this new release.

Thanks a lot,

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

Postby ThomasLund » 12 Jan 2012, 21:44

Send me a PM with your email address and I'll send you a new dll from SVN.

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 31 guests