Web Player not connect

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

Moderators: Lapo, Bax

RVS
Posts: 4
Joined: 26 May 2012, 05:14

Web Player not connect

Postby RVS » 26 May 2012, 05:24

Hi Friends, I am RVS and this is my first post on this forum. In unity i made a simple connection script with .NET API. After build .exe it is working but in WebPlayer this not working. it show connection error... So please help me here.... :(
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Web Player not connect

Postby rjgtav » 27 May 2012, 23:06

Hello.
Sorry but you'll have to provide more information for we to be able to help you.
You can check which information you need to provide here.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
AndyMartin458
Posts: 55
Joined: 15 May 2012, 21:57

Re: Web Player not connect

Postby AndyMartin458 » 20 Jun 2012, 18:24

The Unity and SFS examples have problems running in the Unity Editor and web browser. Change your build settings to build for pc/mac.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: Web Player not connect

Postby ThomasLund » 03 Jul 2012, 09:51

If you run anything network related in Webplayer mode, you HAVE to make sure to call Unity's prefetch command to get the security policy before doing any kind of networking. In the editor you also need to fix up the editor faking to fetch the security policy. Its set in the editor options somewhere. Please read the Unity manual on this and take a look at the SFS examples provided

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: Web Player not connect

Postby Carl Lydon » 30 Jul 2012, 05:40

And even if you call the prefetch command it might not find the security policy.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: Web Player not connect

Postby ThomasLund » 10 Aug 2012, 12:03

Yes - so make certain you actually check the return value of the prefetch command to verify that Unity got the security policy.
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 61 guests