Has anyone tried to build a WindowsPhone version?

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

Moderators: Lapo, Bax

Post Reply
iso2000555
Posts: 3
Joined: 09 Sep 2013, 11:16

Has anyone tried to build a WindowsPhone version?

Post by iso2000555 »

I tried to create empty project and put Smartfox2X.dll into it, switch platform to WP8, got the following errors:

Error building Player: Exception: Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Net.Dns` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.

any help is appreciated...
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Has anyone tried to build a WindowsPhone version?

Post by Lapo »

Hi,
this is relatively new and we have never tried.
The current API build uses regular network classes found in the .Net/Mono framework and supported by the Unity Editor.

I think the problem here is that Windows Phone uses different .Net packages. But I also find this kind of strange. Isn't Unity supposed to allow you write your code once and then "export it" to whatever native platform? Eg. Android, iOS, Flash etc...

I have done a quick Google search and have found very little documentation on how this is supposed to work. Do you have any resources we can look at?
If Windows 8 Phone requires completely different classes to be supported it would defeat the purpose of writing once and deploying everywhere.

In any case, the next C# API update will also contain native API for both Win8 RT and Win8 Phone.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Has anyone tried to build a WindowsPhone version?

Post by Lapo »

Hi again,
I have finally found what I was looking for on the Unity website.
This page:
http://unity3d.com/unity/system-requirements
which clarifies how the requirements for Windows 8 Phone development.

They are:
System Requirements for Windows Store/Windows Phone development

In addition to the general system requirements:

-> Windows Phone SDK 8.0 requires 64-bit Windows 8 Pro or higher. You can't develop Windows Phone 8 apps on Windows 7, on Windows Server 2008, or on Windows Server 2012.

-> Microsoft Visual Studio 2012
This means that you will also need the W8P specific API, not the generic Unity API you would use for the WebPlayer or desktop, I suppose.

We're releasing the native Windows 8 and Windows 8 Phone API during the week, so keep an eye on our website download page for the update.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Has anyone tried to build a WindowsPhone version?

Post by Lapo »

UPDATE:
we have release the Windows 8 and Windows 8 Phone DLLs which can also be used with Unity 4.

Download from here:
http://www.smartfoxserver.com/download/sfs2x#p=client

API Setup Documentation here:
http://docs2x.smartfoxserver.com/Gettin ... api-csharp

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
gs_vamseemohan
Posts: 14
Joined: 07 Aug 2013, 07:50

Re: Has anyone tried to build a WindowsPhone version?

Post by gs_vamseemohan »

Hi,

I just downloaded the unity examples pack from your site. And im trying to make a WP8 build. and i get this error

Error building Player: Exception: Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Net.Dns` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
.....

The same for any other platform worked so far, but not for WP8, am i missing something here?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Has anyone tried to build a WindowsPhone version?

Post by Bax »

The Unity examples don't work in Windows 8 / Windows Phone 8 out of the box.
Please follow the instructions provided here: http://docs2x.smartfoxserver.com/Gettin ... api-csharp
(read the Unity paragraph and follow the link to the Unity website).
Paolo Bax
The SmartFoxServer Team
Post Reply