Class serialization problem in Windows Store Apps

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

Moderators: Lapo, Bax

User avatar
Niepodam Nigdy
Posts: 18
Joined: 08 Jan 2015, 16:47

Class serialization problem in Windows Store Apps

Postby Niepodam Nigdy » 14 Jan 2015, 11:24

Hello.
I sent this also by mail but maybe someone from community will help me.
I'm currently using Smartfox to develop video game using Unity3d.
I've got problem with Windows 8 Store version of my application. On Android and iOS version everything works fine.
When i try to use Class Serialization (as stated in: http://docs2x.smartfoxserver.com/Advanc ... ialization) on Windows 8 store app when i receive data from server every value in my class at client side is null.
I think the problem is in Sfs2X.Protocol.Serialization.DefaultSFSDataSerializer in ConvertSFSObject method. There is

FieldInfo runtimeField = objType.GetRuntimeField(utfString);

and on MSDN - http://msdn.microsoft.com/en-us/library/hh535795.aspx - there is info that for Windows 8 store apps there should be used TypeInfo instead of Type.
So i think this is a problem why i'm having nulls at client side.

Does anyone know how to resolve this problem. Or maybe there is another way of using class serialization on Windows 8 store apps?
User avatar
Niepodam Nigdy
Posts: 18
Joined: 08 Jan 2015, 16:47

Re: Class serialization problem in Windows Store Apps

Postby Niepodam Nigdy » 14 Jan 2015, 12:18

I got info on mail that this bug is fixed and will be avaiable to download later today.
So probably this topic can be closed. :)
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Class serialization problem in Windows Store Apps

Postby Bax » 14 Jan 2015, 17:21

Yes, the bug is fixed and the new version of the API is available on the download page of the website.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 65 guests